@dhccmobile/vue3-lo-form 2.0.0 → 2.0.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.
- package/README.md +70 -70
- package/dist/vue3-lo-form.common.js +1189 -1069
- package/dist/vue3-lo-form.common.js.map +1 -1
- package/dist/vue3-lo-form.umd.js +1189 -1069
- package/dist/vue3-lo-form.umd.js.map +1 -1
- package/dist/vue3-lo-form.umd.min.js +1 -1
- package/dist/vue3-lo-form.umd.min.js.map +1 -1
- package/package.json +73 -65
- package/src/App.vue +741 -741
- package/src/components/form/DvForm.vue +642 -642
- package/src/components/form/DvFormLayout.vue +1569 -1569
- package/src/components/form/StretchText.vue +90 -90
- package/src/components/index.ts +3 -3
- package/src/constants/config/form-template.config.ts +32 -32
- package/src/constants/config/form.config.ts +4 -4
- package/src/constants/config/storage.config.ts +4 -4
- package/src/constants/encode-assets/svg.ts +11 -11
- package/src/constants/enum/builtIn-label.enum.ts +5 -5
- package/src/constants/enum/cache-type.enum.ts +7 -7
- package/src/constants/enum/control-format-type.enum.ts +9 -9
- package/src/constants/enum/dynamic-option-type.enum.ts +6 -6
- package/src/constants/enum/form-bus-attr.enum.ts +8 -8
- package/src/constants/enum/form-field-class.enum.ts +7 -7
- package/src/constants/enum/form-field-type.enum.ts +25 -25
- package/src/constants/enum/form-type.enum.ts +5 -5
- package/src/constants/enum/index.ts +19 -19
- package/src/constants/enum/lateral-arrangement.enum.ts +9 -9
- package/src/constants/enum/money-unit.enum.ts +6 -6
- package/src/constants/enum/option-type.enum.ts +5 -5
- package/src/constants/enum/submitted-type.enum.ts +32 -32
- package/src/constants/enum/support-upload-type.enum.ts +5 -5
- package/src/constants/enum/switch.enum.ts +5 -5
- package/src/constants/enum/upload-type.enum.ts +17 -17
- package/src/constants/enum/validate-rules.enum.ts +25 -25
- package/src/constants/enum/validate-status.enum.ts +8 -8
- package/src/constants/enum/vertical-arrangement.enum.ts +7 -7
- package/src/constants/enum/zoom-type.ts +6 -6
- package/src/constants/index.ts +3 -3
- package/src/core/FormApi.ts +1238 -1238
- package/src/core/index.ts +1 -1
- package/src/domain/AbstractControl.ts +6 -6
- package/src/domain/Control.ts +14 -14
- package/src/domain/CustomFormat.ts +6 -6
- package/src/domain/DesForm.ts +48 -48
- package/src/domain/DesFormControl.ts +241 -241
- package/src/domain/DesFormLayout.ts +51 -51
- package/src/domain/FieldChangeHistory.ts +9 -9
- package/src/domain/FormConfig.ts +16 -15
- package/src/domain/FormControl.ts +125 -125
- package/src/domain/FormEnum.ts +9 -9
- package/src/domain/FormGroup.ts +42 -42
- package/src/domain/FormRestfulResponse.ts +6 -6
- package/src/domain/ProvideInjectData.ts +10 -10
- package/src/domain/SysDictDetail.ts +38 -38
- package/src/domain/SysDictInfo.ts +40 -40
- package/src/domain/SysDictTreeDetail.ts +52 -52
- package/src/domain/index.ts +12 -12
- package/src/filtres/amount-capitalization.filter.ts +154 -154
- package/src/filtres/extract-options.filter.ts +53 -53
- package/src/filtres/generate-grid-column-end.filter.ts +22 -22
- package/src/filtres/generate-grid-template-columns.filter.ts +24 -24
- package/src/filtres/switch-enum-convert.filter.ts +18 -18
- package/src/filtres/zoom-multiple.filter.ts +32 -32
- package/src/index.ts +74 -73
- package/src/main.ts +17 -17
- package/src/services/api.service.ts +73 -73
- package/src/services/clean-local-forage.service.ts +58 -58
- package/src/services/date-format.service.ts +74 -74
- package/src/services/dict-local-forage.service.ts +58 -58
- package/src/services/form-bean-utils.service.ts +41 -41
- package/src/services/form-local-forage.service.ts +59 -59
- package/src/services/form-tools.service.ts +739 -739
- package/src/services/form-tree-node-convert.service.ts +240 -240
- package/src/services/form-validate.service.ts +103 -103
- package/src/services/index.ts +9 -9
- package/src/services/router.service.ts +96 -96
- package/src/services/validate-generator.service.ts +710 -710
- package/src/shims-vue.d.ts +6 -6
- package/src/store/dict.store.ts +63 -63
- package/src/store/form.store.ts +32 -32
- package/src/store/index.ts +2 -2
- package/src/styles/datePicker.scss +125 -125
- package/src/styles/index.scss +195 -195
- package/src/styles/theme1.scss +277 -277
- package/src/styles/theme2.scss +376 -376
- package/src/styles/themes.scss +9 -9
- package/src/types/vfForm.ts +11 -11
- package/types/components/index.d.ts +3 -3
- package/types/constants/config/form-template.config.d.ts +30 -30
- package/types/constants/config/form.config.d.ts +4 -4
- package/types/constants/config/storage.config.d.ts +4 -4
- package/types/constants/encode-assets/svg.d.ts +5 -5
- package/types/constants/enum/builtIn-label.enum.d.ts +7 -7
- package/types/constants/enum/cache-type.enum.d.ts +15 -15
- package/types/constants/enum/control-format-type.enum.d.ts +23 -23
- package/types/constants/enum/dynamic-option-type.enum.d.ts +11 -11
- package/types/constants/enum/form-bus-attr.enum.d.ts +19 -19
- package/types/constants/enum/form-field-class.enum.d.ts +18 -18
- package/types/constants/enum/form-field-type.enum.d.ts +111 -111
- package/types/constants/enum/form-type.enum.d.ts +11 -11
- package/types/constants/enum/index.d.ts +19 -19
- package/types/constants/enum/lateral-arrangement.enum.d.ts +23 -23
- package/types/constants/enum/money-unit.enum.d.ts +15 -15
- package/types/constants/enum/option-type.enum.d.ts +11 -11
- package/types/constants/enum/submitted-type.enum.d.ts +115 -115
- package/types/constants/enum/support-upload-type.enum.d.ts +11 -11
- package/types/constants/enum/switch.enum.d.ts +11 -11
- package/types/constants/enum/upload-type.enum.d.ts +59 -59
- package/types/constants/enum/validate-rules.enum.d.ts +2 -2
- package/types/constants/enum/validate-status.enum.d.ts +2 -2
- package/types/constants/enum/vertical-arrangement.enum.d.ts +21 -21
- package/types/constants/enum/zoom-type.d.ts +15 -15
- package/types/constants/index.d.ts +3 -3
- package/types/core/FormApi.d.ts +376 -376
- package/types/core/index.d.ts +1 -1
- package/types/domain/AbstractControl.d.ts +5 -5
- package/types/domain/Control.d.ts +13 -13
- package/types/domain/CustomFormat.d.ts +5 -5
- package/types/domain/DesForm.d.ts +32 -32
- package/types/domain/DesFormControl.d.ts +160 -160
- package/types/domain/DesFormLayout.d.ts +33 -33
- package/types/domain/FieldChangeHistory.d.ts +9 -9
- package/types/domain/FormConfig.d.ts +16 -15
- package/types/domain/FormControl.d.ts +60 -60
- package/types/domain/FormEnum.d.ts +10 -10
- package/types/domain/FormGroup.d.ts +27 -27
- package/types/domain/FormRestfulResponse.d.ts +6 -6
- package/types/domain/ProvideInjectData.d.ts +10 -10
- package/types/domain/SysDictDetail.d.ts +24 -24
- package/types/domain/SysDictInfo.d.ts +26 -26
- package/types/domain/SysDictTreeDetail.d.ts +34 -34
- package/types/domain/index.d.ts +12 -12
- package/types/filtres/amount-capitalization.filter.d.ts +7 -7
- package/types/filtres/extract-options.filter.d.ts +13 -13
- package/types/filtres/generate-grid-column-end.filter.d.ts +11 -11
- package/types/filtres/generate-grid-template-columns.filter.d.ts +11 -11
- package/types/filtres/switch-enum-convert.filter.d.ts +2 -2
- package/types/filtres/zoom-multiple.filter.d.ts +3 -3
- package/types/index.d.ts +13 -13
- package/types/main.d.ts +2 -2
- package/types/services/api.service.d.ts +25 -25
- package/types/services/clean-local-forage.service.d.ts +28 -28
- package/types/services/date-format.service.d.ts +21 -21
- package/types/services/dict-local-forage.service.d.ts +28 -28
- package/types/services/form-bean-utils.service.d.ts +23 -23
- package/types/services/form-local-forage.service.d.ts +28 -28
- package/types/services/form-tools.service.d.ts +153 -153
- package/types/services/form-tree-node-convert.service.d.ts +104 -104
- package/types/services/form-validate.service.d.ts +32 -32
- package/types/services/index.d.ts +9 -9
- package/types/services/router.service.d.ts +40 -40
- package/types/services/validate-generator.service.d.ts +154 -154
- package/types/store/dict.store.d.ts +29 -29
- package/types/store/form.store.d.ts +17 -17
- package/types/store/index.d.ts +2 -2
- package/types/types/vfForm.d.ts +10 -10
- package/.env.local.bak +0 -6
- package/.eslintrc.js +0 -28
- package/babel.config.js +0 -3
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/public/js/pinyin.ts +0 -101
- package/tsconfig.json +0 -40
- package/vue.config.js +0 -38
package/src/core/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./FormApi";
|
|
1
|
+
export * from "./FormApi";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export abstract class AbstractControl {
|
|
2
|
-
value: any;
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
|
|
5
|
-
abstract get(path: Array<string | number> | string): AbstractControl | null;
|
|
6
|
-
}
|
|
1
|
+
export abstract class AbstractControl {
|
|
2
|
+
value: any;
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
|
|
5
|
+
abstract get(path: Array<string | number> | string): AbstractControl | null;
|
|
6
|
+
}
|
package/src/domain/Control.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { DesFormControl } from "./DesFormControl";
|
|
2
|
-
import { DesFormLayout } from "./DesFormLayout";
|
|
3
|
-
import { FormControl } from "./FormControl";
|
|
4
|
-
|
|
5
|
-
export interface Control {
|
|
6
|
-
code: string;
|
|
7
|
-
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
active: boolean;
|
|
10
|
-
order?: number;
|
|
11
|
-
subControls?: Control[];
|
|
12
|
-
formControl?: FormControl;
|
|
13
|
-
controlAttr: Partial<DesFormControl> | Partial<DesFormLayout>;
|
|
14
|
-
}
|
|
1
|
+
import { DesFormControl } from "./DesFormControl";
|
|
2
|
+
import { DesFormLayout } from "./DesFormLayout";
|
|
3
|
+
import { FormControl } from "./FormControl";
|
|
4
|
+
|
|
5
|
+
export interface Control {
|
|
6
|
+
code: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
active: boolean;
|
|
10
|
+
order?: number;
|
|
11
|
+
subControls?: Control[];
|
|
12
|
+
formControl?: FormControl;
|
|
13
|
+
controlAttr: Partial<DesFormControl> | Partial<DesFormLayout>;
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DesFormControl } from "./DesFormControl";
|
|
2
|
-
|
|
3
|
-
export interface CustomFormat {
|
|
4
|
-
display?: (val: any, desFormControl: DesFormControl) => any;
|
|
5
|
-
output?: (val: any, desFormControl: DesFormControl) => any;
|
|
6
|
-
}
|
|
1
|
+
import { DesFormControl } from "./DesFormControl";
|
|
2
|
+
|
|
3
|
+
export interface CustomFormat {
|
|
4
|
+
display?: (val: any, desFormControl: DesFormControl) => any;
|
|
5
|
+
output?: (val: any, desFormControl: DesFormControl) => any;
|
|
6
|
+
}
|
package/src/domain/DesForm.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { DesFormLayout } from "./DesFormLayout";
|
|
2
|
-
import { Control } from "./Control";
|
|
3
|
-
import { FormGroup } from "./FormGroup";
|
|
4
|
-
|
|
5
|
-
export class DesForm {
|
|
6
|
-
formId: string;
|
|
7
|
-
appId: string;
|
|
8
|
-
domainClassId: string;
|
|
9
|
-
objectId: string;
|
|
10
|
-
formType: string;
|
|
11
|
-
formName: string;
|
|
12
|
-
formAlias: string;
|
|
13
|
-
formDescribe: string;
|
|
14
|
-
useState: string;
|
|
15
|
-
desFormLayouts: DesFormLayout[];
|
|
16
|
-
controls: Control[];
|
|
17
|
-
formGroup: FormGroup | undefined;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
constructor(
|
|
20
|
-
options: {
|
|
21
|
-
formId?: string;
|
|
22
|
-
appId?: string;
|
|
23
|
-
domainClassId?: string;
|
|
24
|
-
objectId?: string;
|
|
25
|
-
formType?: string;
|
|
26
|
-
formName?: string;
|
|
27
|
-
formAlias?: string;
|
|
28
|
-
formDescribe?: string;
|
|
29
|
-
useState?: string;
|
|
30
|
-
controls?: Control[];
|
|
31
|
-
formGroup?: FormGroup;
|
|
32
|
-
desFormLayouts?: DesFormLayout[];
|
|
33
|
-
} = {}
|
|
34
|
-
) {
|
|
35
|
-
this.formId = options.formId || "";
|
|
36
|
-
this.appId = options.appId || "";
|
|
37
|
-
this.domainClassId = options.domainClassId || "";
|
|
38
|
-
this.objectId = options.objectId || "";
|
|
39
|
-
this.formType = options.formType || "";
|
|
40
|
-
this.formName = options.formName || "";
|
|
41
|
-
this.formAlias = options.formAlias || "";
|
|
42
|
-
this.formDescribe = options.formDescribe || "";
|
|
43
|
-
this.useState = options.useState || "";
|
|
44
|
-
this.controls = options.controls || [];
|
|
45
|
-
this.formGroup = options.formGroup;
|
|
46
|
-
this.desFormLayouts = options.desFormLayouts || [];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
import { DesFormLayout } from "./DesFormLayout";
|
|
2
|
+
import { Control } from "./Control";
|
|
3
|
+
import { FormGroup } from "./FormGroup";
|
|
4
|
+
|
|
5
|
+
export class DesForm {
|
|
6
|
+
formId: string;
|
|
7
|
+
appId: string;
|
|
8
|
+
domainClassId: string;
|
|
9
|
+
objectId: string;
|
|
10
|
+
formType: string;
|
|
11
|
+
formName: string;
|
|
12
|
+
formAlias: string;
|
|
13
|
+
formDescribe: string;
|
|
14
|
+
useState: string;
|
|
15
|
+
desFormLayouts: DesFormLayout[];
|
|
16
|
+
controls: Control[];
|
|
17
|
+
formGroup: FormGroup | undefined;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
constructor(
|
|
20
|
+
options: {
|
|
21
|
+
formId?: string;
|
|
22
|
+
appId?: string;
|
|
23
|
+
domainClassId?: string;
|
|
24
|
+
objectId?: string;
|
|
25
|
+
formType?: string;
|
|
26
|
+
formName?: string;
|
|
27
|
+
formAlias?: string;
|
|
28
|
+
formDescribe?: string;
|
|
29
|
+
useState?: string;
|
|
30
|
+
controls?: Control[];
|
|
31
|
+
formGroup?: FormGroup;
|
|
32
|
+
desFormLayouts?: DesFormLayout[];
|
|
33
|
+
} = {}
|
|
34
|
+
) {
|
|
35
|
+
this.formId = options.formId || "";
|
|
36
|
+
this.appId = options.appId || "";
|
|
37
|
+
this.domainClassId = options.domainClassId || "";
|
|
38
|
+
this.objectId = options.objectId || "";
|
|
39
|
+
this.formType = options.formType || "";
|
|
40
|
+
this.formName = options.formName || "";
|
|
41
|
+
this.formAlias = options.formAlias || "";
|
|
42
|
+
this.formDescribe = options.formDescribe || "";
|
|
43
|
+
this.useState = options.useState || "";
|
|
44
|
+
this.controls = options.controls || [];
|
|
45
|
+
this.formGroup = options.formGroup;
|
|
46
|
+
this.desFormLayouts = options.desFormLayouts || [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
export class DesFormControl {
|
|
2
|
-
formFieldId: string;
|
|
3
|
-
formId: string;
|
|
4
|
-
layoutId: string;
|
|
5
|
-
boundProperty: string;
|
|
6
|
-
extendBoundPropertyOne: string;
|
|
7
|
-
extendBoundPropertyTwo: string;
|
|
8
|
-
formFieldDescribe: string;
|
|
9
|
-
controlType: string;
|
|
10
|
-
tableFieldOrder: number | undefined;
|
|
11
|
-
fieldDefaultValue: any;
|
|
12
|
-
titleWidth: string;
|
|
13
|
-
isBoldTitle: string | boolean;
|
|
14
|
-
isHideTitle: string | boolean;
|
|
15
|
-
titleColor: string;
|
|
16
|
-
placeholder: string;
|
|
17
|
-
tips: string;
|
|
18
|
-
isNotEdit: string | boolean;
|
|
19
|
-
bindingPrefix: string;
|
|
20
|
-
bindingSuffix: string;
|
|
21
|
-
builtInFrontLabel: string;
|
|
22
|
-
builtInPostLabel: string;
|
|
23
|
-
isHideControl: string | boolean;
|
|
24
|
-
isShowHoliday: string | boolean;
|
|
25
|
-
controlWidth: string;
|
|
26
|
-
isPasswordBox: string | boolean;
|
|
27
|
-
initRowHeight: number | undefined;
|
|
28
|
-
isFixedRowHeight: string | boolean;
|
|
29
|
-
formatType: string;
|
|
30
|
-
minValue: number | undefined;
|
|
31
|
-
maxValue: number | undefined;
|
|
32
|
-
step: number | undefined;
|
|
33
|
-
decimalPlaces: number | undefined;
|
|
34
|
-
thousandthPercentileFormat: string | boolean;
|
|
35
|
-
unit: string;
|
|
36
|
-
moneyUnit: string;
|
|
37
|
-
defineOptionalUnits: string;
|
|
38
|
-
defineOptionalUnitsDefault: string;
|
|
39
|
-
zoomType: string;
|
|
40
|
-
zoomMultiple: number | undefined;
|
|
41
|
-
isShowCapitalization: string | boolean;
|
|
42
|
-
isLineFeedDisplay: string | boolean;
|
|
43
|
-
isOptionType: string | boolean;
|
|
44
|
-
optionConfig: any;
|
|
45
|
-
dynamicOptionType: string;
|
|
46
|
-
generalDictionary: string;
|
|
47
|
-
generalDictionaryOptions: any;
|
|
48
|
-
treeShape: string;
|
|
49
|
-
treeShapeOptions: any;
|
|
50
|
-
disableNonLeafNodes: string | boolean;
|
|
51
|
-
dateFormat: string;
|
|
52
|
-
timeFormat: string;
|
|
53
|
-
isSupportMultiple: string | boolean;
|
|
54
|
-
maxUploadNumber: number | undefined;
|
|
55
|
-
limitSize: number | undefined;
|
|
56
|
-
supportUploadType: string;
|
|
57
|
-
customUploadType: any;
|
|
58
|
-
extendUploadType: string;
|
|
59
|
-
attachmentExtendProperties: string;
|
|
60
|
-
isMultipleChoice: string | boolean;
|
|
61
|
-
isSearchable: string | boolean;
|
|
62
|
-
canAddEntry: string | boolean;
|
|
63
|
-
isClearButton: string | boolean;
|
|
64
|
-
hiddenDropdown: string | boolean; // new by 2021-11-9
|
|
65
|
-
onOpeningValue: string;
|
|
66
|
-
whenClosedValue: string;
|
|
67
|
-
onOpeningText: string;
|
|
68
|
-
whenClosedText: string;
|
|
69
|
-
customFieldName: string; // new by 2021-11-9
|
|
70
|
-
textFold: string | boolean;
|
|
71
|
-
enableAutoComplete: string | boolean; // new by 2022-05-07
|
|
72
|
-
autoCompleteOptions: any[]; // new by 2022-05-07
|
|
73
|
-
verificationRules: any;
|
|
74
|
-
busAttr: any;
|
|
75
|
-
checkboxStyle: string | boolean; // 多选框选项标签样式
|
|
76
|
-
itemWidth: string | boolean; // 多选框选项标签样式
|
|
77
|
-
isTreeOpen: string | boolean; // 树形选择框是否展开
|
|
78
|
-
changeOnSelect: string | boolean; // 是否允许级联选择框只选中父级选项
|
|
79
|
-
textareaRows: number | undefined; // 设置textarea组件默认展示行数
|
|
80
|
-
constructor(
|
|
81
|
-
options: {
|
|
82
|
-
formFieldId?: string;
|
|
83
|
-
formId?: string;
|
|
84
|
-
layoutId?: string;
|
|
85
|
-
boundProperty?: string;
|
|
86
|
-
extendBoundPropertyOne?: string;
|
|
87
|
-
extendBoundPropertyTwo?: string;
|
|
88
|
-
formFieldDescribe?: string;
|
|
89
|
-
controlType?: string;
|
|
90
|
-
tableFieldOrder?: number;
|
|
91
|
-
fieldDefaultValue?: any;
|
|
92
|
-
titleWidth?: string;
|
|
93
|
-
isBoldTitle?: string;
|
|
94
|
-
isHideTitle?: string;
|
|
95
|
-
titleColor?: string;
|
|
96
|
-
placeholder?: string;
|
|
97
|
-
tips?: string;
|
|
98
|
-
isNotEdit?: string;
|
|
99
|
-
bindingPrefix?: string;
|
|
100
|
-
bindingSuffix?: string;
|
|
101
|
-
builtInFrontLabel?: string;
|
|
102
|
-
builtInPostLabel?: string;
|
|
103
|
-
isHideControl?: string;
|
|
104
|
-
isShowHoliday?: string;
|
|
105
|
-
controlWidth?: string;
|
|
106
|
-
isPasswordBox?: string;
|
|
107
|
-
initRowHeight?: number;
|
|
108
|
-
isFixedRowHeight?: string;
|
|
109
|
-
formatType?: string;
|
|
110
|
-
minValue?: number;
|
|
111
|
-
maxValue?: number;
|
|
112
|
-
step?: number;
|
|
113
|
-
decimalPlaces?: number;
|
|
114
|
-
thousandthPercentileFormat?: string;
|
|
115
|
-
unit?: string;
|
|
116
|
-
moneyUnit?: string;
|
|
117
|
-
defineOptionalUnits?: string;
|
|
118
|
-
defineOptionalUnitsDefault?: string;
|
|
119
|
-
zoomType?: string;
|
|
120
|
-
zoomMultiple?: number;
|
|
121
|
-
isShowCapitalization?: string;
|
|
122
|
-
isLineFeedDisplay?: string;
|
|
123
|
-
isOptionType?: string;
|
|
124
|
-
optionConfig?: any;
|
|
125
|
-
dynamicOptionType?: string;
|
|
126
|
-
generalDictionary?: string;
|
|
127
|
-
generalDictionaryOptions?: any;
|
|
128
|
-
treeShape?: string;
|
|
129
|
-
treeShapeOptions?: any;
|
|
130
|
-
disableNonLeafNodes?: string | boolean;
|
|
131
|
-
dateFormat?: string;
|
|
132
|
-
timeFormat?: string;
|
|
133
|
-
isSupportMultiple?: string;
|
|
134
|
-
maxUploadNumber?: number;
|
|
135
|
-
limitSize?: number;
|
|
136
|
-
supportUploadType?: string;
|
|
137
|
-
customUploadType?: any;
|
|
138
|
-
extendUploadType?: string;
|
|
139
|
-
attachmentExtendProperties?: string;
|
|
140
|
-
isMultipleChoice?: string;
|
|
141
|
-
isSearchable?: string;
|
|
142
|
-
canAddEntry?: string;
|
|
143
|
-
isClearButton?: string;
|
|
144
|
-
hiddenDropdown?: string;
|
|
145
|
-
onOpeningValue?: string;
|
|
146
|
-
whenClosedValue?: string;
|
|
147
|
-
onOpeningText?: string;
|
|
148
|
-
whenClosedText?: string;
|
|
149
|
-
customFieldName?: string;
|
|
150
|
-
textFold?: string;
|
|
151
|
-
enableAutoComplete?: string;
|
|
152
|
-
autoCompleteOptions?: any[];
|
|
153
|
-
verificationRules?: any;
|
|
154
|
-
busAttr?: any;
|
|
155
|
-
checkboxStyle?: string | boolean;
|
|
156
|
-
isTreeOpen?: string | boolean;
|
|
157
|
-
itemWidth?: string | boolean;
|
|
158
|
-
changeOnSelect?: string | boolean;
|
|
159
|
-
textareaRows?: number | undefined;
|
|
160
|
-
} = {}
|
|
161
|
-
) {
|
|
162
|
-
this.formFieldId = options.formFieldId || "";
|
|
163
|
-
this.formId = options.formId || "";
|
|
164
|
-
this.layoutId = options.layoutId || "";
|
|
165
|
-
this.boundProperty = options.boundProperty || "";
|
|
166
|
-
this.extendBoundPropertyOne = options.extendBoundPropertyOne || "";
|
|
167
|
-
this.extendBoundPropertyTwo = options.extendBoundPropertyTwo || "";
|
|
168
|
-
this.formFieldDescribe = options.formFieldDescribe || "";
|
|
169
|
-
this.controlType = options.controlType || "";
|
|
170
|
-
this.tableFieldOrder = options.tableFieldOrder || undefined;
|
|
171
|
-
this.fieldDefaultValue = options.fieldDefaultValue || "";
|
|
172
|
-
this.titleWidth = options.titleWidth || "";
|
|
173
|
-
this.isBoldTitle = options.isBoldTitle || "";
|
|
174
|
-
this.isHideTitle = options.isHideTitle || "";
|
|
175
|
-
this.titleColor = options.titleColor || "";
|
|
176
|
-
this.placeholder = options.placeholder || "";
|
|
177
|
-
this.tips = options.tips || "";
|
|
178
|
-
this.isNotEdit = options.isNotEdit || "";
|
|
179
|
-
this.bindingPrefix = options.bindingPrefix || "";
|
|
180
|
-
this.bindingSuffix = options.bindingSuffix || "";
|
|
181
|
-
this.builtInFrontLabel = options.builtInFrontLabel || "";
|
|
182
|
-
this.builtInPostLabel = options.builtInPostLabel || "";
|
|
183
|
-
this.isHideControl = options.isHideControl || "";
|
|
184
|
-
this.isShowHoliday = options.isShowHoliday || "";
|
|
185
|
-
this.controlWidth = options.controlWidth || "";
|
|
186
|
-
this.isPasswordBox = options.isPasswordBox || "";
|
|
187
|
-
this.initRowHeight = options.initRowHeight || undefined;
|
|
188
|
-
this.isFixedRowHeight = options.isFixedRowHeight || "";
|
|
189
|
-
this.formatType = options.formatType || "";
|
|
190
|
-
this.minValue = options.minValue || undefined;
|
|
191
|
-
this.maxValue = options.maxValue || undefined;
|
|
192
|
-
this.step = options.step || undefined;
|
|
193
|
-
this.decimalPlaces = options.decimalPlaces || undefined;
|
|
194
|
-
this.thousandthPercentileFormat = options.thousandthPercentileFormat || "";
|
|
195
|
-
this.unit = options.unit || "";
|
|
196
|
-
this.moneyUnit = options.moneyUnit || "";
|
|
197
|
-
this.defineOptionalUnits = options.defineOptionalUnits || "";
|
|
198
|
-
this.defineOptionalUnitsDefault = options.defineOptionalUnitsDefault || "";
|
|
199
|
-
this.zoomType = options.zoomType || "";
|
|
200
|
-
this.zoomMultiple = options.zoomMultiple || undefined;
|
|
201
|
-
this.isShowCapitalization = options.isShowCapitalization || "";
|
|
202
|
-
this.isLineFeedDisplay = options.isLineFeedDisplay || "";
|
|
203
|
-
this.isOptionType = options.isOptionType || "";
|
|
204
|
-
this.optionConfig = options.optionConfig || "";
|
|
205
|
-
this.dynamicOptionType = options.dynamicOptionType || "";
|
|
206
|
-
this.generalDictionary = options.generalDictionary || "";
|
|
207
|
-
this.generalDictionaryOptions = options.generalDictionaryOptions || "";
|
|
208
|
-
this.treeShape = options.treeShape || "";
|
|
209
|
-
this.treeShapeOptions = options.treeShapeOptions || "";
|
|
210
|
-
this.disableNonLeafNodes = options.disableNonLeafNodes || "";
|
|
211
|
-
this.dateFormat = options.dateFormat || "";
|
|
212
|
-
this.timeFormat = options.timeFormat || "";
|
|
213
|
-
this.isSupportMultiple = options.isSupportMultiple || "";
|
|
214
|
-
this.maxUploadNumber = options.maxUploadNumber || undefined;
|
|
215
|
-
this.limitSize = options.limitSize || undefined;
|
|
216
|
-
this.supportUploadType = options.supportUploadType || "";
|
|
217
|
-
this.customUploadType = options.customUploadType;
|
|
218
|
-
this.extendUploadType = options.extendUploadType || "";
|
|
219
|
-
this.attachmentExtendProperties = options.attachmentExtendProperties || "";
|
|
220
|
-
this.isMultipleChoice = options.isMultipleChoice || "";
|
|
221
|
-
this.isSearchable = options.isSearchable || "";
|
|
222
|
-
this.canAddEntry = options.canAddEntry || "";
|
|
223
|
-
this.isClearButton = options.isClearButton || "";
|
|
224
|
-
this.hiddenDropdown = options.hiddenDropdown || "";
|
|
225
|
-
this.onOpeningValue = options.onOpeningValue || "";
|
|
226
|
-
this.whenClosedValue = options.whenClosedValue || "";
|
|
227
|
-
this.onOpeningText = options.onOpeningText || "";
|
|
228
|
-
this.whenClosedText = options.whenClosedText || "";
|
|
229
|
-
this.customFieldName = options.customFieldName || "";
|
|
230
|
-
this.textFold = options.textFold || "";
|
|
231
|
-
this.enableAutoComplete = options.enableAutoComplete || "";
|
|
232
|
-
this.autoCompleteOptions = options.autoCompleteOptions || [];
|
|
233
|
-
this.verificationRules = options.verificationRules;
|
|
234
|
-
this.busAttr = options.busAttr;
|
|
235
|
-
this.checkboxStyle = options.checkboxStyle || "";
|
|
236
|
-
this.isTreeOpen = options.isTreeOpen || "";
|
|
237
|
-
this.itemWidth = options.itemWidth || "";
|
|
238
|
-
this.changeOnSelect = options.changeOnSelect || "";
|
|
239
|
-
this.textareaRows = options.textareaRows || 3;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
1
|
+
export class DesFormControl {
|
|
2
|
+
formFieldId: string;
|
|
3
|
+
formId: string;
|
|
4
|
+
layoutId: string;
|
|
5
|
+
boundProperty: string;
|
|
6
|
+
extendBoundPropertyOne: string;
|
|
7
|
+
extendBoundPropertyTwo: string;
|
|
8
|
+
formFieldDescribe: string;
|
|
9
|
+
controlType: string;
|
|
10
|
+
tableFieldOrder: number | undefined;
|
|
11
|
+
fieldDefaultValue: any;
|
|
12
|
+
titleWidth: string;
|
|
13
|
+
isBoldTitle: string | boolean;
|
|
14
|
+
isHideTitle: string | boolean;
|
|
15
|
+
titleColor: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
tips: string;
|
|
18
|
+
isNotEdit: string | boolean;
|
|
19
|
+
bindingPrefix: string;
|
|
20
|
+
bindingSuffix: string;
|
|
21
|
+
builtInFrontLabel: string;
|
|
22
|
+
builtInPostLabel: string;
|
|
23
|
+
isHideControl: string | boolean;
|
|
24
|
+
isShowHoliday: string | boolean;
|
|
25
|
+
controlWidth: string;
|
|
26
|
+
isPasswordBox: string | boolean;
|
|
27
|
+
initRowHeight: number | undefined;
|
|
28
|
+
isFixedRowHeight: string | boolean;
|
|
29
|
+
formatType: string;
|
|
30
|
+
minValue: number | undefined;
|
|
31
|
+
maxValue: number | undefined;
|
|
32
|
+
step: number | undefined;
|
|
33
|
+
decimalPlaces: number | undefined;
|
|
34
|
+
thousandthPercentileFormat: string | boolean;
|
|
35
|
+
unit: string;
|
|
36
|
+
moneyUnit: string;
|
|
37
|
+
defineOptionalUnits: string;
|
|
38
|
+
defineOptionalUnitsDefault: string;
|
|
39
|
+
zoomType: string;
|
|
40
|
+
zoomMultiple: number | undefined;
|
|
41
|
+
isShowCapitalization: string | boolean;
|
|
42
|
+
isLineFeedDisplay: string | boolean;
|
|
43
|
+
isOptionType: string | boolean;
|
|
44
|
+
optionConfig: any;
|
|
45
|
+
dynamicOptionType: string;
|
|
46
|
+
generalDictionary: string;
|
|
47
|
+
generalDictionaryOptions: any;
|
|
48
|
+
treeShape: string;
|
|
49
|
+
treeShapeOptions: any;
|
|
50
|
+
disableNonLeafNodes: string | boolean;
|
|
51
|
+
dateFormat: string;
|
|
52
|
+
timeFormat: string;
|
|
53
|
+
isSupportMultiple: string | boolean;
|
|
54
|
+
maxUploadNumber: number | undefined;
|
|
55
|
+
limitSize: number | undefined;
|
|
56
|
+
supportUploadType: string;
|
|
57
|
+
customUploadType: any;
|
|
58
|
+
extendUploadType: string;
|
|
59
|
+
attachmentExtendProperties: string;
|
|
60
|
+
isMultipleChoice: string | boolean;
|
|
61
|
+
isSearchable: string | boolean;
|
|
62
|
+
canAddEntry: string | boolean;
|
|
63
|
+
isClearButton: string | boolean;
|
|
64
|
+
hiddenDropdown: string | boolean; // new by 2021-11-9
|
|
65
|
+
onOpeningValue: string;
|
|
66
|
+
whenClosedValue: string;
|
|
67
|
+
onOpeningText: string;
|
|
68
|
+
whenClosedText: string;
|
|
69
|
+
customFieldName: string; // new by 2021-11-9
|
|
70
|
+
textFold: string | boolean;
|
|
71
|
+
enableAutoComplete: string | boolean; // new by 2022-05-07
|
|
72
|
+
autoCompleteOptions: any[]; // new by 2022-05-07
|
|
73
|
+
verificationRules: any;
|
|
74
|
+
busAttr: any;
|
|
75
|
+
checkboxStyle: string | boolean; // 多选框选项标签样式
|
|
76
|
+
itemWidth: string | boolean; // 多选框选项标签样式
|
|
77
|
+
isTreeOpen: string | boolean; // 树形选择框是否展开
|
|
78
|
+
changeOnSelect: string | boolean; // 是否允许级联选择框只选中父级选项
|
|
79
|
+
textareaRows: number | undefined; // 设置textarea组件默认展示行数
|
|
80
|
+
constructor(
|
|
81
|
+
options: {
|
|
82
|
+
formFieldId?: string;
|
|
83
|
+
formId?: string;
|
|
84
|
+
layoutId?: string;
|
|
85
|
+
boundProperty?: string;
|
|
86
|
+
extendBoundPropertyOne?: string;
|
|
87
|
+
extendBoundPropertyTwo?: string;
|
|
88
|
+
formFieldDescribe?: string;
|
|
89
|
+
controlType?: string;
|
|
90
|
+
tableFieldOrder?: number;
|
|
91
|
+
fieldDefaultValue?: any;
|
|
92
|
+
titleWidth?: string;
|
|
93
|
+
isBoldTitle?: string;
|
|
94
|
+
isHideTitle?: string;
|
|
95
|
+
titleColor?: string;
|
|
96
|
+
placeholder?: string;
|
|
97
|
+
tips?: string;
|
|
98
|
+
isNotEdit?: string;
|
|
99
|
+
bindingPrefix?: string;
|
|
100
|
+
bindingSuffix?: string;
|
|
101
|
+
builtInFrontLabel?: string;
|
|
102
|
+
builtInPostLabel?: string;
|
|
103
|
+
isHideControl?: string;
|
|
104
|
+
isShowHoliday?: string;
|
|
105
|
+
controlWidth?: string;
|
|
106
|
+
isPasswordBox?: string;
|
|
107
|
+
initRowHeight?: number;
|
|
108
|
+
isFixedRowHeight?: string;
|
|
109
|
+
formatType?: string;
|
|
110
|
+
minValue?: number;
|
|
111
|
+
maxValue?: number;
|
|
112
|
+
step?: number;
|
|
113
|
+
decimalPlaces?: number;
|
|
114
|
+
thousandthPercentileFormat?: string;
|
|
115
|
+
unit?: string;
|
|
116
|
+
moneyUnit?: string;
|
|
117
|
+
defineOptionalUnits?: string;
|
|
118
|
+
defineOptionalUnitsDefault?: string;
|
|
119
|
+
zoomType?: string;
|
|
120
|
+
zoomMultiple?: number;
|
|
121
|
+
isShowCapitalization?: string;
|
|
122
|
+
isLineFeedDisplay?: string;
|
|
123
|
+
isOptionType?: string;
|
|
124
|
+
optionConfig?: any;
|
|
125
|
+
dynamicOptionType?: string;
|
|
126
|
+
generalDictionary?: string;
|
|
127
|
+
generalDictionaryOptions?: any;
|
|
128
|
+
treeShape?: string;
|
|
129
|
+
treeShapeOptions?: any;
|
|
130
|
+
disableNonLeafNodes?: string | boolean;
|
|
131
|
+
dateFormat?: string;
|
|
132
|
+
timeFormat?: string;
|
|
133
|
+
isSupportMultiple?: string;
|
|
134
|
+
maxUploadNumber?: number;
|
|
135
|
+
limitSize?: number;
|
|
136
|
+
supportUploadType?: string;
|
|
137
|
+
customUploadType?: any;
|
|
138
|
+
extendUploadType?: string;
|
|
139
|
+
attachmentExtendProperties?: string;
|
|
140
|
+
isMultipleChoice?: string;
|
|
141
|
+
isSearchable?: string;
|
|
142
|
+
canAddEntry?: string;
|
|
143
|
+
isClearButton?: string;
|
|
144
|
+
hiddenDropdown?: string;
|
|
145
|
+
onOpeningValue?: string;
|
|
146
|
+
whenClosedValue?: string;
|
|
147
|
+
onOpeningText?: string;
|
|
148
|
+
whenClosedText?: string;
|
|
149
|
+
customFieldName?: string;
|
|
150
|
+
textFold?: string;
|
|
151
|
+
enableAutoComplete?: string;
|
|
152
|
+
autoCompleteOptions?: any[];
|
|
153
|
+
verificationRules?: any;
|
|
154
|
+
busAttr?: any;
|
|
155
|
+
checkboxStyle?: string | boolean;
|
|
156
|
+
isTreeOpen?: string | boolean;
|
|
157
|
+
itemWidth?: string | boolean;
|
|
158
|
+
changeOnSelect?: string | boolean;
|
|
159
|
+
textareaRows?: number | undefined;
|
|
160
|
+
} = {}
|
|
161
|
+
) {
|
|
162
|
+
this.formFieldId = options.formFieldId || "";
|
|
163
|
+
this.formId = options.formId || "";
|
|
164
|
+
this.layoutId = options.layoutId || "";
|
|
165
|
+
this.boundProperty = options.boundProperty || "";
|
|
166
|
+
this.extendBoundPropertyOne = options.extendBoundPropertyOne || "";
|
|
167
|
+
this.extendBoundPropertyTwo = options.extendBoundPropertyTwo || "";
|
|
168
|
+
this.formFieldDescribe = options.formFieldDescribe || "";
|
|
169
|
+
this.controlType = options.controlType || "";
|
|
170
|
+
this.tableFieldOrder = options.tableFieldOrder || undefined;
|
|
171
|
+
this.fieldDefaultValue = options.fieldDefaultValue || "";
|
|
172
|
+
this.titleWidth = options.titleWidth || "";
|
|
173
|
+
this.isBoldTitle = options.isBoldTitle || "";
|
|
174
|
+
this.isHideTitle = options.isHideTitle || "";
|
|
175
|
+
this.titleColor = options.titleColor || "";
|
|
176
|
+
this.placeholder = options.placeholder || "";
|
|
177
|
+
this.tips = options.tips || "";
|
|
178
|
+
this.isNotEdit = options.isNotEdit || "";
|
|
179
|
+
this.bindingPrefix = options.bindingPrefix || "";
|
|
180
|
+
this.bindingSuffix = options.bindingSuffix || "";
|
|
181
|
+
this.builtInFrontLabel = options.builtInFrontLabel || "";
|
|
182
|
+
this.builtInPostLabel = options.builtInPostLabel || "";
|
|
183
|
+
this.isHideControl = options.isHideControl || "";
|
|
184
|
+
this.isShowHoliday = options.isShowHoliday || "";
|
|
185
|
+
this.controlWidth = options.controlWidth || "";
|
|
186
|
+
this.isPasswordBox = options.isPasswordBox || "";
|
|
187
|
+
this.initRowHeight = options.initRowHeight || undefined;
|
|
188
|
+
this.isFixedRowHeight = options.isFixedRowHeight || "";
|
|
189
|
+
this.formatType = options.formatType || "";
|
|
190
|
+
this.minValue = options.minValue || undefined;
|
|
191
|
+
this.maxValue = options.maxValue || undefined;
|
|
192
|
+
this.step = options.step || undefined;
|
|
193
|
+
this.decimalPlaces = options.decimalPlaces || undefined;
|
|
194
|
+
this.thousandthPercentileFormat = options.thousandthPercentileFormat || "";
|
|
195
|
+
this.unit = options.unit || "";
|
|
196
|
+
this.moneyUnit = options.moneyUnit || "";
|
|
197
|
+
this.defineOptionalUnits = options.defineOptionalUnits || "";
|
|
198
|
+
this.defineOptionalUnitsDefault = options.defineOptionalUnitsDefault || "";
|
|
199
|
+
this.zoomType = options.zoomType || "";
|
|
200
|
+
this.zoomMultiple = options.zoomMultiple || undefined;
|
|
201
|
+
this.isShowCapitalization = options.isShowCapitalization || "";
|
|
202
|
+
this.isLineFeedDisplay = options.isLineFeedDisplay || "";
|
|
203
|
+
this.isOptionType = options.isOptionType || "";
|
|
204
|
+
this.optionConfig = options.optionConfig || "";
|
|
205
|
+
this.dynamicOptionType = options.dynamicOptionType || "";
|
|
206
|
+
this.generalDictionary = options.generalDictionary || "";
|
|
207
|
+
this.generalDictionaryOptions = options.generalDictionaryOptions || "";
|
|
208
|
+
this.treeShape = options.treeShape || "";
|
|
209
|
+
this.treeShapeOptions = options.treeShapeOptions || "";
|
|
210
|
+
this.disableNonLeafNodes = options.disableNonLeafNodes || "";
|
|
211
|
+
this.dateFormat = options.dateFormat || "";
|
|
212
|
+
this.timeFormat = options.timeFormat || "";
|
|
213
|
+
this.isSupportMultiple = options.isSupportMultiple || "";
|
|
214
|
+
this.maxUploadNumber = options.maxUploadNumber || undefined;
|
|
215
|
+
this.limitSize = options.limitSize || undefined;
|
|
216
|
+
this.supportUploadType = options.supportUploadType || "";
|
|
217
|
+
this.customUploadType = options.customUploadType;
|
|
218
|
+
this.extendUploadType = options.extendUploadType || "";
|
|
219
|
+
this.attachmentExtendProperties = options.attachmentExtendProperties || "";
|
|
220
|
+
this.isMultipleChoice = options.isMultipleChoice || "";
|
|
221
|
+
this.isSearchable = options.isSearchable || "";
|
|
222
|
+
this.canAddEntry = options.canAddEntry || "";
|
|
223
|
+
this.isClearButton = options.isClearButton || "";
|
|
224
|
+
this.hiddenDropdown = options.hiddenDropdown || "";
|
|
225
|
+
this.onOpeningValue = options.onOpeningValue || "";
|
|
226
|
+
this.whenClosedValue = options.whenClosedValue || "";
|
|
227
|
+
this.onOpeningText = options.onOpeningText || "";
|
|
228
|
+
this.whenClosedText = options.whenClosedText || "";
|
|
229
|
+
this.customFieldName = options.customFieldName || "";
|
|
230
|
+
this.textFold = options.textFold || "";
|
|
231
|
+
this.enableAutoComplete = options.enableAutoComplete || "";
|
|
232
|
+
this.autoCompleteOptions = options.autoCompleteOptions || [];
|
|
233
|
+
this.verificationRules = options.verificationRules;
|
|
234
|
+
this.busAttr = options.busAttr;
|
|
235
|
+
this.checkboxStyle = options.checkboxStyle || "";
|
|
236
|
+
this.isTreeOpen = options.isTreeOpen || "";
|
|
237
|
+
this.itemWidth = options.itemWidth || "";
|
|
238
|
+
this.changeOnSelect = options.changeOnSelect || "";
|
|
239
|
+
this.textareaRows = options.textareaRows || 3;
|
|
240
|
+
}
|
|
241
|
+
}
|