@fly-vue/lcdp-iview 1.8.12 → 1.8.13-1

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 (48) hide show
  1. package/@types/module/components/components/IvTableGrid/index.vue.d.ts +2 -1
  2. package/@types/module/components/components/entity/IvEntityExport/ts/type.d.ts +29 -0
  3. package/@types/module/components/components/entity/IvEntityQueryBuilder/fieldAnalysis.vue.d.ts +54 -0
  4. package/@types/module/components/components/entity/IvEntityQueryBuilder/index.vue.d.ts +84 -0
  5. package/@types/module/components/components/entity/IvEntityQueryBuilder/ts/type.d.ts +35 -0
  6. package/@types/module/components/components/entity/button/create.vue.d.ts +157 -0
  7. package/@types/module/components/components/entity/button/edit.vue.d.ts +161 -0
  8. package/@types/module/components/components/entity/button/field-type-mapping-form-component.d.ts +50 -0
  9. package/@types/module/components/components/entity/button/generate-entity-form.d.ts +81 -0
  10. package/@types/module/components/components/entity/button/rules.d.ts +31 -0
  11. package/@types/module/components/components/entity/button/ts/export.d.ts +3 -0
  12. package/@types/module/components/components/entity/button/ts/lowcode.d.ts +101 -0
  13. package/@types/module/components/components/entity/button/ts/open-in-dialog.d.ts +16 -0
  14. package/@types/module/components/components/entity/button/ts/type.d.ts +14 -0
  15. package/@types/module/components/components/entity/button/ts/use-app-id.d.ts +6 -0
  16. package/@types/module/components/components/entity/button/utils.d.ts +7 -0
  17. package/@types/module/components/components/iam/lib/query-methods-builder.d.ts +1 -1
  18. package/@types/module/components/components/iam/org-select/org-tree/utils.d.ts +25 -0
  19. package/@types/module/components/components/lab-component/user-data-view/index.vue.d.ts +66 -0
  20. package/@types/module/components/index.d.ts +5 -0
  21. package/@types/module/schema-extend/components/auth.d.ts +7 -0
  22. package/bingo-builder-manifest.json +16 -14
  23. package/index.js +4 -4
  24. package/modules/fly_vue_lcdp_iview/assets/css/app.css +2 -2
  25. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.26af6a0b.css +1 -0
  26. package/modules/fly_vue_lcdp_iview/assets/css/{lcdp-renderer-components.b1d4f3e0.css → lcdp-renderer-components.02003927.css} +1 -1
  27. package/modules/fly_vue_lcdp_iview/chunk-732b533d.d591c769d0b9a7ff0b2d.js +1 -0
  28. package/modules/fly_vue_lcdp_iview/dll.js +8 -8
  29. package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.d591c769d0b9a7ff0b2d.js +1 -0
  30. package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.d591c769d0b9a7ff0b2d.js +1 -0
  31. package/modules/fly_vue_lcdp_iview/lcdp-iview-component-ice.d591c769d0b9a7ff0b2d.js +1 -0
  32. package/modules/fly_vue_lcdp_iview/lcdp-iview-component.d591c769d0b9a7ff0b2d.js +1 -0
  33. package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.d591c769d0b9a7ff0b2d.js +1 -0
  34. package/modules/fly_vue_lcdp_iview/vendors~lcdp-renderer-components.d591c769d0b9a7ff0b2d.js +15 -0
  35. package/package.json +14 -13
  36. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.e7fec5cb.css +0 -1
  37. package/modules/fly_vue_lcdp_iview/chunk-732b533d.b489cc1146ca6d8aa61f.js +0 -1
  38. package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.b489cc1146ca6d8aa61f.js +0 -1
  39. package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.b489cc1146ca6d8aa61f.js +0 -1
  40. package/modules/fly_vue_lcdp_iview/lcdp-iview-component-ice.b489cc1146ca6d8aa61f.js +0 -1
  41. package/modules/fly_vue_lcdp_iview/lcdp-iview-component.b489cc1146ca6d8aa61f.js +0 -1
  42. package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.b489cc1146ca6d8aa61f.js +0 -1
  43. package/modules/fly_vue_lcdp_iview/vendors~lcdp-renderer-components.b489cc1146ca6d8aa61f.js +0 -15
  44. /package/modules/fly_vue_lcdp_iview/{lcdp-designer-components.b489cc1146ca6d8aa61f.js → lcdp-designer-components.d591c769d0b9a7ff0b2d.js} +0 -0
  45. /package/modules/fly_vue_lcdp_iview/{lcdp-iview-component-region.b489cc1146ca6d8aa61f.js → lcdp-iview-component-region.d591c769d0b9a7ff0b2d.js} +0 -0
  46. /package/modules/fly_vue_lcdp_iview/{vendors~lcdp-iview-attrcomponent~lcdp-iview-basecomponent.b489cc1146ca6d8aa61f.js → vendors~lcdp-iview-attrcomponent~lcdp-iview-basecomponent.d591c769d0b9a7ff0b2d.js} +0 -0
  47. /package/modules/fly_vue_lcdp_iview/{vendors~lcdp-iview-component-ice.b489cc1146ca6d8aa61f.js → vendors~lcdp-iview-component-ice.d591c769d0b9a7ff0b2d.js} +0 -0
  48. /package/modules/fly_vue_lcdp_iview/{vendors~lcdp-iview-component.b489cc1146ca6d8aa61f.js → vendors~lcdp-iview-component.d591c769d0b9a7ff0b2d.js} +0 -0
