@byteluck-fe/model-driven-core 7.0.0-1-beta9 → 7.0.0-beta.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.
@@ -11,20 +11,26 @@ declare class PropertyRuntimeRules extends Array<RuleItem> {
11
11
  constructor(props: Property);
12
12
  }
13
13
  /**
14
- * 全局属性
15
- * @public
14
+ * 属性定义
16
15
  */
17
- declare class Property {
18
- static mode: MODE;
19
- static readonly Rules: typeof PropertyRules;
20
- static readonly RuntimeRules: typeof PropertyRuntimeRules;
16
+ interface PropertyInterface {
21
17
  /**
22
18
  * 是否隐藏
23
19
  * @public
24
20
  * @defaultValue false
25
21
  */
26
22
  isHide: boolean;
23
+ /**
24
+ * 类名
25
+ * @public
26
+ * @noSchema
27
+ */
27
28
  className?: string[];
29
+ /**
30
+ * 样式
31
+ * @public
32
+ * @noSchema
33
+ */
28
34
  style: BaseStyle;
29
35
  /**
30
36
  * 标题
@@ -33,12 +39,25 @@ declare class Property {
33
39
  */
34
40
  caption: string;
35
41
  /**
36
- * 标题
42
+ * 默认状态
37
43
  * @public
38
- * @defaultValue ''
39
44
  */
40
45
  defaultState: 'readonly' | 'default';
46
+ }
47
+ /**
48
+ * 属性实现
49
+ * @public
50
+ */
51
+ declare class Property implements PropertyInterface {
52
+ static mode: MODE;
53
+ static readonly Rules: typeof PropertyRules;
54
+ static readonly RuntimeRules: typeof PropertyRuntimeRules;
55
+ isHide: boolean;
56
+ className?: string[];
57
+ style: BaseStyle;
58
+ caption: string;
59
+ defaultState: 'readonly' | 'default';
41
60
  constructor(props?: Partial<Property>, caption?: string);
42
61
  }
43
62
  export default Property;
44
- export { Property, PropertyRules, PropertyRuntimeRules };
63
+ export { Property, PropertyInterface, PropertyRules, PropertyRuntimeRules };
@@ -12,6 +12,10 @@ export declare interface SettingOption {
12
12
  label?: string;
13
13
  name?: string;
14
14
  tip?: string;
15
+ children?: SettingOption[];
16
+ layout?: 'horizontal' | 'vertical';
17
+ min?: number;
18
+ max?: number;
15
19
  }
16
20
  export declare interface HideOptions {
17
21
  key: string;
@@ -7,13 +7,13 @@ declare class ColumnControl extends DesignerControl {
7
7
  children: DesignerControl[];
8
8
  constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
9
9
  toSchema(): {
10
- children: import("../../type").BaseControlSchema<never, import("../BaseControl").Property>[];
10
+ children: import("../../type").BaseControlSchema<never, import("../BaseControl/property").default>[];
11
11
  id: string;
12
12
  type: never;
13
- props: import("../BaseControl").Property;
13
+ props: import("../BaseControl/property").default;
14
14
  controlType: import("../../type").BaseControlTypes;
15
- fieldType?: import("@byteluck-fe/model-driven-shared").FieldTypes;
16
- pageStatus?: import("../..").PAGE_STATUS;
15
+ fieldType?: import("@byteluck-fe/model-driven-shared/dist/types").FieldTypes | undefined;
16
+ pageStatus?: import("../..").PAGE_STATUS | undefined;
17
17
  };
18
18
  }
19
19
  export default ColumnControl;
@@ -1,4 +1,4 @@
1
- import { Property, PropertyRules, RuntimeControl } from '../BaseControl';
1
+ import { Property, PropertyInterface, PropertyRules, RuntimeControl } from '../BaseControl';
2
2
  import { RuleItem } from 'async-validator';
3
3
  import { DataBind, DataSourceBind, OptionSetting, AutoWidth } from '../../framework';
4
4
  declare class ColumnControlPropertyRules extends PropertyRules {
@@ -6,12 +6,7 @@ declare class ColumnControlPropertyRules extends PropertyRules {
6
6
  width: RuleItem;
7
7
  constructor(props: ColumnControlProperty);
8
8
  }
9
- /**
10
- * 列基本属性
11
- * @public
12
- */
13
- declare class ColumnControlProperty extends Property {
14
- static readonly Rules: typeof ColumnControlPropertyRules;
9
+ interface ColumnControlPropertyInterface extends PropertyInterface {
15
10
  /**
16
11
  * 宽度类型
17
12
  * @defaultValue 'auto'
@@ -57,6 +52,27 @@ declare class ColumnControlProperty extends Property {
57
52
  * @defaultValue false
58
53
  */
59
54
  autoHeight: boolean;
55
+ /**
56
+ * 子控件
57
+ */
58
+ children: RuntimeControl[];
59
+ }
60
+ /**
61
+ * 列基本属性
62
+ * @public
63
+ */
64
+ declare class ColumnControlProperty extends Property implements ColumnControlPropertyInterface {
65
+ static readonly Rules: typeof ColumnControlPropertyRules;
66
+ widthType: 'px' | 'auto' | 'percent';
67
+ width: number;
68
+ caption: string;
69
+ dataBind: DataBind;
70
+ autoWidth: AutoWidth;
71
+ fixed: 'left' | 'right' | 'none';
72
+ sort: boolean;
73
+ align?: 'left' | 'right' | 'center';
74
+ colSpan?: string;
75
+ autoHeight: boolean;
60
76
  children: RuntimeControl[];
61
77
  constructor(props?: Partial<ColumnControlProperty>);
62
78
  }
@@ -71,4 +87,4 @@ declare class ColumnOptionAndDataSourcePropertyRules extends ColumnControlProper
71
87
  });
72
88
  }
73
89
  export default ColumnControlProperty;
74
- export { ColumnControlProperty, ColumnControlPropertyRules, ColumnOptionAndDataSourcePropertyRules, };
90
+ export { ColumnControlProperty, ColumnControlPropertyInterface, ColumnControlPropertyRules, ColumnOptionAndDataSourcePropertyRules, };
@@ -1,4 +1,4 @@
1
- import { Property, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
1
+ import { Property, PropertyInterface, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
2
2
  import { RuleItem } from '../Validator';
3
3
  import { DataBind, DataSourceBind, ObjectDataBind, OptionSetting } from '../../framework';
4
4
  declare class BaseControlPropertyRules extends PropertyRules {
@@ -14,13 +14,7 @@ declare class BaseControlPropertyRules extends PropertyRules {
14
14
  declare class BaseControlPropertyRuntimeRules extends PropertyRuntimeRules {
15
15
  constructor(props: BaseControlProperty);
16
16
  }
17
- /**
18
- * 表单控件公共属性
19
- * @public
20
- */
21
- declare class BaseControlProperty extends Property {
22
- static readonly Rules: typeof BaseControlPropertyRules;
23
- static readonly RuntimeRules: typeof BaseControlPropertyRuntimeRules;
17
+ interface BaseControlPropertyInterface extends PropertyInterface {
24
18
  /**
25
19
  * 标题
26
20
  * @defaultValue ''
@@ -45,6 +39,18 @@ declare class BaseControlProperty extends Property {
45
39
  * @public
46
40
  */
47
41
  isCaptionItalic: boolean;
42
+ /**
43
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
44
+ * @defaultValue 'normal'
45
+ * @public
46
+ */
47
+ captionFontWeight: 'normal' | 'bold' | 'lighter';
48
+ /**
49
+ * 样式类
50
+ * @defaultValue []
51
+ * @public
52
+ */
53
+ className: string[];
48
54
  /**
49
55
  * 隐藏标题
50
56
  * @defaultValue false
@@ -102,6 +108,30 @@ declare class BaseControlProperty extends Property {
102
108
  * @defaultValue ''
103
109
  */
104
110
  requiredMessage: string;
111
+ }
112
+ /**
113
+ * 表单控件公共属性
114
+ * @public
115
+ */
116
+ declare class BaseControlProperty extends Property implements BaseControlPropertyInterface {
117
+ static readonly Rules: typeof BaseControlPropertyRules;
118
+ static readonly RuntimeRules: typeof BaseControlPropertyRuntimeRules;
119
+ caption: string;
120
+ captionSize: string;
121
+ captionColor: string;
122
+ isCaptionItalic: boolean;
123
+ captionFontWeight: 'normal' | 'bold' | 'lighter';
124
+ className: string[];
125
+ isHideCaption: boolean;
126
+ isShowCaptionTip: boolean;
127
+ captionTip: string;
128
+ labelPosition: 'top' | 'left';
129
+ dataBind: DataBind | ObjectDataBind;
130
+ defaultValue: string | number | string[] | number[] | unknown;
131
+ placeholder: string;
132
+ defaultState: 'default' | 'readonly';
133
+ required: boolean;
134
+ requiredMessage: string;
105
135
  constructor(props?: Partial<BaseControlProperty>);
106
136
  }
107
137
  declare class OptionAndDataSourcePropertyRules extends BaseControlPropertyRules {
@@ -115,4 +145,4 @@ declare class OptionAndDataSourcePropertyRules extends BaseControlPropertyRules
115
145
  });
116
146
  }
117
147
  export default BaseControlProperty;
118
- export { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, };
148
+ export { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, };
@@ -1,6 +1,8 @@
1
- import { Property } from '../BaseControl';
2
- declare class LayoutControlProperty extends Property {
1
+ import { Property, PropertyInterface } from '../BaseControl';
2
+ interface LayoutControlPropertyInterface extends PropertyInterface {
3
+ }
4
+ declare class LayoutControlProperty extends Property implements LayoutControlPropertyInterface {
3
5
  constructor(props?: Partial<LayoutControlProperty>);
4
6
  }
5
7
  export default LayoutControlProperty;
6
- export { LayoutControlProperty };
8
+ export { LayoutControlProperty, LayoutControlPropertyInterface };
@@ -1,8 +1,35 @@
1
- import { DesignerControl, Property, RuntimeControl } from '../BaseControl';
1
+ import { DesignerControl, Property, PropertyInterface, RuntimeControl } from '../BaseControl';
2
2
  import { ControlsKeys, BaseControlSchema, MODE } from '../../type';
3
3
  import { DesignerListControl } from './designer';
4
4
  import { RuntimeListControl } from './runtime';
5
- declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = Mode extends 'Runtime' ? RuntimeControl : Mode extends 'Designer' ? DesignerControl : BaseControlSchema<ControlsKeys, any>> extends Property {
5
+ type ControlType<Mode extends MODE | 'Schema'> = Mode extends 'Runtime' ? RuntimeControl : Mode extends 'Designer' ? DesignerControl : BaseControlSchema<ControlsKeys, any>;
6
+ interface ListControlPropertyInterface<Mode extends MODE | 'Schema', Control extends object = ControlType<Mode>> extends PropertyInterface {
7
+ /**
8
+ * 表头控件
9
+ */
10
+ headers: Control[];
11
+ /**
12
+ * 表尾控件
13
+ */
14
+ footers?: Control[];
15
+ /**
16
+ * 当前页码
17
+ */
18
+ pageIndex: number;
19
+ /**
20
+ * 每页条数
21
+ */
22
+ pageSize: number;
23
+ /**
24
+ * 每页条数选项
25
+ */
26
+ pageSizeOptions: number[];
27
+ /**
28
+ * 总条数
29
+ */
30
+ totalCount: number;
31
+ }
32
+ declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = ControlType<Mode>> extends Property implements ListControlPropertyInterface<Mode, Control> {
6
33
  headers: Control[];
7
34
  footers?: Control[];
8
35
  pageIndex: number;
@@ -15,4 +42,4 @@ declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends
15
42
  }>, mode?: MODE);
16
43
  }
17
44
  export default ListControlProperty;
18
- export { ListControlProperty };
45
+ export { ListControlProperty, ListControlPropertyInterface };
@@ -1,8 +1,14 @@
1
- import { LayoutControlProperty } from '../LayoutControl';
1
+ import { LayoutControlProperty, LayoutControlPropertyInterface } from '../LayoutControl';
2
2
  import { DataBind } from '../../framework';
3
- declare class SearchControlProperty extends LayoutControlProperty {
3
+ interface SearchControlPropertyInterface extends LayoutControlPropertyInterface {
4
+ /**
5
+ * 绑定数据项
6
+ */
7
+ dataBind: DataBind;
8
+ }
9
+ declare class SearchControlProperty extends LayoutControlProperty implements SearchControlPropertyInterface {
4
10
  dataBind: DataBind;
5
11
  constructor(props?: Partial<SearchControlProperty>);
6
12
  }
7
13
  export default SearchControlProperty;
8
- export { SearchControlProperty };
14
+ export { SearchControlProperty, SearchControlPropertyInterface };
@@ -1,6 +1,8 @@
1
- import { LayoutControlProperty } from '../LayoutControl';
2
- declare class WrapControlProperty extends LayoutControlProperty {
1
+ import { LayoutControlProperty, LayoutControlPropertyInterface } from '../LayoutControl';
2
+ interface WrapControlPropertyInterface extends LayoutControlPropertyInterface {
3
+ }
4
+ declare class WrapControlProperty extends LayoutControlProperty implements WrapControlPropertyInterface {
3
5
  constructor(props?: Partial<WrapControlProperty>);
4
6
  }
5
7
  export default WrapControlProperty;
6
- export { WrapControlProperty };
8
+ export { WrapControlProperty, WrapControlPropertyInterface };
@@ -404,6 +404,31 @@ export declare class DataSourceBind {
404
404
  openAssignDepartment?: boolean;
405
405
  constructor(props?: Partial<DataSourceBind>);
406
406
  }
407
+ /**
408
+ * 业务行动绑定配置
409
+ * @public
410
+ */
411
+ export declare class ActionSourceBind {
412
+ /**
413
+ * 应用Id
414
+ * @defaultValue ''
415
+ * @public
416
+ */
417
+ appId: string;
418
+ /**
419
+ * 绑定数据源id
420
+ * @defaultValue ''
421
+ * @public
422
+ */
423
+ dataCode: string;
424
+ /**
425
+ * 业务行动编码
426
+ * @defaultValue ''
427
+ * @public
428
+ */
429
+ actionCode: string;
430
+ constructor(props?: Partial<ActionSourceBind>);
431
+ }
407
432
  export declare class SelectedContentConfig {
408
433
  /**
409
434
  * 展示已选内容
@@ -574,7 +599,7 @@ export declare class OptionSetting {
574
599
  * @defaultValue
575
600
  * @public
576
601
  */
577
- color: string;
602
+ color?: string;
578
603
  constructor(props?: Partial<OptionSetting>);
579
604
  }
580
605
  export declare class ImageOptionSetting extends OptionSetting {
@@ -669,6 +694,16 @@ export declare class RangeDateValue {
669
694
  * @public
670
695
  */
671
696
  export declare class AddressValue {
697
+ /**
698
+ * 国家编码
699
+ * @defaultValue ''
700
+ */
701
+ country?: string;
702
+ /**
703
+ * 国家显示文字
704
+ * @defaultValue ''
705
+ */
706
+ countryDisplay?: string;
672
707
  /**
673
708
  * 市编码
674
709
  * @defaultValue ''
@@ -734,32 +769,32 @@ export declare class CalcValue {
734
769
  constructor(props?: Partial<CalcValue>);
735
770
  }
736
771
  export declare enum AMOUNT_TYPE {
737
- CNY = "CNY",// 人民币
738
- USD = "USD",// 美元
739
- JPY = "JPY",// 日元
740
- EUR = "EUR",// 欧元
741
- INR = "INR",// 印度卢比
742
- IDR = "IDR",// 印度盾
743
- BRL = "BRL",// 巴西雷亚尔
744
- AED = "AED",// 迪拉姆
745
- AUD = "AUD",// 澳大利亚元
746
- CAD = "CAD",// 加元
747
- EGP = "EGP",// 埃及镑
748
- GBP = "GBP",// 英镑
749
- ZAR = "ZAR",// 南非兰特
750
- KRW = "KRW",// 韩元
751
- MAD = "MAD",// 摩洛哥迪拉姆
752
- MXN = "MXN",// 墨西哥比索
753
- MYR = "MYR",// 马来西亚林吉特
754
- PHP = "PHP",// 菲律宾比索
755
- PLN = "PLN",// 波兰兹罗提
756
- RUB = "RUB",// 俄罗斯卢布
757
- SGD = "SGD",// 新加坡元
758
- THB = "THB",// 泰铢
759
- TRY = "TRY",// 新土耳其里拉
760
- TWD = "TWD",// 新台币
761
- VND = "VND",// 越南盾
762
- HKD = "HKD",// 港币
772
+ CNY = "CNY",
773
+ USD = "USD",
774
+ JPY = "JPY",
775
+ EUR = "EUR",
776
+ INR = "INR",
777
+ IDR = "IDR",
778
+ BRL = "BRL",
779
+ AED = "AED",
780
+ AUD = "AUD",
781
+ CAD = "CAD",
782
+ EGP = "EGP",
783
+ GBP = "GBP",
784
+ ZAR = "ZAR",
785
+ KRW = "KRW",
786
+ MAD = "MAD",
787
+ MXN = "MXN",
788
+ MYR = "MYR",
789
+ PHP = "PHP",
790
+ PLN = "PLN",
791
+ RUB = "RUB",
792
+ SGD = "SGD",
793
+ THB = "THB",
794
+ TRY = "TRY",
795
+ TWD = "TWD",
796
+ VND = "VND",
797
+ HKD = "HKD",
763
798
  IEP = "IEP"
764
799
  }
765
800
  /**
@@ -811,6 +846,7 @@ export declare enum COMMON_SETTING_TYPE {
811
846
  CAPTION_SIZE = "captionSize",
812
847
  CAPTION_COLOR = "captionColor",
813
848
  IS_CAPTION_ITALIC = "isCaptionItalic",
849
+ CAPTION_FONT_WEIGHT = "captionFontWeight",
814
850
  SHOW_TABLE_INDEX = "showTableIndex"
815
851
  }
816
852
  export declare enum PAGE_STATUS {
@@ -959,6 +995,7 @@ export declare class ListTreeData {
959
995
  groupFields: {
960
996
  field: string;
961
997
  orderType: 'desc' | 'asc';
998
+ columnType: string;
962
999
  }[];
963
1000
  groupHeaderName: any;
964
1001
  showFooterStatistics: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "7.0.0-1-beta9",
3
+ "version": "7.0.0-beta.1",
4
4
  "description": "model engine core",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,9 +26,9 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-shared": "7.0.0-1-beta9",
29
+ "@byteluck-fe/model-driven-shared": "7.0.0-beta.1",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "06eb423735c35d0dbb0bb16f3d2030ac53f8633c"
33
+ "gitHead": "c54bfd57e249dec34da66f91e13ab8244c67132a"
34
34
  }