@airpower/web 0.2.7 → 0.2.9

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.
Files changed (98) hide show
  1. package/dist/base/AbstractService.d.ts +1 -1
  2. package/dist/components/datetime/DateTime.vue.d.ts +2 -2
  3. package/dist/components/dialog/DialogProps.d.ts +2 -2
  4. package/dist/components/dialog/DialogUtil.d.ts +1 -1
  5. package/dist/components/form/FormField.vue.d.ts +5 -5
  6. package/dist/components/image/Image.vue.d.ts +5 -5
  7. package/dist/components/input/Input.vue.d.ts +7 -7
  8. package/dist/components/input/index.d.ts +1 -0
  9. package/dist/components/menu/IMenu.d.ts +1 -1
  10. package/dist/components/money/Money.vue.d.ts +1 -1
  11. package/dist/components/page/Page.vue.d.ts +1 -1
  12. package/dist/components/select/Selector.vue.d.ts +1 -3
  13. package/dist/components/table/Table.vue.d.ts +2 -4
  14. package/dist/components/table/component/ColumnSelector.vue.d.ts +1 -1
  15. package/dist/components/table/component/CopyColumn.vue.d.ts +1 -1
  16. package/dist/components/table/component/EnumColumn.vue.d.ts +2 -2
  17. package/dist/components/table/component/Export.vue.d.ts +1 -1
  18. package/dist/components/table/useTableColumn.d.ts +1 -1
  19. package/dist/components/tree/TreeBox.vue.d.ts +1 -1
  20. package/dist/config/WebConfig.d.ts +8 -0
  21. package/dist/curd/AbstractCurdService.d.ts +1 -1
  22. package/dist/{decorator → curd/decorator}/@Field/Field.d.ts +4 -4
  23. package/dist/{decorator → curd/decorator}/@Field/IFieldConfig.d.ts +3 -3
  24. package/dist/{decorator → curd/decorator}/@Form/IFormField.d.ts +1 -1
  25. package/dist/{hooks → curd/hooks}/detail/IDetailOption.d.ts +1 -1
  26. package/dist/{hooks → curd/hooks}/detail/IDetailResult.d.ts +2 -2
  27. package/dist/{hooks → curd/hooks}/detail/useDetail.d.ts +2 -2
  28. package/dist/{hooks → curd/hooks}/editor/IEditorOption.d.ts +2 -2
  29. package/dist/{hooks → curd/hooks}/editor/IEditorResult.d.ts +3 -3
  30. package/dist/{hooks → curd/hooks}/editor/useEditor.d.ts +2 -2
  31. package/dist/{hooks → curd/hooks}/table/base/IBaseTableOption.d.ts +1 -1
  32. package/dist/{hooks → curd/hooks}/table/base/IBaseTableResult.d.ts +2 -2
  33. package/dist/{hooks → curd/hooks}/table/base/useBaseTable.d.ts +2 -2
  34. package/dist/{hooks → curd/hooks}/table/list/ITableOption.d.ts +2 -2
  35. package/dist/{hooks → curd/hooks}/table/list/ITableResult.d.ts +2 -2
  36. package/dist/{hooks → curd/hooks}/table/list/useTable.d.ts +2 -2
  37. package/dist/{hooks → curd/hooks}/table/selector/ISelectorOption.d.ts +1 -1
  38. package/dist/{hooks → curd/hooks}/table/selector/ISelectorResult.d.ts +2 -2
  39. package/dist/{hooks → curd/hooks}/table/selector/useSelector.d.ts +2 -2
  40. package/dist/{hooks → curd/hooks}/table/tree/ITableTreeOption.d.ts +1 -1
  41. package/dist/{hooks → curd/hooks}/table/tree/ITableTreeResult.d.ts +2 -2
  42. package/dist/{hooks → curd/hooks}/table/tree/useTableTree.d.ts +2 -2
  43. package/dist/curd/index.d.ts +3 -0
  44. package/dist/{model → curd/model}/query/QueryRequest.d.ts +1 -1
  45. package/dist/{model → curd/model}/query/QueryRequestPage.d.ts +1 -1
  46. package/dist/{model → curd/model}/query/QueryResponsePage.d.ts +1 -1
  47. package/dist/{model → curd/model}/tree/ITree.d.ts +1 -1
  48. package/dist/index.d.ts +0 -5
  49. package/dist/main.js +8015 -5197
  50. package/dist/{enum → util/enum}/IWebEnum.d.ts +1 -2
  51. package/dist/util/enum/type.d.ts +8 -0
  52. package/dist/util/file/index.d.ts +1 -0
  53. package/dist/util/index.d.ts +3 -0
  54. package/dist/util/router/RouterUtil.d.ts +47 -0
  55. package/dist/util/router/index.d.ts +1 -0
  56. package/dist/web.css +70 -70
  57. package/package.json +1 -1
  58. package/dist/enum/type.d.ts +0 -8
  59. /package/dist/{decorator → curd/decorator}/@Field/index.d.ts +0 -0
  60. /package/dist/{decorator → curd/decorator}/@Form/Form.d.ts +0 -0
  61. /package/dist/{decorator → curd/decorator}/@Form/FormTrim.d.ts +0 -0
  62. /package/dist/{decorator → curd/decorator}/@Form/index.d.ts +0 -0
  63. /package/dist/{decorator → curd/decorator}/@Model/IModelConfig.d.ts +0 -0
  64. /package/dist/{decorator → curd/decorator}/@Model/Model.d.ts +0 -0
  65. /package/dist/{decorator → curd/decorator}/@Model/index.d.ts +0 -0
  66. /package/dist/{decorator → curd/decorator}/@Search/ISearchField.d.ts +0 -0
  67. /package/dist/{decorator → curd/decorator}/@Search/Search.d.ts +0 -0
  68. /package/dist/{decorator → curd/decorator}/@Search/index.d.ts +0 -0
  69. /package/dist/{decorator → curd/decorator}/@Table/IElementTableColumn.d.ts +0 -0
  70. /package/dist/{decorator → curd/decorator}/@Table/ITableColumn.d.ts +0 -0
  71. /package/dist/{decorator → curd/decorator}/@Table/Table.d.ts +0 -0
  72. /package/dist/{decorator → curd/decorator}/@Table/TableType.d.ts +0 -0
  73. /package/dist/{decorator → curd/decorator}/@Table/index.d.ts +0 -0
  74. /package/dist/{decorator → curd/decorator}/common/IBaseField.d.ts +0 -0
  75. /package/dist/{decorator → curd/decorator}/common/index.d.ts +0 -0
  76. /package/dist/{decorator → curd/decorator}/index.d.ts +0 -0
  77. /package/dist/{hooks → curd/hooks}/detail/index.d.ts +0 -0
  78. /package/dist/{hooks → curd/hooks}/editor/index.d.ts +0 -0
  79. /package/dist/{hooks → curd/hooks}/index.d.ts +0 -0
  80. /package/dist/{hooks → curd/hooks}/table/base/index.d.ts +0 -0
  81. /package/dist/{hooks → curd/hooks}/table/index.d.ts +0 -0
  82. /package/dist/{hooks → curd/hooks}/table/list/index.d.ts +0 -0
  83. /package/dist/{hooks → curd/hooks}/table/selector/index.d.ts +0 -0
  84. /package/dist/{hooks → curd/hooks}/table/tree/index.d.ts +0 -0
  85. /package/dist/{model → curd/model}/export/ExportModel.d.ts +0 -0
  86. /package/dist/{model → curd/model}/export/index.d.ts +0 -0
  87. /package/dist/{model → curd/model}/index.d.ts +0 -0
  88. /package/dist/{model → curd/model}/query/QueryPage.d.ts +0 -0
  89. /package/dist/{model → curd/model}/query/QuerySort.d.ts +0 -0
  90. /package/dist/{model → curd/model}/query/index.d.ts +0 -0
  91. /package/dist/{model → curd/model}/query/type.d.ts +0 -0
  92. /package/dist/{model → curd/model}/tree/index.d.ts +0 -0
  93. /package/dist/{enum → util/enum}/DisableEnum.d.ts +0 -0
  94. /package/dist/{enum → util/enum}/WebColor.d.ts +0 -0
  95. /package/dist/{enum → util/enum}/WebEnum.d.ts +0 -0
  96. /package/dist/{enum → util/enum}/index.d.ts +0 -0
  97. /package/dist/{i18n → util/i18n}/WebI18n.d.ts +0 -0
  98. /package/dist/{i18n → util/i18n}/index.d.ts +0 -0