@@ -240,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
240
240
  selectAll(status: any): void;
241
241
  toggleSelect(index: any): void;
242
242
  clearRadioRow(): void;
243
+ getColumnsData(): any;
243
244
  }, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
244
245
  pagerProps: {
245
246
  type: PropType<PagerProps>;
@@ -416,6 +417,7 @@ declare const _default: import("vue").DefineComponent<{
416
417
  draggable: boolean;
417
418
  border: boolean;
418
419
  contextMenu: boolean;
420
+ visiblePage: boolean;
419
421
  visibleHeaderOp: boolean;
420
422
  autoReload: boolean;
421
423
  visibleMore: boolean;
@@ -423,7 +425,6 @@ declare const _default: import("vue").DefineComponent<{
423
425
  valueField: string;
424
426
  enableSelectionCol: boolean;
425
427
  enableIndexCol: boolean;
426
- visiblePage: boolean;
427
428
  loadOnMounted: boolean;
428
429
  showChildren: boolean;
429
430
  selectRowSingle: boolean;
@@ -0,0 +1,29 @@
1
+ declare type ArbitraryObject = {
2
+ [key: string]: any;
3
+ };
4
+ interface TransferQuery {
5
+ data: ArbitraryObject[];
6
+ targetKeys: (string | number)[];
7
+ listStyle: {
8
+ width: string;
9
+ height: string;
10
+ };
11
+ }
12
+ export interface ComponentData {
13
+ exportModel: boolean;
14
+ exportLoading: boolean;
15
+ entityInfo: ArbitraryObject;
16
+ fieldList: ArbitraryObject[];
17
+ fieldGruop: ArbitraryObject[];
18
+ transferQuery: TransferQuery;
19
+ relations: ArbitraryObject;
20
+ }
21
+ export interface Item {
22
+ [key: string]: any;
23
+ }
24
+ export interface ExportQuery {
25
+ filename: string;
26
+ columns: Item[];
27
+ data: Item[];
28
+ }
29
+ export {};
@@ -0,0 +1,54 @@
1
+ import { Ref } from 'vue';
2
+ import { FilterItem, State } from './ts/type';
3
+ export declare type ChildComponentInstance = {
4
+ onReset: () => void;
5
+ onSubmit: () => {
6
+ filters: string;
7
+ filterList: FilterItem;
8
+ };
9
+ onListFilters: (filters: string) => void;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<{
12
+ filedOption: any;
13
+ relations: any;
14
+ isCheck: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }, {
19
+ __sfc: boolean;
20
+ props: {
21
+ filedOption?: any;
22
+ relations?: any;
23
+ isCheck: boolean;
24
+ };
25
+ state: State;
26
+ filterList: Ref<FilterItem[]>;
27
+ options: Ref<import("./ts/type").Option[]>;
28
+ list: import("vue").WritableComputedRef<import("@fly-vue/lcdp-api").IOption[]>;
29
+ parseOrExpressions: (filters: string) => string[];
30
+ isOrKeyword: (filters: string, index: number) => boolean;
31
+ onFieldInputType: (e: any, value: any) => void;
32
+ onListFilters: (filters: string) => void;
33
+ onSelectFields: (e: any, value: any) => void;
34
+ onAnalysisRelations: (value: any, targetEntityInfo: any) => void;
35
+ onCondition: (type: any, index: any) => void;
36
+ onGroup: (type: string, index?: number) => void;
37
+ onReset: () => void;
38
+ onSubmit: () => false | {
39
+ filters: string;
40
+ filterList: FilterItem[];
41
+ };
42
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
43
+ filedOption: any;
44
+ relations: any;
45
+ isCheck: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>>, {
50
+ filedOption: any;
51
+ relations: any;
52
+ isCheck: boolean;
53
+ }>;
54
+ export default _default;
@@ -0,0 +1,84 @@
1
+ import { Ref } from 'vue';
2
+ import { QueryBuilderData, FlexibleObject } from './ts/type';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ entity: any;
5
+ }, {
6
+ __sfc: boolean;
7
+ props: {
8
+ entity: string;
9
+ };
10
+ queryBuilderData: QueryBuilderData;
11
+ visible: Ref<boolean>;
12
+ filedOption: Ref<{
13
+ [key: string]: any;
14
+ }[]>;
15
+ entityInfo: Ref<{
16
+ [key: string]: any;
17
+ }>;
18
+ relations: Ref<{
19
+ [key: string]: any;
20
+ }>;
21
+ onEntityInfo: () => void;
22
+ emit: {
23
+ (e: "on-search-reset"): void;
24
+ (e: "on-search-filters", data: FlexibleObject): any;
25
+ };
26
+ childRef: Ref<{
27
+ onReset: () => void;
28
+ onSubmit: () => {
29
+ filters: string;
30
+ filterList: import("./ts/type").FilterItem;
31
+ };
32
+ onListFilters: (filters: string) => void;
33
+ }>;
34
+ onBaseClick: (type: string) => void;
35
+ designerService: any;
36
+ FieldAnalysis: import("vue").DefineComponent<{
37
+ filedOption: any;
38
+ relations: any;
39
+ isCheck: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ }, {
44
+ __sfc: boolean;
45
+ props: {
46
+ filedOption?: any;
47
+ relations?: any;
48
+ isCheck: boolean;
49
+ };
50
+ state: import("./ts/type").State;
51
+ filterList: Ref<import("./ts/type").FilterItem[]>;
52
+ options: Ref<import("./ts/type").Option[]>;
53
+ list: import("vue").WritableComputedRef<import("@fly-vue/lcdp-api").IOption[]>;
54
+ parseOrExpressions: (filters: string) => string[];
55
+ isOrKeyword: (filters: string, index: number) => boolean;
56
+ onFieldInputType: (e: any, value: any) => void;
57
+ onListFilters: (filters: string) => void;
58
+ onSelectFields: (e: any, value: any) => void;
59
+ onAnalysisRelations: (value: any, targetEntityInfo: any) => void;
60
+ onCondition: (type: any, index: any) => void;
61
+ onGroup: (type: string, index?: number) => void;
62
+ onReset: () => void;
63
+ onSubmit: () => false | {
64
+ filters: string;
65
+ filterList: import("./ts/type").FilterItem[];
66
+ };
67
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
68
+ filedOption: any;
69
+ relations: any;
70
+ isCheck: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ }>>, {
75
+ filedOption: any;
76
+ relations: any;
77
+ isCheck: boolean;
78
+ }>;
79
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("on-search-reset" | "on-search-filters")[], string, Readonly<import("vue").ExtractPropTypes<{
80
+ entity: any;
81
+ }>>, {
82
+ entity: any;
83
+ }>;
84
+ export default _default;
@@ -0,0 +1,35 @@
1
+ export interface Option {
2
+ value: string;
3
+ label: string;
4
+ }
5
+ export interface FilterValue {
6
+ fields: string;
7
+ type: 'like' | 'eq' | 'ne' | 'lt' | 'le' | 'gt' | 'ge' | 'in' | 'not in' | 'is null' | 'not null';
8
+ value?: string;
9
+ inputType: string;
10
+ dict: string;
11
+ target: Record<string, any>;
12
+ }
13
+ export interface FilterItem {
14
+ query: {
15
+ type: 'and' | 'or';
16
+ list: FilterValue[];
17
+ };
18
+ }
19
+ export interface State {
20
+ filterList: FilterItem[];
21
+ options: Option[];
22
+ }
23
+ declare type ArbitraryObject = {
24
+ [key: string]: any;
25
+ };
26
+ export interface QueryBuilderData {
27
+ visible: boolean;
28
+ filedOption: ArbitraryObject[];
29
+ entityInfo: ArbitraryObject;
30
+ relations: ArbitraryObject;
31
+ }
32
+ export interface FlexibleObject {
33
+ [key: string]: any;
34
+ }
35
+ export {};
@@ -0,0 +1,157 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ entity: any;
3
+ span: {
4
+ default: string;
5
+ };
6
+ gutter: any;
7
+ labelPosition: any;
8
+ labelColon: {
9
+ type: BooleanConstructor;
10
+ };
11
+ showMessage: {
12
+ type: BooleanConstructor;
13
+ };
14
+ hideRequiredMark: {
15
+ type: BooleanConstructor;
16
+ };
17
+ prevent: {
18
+ type: BooleanConstructor;
19
+ };
20
+ rowspace: {
21
+ default: number;
22
+ };
23
+ labelWidth: {
24
+ default: number;
25
+ };
26
+ type: {
27
+ default: string;
28
+ };
29
+ size: {
30
+ default: string;
31
+ };
32
+ text: {
33
+ default: string;
34
+ };
35
+ icon: any;
36
+ long: {
37
+ type: BooleanConstructor;
38
+ };
39
+ disabled: {
40
+ type: BooleanConstructor;
41
+ };
42
+ shape: {
43
+ default: any;
44
+ };
45
+ customIcon: any;
46
+ ghost: {
47
+ type: BooleanConstructor;
48
+ };
49
+ loading: {
50
+ type: BooleanConstructor;
51
+ };
52
+ }, {
53
+ __sfc: boolean;
54
+ props: {
55
+ entity?: string;
56
+ span: string;
57
+ gutter?: string;
58
+ labelPosition?: string;
59
+ labelColon?: boolean;
60
+ showMessage?: boolean;
61
+ hideRequiredMark?: boolean;
62
+ prevent?: boolean;
63
+ rowspace: number;
64
+ labelWidth: number;
65
+ type: string;
66
+ size: string;
67
+ text: string;
68
+ icon?: string;
69
+ long?: boolean;
70
+ disabled?: boolean;
71
+ shape: string;
72
+ customIcon?: string;
73
+ ghost?: boolean;
74
+ loading?: boolean;
75
+ };
76
+ entityCode: import("vue").Ref<string>;
77
+ appId: any;
78
+ payload: any;
79
+ fullEntity: import("vue").Ref<any>;
80
+ fieldRelationMap: any[];
81
+ emit: (event: "click" | "save", ...args: any[]) => void;
82
+ generate: () => any;
83
+ open: ($event: any) => Promise<boolean>;
84
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "save")[], string, Readonly<import("vue").ExtractPropTypes<{
85
+ entity: any;
86
+ span: {
87
+ default: string;
88
+ };
89
+ gutter: any;
90
+ labelPosition: any;
91
+ labelColon: {
92
+ type: BooleanConstructor;
93
+ };
94
+ showMessage: {
95
+ type: BooleanConstructor;
96
+ };
97
+ hideRequiredMark: {
98
+ type: BooleanConstructor;
99
+ };
100
+ prevent: {
101
+ type: BooleanConstructor;
102
+ };
103
+ rowspace: {
104
+ default: number;
105
+ };
106
+ labelWidth: {
107
+ default: number;
108
+ };
109
+ type: {
110
+ default: string;
111
+ };
112
+ size: {
113
+ default: string;
114
+ };
115
+ text: {
116
+ default: string;
117
+ };
118
+ icon: any;
119
+ long: {
120
+ type: BooleanConstructor;
121
+ };
122
+ disabled: {
123
+ type: BooleanConstructor;
124
+ };
125
+ shape: {
126
+ default: any;
127
+ };
128
+ customIcon: any;
129
+ ghost: {
130
+ type: BooleanConstructor;
131
+ };
132
+ loading: {
133
+ type: BooleanConstructor;
134
+ };
135
+ }>>, {
136
+ span: string;
137
+ icon: any;
138
+ text: string;
139
+ disabled: boolean;
140
+ type: string;
141
+ gutter: any;
142
+ prevent: boolean;
143
+ size: string;
144
+ entity: any;
145
+ loading: boolean;
146
+ labelPosition: any;
147
+ labelColon: boolean;
148
+ showMessage: boolean;
149
+ hideRequiredMark: boolean;
150
+ rowspace: number;
151
+ labelWidth: number;
152
+ long: boolean;
153
+ shape: any;
154
+ customIcon: any;
155
+ ghost: boolean;
156
+ }>;
157
+ export default _default;
@@ -0,0 +1,161 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ entity: any;
3
+ id: any;
4
+ span: {
5
+ default: string;
6
+ };
7
+ gutter: any;
8
+ labelPosition: any;
9
+ labelColon: {
10
+ type: BooleanConstructor;
11
+ };
12
+ showMessage: {
13
+ type: BooleanConstructor;
14
+ };
15
+ hideRequiredMark: {
16
+ type: BooleanConstructor;
17
+ };
18
+ prevent: {
19
+ type: BooleanConstructor;
20
+ };
21
+ rowspace: {
22
+ default: number;
23
+ };
24
+ labelWidth: {
25
+ default: number;
26
+ };
27
+ type: {
28
+ default: string;
29
+ };
30
+ size: {
31
+ default: string;
32
+ };
33
+ text: {
34
+ default: string;
35
+ };
36
+ icon: any;
37
+ long: {
38
+ type: BooleanConstructor;
39
+ };
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ };
43
+ shape: {
44
+ default: string;
45
+ };
46
+ customIcon: any;
47
+ ghost: {
48
+ type: BooleanConstructor;
49
+ };
50
+ loading: {
51
+ type: BooleanConstructor;
52
+ };
53
+ }, {
54
+ __sfc: boolean;
55
+ props: {
56
+ entity?: string;
57
+ id?: string;
58
+ span: string;
59
+ gutter?: string;
60
+ labelPosition?: string;
61
+ labelColon?: boolean;
62
+ showMessage?: boolean;
63
+ hideRequiredMark?: boolean;
64
+ prevent?: boolean;
65
+ rowspace: number;
66
+ labelWidth: number;
67
+ type: string;
68
+ size: string;
69
+ text: string;
70
+ icon?: string;
71
+ long?: boolean;
72
+ disabled?: boolean;
73
+ shape: string;
74
+ customIcon?: string;
75
+ ghost?: boolean;
76
+ loading?: boolean;
77
+ };
78
+ entityCode: import("vue").Ref<string>;
79
+ appId: any;
80
+ payload: any;
81
+ fullEntity: import("vue").Ref<any>;
82
+ fieldRelationMap: any[];
83
+ emit: (event: "click" | "save", ...args: any[]) => void;
84
+ generate: () => any;
85
+ open: ($event: any) => Promise<boolean>;
86
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "save")[], string, Readonly<import("vue").ExtractPropTypes<{
87
+ entity: any;
88
+ id: any;
89
+ span: {
90
+ default: string;
91
+ };
92
+ gutter: any;
93
+ labelPosition: any;
94
+ labelColon: {
95
+ type: BooleanConstructor;
96
+ };
97
+ showMessage: {
98
+ type: BooleanConstructor;
99
+ };
100
+ hideRequiredMark: {
101
+ type: BooleanConstructor;
102
+ };
103
+ prevent: {
104
+ type: BooleanConstructor;
105
+ };
106
+ rowspace: {
107
+ default: number;
108
+ };
109
+ labelWidth: {
110
+ default: number;
111
+ };
112
+ type: {
113
+ default: string;
114
+ };
115
+ size: {
116
+ default: string;
117
+ };
118
+ text: {
119
+ default: string;
120
+ };
121
+ icon: any;
122
+ long: {
123
+ type: BooleanConstructor;
124
+ };
125
+ disabled: {
126
+ type: BooleanConstructor;
127
+ };
128
+ shape: {
129
+ default: string;
130
+ };
131
+ customIcon: any;
132
+ ghost: {
133
+ type: BooleanConstructor;
134
+ };
135
+ loading: {
136
+ type: BooleanConstructor;
137
+ };
138
+ }>>, {
139
+ id: any;
140
+ span: string;
141
+ icon: any;
142
+ text: string;
143
+ disabled: boolean;
144
+ type: string;
145
+ gutter: any;
146
+ prevent: boolean;
147
+ size: string;
148
+ entity: any;
149
+ loading: boolean;
150
+ labelPosition: any;
151
+ labelColon: boolean;
152
+ showMessage: boolean;
153
+ hideRequiredMark: boolean;
154
+ rowspace: number;
155
+ labelWidth: number;
156
+ long: boolean;
157
+ shape: string;
158
+ customIcon: any;
159
+ ghost: boolean;
160
+ }>;
161
+ export default _default;
@@ -0,0 +1,50 @@
1
+ import { IEntity, IRelation } from '@fly-vue/lcdp-api';
2
+ import { JsonNode } from '@fly-vue/lcdp-designer';
3
+ import { IExtendedField } from './ts/export';
4
+ export interface IGetComponentParams {
5
+ readonly?: boolean;
6
+ }
7
+ interface exIRelation extends IRelation {
8
+ joinFieldsTarget?: string;
9
+ joinFieldsLocal?: string;
10
+ targetEntity?: string;
11
+ fullEntity?: {
12
+ tableName: string;
13
+ };
14
+ }
15
+ export declare function getComponent(field: IExtendedField, modelName: string, params?: IGetComponentParams, fieldRelationMap?: exIRelation[]): any;
16
+ export declare function addFieldFormItem(n: JsonNode, fullEntity: IEntity, modelName: string, field: string): void;
17
+ export declare function getInputComponent(field: IExtendedField, modelName: string, params?: IGetComponentParams): any;
18
+ export declare function getBooleanComponent(field: IExtendedField, modelName: string, params?: IGetComponentParams): {
19
+ type: string;
20
+ props: {
21
+ size: string;
22
+ value: string;
23
+ disabled: boolean;
24
+ trueValue: string;
25
+ falseValue: string;
26
+ };
27
+ };
28
+ export declare function getSwitchComponent(field: IExtendedField, modelName: string, params?: IGetComponentParams): {
29
+ type: string;
30
+ props: {
31
+ size: string;
32
+ value: string;
33
+ disabled: boolean;
34
+ trueValue: string;
35
+ falseValue: string;
36
+ };
37
+ };
38
+ export declare function getNumberComponent(field: IExtendedField, modelName: string, params?: IGetComponentParams): {
39
+ type: string;
40
+ props: {
41
+ value: string;
42
+ size: string;
43
+ disabled: boolean;
44
+ readonly: boolean;
45
+ step: number;
46
+ editable: boolean;
47
+ };
48
+ style: string;
49
+ };
50
+ export {};
@@ -0,0 +1,81 @@
1
+ import { IEntity, IField, PageType, IRelation } from '@fly-vue/lcdp-api';
2
+ import { JsonNode } from '@fly-vue/lcdp-designer';
3
+ import { IExtendedField } from './ts/export';
4
+ interface IParams {
5
+ entityCode: string;
6
+ formType: PageType;
7
+ fields: IField[];
8
+ fullEntity: IEntity;
9
+ isAddSaveBtn: boolean;
10
+ isAddPageVar: boolean;
11
+ editDsName?: string;
12
+ pageVarName?: string;
13
+ formItemPropPrefix?: string;
14
+ span?: string;
15
+ gutter?: string;
16
+ labelPosition?: string;
17
+ labelColon?: boolean;
18
+ showMessage?: boolean;
19
+ hideRequiredMark?: boolean;
20
+ prevent?: boolean;
21
+ rowspace?: number;
22
+ labelWidth?: number;
23
+ node: JsonNode;
24
+ paramsIdKey?: string;
25
+ readonly?: boolean;
26
+ fieldRelationMap: exIRelation[];
27
+ }
28
+ export declare function generateEntityForm(params: IParams): any;
29
+ export declare function generateCreateEntityForm(params: IParams): {
30
+ type: string;
31
+ id: string;
32
+ props: {
33
+ entity: string;
34
+ model: string;
35
+ span: string;
36
+ gutter: string;
37
+ labelPosition: string;
38
+ labelColon: boolean;
39
+ showMessage: boolean;
40
+ hideRequiredMark: boolean;
41
+ prevent: boolean;
42
+ rowspace: string | number;
43
+ labelWidth: string | number;
44
+ };
45
+ children: any[];
46
+ };
47
+ export declare function generateEditEntityForm(params: IParams): any;
48
+ export interface IGenerateEntityFormItemParams {
49
+ span: string;
50
+ skipRequired?: boolean;
51
+ formItemPropPrefix?: string;
52
+ readonly?: boolean;
53
+ }
54
+ interface exIRelation extends IRelation {
55
+ joinFieldsTarget?: string;
56
+ joinFieldsLocal?: string;
57
+ targetEntity?: string;
58
+ fullEntity?: {
59
+ tableName: string;
60
+ };
61
+ }
62
+ export declare function generateEntityFormItem(modelName: string, metaField: IExtendedField, params: IGenerateEntityFormItemParams, fieldRelationMap?: exIRelation[]): any;
63
+ export declare function createEntityForm(params: IParams): {
64
+ type: string;
65
+ id: string;
66
+ props: {
67
+ entity: string;
68
+ model: string;
69
+ span: string;
70
+ gutter: string;
71
+ labelPosition: string;
72
+ labelColon: boolean;
73
+ showMessage: boolean;
74
+ hideRequiredMark: boolean;
75
+ prevent: boolean;
76
+ rowspace: string | number;
77
+ labelWidth: string | number;
78
+ };
79
+ children: any[];
80
+ };
81
+ export {};
@@ -0,0 +1,31 @@
1
+ export declare function email(): {
2
+ type: string;
3
+ value: string;
4
+ label: string;
5
+ trigger: string;
6
+ pattern: string;
7
+ message: string;
8
+ };
9
+ export declare function required(): {
10
+ label: string;
11
+ type: string;
12
+ value: string;
13
+ message: string;
14
+ required: boolean;
15
+ };
16
+ export declare function phone(): {
17
+ type: string;
18
+ value: string;
19
+ label: string;
20
+ trigger: string;
21
+ pattern: string;
22
+ message: string;
23
+ };
24
+ export declare function url(): {
25
+ type: string;
26
+ value: string;
27
+ label: string;
28
+ trigger: string;
29
+ pattern: string;
30
+ message: string;
31
+ };