@sv-print/hiprint 0.3.25 → 0.3.27
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 +11 -0
- package/dist/index.js +964 -903
- package/dist/index.mjs +11019 -10845
- package/dist/index.umd.js +964 -903
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,15 @@ export declare class defaultElementTypeProvider {
|
|
|
21
21
|
|
|
22
22
|
export declare function disAutoConnect();
|
|
23
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 = "defaultModule", groupName: string = "插件", insertIdx: string | boolean = 1) => void;
|
|
31
|
+
}
|
|
32
|
+
|
|
24
33
|
export declare interface FieldJson {
|
|
25
34
|
field: string;
|
|
26
35
|
text: 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>;
|
|
@@ -188,6 +198,7 @@ export declare interface PrintElementTypeGroup {
|
|
|
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
|
|