@sv-print/hiprint 0.3.26 → 0.3.28

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare function autoConnect(callback?: (status?: boolean, msg?: any) => void);
1
+ export declare function autoConnect(callback?: (status?: boolean, msg?: any) => void): void;
2
2
 
3
3
  export declare interface ConfigOptions extends Record<string, any> {
4
4
  optionItems?: any[];
@@ -19,7 +19,16 @@ export declare class defaultElementTypeProvider {
19
19
  constructor();
20
20
  }
21
21
 
22
- export declare function disAutoConnect();
22
+ export declare function disAutoConnect(): void;
23
+
24
+ export declare interface ElementTypes extends Record<string, any> {
25
+ allElementTypes: any[];
26
+ getProviderJson: () => Record<string, any>;
27
+ setProviderJson: (json: Record<string, any>) => void;
28
+ clearProvider: () => void;
29
+ addProviderJson: (json: Record<string, any>) => void;
30
+ insertPrintElementType: (json: Record<string, any>, moduleName: string, groupName: string, insertIdx: string | boolean) => void;
31
+ }
23
32
 
24
33
  export declare interface FieldJson {
25
34
  field: string;
@@ -38,6 +47,7 @@ export declare class hiprint {
38
47
  static register: (options: RegisterOptions) => string;
39
48
  static setConfig: (options?: ConfigOptions) => void;
40
49
  static getOptionItems: Record<string, any>;
50
+ static ElementTypes: ElementTypes;
41
51
  static updateElementType: <T>(tid: string, callback: (type: T) => T) => void;
42
52
  static hiwebSocket: HiWebSocket;
43
53
  static setHost: (host: string, token?: string) => Promise<any>;
@@ -183,11 +193,12 @@ export declare interface PrintElementType extends Record<string, any> {
183
193
  }
184
194
 
185
195
  export declare interface PrintElementTypeGroup {
186
- constructor(name: string, list: PrintElementType[]);
196
+ constructor(name: string, list: PrintElementType[]): void;
187
197
  }
188
198
 
189
199
  export declare interface PrintElementTypeManager {
190
200
  buildByHtml(el: any): void;
201
+ buildAll(el: any, render?: (list: any) => any): void;
191
202
  build(el: any, type: string, render?: (list: any) => any): void;
192
203
  }
193
204