@hailin-zheng/editor-core 2.2.8 → 2.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,9 @@ export declare class DocumentContext {
57
57
  private ss;
58
58
  constructor(ctx: BranchElement, ss: SelectionState);
59
59
  getControlIDList(): Array<string>;
60
- getControlInstanceList(): Array<DataElementInlineGroup | DataElementLeaf>;
60
+ getControlInstanceList(options?: {
61
+ includeChildren: boolean;
62
+ }): Array<DataElementInlineGroup | DataElementLeaf>;
61
63
  getControlById(id: string): DataElementInlineGroup | DataElementLeaf;
62
64
  getControlByName(name: string): DataElementInlineGroup | DataElementLeaf;
63
65
  /**
@@ -68,7 +70,9 @@ export declare class DocumentContext {
68
70
  * 获取数据元结构以及get\set闭包调用函数
69
71
  * @returns
70
72
  */
71
- getDataElementModelList(): Array<DataCheckEleModel | DataInputEleModel | DataLeafEleModel>;
73
+ getDataElementModelList(options?: {
74
+ includeChildren: boolean;
75
+ }): Array<DataCheckEleModel | DataInputEleModel | DataLeafEleModel>;
72
76
  /**
73
77
  * 获取复选框数据元结构列表
74
78
  * @param dataCheckList
@@ -137,7 +137,9 @@ export declare abstract class BranchElement<P extends object = any> extends Elem
137
137
  getChildIndex(child: Element): number;
138
138
  getChildLength(): number;
139
139
  getSelfLength(pure: boolean): number;
140
- treeFilter(predicate: (item: Element) => boolean): Array<Element>;
140
+ treeFilter(predicate: (item: Element) => boolean, options?: {
141
+ includeChildren: boolean;
142
+ }): Array<Element>;
141
143
  treeFind(predicate: (item: Element) => boolean): Element | null;
142
144
  pubOnChange(selfChange: pubChangeType): void;
143
145
  }
@@ -316,9 +316,7 @@ export declare class ValidateProps {
316
316
  msg: string;
317
317
  clone(dest: ValidateProps | null): ValidateProps;
318
318
  }
319
- export declare class DataElementGroupProps extends DataEleBaseProps {
320
- clone(dest: DataElementGroupProps | null): void;
321
- getSerializeProps(options: ViewOptions): NullableType<DataEleBaseProps>;
319
+ export declare class DataElementGroupProps extends DataEleBaseTextProps {
322
320
  }
323
321
  export declare class DataElementBarcodeProps {
324
322
  type: 'ena13' | 'code128' | 'code39' | 'qrcode';
@@ -1,9 +1,11 @@
1
- import { DataElementBaseFactory, InlineGroupInputElement } from "./data-element-base-impl";
1
+ import { DataElementBaseFactory, DataElementInlineGroup } from "./data-element-base-impl";
2
2
  import { InlineGroupRenderObject, RenderObject } from "../../render-define";
3
3
  import { SerializeProps, ViewOptions, Element } from "../../element-define";
4
4
  import { DataElementGroupProps } from "../../element-props";
5
- export declare class DataElementGroupElement extends InlineGroupInputElement<DataElementGroupProps> {
5
+ export declare class DataElementGroupElement extends DataElementInlineGroup<DataElementGroupProps> {
6
6
  constructor();
7
+ setValue(val: any): void;
8
+ getValue(): string;
7
9
  clone(data: boolean): Element;
8
10
  createRenderObject(): RenderObject | null;
9
11
  serialize(viewOptions: ViewOptions): SerializeProps | null;
@@ -14,4 +16,5 @@ export declare class DataElementGroupRenderObject extends InlineGroupRenderObjec
14
16
  export declare class DataElementGroupFactory extends DataElementBaseFactory<DataElementGroupProps> {
15
17
  match(type: string): boolean;
16
18
  createElement(data: any): Element;
19
+ createDataEleProps(dest: DataElementGroupProps, props: DataElementGroupProps): DataElementGroupProps;
17
20
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.2.8",
7
+ "version": "2.2.9",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "moment": "^2.29.3",