@canvas-components/print-design-plugin 0.0.0-stage → 0.1.3

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.
@@ -0,0 +1,79 @@
1
+ import * as _canvas_components_print_design from '@canvas-components/print-design';
2
+ import { P as PrintDesignNativePlugin } from './model-BwhSanYM.cjs';
3
+ import * as _canvas_components_react_print_design from '@canvas-components/react-print-design';
4
+ import { PrintDesignComponentFactory, PrintDesignComponentMenuItem, PrintDesignPropertySection, PrintDesignComponentContextMenu, PrintDesignToolRegistry, PrintDesignComponentFactoryRegistry, PrintDesignPropertySectionRegistry } from '@canvas-components/react-print-design';
5
+ import '@canvas-components/barcode';
6
+ import '@canvas-components/qrcode';
7
+
8
+ /** 单个组件插件的编辑能力;复用宿主现有控件与字段 schema。 */
9
+ interface PrintDesignReactPlugin extends PrintDesignNativePlugin {
10
+ factory: PrintDesignComponentFactory;
11
+ menuGroups: readonly PrintDesignPluginMenuGroup[];
12
+ propertySections?: readonly PrintDesignPropertySection[];
13
+ contextMenu?: PrintDesignComponentContextMenu;
14
+ }
15
+ /** 组件插件独立声明的菜单分组和组内排序。 */
16
+ interface PrintDesignPluginMenuGroup {
17
+ id: string;
18
+ title: string;
19
+ order: number;
20
+ items: readonly (PrintDesignComponentMenuItem & {
21
+ order: number;
22
+ })[];
23
+ }
24
+
25
+ /** 内置组件逐个注册,顺序与原生注册项一致。 */
26
+ declare const builtinReactComponentPlugins: readonly PrintDesignReactPlugin[];
27
+ /** 统一插件包提供设计器及独立打印端所需的能力。 */
28
+ declare const builtinPrintDesignPlugins: Readonly<{
29
+ tools: PrintDesignToolRegistry;
30
+ pluginCatalog: ({
31
+ id: string;
32
+ kind: "component";
33
+ packageId: string;
34
+ name: string;
35
+ author: string;
36
+ version: string;
37
+ dependencies: readonly {
38
+ id: string;
39
+ minVersion: string;
40
+ }[];
41
+ description: string;
42
+ componentTypes: ("text" | "list" | "dateTime" | "moneyUpper" | "pageNumber" | "watermark" | "shape" | "brush" | "connector" | "divider" | "ruler" | "grid" | "coordinate" | "progress" | "flow" | "clock" | "image" | "barcode" | "qrcode" | "chart" | "table" | "pivotTable" | "gantt" | "generic")[];
43
+ toolIds: never[];
44
+ compatibility: string;
45
+ permissions: string;
46
+ status: "enabled";
47
+ } | {
48
+ id: string;
49
+ kind: "tool";
50
+ packageId: string;
51
+ name: string;
52
+ author: string;
53
+ version: string;
54
+ description: string;
55
+ componentTypes: never[];
56
+ toolIds: string[];
57
+ compatibility: string;
58
+ permissions: string;
59
+ status: "enabled";
60
+ })[];
61
+ componentFactories: PrintDesignComponentFactoryRegistry;
62
+ componentMenu: {
63
+ id: string;
64
+ title: string;
65
+ items: (PrintDesignComponentMenuItem & {
66
+ order: number;
67
+ })[];
68
+ }[];
69
+ propertySections: PrintDesignPropertySectionRegistry;
70
+ contextMenus: {
71
+ [k: string]: _canvas_components_react_print_design.PrintDesignComponentContextMenu;
72
+ };
73
+ id: "builtin.print-design";
74
+ version: "0.1.1";
75
+ components: readonly PrintDesignNativePlugin[];
76
+ componentRegistry: _canvas_components_print_design.PrintDesignComponentRegistry;
77
+ }>;
78
+
79
+ export { builtinPrintDesignPlugins, builtinReactComponentPlugins };
@@ -0,0 +1,79 @@
1
+ import * as _canvas_components_print_design from '@canvas-components/print-design';
2
+ import { P as PrintDesignNativePlugin } from './model-BwhSanYM.js';
3
+ import * as _canvas_components_react_print_design from '@canvas-components/react-print-design';
4
+ import { PrintDesignComponentFactory, PrintDesignComponentMenuItem, PrintDesignPropertySection, PrintDesignComponentContextMenu, PrintDesignToolRegistry, PrintDesignComponentFactoryRegistry, PrintDesignPropertySectionRegistry } from '@canvas-components/react-print-design';
5
+ import '@canvas-components/barcode';
6
+ import '@canvas-components/qrcode';
7
+
8
+ /** 单个组件插件的编辑能力;复用宿主现有控件与字段 schema。 */
9
+ interface PrintDesignReactPlugin extends PrintDesignNativePlugin {
10
+ factory: PrintDesignComponentFactory;
11
+ menuGroups: readonly PrintDesignPluginMenuGroup[];
12
+ propertySections?: readonly PrintDesignPropertySection[];
13
+ contextMenu?: PrintDesignComponentContextMenu;
14
+ }
15
+ /** 组件插件独立声明的菜单分组和组内排序。 */
16
+ interface PrintDesignPluginMenuGroup {
17
+ id: string;
18
+ title: string;
19
+ order: number;
20
+ items: readonly (PrintDesignComponentMenuItem & {
21
+ order: number;
22
+ })[];
23
+ }
24
+
25
+ /** 内置组件逐个注册,顺序与原生注册项一致。 */
26
+ declare const builtinReactComponentPlugins: readonly PrintDesignReactPlugin[];
27
+ /** 统一插件包提供设计器及独立打印端所需的能力。 */
28
+ declare const builtinPrintDesignPlugins: Readonly<{
29
+ tools: PrintDesignToolRegistry;
30
+ pluginCatalog: ({
31
+ id: string;
32
+ kind: "component";
33
+ packageId: string;
34
+ name: string;
35
+ author: string;
36
+ version: string;
37
+ dependencies: readonly {
38
+ id: string;
39
+ minVersion: string;
40
+ }[];
41
+ description: string;
42
+ componentTypes: ("text" | "list" | "dateTime" | "moneyUpper" | "pageNumber" | "watermark" | "shape" | "brush" | "connector" | "divider" | "ruler" | "grid" | "coordinate" | "progress" | "flow" | "clock" | "image" | "barcode" | "qrcode" | "chart" | "table" | "pivotTable" | "gantt" | "generic")[];
43
+ toolIds: never[];
44
+ compatibility: string;
45
+ permissions: string;
46
+ status: "enabled";
47
+ } | {
48
+ id: string;
49
+ kind: "tool";
50
+ packageId: string;
51
+ name: string;
52
+ author: string;
53
+ version: string;
54
+ description: string;
55
+ componentTypes: never[];
56
+ toolIds: string[];
57
+ compatibility: string;
58
+ permissions: string;
59
+ status: "enabled";
60
+ })[];
61
+ componentFactories: PrintDesignComponentFactoryRegistry;
62
+ componentMenu: {
63
+ id: string;
64
+ title: string;
65
+ items: (PrintDesignComponentMenuItem & {
66
+ order: number;
67
+ })[];
68
+ }[];
69
+ propertySections: PrintDesignPropertySectionRegistry;
70
+ contextMenus: {
71
+ [k: string]: _canvas_components_react_print_design.PrintDesignComponentContextMenu;
72
+ };
73
+ id: "builtin.print-design";
74
+ version: "0.1.1";
75
+ components: readonly PrintDesignNativePlugin[];
76
+ componentRegistry: _canvas_components_print_design.PrintDesignComponentRegistry;
77
+ }>;
78
+
79
+ export { builtinPrintDesignPlugins, builtinReactComponentPlugins };