@byteluck-fe/model-driven-core 7.0.0-props.94 → 8.0.0-beta.0

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 (47) hide show
  1. package/README.md +7 -0
  2. package/dist/contracts/index.js +1 -0
  3. package/dist/contracts/index.mjs +1 -0
  4. package/dist/esm/common/BaseControl/designer.js +47 -29
  5. package/dist/esm/common/BaseControl/property.js +44 -33
  6. package/dist/esm/common/BaseControl/runtime.js +3 -9
  7. package/dist/esm/common/ColumnControl/designer.js +17 -29
  8. package/dist/esm/common/ColumnControl/property.js +44 -22
  9. package/dist/esm/common/ColumnControl/runtime.js +12 -20
  10. package/dist/esm/common/ControlArray.js +4 -2
  11. package/dist/esm/common/FormControl/designer.js +12 -20
  12. package/dist/esm/common/FormControl/property.js +16 -21
  13. package/dist/esm/common/FormControl/runtime.js +12 -20
  14. package/dist/esm/common/LayoutControl/designer.js +36 -51
  15. package/dist/esm/common/LayoutControl/property.js +15 -18
  16. package/dist/esm/common/LayoutControl/runtime.js +12 -20
  17. package/dist/esm/common/ListControl/designer.js +35 -48
  18. package/dist/esm/common/ListControl/property.js +29 -22
  19. package/dist/esm/common/ListControl/runtime.js +12 -20
  20. package/dist/esm/common/SearchViewControl/designer.js +12 -20
  21. package/dist/esm/common/SearchViewControl/property.js +19 -22
  22. package/dist/esm/common/SearchViewControl/runtime.js +12 -20
  23. package/dist/esm/common/WrapControl/designer.js +12 -20
  24. package/dist/esm/common/WrapControl/property.js +15 -18
  25. package/dist/esm/common/WrapControl/runtime.js +12 -20
  26. package/dist/esm/contracts/build-info.js +36 -0
  27. package/dist/esm/contracts/diagnostics.js +29 -0
  28. package/dist/esm/contracts/index.js +4 -0
  29. package/dist/esm/contracts/page-model.js +1 -0
  30. package/dist/esm/contracts/versions.js +9 -0
  31. package/dist/esm/framework/RegisterControls.js +2 -6
  32. package/dist/esm/framework/index.js +216 -20
  33. package/dist/index.umd.js +3 -1
  34. package/dist/types/common/BaseControl/designer.d.ts +14 -0
  35. package/dist/types/common/BaseControl/property.d.ts +28 -0
  36. package/dist/types/common/ColumnControl/property.d.ts +42 -0
  37. package/dist/types/common/LayoutControl/property.d.ts +4 -0
  38. package/dist/types/common/ListControl/property.d.ts +22 -0
  39. package/dist/types/common/SearchViewControl/property.d.ts +7 -0
  40. package/dist/types/common/WrapControl/property.d.ts +4 -0
  41. package/dist/types/contracts/build-info.d.ts +25 -0
  42. package/dist/types/contracts/diagnostics.d.ts +14 -0
  43. package/dist/types/contracts/index.d.ts +4 -0
  44. package/dist/types/contracts/page-model.d.ts +72 -0
  45. package/dist/types/contracts/versions.d.ts +16 -0
  46. package/dist/types/framework/index.d.ts +195 -0
  47. package/package.json +27 -5
@@ -47,12 +47,15 @@ declare class Control {
47
47
  toSchema(): BaseControlSchema<ControlsKeys, Property>;
48
48
  updateSetting: typeof updateSetting;
49
49
  removeSetting: typeof removeSetting;
50
+ removeSettingByKeyAndName: typeof removeSettingByKeyAndName;
50
51
  static updateBasicControl(key: 'setting', setting: {
51
52
  add?: SettingOption[];
52
53
  remove?: string[];
53
54
  update?: string[];
54
55
  }): void;
55
56
  static removeSettingItem: typeof removeSetting;
57
+ static removeSettingByKeyAndName: typeof removeSettingByKeyAndName;
58
+ static removeSettingItemByKeyAndName: typeof removeSettingByKeyAndName;
56
59
  static updateSettingItem: typeof updateSetting;
57
60
  }
58
61
  export default Control;
@@ -63,6 +66,17 @@ export { Control as DesignerControl };
63
66
  * @param keys 需要删除的key或key组成的数组
64
67
  * */
