@a2simcode/ui 0.0.44 → 0.0.45
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/components/index.d.ts +3 -2
- package/dist/components/workflow-viewer/index.d.ts +79 -6
- package/dist/components/workflow-viewer/src/j-workflow.vue.d.ts +37 -0
- package/dist/simcode-ui.es.js +9698 -6352
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/package.json +14 -13
|
@@ -49,8 +49,8 @@ import { default as JSwitch } from './switch';
|
|
|
49
49
|
import { default as JTabs } from './tabs';
|
|
50
50
|
import { default as JCollapse } from './collapse';
|
|
51
51
|
import { default as JEditor } from './editor';
|
|
52
|
-
import { default as JWorkflowViewer } from './workflow-viewer';
|
|
53
|
-
export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JInputColor, JTitle, JButtonSelect, JTree, JComp, JForm, JFormItem, JPage, JSliderCaptcha, JMenu, JTablePanel, JInputRows, JInputLayer, JLayerForm, JSwitch, JTabs, JCollapse, JEditor, JWorkflowViewer, };
|
|
52
|
+
import { default as JWorkflowViewer, JWorkflow } from './workflow-viewer';
|
|
53
|
+
export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JInputColor, JTitle, JButtonSelect, JTree, JComp, JForm, JFormItem, JPage, JSliderCaptcha, JMenu, JTablePanel, JInputRows, JInputLayer, JLayerForm, JSwitch, JTabs, JCollapse, JEditor, JWorkflowViewer, JWorkflow, };
|
|
54
54
|
export * from '../core';
|
|
55
55
|
export type { InputProps } from './input/src/input.vue';
|
|
56
56
|
export type { SelectOption, SelectProps } from './select/src/select.vue';
|
|
@@ -79,6 +79,7 @@ export type { EditConfigType } from './input-rows/src/interface';
|
|
|
79
79
|
export type { TabsProps } from './tabs/src/tabs.vue';
|
|
80
80
|
export type { CollapseProps } from './collapse/src/collapse.vue';
|
|
81
81
|
export type { WorkflowViewerProps } from './workflow-viewer/src/workflow-viewer.vue';
|
|
82
|
+
export type { WorkflowProps } from './workflow-viewer/src/j-workflow.vue';
|
|
82
83
|
export type { ButtonCompType } from './buttons/src/interface';
|
|
83
84
|
export type { LayerParamType } from './dynamic-layer/src/interface';
|
|
84
85
|
export type { SchemaConfig } from './comp/src/interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _JWorkflowViewer: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').WorkflowViewerProps> & Readonly<{
|
|
3
3
|
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
4
4
|
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
5
5
|
}>, {
|
|
@@ -12,7 +12,7 @@ declare const _JWorkflowViewer: {
|
|
|
12
12
|
elementDblclick: (ev: Record<string, any>) => any;
|
|
13
13
|
elementClick: (ev: Record<string, any>) => any;
|
|
14
14
|
}, import('vue').PublicProps, {
|
|
15
|
-
paletteOptions: import('
|
|
15
|
+
paletteOptions: import('.').PaletteOptions;
|
|
16
16
|
lineStroke: string;
|
|
17
17
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
18
|
containerRef: HTMLDivElement;
|
|
@@ -23,7 +23,7 @@ declare const _JWorkflowViewer: {
|
|
|
23
23
|
C: {};
|
|
24
24
|
M: {};
|
|
25
25
|
Defaults: {};
|
|
26
|
-
}, Readonly<import('
|
|
26
|
+
}, Readonly<import('.').WorkflowViewerProps> & Readonly<{
|
|
27
27
|
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
28
28
|
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
29
29
|
}>, {
|
|
@@ -33,13 +33,13 @@ declare const _JWorkflowViewer: {
|
|
|
33
33
|
setData: (data: Record<string, any>[]) => void;
|
|
34
34
|
updateElemet: (data: Record<string, any>) => void;
|
|
35
35
|
}, {}, {}, {}, {
|
|
36
|
-
paletteOptions: import('
|
|
36
|
+
paletteOptions: import('.').PaletteOptions;
|
|
37
37
|
lineStroke: string;
|
|
38
38
|
}>;
|
|
39
39
|
__isFragment?: never;
|
|
40
40
|
__isTeleport?: never;
|
|
41
41
|
__isSuspense?: never;
|
|
42
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
42
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('.').WorkflowViewerProps> & Readonly<{
|
|
43
43
|
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
44
44
|
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
45
45
|
}>, {
|
|
@@ -52,9 +52,82 @@ declare const _JWorkflowViewer: {
|
|
|
52
52
|
elementDblclick: (ev: Record<string, any>) => any;
|
|
53
53
|
elementClick: (ev: Record<string, any>) => any;
|
|
54
54
|
}, string, {
|
|
55
|
-
paletteOptions: import('
|
|
55
|
+
paletteOptions: import('.').PaletteOptions;
|
|
56
|
+
lineStroke: string;
|
|
57
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
58
|
+
install: (app: import('vue').App) => void;
|
|
59
|
+
};
|
|
60
|
+
declare const _JWorkflow: {
|
|
61
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').WorkflowProps> & Readonly<{
|
|
62
|
+
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
63
|
+
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
64
|
+
onElementCreate?: ((ev: Record<string, any>) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
reset: () => void;
|
|
67
|
+
zoom: (radio?: number) => void;
|
|
68
|
+
redo: () => void;
|
|
69
|
+
undo: () => void;
|
|
70
|
+
getData: () => Record<string, any>[];
|
|
71
|
+
setData: (data: Record<string, any>[]) => void;
|
|
72
|
+
updateElemet: (data: Record<string, any>) => void;
|
|
73
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
74
|
+
elementDblclick: (ev: Record<string, any>) => any;
|
|
75
|
+
elementClick: (ev: Record<string, any>) => any;
|
|
76
|
+
elementCreate: (ev: Record<string, any>) => any;
|
|
77
|
+
}, import('vue').PublicProps, {
|
|
78
|
+
paletteOptions: import('./src/j-workflow.vue').PaletteOptions;
|
|
79
|
+
lineStroke: string;
|
|
80
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
81
|
+
containerRef: HTMLDivElement;
|
|
82
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
83
|
+
P: {};
|
|
84
|
+
B: {};
|
|
85
|
+
D: {};
|
|
86
|
+
C: {};
|
|
87
|
+
M: {};
|
|
88
|
+
Defaults: {};
|
|
89
|
+
}, Readonly<import('.').WorkflowProps> & Readonly<{
|
|
90
|
+
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
91
|
+
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
92
|
+
onElementCreate?: ((ev: Record<string, any>) => any) | undefined;
|
|
93
|
+
}>, {
|
|
94
|
+
reset: () => void;
|
|
95
|
+
zoom: (radio?: number) => void;
|
|
96
|
+
redo: () => void;
|
|
97
|
+
undo: () => void;
|
|
98
|
+
getData: () => Record<string, any>[];
|
|
99
|
+
setData: (data: Record<string, any>[]) => void;
|
|
100
|
+
updateElemet: (data: Record<string, any>) => void;
|
|
101
|
+
}, {}, {}, {}, {
|
|
102
|
+
paletteOptions: import('./src/j-workflow.vue').PaletteOptions;
|
|
103
|
+
lineStroke: string;
|
|
104
|
+
}>;
|
|
105
|
+
__isFragment?: never;
|
|
106
|
+
__isTeleport?: never;
|
|
107
|
+
__isSuspense?: never;
|
|
108
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('.').WorkflowProps> & Readonly<{
|
|
109
|
+
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
110
|
+
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
111
|
+
onElementCreate?: ((ev: Record<string, any>) => any) | undefined;
|
|
112
|
+
}>, {
|
|
113
|
+
reset: () => void;
|
|
114
|
+
zoom: (radio?: number) => void;
|
|
115
|
+
redo: () => void;
|
|
116
|
+
undo: () => void;
|
|
117
|
+
getData: () => Record<string, any>[];
|
|
118
|
+
setData: (data: Record<string, any>[]) => void;
|
|
119
|
+
updateElemet: (data: Record<string, any>) => void;
|
|
120
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
121
|
+
elementDblclick: (ev: Record<string, any>) => any;
|
|
122
|
+
elementClick: (ev: Record<string, any>) => any;
|
|
123
|
+
elementCreate: (ev: Record<string, any>) => any;
|
|
124
|
+
}, string, {
|
|
125
|
+
paletteOptions: import('./src/j-workflow.vue').PaletteOptions;
|
|
56
126
|
lineStroke: string;
|
|
57
127
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
58
128
|
install: (app: import('vue').App) => void;
|
|
59
129
|
};
|
|
60
130
|
export default _JWorkflowViewer;
|
|
131
|
+
export { _JWorkflow as JWorkflow };
|
|
132
|
+
export * from './src/workflow-viewer.vue';
|
|
133
|
+
export * from './src/j-workflow.vue';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface PaletteItem {
|
|
2
|
+
className: string;
|
|
3
|
+
type: string;
|
|
4
|
+
group: string;
|
|
5
|
+
title: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export type PaletteOptions = Record<string, PaletteItem>;
|
|
9
|
+
export interface WorkflowProps {
|
|
10
|
+
/** 配置 */
|
|
11
|
+
paletteOptions?: PaletteOptions;
|
|
12
|
+
/** 线条颜色 */
|
|
13
|
+
lineStroke?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import('vue').DefineComponent<WorkflowProps, {
|
|
16
|
+
reset: () => void;
|
|
17
|
+
zoom: (radio?: number) => void;
|
|
18
|
+
redo: () => void;
|
|
19
|
+
undo: () => void;
|
|
20
|
+
getData: () => Record<string, any>[];
|
|
21
|
+
setData: (data: Record<string, any>[]) => void;
|
|
22
|
+
updateElemet: (data: Record<string, any>) => void;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
elementDblclick: (ev: Record<string, any>) => any;
|
|
25
|
+
elementClick: (ev: Record<string, any>) => any;
|
|
26
|
+
elementCreate: (ev: Record<string, any>) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
28
|
+
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
29
|
+
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
30
|
+
onElementCreate?: ((ev: Record<string, any>) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
paletteOptions: PaletteOptions;
|
|
33
|
+
lineStroke: string;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
35
|
+
containerRef: HTMLDivElement;
|
|
36
|
+
}, HTMLDivElement>;
|
|
37
|
+
export default _default;
|