@@ -22,7 +22,7 @@ export declare abstract class AbstractService extends Transformer {
22
22
  */
23
23
  static create<S extends AbstractService>(this: ITransformerConstructor<S>, loading?: Ref<boolean>): S;
24
24
  /**
25
- * ### 创建一个 `AirHttp` 实例
25
+ * ### 创建一个 `HTTP` 实例
26
26
  * @param url 请求的接口地址
27
27
  * @param baseUrl `可选` 请求的接口目录
28
28
  */
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
16
  };
17
17
  /**
18
18
  * # 时间格式化模板
19
- * 建议使用 `AirDateTimeFormatter`
19
+ * 建议使用 `DateTimeFormatter`
20
20
  */
21
21
  formatter: {
22
22
  type: typeof DateTimeFormatter;
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
46
  };
47
47
  /**
48
48
  * # 时间格式化模板
49
- * 建议使用 `AirDateTimeFormatter`
49
+ * 建议使用 `DateTimeFormatter`
50
50
  */
51
51
  formatter: {
52
52
  type: typeof DateTimeFormatter;
@@ -177,10 +177,10 @@ export declare class DialogProps {
177
177
  /**
178
178
  * ### 传入参数为一个实体
179
179
  *
180
- * 能保证的是, 确实是一个实体的基类, 可以调用一些 `AirModel` 的方法
180
+ * 能保证的是, 确实是一个实体的基类, 可以调用一些 `Transformer` 的方法
181
181
  *
182
182
  * ```typescript
183
- * AirClassTransformer.parse(props.param.toSourceObject(), UserEntity)
183
+ * Transformer.parse(props.param.toSourceObject(), UserEntity)
184
184
  * ```
185
185
  */
186
186
  param: {
@@ -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 '../../model';
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 '../../model';
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" | "list">, "onFocus" | "onBlur" | "onChange" | "field" | "onClear" | "onUpdate:modelValue" | ("disabled" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue" | "list")> & {} & Partial<{}>> & import('vue').PublicProps;
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" | "uploadUrl" | "extensions" | "entity" | "headers" | "limit" | "upload" | "placeholder" | "clearable" | "src" | "showTips" | "uploadFileName">, "onOnRemove" | "onOnUpload" | ("data" | "width" | "height" | "uploadUrl" | "extensions" | "entity" | "headers" | "limit" | "upload" | "placeholder" | "clearable" | "src" | "showTips" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
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 '../../model';
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" | "entity" | "placeholder" | "tree" | "dateShowFormatter" | "modelValue" | "readonly" | "disabledValue" | "list" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onChange" | "onClear" | "onUpdate:modelValue" | ("disabled" | "entity" | "placeholder" | "tree" | "dateShowFormatter" | "modelValue" | "readonly" | "disabledValue" | "list" | "modelModifiers" | "modifier" | "showClear" | "onSearch")> & {} & Partial<{}>> & import('vue').PublicProps;
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>>;
@@ -1,2 +1,3 @@
1
1
  import { default as AInput } from './Input.vue';
2
2
  export { AInput, };
3
+ export * from './DateTimeType';
@@ -1,4 +1,4 @@
1
- import { ITree } from '../../model';
1
+ import { ITree } from '../../curd';
2
2
  /**
3
3
  * # 菜单接口
4
4
  *
@@ -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 '../../model';
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 '../../../decorator';
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 '../../../decorator';
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 '../../../decorator';
3
- import { WebEnumConstructor } from '../../../enum';
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,4 +1,4 @@
1
- import { ExportModel } from '../../../model';
1
+ import { ExportModel } from '../../../curd';
2
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
3
  onConfirm: {
4
4
  type: import('vue').PropType<(data?: unknown) => void>;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { RootEntity } from '../../base';
3
- import { IModelConfig, ITableColumn } from '../../decorator';
3
+ import { IModelConfig, ITableColumn } from '../../curd';
4
4
  /**
5
5
  * # 表格字段
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { RootEntity } from '../../base';
2
- import { ITree } from '../../model';
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,7 @@
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
5
  import { CurdServiceConstructor } from './type';
6
6
  /**
7
7
  * # 实体 `API` 服务超类
@@ -1,25 +1,25 @@
1
1
  import { EnumKey } from '@airpower/enum/dist/enum/type';
2
2
  import { DecoratorTarget } from '@airpower/transformer';
3
- import { WebEnum, WebEnumConstructor } from '../../enum';
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, E extends WebEnum<K> = WebEnum<K>>(config?: IFieldConfig<K, E>): (target: DecoratorTarget, key: string) => void;
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, E extends WebEnum<K> = WebEnum<K>>(target: DecoratorTarget, key: string): IFieldConfig<K, E>;
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, E extends WebEnum<K> = WebEnum<K>>(target: DecoratorTarget, key: string): WebEnumConstructor<K, E> | undefined;
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 { WebEnum, WebEnumConstructor } from '../../enum';
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, E extends WebEnum<K> = WebEnum<K>> extends IBaseField {
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, E>;
17
+ dictionary?: WebEnumConstructor<K>;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import { DateTimeFormatter } from '@airpower/util';
2
- import { DateTimeType } from '../../components/input/DateTimeType';
2
+ import { DateTimeType } from '../../../components';
3
3
  import { IBaseField } from '../common';
4
4
  import { FormTrim } from './FormTrim';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { RootEntity } from '../../base';
1
+ import { RootEntity } from '../../../base';
2
2
  /**
3
3
  * # `Detail` 的 `Hook` 可选配置
4
4
  * @author Hamm.cn
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { RootEntity } from '../../base';
3
- import { AbstractCurdService } from '../../curd';
2
+ import { RootEntity } from '../../../base';
3
+ import { AbstractCurdService } from '../../index';
4
4
  /**
5
5
  * # 详情的 `Hook` 标准返回
6
6
  * @author Hamm.cn
@@ -1,6 +1,6 @@
1
1
  import { IJson } from '@airpower/transformer';
2
- import { RootEntity } from '../../base';
3
- import { AbstractCurdService, CurdServiceConstructor } from '../../curd';
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
  /**
@@ -1,5 +1,5 @@
1
- import { RootEntity } from '../../base';
2
- import { WebValidateRule } from '../../util';
1
+ import { RootEntity } from '../../../base';
2
+ import { WebValidateRule } from '../../../util';
3
3
  import { IDetailOption } from '../detail';
4
4
  /**
5
5
  * # `Editor` 的 `Hook` 可选配置
@@ -1,8 +1,8 @@
1
1
  import { FormInstance } from 'element-plus';
2
2
  import { Ref } from 'vue';
3
- import { RootEntity } from '../../base';
4
- import { AbstractCurdService } from '../../curd';
5
- import { WebValidateRule } from '../../util';
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,6 +1,6 @@
1
1
  import { IJson } from '@airpower/transformer';
2
- import { RootEntity } from '../../base';
3
- import { AbstractCurdService, CurdServiceConstructor } from '../../curd';
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
  /**
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { RootEntity } from '../../../base';
2
+ import { RootEntity } from '../../../../base';
3
3
  import { QueryRequestPage } from '../../../model';
4
4
  /**
5
5
  * # 表格相关的根级配置项
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { RootEntity } from '../../../base';
3
- import { AbstractCurdService } from '../../../curd';
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 '../../../base';
2
- import { AbstractCurdService, CurdServiceConstructor } from '../../../curd';
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 '../../../base';
2
- import { IBaseTableOption } from '../base/IBaseTableOption';
1
+ import { RootEntity } from '../../../../base';
2
+ import { IBaseTableOption } from '../base';
3
3
  /**
4
4
  * # `TableList` 的 `Hook` 可选配置
5
5
  * @author Hamm.cn
@@ -1,5 +1,5 @@
1
- import { RootEntity } from '../../../base';
2
- import { AbstractCurdService } from '../../../curd';
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 '../../../base';
2
- import { AbstractCurdService, CurdServiceConstructor } from '../../../curd';
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,4 +1,4 @@
1
- import { RootEntity } from '../../../base';
1
+ import { RootEntity } from '../../../../base';
2
2
  import { IBaseTableOption } from '../base';
3
3
  /**
4
4
  * # `Selector` 的 `Hook` 可选配置
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { RootEntity } from '../../../base';
3
- import { AbstractCurdService } from '../../../curd';
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 '../../../base';
3
- import { AbstractCurdService, CurdServiceConstructor } from '../../../curd';
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,4 +1,4 @@
1
- import { RootEntity } from '../../../base';
1
+ import { RootEntity } from '../../../../base';
2
2
  import { ITree } from '../../../model';
3
3
  import { ITableOption } from '../list';
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { RootEntity } from '../../../base';
2
- import { AbstractCurdService } from '../../../curd';
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 '../../../base';
2
- import { AbstractCurdService, CurdServiceConstructor } from '../../../curd';
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';
@@ -1,2 +1,5 @@
1
1
  export * from './AbstractCurdService';
2
+ export * from './decorator';
3
+ export * from './hooks';
4
+ export * from './model';
2
5
  export * from './type';
@@ -1,5 +1,5 @@
1
1
  import { ITransformerConstructor, Transformer } from '@airpower/transformer';
2
- import { RootEntity } from '../../base';
2
+ import { RootEntity } from '../../../base';
3
3
  import { QuerySort } from './QuerySort';
4
4
  /**
5
5
  * # 请求类
@@ -1,4 +1,4 @@
1
- import { RootEntity } from '../../base';
1
+ import { RootEntity } from '../../../base';
2
2
  import { QueryPage } from './QueryPage';
3
3
  import { QueryRequest } from './QueryRequest';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { RootEntity } from '../../base';
1
+ import { RootEntity } from '../../../base';
2
2
  import { Transformer } from '@airpower/transformer';
3
3
  import { QueryPage } from './QueryPage';
4
4
  import { QuerySort } from './QuerySort';
@@ -1,4 +1,4 @@
1
- import { IEntity } from '../../base';
1
+ import { IEntity } from '../../../base';
2
2
  /**
3
3
  * # 树形结构
4
4
  *