65
68
  declare function removeSetting(keys: Array<string | HideOptions> | string | HideOptions): void;
69
+ /**
70
+ * @function 根据key和name删除控件或者实例上的setting
71
+ * @description 用于删除使用公共key但通过name区分的setting项
72
+ * @param options 需要删除的setting key和name
73
+ * */
74
+ interface RemoveSettingByKeyAndNameOption {
75
+ key: string;
76
+ name: string;
77
+ }
78
+ declare function removeSettingByKeyAndName(options: RemoveSettingByKeyAndNameOption[]): void;
79
+ declare function removeSettingByKeyAndName(key: string, name: string): void;
66
80
  interface UpdateSettingOption {
67
81
  showItems: COMMON_SETTING_TYPE[];
68
82
  type?: 'push' | 'replace';
@@ -1,3 +1,7 @@
1
+ /**
2
+ * name: base_property
3
+ * description: 基础属性定义。提供控件通用的隐藏状态、类名、样式、标题和默认状态配置,是表单、布局、列表等属性模型的公共基类。
4
+ */
1
5
  import { RuleItem } from '../Validator';
2
6
  import { BaseStyle } from '../../framework';
3
7
  import { MODE } from 'type';
@@ -52,10 +56,34 @@ declare class Property implements PropertyInterface {
52
56
  static mode: MODE;
53
57
  static readonly Rules: typeof PropertyRules;
54
58
  static readonly RuntimeRules: typeof PropertyRuntimeRules;
59
+ /**
60
+ * 是否隐藏
61
+ * @public
62
+ * @defaultValue false
63
+ */
55
64
  isHide: boolean;
65
+ /**
66
+ * 类名
67
+ * @public
68
+ * @noSchema
69
+ */
56
70
  className?: string[];
71
+ /**
72
+ * 样式
73
+ * @public
74
+ * @noSchema
75
+ */
57
76
  style: BaseStyle;
77
+ /**
78
+ * 标题
79
+ * @public
80
+ * @defaultValue ''
81
+ */
58
82
  caption: string;
83
+ /**
84
+ * 默认状态
85
+ * @public
86
+ */
59
87
  defaultState: 'readonly' | 'default';
60
88
  constructor(props?: Partial<Property>, caption?: string);
61
89
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * name: base_column_control_property
3
+ * description: 列控件基础属性定义。提供列宽、标题、数据绑定、自适应宽度、冻结、排序、对齐、跨列、自动高度和子控件配置。
4
+ */
1
5
  import { Property, PropertyInterface, PropertyRules, RuntimeControl } from '../BaseControl';
2
6
  import { RuleItem } from 'async-validator';
3
7
  import { DataBind, DataSourceBind, OptionSetting, AutoWidth } from '../../framework';
@@ -63,16 +67,54 @@ interface ColumnControlPropertyInterface extends PropertyInterface {
63
67
  */
64
68
  declare class ColumnControlProperty extends Property implements ColumnControlPropertyInterface {
65
69
  static readonly Rules: typeof ColumnControlPropertyRules;
70
+ /**
71
+ * 宽度类型
72
+ * @defaultValue 'auto'
73
+ */
66
74
  widthType: 'px' | 'auto' | 'percent';
75
+ /**
76
+ * 宽度
77
+ * @defaultValue 150
78
+ */
67
79
  width: number;
80
+ /**
81
+ * 标题
82
+ */
68
83
  caption: string;
84
+ /**
85
+ * 绑定数据项
86
+ */
69
87
  dataBind: DataBind;
88
+ /**
89
+ * 自适应页面宽度
90
+ */
70
91
  autoWidth: AutoWidth;
92
+ /**
93
+ * 冻结
94
+ * @defaultValue 'none'
95
+ */
71
96
  fixed: 'left' | 'right' | 'none';
97
+ /**
98
+ * 表头排序
99
+ * @defaultValue true
100
+ */
72
101
  sort: boolean;
102
+ /**
103
+ * 对齐
104
+ */
73
105
  align?: 'left' | 'right' | 'center';
106
+ /**
107
+ * @internal
108
+ */
74
109
  colSpan?: string;
110
+ /**
111
+ * 自动高度
112
+ * @defaultValue false
113
+ */
75
114
  autoHeight: boolean;
115
+ /**
116
+ * 子控件
117
+ */
76
118
  children: RuntimeControl[];
77
119
  constructor(props?: Partial<ColumnControlProperty>);
78
120
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * name: base_layout_control_property
3
+ * description: 布局控件基础属性定义。继承通用属性能力,为行、列、容器、页签等布局类控件提供统一的属性模型。
4
+ */
1
5
  import { Property, PropertyInterface } from '../BaseControl';
2
6
  interface LayoutControlPropertyInterface extends PropertyInterface {
3
7
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * name: base_list_control_property
3
+ * description: 列表控件基础属性定义。提供表头、表尾、分页页码、每页条数、分页选项和总条数等列表通用配置。
4
+ */
1
5
  import { DesignerControl, Property, PropertyInterface, RuntimeControl } from '../BaseControl';
2
6
  import { ControlsKeys, BaseControlSchema, MODE } from '../../type';
3
7
  import { DesignerListControl } from './designer';
@@ -30,11 +34,29 @@ interface ListControlPropertyInterface<Mode extends MODE | 'Schema', Control ext
30
34
  totalCount: number;
31
35
  }
32
36
  declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = ControlType<Mode>> extends Property implements ListControlPropertyInterface<Mode, Control> {
37
+ /**
38
+ * 表头控件
39
+ */
33
40
  headers: Control[];
41
+ /**
42
+ * 表尾控件
43
+ */
34
44
  footers?: Control[];
45
+ /**
46
+ * 当前页码
47
+ */
35
48
  pageIndex: number;
49
+ /**
50
+ * 每页条数
51
+ */
36
52
  pageSize: number;
53
+ /**
54
+ * 每页条数选项
55
+ */
37
56
  pageSizeOptions: number[];
57
+ /**
58
+ * 总条数
59
+ */
38
60
  totalCount: number;
39
61
  constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
40
62
  headers: Control[];
@@ -1,3 +1,7 @@
1
+ /**
2
+ * name: base_search_control_property
3
+ * description: 查询控件基础属性定义。提供查询视图的数据项绑定配置,用于搜索区域控件与数据字段建立关联。
4
+ */
1
5
  import { LayoutControlProperty, LayoutControlPropertyInterface } from '../LayoutControl';
2
6
  import { DataBind } from '../../framework';
3
7
  interface SearchControlPropertyInterface extends LayoutControlPropertyInterface {
@@ -7,6 +11,9 @@ interface SearchControlPropertyInterface extends LayoutControlPropertyInterface
7
11
  dataBind: DataBind;
8
12
  }
9
13
  declare class SearchControlProperty extends LayoutControlProperty implements SearchControlPropertyInterface {
14
+ /**
15
+ * 绑定数据项
16
+ */
10
17
  dataBind: DataBind;
11
18
  constructor(props?: Partial<SearchControlProperty>);
12
19
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * name: base_wrap_control_property
3
+ * description: 包裹控件基础属性定义。继承布局属性能力,为外层包裹类控件提供统一的属性模型。
4
+ */
1
5
  import { LayoutControlProperty, LayoutControlPropertyInterface } from '../LayoutControl';
2
6
  interface WrapControlPropertyInterface extends LayoutControlPropertyInterface {
3
7
  }
@@ -0,0 +1,25 @@
1
+ import { CONTROL_CATALOG_SCHEMA_VERSION, CURRENT_PAGE_SCHEMA_VERSION, HEADLESS_COMPILER_CONTRACT_VERSION, MODEL_DRIVEN_PACKAGE_VERSION } from './versions';
2
+ /**
3
+ * 可跨 Designer、Runtime 与 FDE 比对的公共构建信息。
4
+ * catalogRevision 由 controls/catalog 在生成阶段补充,core 不反向依赖 controls。
5
+ */
6
+ export interface ModelDrivenBuildInfo {
7
+ packageVersion: typeof MODEL_DRIVEN_PACKAGE_VERSION;
8
+ pageSchemaVersion: typeof CURRENT_PAGE_SCHEMA_VERSION;
9
+ compilerContractVersion: typeof HEADLESS_COMPILER_CONTRACT_VERSION;
10
+ catalogSchemaVersion: typeof CONTROL_CATALOG_SCHEMA_VERSION;
11
+ catalogRevision?: string;
12
+ }
13
+ /**
14
+ * 调用方声明的版本期望允许任意字符串,才能在类型安全的调用中表达并检测旧版本。
15
+ */
16
+ export interface ModelDrivenBuildInfoExpectation {
17
+ packageVersion?: string;
18
+ pageSchemaVersion?: string;
19
+ compilerContractVersion?: string;
20
+ catalogSchemaVersion?: string;
21
+ catalogRevision?: string;
22
+ }
23
+ export declare const MODEL_DRIVEN_BUILD_INFO: Readonly<ModelDrivenBuildInfo>;
24
+ /** 返回新对象,避免调用方意外改写共享的版本事实。 */
25
+ export declare function getModelDrivenBuildInfo(): ModelDrivenBuildInfo;
@@ -0,0 +1,14 @@
1
+ export type ModelDrivenDiagnosticSeverity = 'error' | 'warning' | 'info';
2
+ /**
3
+ * 纯编译层只返回稳定、短小的诊断信息,不携带完整页面或控件 props,
4
+ * 便于 FDE 将结果写入日志或工具返回值而不放大模型上下文。
5
+ */
6
+ export interface ModelDrivenDiagnostic {
7
+ code: string;
8
+ message: string;
9
+ severity: ModelDrivenDiagnosticSeverity;
10
+ path?: string;
11
+ controlId?: string;
12
+ controlType?: string;
13
+ }
14
+ export declare function createModelDrivenDiagnostic(diagnostic: ModelDrivenDiagnostic): ModelDrivenDiagnostic;
@@ -0,0 +1,4 @@
1
+ export * from './versions';
2
+ export * from './build-info';
3
+ export * from './diagnostics';
4
+ export * from './page-model';
@@ -0,0 +1,72 @@
1
+ import { ModelDrivenBuildInfo, ModelDrivenBuildInfoExpectation } from './build-info';
2
+ import { ModelDrivenDiagnostic } from './diagnostics';
3
+ export type JsonPrimitive = string | number | boolean | null;
4
+ export type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
5
+ export interface JsonObject {
6
+ [key: string]: JsonValue | undefined;
7
+ }
8
+ export type PageKind = 'form' | 'list';
9
+ export type ModelDrivenBaseControlType = 'base' | 'form' | 'layout' | 'list' | 'column' | 'search' | 'wrap';
10
+ /** 不依赖 Vue/DOM 的页面控件保存结构。 */
11
+ export interface HeadlessControlNode {
12
+ id: string;
13
+ type: string;
14
+ controlType: ModelDrivenBaseControlType;
15
+ props: JsonObject;
16
+ fieldType?: string;
17
+ children?: HeadlessControlNode[];
18
+ }
19
+ export interface CreateControlNodeInput {
20
+ type: string;
21
+ id?: string;
22
+ props?: JsonObject;
23
+ fieldType?: string;
24
+ children?: HeadlessControlNode[];
25
+ }
26
+ /**
27
+ * 同步文案解析器收到的完整事实;headless 不负责访问接口或读取全局 i18n。
28
+ */
29
+ export interface HeadlessLocaleMessageContext {
30
+ key: string;
31
+ locale: string;
32
+ fallback: string;
33
+ values: Readonly<Record<string, string>>;
34
+ }
35
+ export type HeadlessLocaleMessageResolver = (context: HeadlessLocaleMessageContext) => string | undefined;
36
+ export interface HeadlessRuntimeOptions {
37
+ /** 构造多节点树时应复用同一个工厂;未提供时每个顶层构建使用独立序列。 */
38
+ idFactory?: () => string;
39
+ /** 接受任意非空 locale;纯编译层不会自行读取浏览器 locale。 */
40
+ locale?: string;
41
+ /** 当前 locale 的扁平消息事实,key 与 catalog/message fact 保持一致。 */
42
+ localeMessages?: Readonly<Record<string, string>>;
43
+ /** 可选同步解析器;由调用方接入自己的消息仓库,headless 不访问接口。 */
44
+ resolveLocaleMessage?: HeadlessLocaleMessageResolver;
45
+ }
46
+ export interface CompilePageModelInput {
47
+ kind: PageKind;
48
+ root: HeadlessControlNode;
49
+ /** 调用方可选传入期望版本;任一不匹配都会 fail-closed。 */
50
+ expectedBuildInfo?: ModelDrivenBuildInfoExpectation;
51
+ }
52
+ export interface ModelBindInfo {
53
+ controlId: string;
54
+ type: string;
55
+ caption: string;
56
+ fieldType?: string;
57
+ parentId: string | null;
58
+ dataBind?: JsonValue;
59
+ datasourceBind?: JsonValue;
60
+ props: JsonObject;
61
+ required?: boolean;
62
+ maxLength?: number;
63
+ encrypted?: boolean;
64
+ encryptedMode?: string;
65
+ }
66
+ export interface CompilePageModelResult {
67
+ ok: boolean;
68
+ model?: HeadlessControlNode[];
69
+ modelBindInfoList?: ModelBindInfo[];
70
+ diagnostics: ModelDrivenDiagnostic[];
71
+ buildInfo: ModelDrivenBuildInfo;
72
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * model-driven v8 发布列车的 npm 包版本。
3
+ *
4
+ * 注意:npm 包版本、页面持久化 schema 版本和纯编译契约版本是三套独立版本,
5
+ * 不能再通过其中任意一个推断另外两个。
6
+ */
7
+ export declare const MODEL_DRIVEN_PACKAGE_VERSION: "8.0.0-beta.0";
8
+ /** 当前设计器写入的页面持久化 schema 版本。 */
9
+ export declare const CURRENT_PAGE_SCHEMA_VERSION: "3.16";
10
+ /** Node 纯编译入口的契约版本。 */
11
+ export declare const HEADLESS_COMPILER_CONTRACT_VERSION: "model-driven.headless.v1";
12
+ /** 静态控件目录的文档结构版本。 */
13
+ export declare const CONTROL_CATALOG_SCHEMA_VERSION: "model-driven.control-catalog.v1";
14
+ export type CurrentPageSchemaVersion = typeof CURRENT_PAGE_SCHEMA_VERSION;
15
+ export type HeadlessCompilerContractVersion = typeof HEADLESS_COMPILER_CONTRACT_VERSION;
16
+ export type ControlCatalogSchemaVersion = typeof CONTROL_CATALOG_SCHEMA_VERSION;
@@ -404,6 +404,197 @@ 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
+ }
432
+ /**
433
+ * 业务行动服务信息
434
+ * @public
435
+ */
436
+ export declare class BizActionServiceName {
437
+ /**
438
+ * 业务行动编码
439
+ * @defaultValue ''
440
+ * @public
441
+ */
442
+ actionCode: string;
443
+ /**
444
+ * 数据编码
445
+ * @defaultValue ''
446
+ * @public
447
+ */
448
+ dataCode: string;
449
+ /**
450
+ * 名称
451
+ * @defaultValue ''
452
+ * @public
453
+ */
454
+ name: string;
455
+ /**
456
+ * 应用名称
457
+ * @defaultValue ''
458
+ * @public
459
+ */
460
+ appName: string;
461
+ /**
462
+ * 数据名称
463
+ * @defaultValue ''
464
+ * @public
465
+ */
466
+ dataName: string;
467
+ /**
468
+ * 业务行动名称
469
+ * @defaultValue ''
470
+ * @public
471
+ */
472
+ actionName: string;
473
+ /**
474
+ * 展示名称
475
+ * @defaultValue ''
476
+ * @public
477
+ */
478
+ displayName: string;
479
+ /**
480
+ * 服务类型
481
+ * @defaultValue ''
482
+ * @public
483
+ */
484
+ svcTypeEnum: string;
485
+ constructor(props?: Partial<BizActionServiceName>);
486
+ }
487
+ /**
488
+ * 业务行动右值变量
489
+ * @public
490
+ */
491
+ export declare class BizActionRightVariable {
492
+ /**
493
+ * 变量类型
494
+ * @defaultValue 'custom'
495
+ * @public
496
+ */
497
+ type: 'form' | 'system' | 'custom' | 'gv';
498
+ /**
499
+ * 变量值
500
+ * @defaultValue []
501
+ * @public
502
+ */
503
+ value: Array<string | number>;
504
+ /**
505
+ * 展示对象
506
+ * @defaultValue []
507
+ * @public
508
+ */
509
+ displayBos: Record<string, unknown>[];
510
+ constructor(props?: Partial<BizActionRightVariable>);
511
+ }
512
+ /**
513
+ * 业务行动入参
514
+ * @public
515
+ */
516
+ export declare class BizActionInputParam {
517
+ /**
518
+ * 参数ID
519
+ * @defaultValue ''
520
+ * @public
521
+ */
522
+ id: string;
523
+ /**
524
+ * 参数名称
525
+ * @defaultValue ''
526
+ * @public
527
+ */
528
+ name: string;
529
+ /**
530
+ * 是否必填
531
+ * @defaultValue false
532
+ * @public
533
+ */
534
+ required: boolean;
535
+ /**
536
+ * 参数类型
537
+ * @defaultValue ''
538
+ * @public
539
+ */
540
+ paramType: string;
541
+ /**
542
+ * 参数右值变量
543
+ * @defaultValue new BizActionRightVariable()
544
+ * @public
545
+ */
546
+ rightVariableBo: BizActionRightVariable;
547
+ /**
548
+ * Child params for object/list_object action params.
549
+ * @public
550
+ */
551
+ children?: BizActionInputParam[];
552
+ constructor(props?: Partial<BizActionInputParam>);
553
+ }
554
+ /**
555
+ * 业务行动配置
556
+ * @public
557
+ */
558
+ export declare class BizActionObject {
559
+ /**
560
+ * 服务信息
561
+ * @defaultValue new BizActionServiceName()
562
+ * @public
563
+ */
564
+ serviceName: BizActionServiceName;
565
+ /**
566
+ * 入参列表
567
+ * @defaultValue []
568
+ * @public
569
+ */
570
+ inputParam: BizActionInputParam[];
571
+ constructor(props?: Partial<BizActionObject>);
572
+ }
573
+ /**
574
+ * 操作行动项配置
575
+ * @public
576
+ */
577
+ export declare class ActionObject {
578
+ /**
579
+ * 行动编码
580
+ * @defaultValue ''
581
+ * @public
582
+ */
583
+ actionCode: string;
584
+ /**
585
+ * 行动类型
586
+ * @defaultValue ''
587
+ * @public
588
+ */
589
+ actionType: string;
590
+ /**
591
+ * 业务行动配置
592
+ * @defaultValue new BizActionObject()
593
+ * @public
594
+ */
595
+ bizAction: BizActionObject;
596
+ constructor(props?: Partial<ActionObject>);
597
+ }
407
598
  export declare class SelectedContentConfig {
408
599
  /**
409
600
  * 展示已选内容
@@ -910,6 +1101,10 @@ export declare class OptObject {
910
1101
  * @public
911
1102
  */
912
1103
  optType: string;
1104
+ /**
1105
+ * @description 操作项构造函数
1106
+ * @param props
1107
+ */
913
1108
  constructor(props?: Partial<OptObject>);
914
1109
  }
915
1110
  export declare class RowStyleRule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "7.0.0-props.94",
3
+ "version": "8.0.0-beta.0",
4
4
  "description": "model engine core",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -8,7 +8,29 @@
8
8
  "main": "dist/esm/index.js",
9
9
  "module": "dist/esm/index.js",
10
10
  "umd": "dist/index.umd.js",
11
- "types": "dist/types",
11
+ "types": "dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/types/index.d.ts",
15
+ "import": "./dist/esm/index.js",
16
+ "default": "./dist/esm/index.js"
17
+ },
18
+ "./contracts": {
19
+ "types": "./dist/types/contracts/index.d.ts",
20
+ "import": "./dist/contracts/index.mjs",
21
+ "require": "./dist/contracts/index.js",
22
+ "default": "./dist/contracts/index.js"
23
+ },
24
+ "./dist/index.umd.js": "./dist/index.umd.js",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "typesVersions": {
28
+ "*": {
29
+ "contracts": [
30
+ "dist/types/contracts/index.d.ts"
31
+ ]
32
+ }
33
+ },
12
34
  "files": [
13
35
  "bin",
14
36
  "dist",
@@ -22,13 +44,13 @@
22
44
  "compiler": "tsc --emitDeclarationOnly && swc src -d dist/esm -C jsc.target=es5 -D",
23
45
  "cleanup": "rimraf ./dist",
24
46
  "prepublish": "npm run cleanup && npm run compiler && npm run build",
25
- "build": "rollup -c",
47
+ "build": "rollup -c && rollup -c rollup-subpath.config.js",
26
48
  "postpublish": "node ../../scripts/postpublish.js"
27
49
  },
28
50
  "dependencies": {
29
- "@byteluck-fe/model-driven-shared": "7.0.0-props.94",
51
+ "@byteluck-fe/model-driven-shared": "8.0.0-beta.0",
30
52
  "async-validator": "3.5.1",
31
53
  "tslib": "^2.1.0"
32
54
  },
33
- "gitHead": "8e84ad7af5b54bc8621a0d85de2083f830bafc0c"
55
+ "gitHead": "5d2e57455ab817172b8697a71d003915eeee906b"
34
56
  }