@ddd-tool/domain-designer-ui-component 0.1.0-beta.1 → 0.1.0-beta.10
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/components/drag-zoom/Index.vue.d.ts +5 -28
- package/components/nomnoml/base-style.d.ts +2 -0
- package/domain/diagram-agg/define.d.ts +20 -0
- package/domain/diagram-agg/gen-code.d.ts +25 -2
- package/domain/diagram-agg/index.d.ts +2091 -8
- package/domain/diagram-agg/plugins.d.ts +64 -0
- package/domain/i18n-agg/message.d.ts +1 -1
- package/domain/mount-plugin.d.ts +1 -0
- package/index.css +127 -1
- package/index.d.ts +1 -0
- package/index.js +26825 -2500
- package/package.json +17 -13
- package/components/nomnoml/style.d.ts +0 -2
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const DIAGRAM_STORAGE_PLUGIN: import("vue-fn/domain").DomainSetupPlugin<import("vue-fn/domain").DomainSingletonAgg<{
|
|
2
|
+
renderConfig: {
|
|
3
|
+
ranker: import("./define").Ranker;
|
|
4
|
+
padding: number;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
edges: import("./define").EdgeType;
|
|
7
|
+
bendSize: number;
|
|
8
|
+
};
|
|
9
|
+
design: import("vue").ComputedRef<import("@ddd-tool/domain-designer-core").DomainDesigner | undefined>;
|
|
10
|
+
designKeys: import("vue").ComputedRef<string[]>;
|
|
11
|
+
code: import("vue").ComputedRef<string>;
|
|
12
|
+
userStories: import("vue").ComputedRef<Record<string, string[]>>;
|
|
13
|
+
workflows: import("vue").ComputedRef<Record<string, string[]>>;
|
|
14
|
+
workflowPlayInterval: import("vue").Ref<number, number>;
|
|
15
|
+
currentWorkflow: import("vue").Ref<string | undefined, string | undefined>;
|
|
16
|
+
currentStory: import("vue").Ref<string, string>;
|
|
17
|
+
currentDesignKey: import("vue").Ref<string | undefined, string | undefined>;
|
|
18
|
+
currentNode: import("vue").Ref<string | undefined, string | undefined>;
|
|
19
|
+
downloadEnabled: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
linkReadModel: import("vue").Ref<boolean, boolean>;
|
|
21
|
+
linkSystem: import("vue").Ref<boolean, boolean>;
|
|
22
|
+
}, {
|
|
23
|
+
focusFlow: {
|
|
24
|
+
(workflow: undefined, userStory?: string): void;
|
|
25
|
+
(workflow: string, userStory: string): void;
|
|
26
|
+
};
|
|
27
|
+
downloadSvg(): void;
|
|
28
|
+
filterContext(): {
|
|
29
|
+
aggs: import("@ddd-tool/domain-designer-core").DomainDesignAgg<any>[];
|
|
30
|
+
commands: import("@ddd-tool/domain-designer-core").DomainDesignCommand<any>[];
|
|
31
|
+
facadeCommands: import("@ddd-tool/domain-designer-core").DomainDesignFacadeCommand<any>[];
|
|
32
|
+
events: import("@ddd-tool/domain-designer-core").DomainDesignEvent<any>[];
|
|
33
|
+
services: import("@ddd-tool/domain-designer-core").DomainDesignService[];
|
|
34
|
+
actors: import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
35
|
+
policies: import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
|
|
36
|
+
readModels: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
|
|
37
|
+
systems: import("@ddd-tool/domain-designer-core").DomainDesignSystem[];
|
|
38
|
+
links: Record<string, import("@ddd-tool/domain-designer-core/common").LinkType>;
|
|
39
|
+
getIdMap: () => Record<string, import("@ddd-tool/domain-designer-core").DomainDesignObject>;
|
|
40
|
+
};
|
|
41
|
+
setRenderRanker(v: import("./define").Ranker): void;
|
|
42
|
+
setRenderPadding(v: number): void;
|
|
43
|
+
setRenderFontSize(v: number): void;
|
|
44
|
+
setRenderBendSize(v: number): void;
|
|
45
|
+
setRenderEdgesType(v: import("./define").EdgeType): void;
|
|
46
|
+
setDownloadEnabled(b: boolean): void;
|
|
47
|
+
setWorkflowPlayInterval(i: number): void;
|
|
48
|
+
setDisplayReadModel(b: boolean): void;
|
|
49
|
+
setDisplaySystem(b: boolean): void;
|
|
50
|
+
setCurrentNode(id: string | undefined): void;
|
|
51
|
+
switchDesign(key: string): void;
|
|
52
|
+
getIdMap(): Record<string, import("@ddd-tool/domain-designer-core").DomainDesignObject>;
|
|
53
|
+
}, {
|
|
54
|
+
onFocusNode: import("vue-fn/domain").DomainBroadcastEvent<{
|
|
55
|
+
id: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
onFocusFlow: import("vue-fn/domain").DomainBroadcastEvent<{
|
|
58
|
+
userStory: string;
|
|
59
|
+
workflow: string | undefined;
|
|
60
|
+
displayReadModel: import("vue").Ref<boolean, boolean>;
|
|
61
|
+
displaySystem: import("vue").Ref<boolean, boolean>;
|
|
62
|
+
}>;
|
|
63
|
+
onDownloadSvg: import("vue-fn/domain").DomainBroadcastEvent<{}>;
|
|
64
|
+
}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type I18nMessageKeys = 'constant.type' | 'constant.type.id' | 'constant.type.document' | 'constant.type.function' | 'constant.type.valueObject' | 'constant.type.version' | 'constant.relatedTypes' | 'constant.note' | 'constant.empty' | 'constant.others' | 'menu.focusOnUserStory' | 'menu.focusOnUserStory.focusNothing' | 'menu.completenessAssist' | 'menu.settings' | 'menu.settings.
|
|
1
|
+
export type I18nMessageKeys = 'constant.type' | 'constant.type.id' | 'constant.type.document' | 'constant.type.function' | 'constant.type.valueObject' | 'constant.type.version' | 'constant.relatedTypes' | 'constant.note' | 'constant.empty' | 'constant.others' | 'menu.replayWorkflow' | 'menu.focusOnUserStory' | 'menu.focusOnUserStory.focusNothing' | 'menu.focusOnUserStory.animationDuration' | 'menu.completenessAssist' | 'menu.settings' | 'menu.settings.linkExternalSystem' | 'menu.settings.linkReadModel' | 'menu.settings.language' | 'menu.settings.dataSource' | 'menu.settings.render' | 'menu.settings.render.ranker' | 'menu.settings.render.ranker.NetworkSimplex.note' | 'menu.settings.render.ranker.TightTree.note' | 'menu.settings.render.ranker.LongestPath.note' | 'menu.settings.render.padding' | 'menu.settings.render.fontSize' | 'menu.settings.render.edgesType' | 'menu.settings.render.edgesType.rounded' | 'menu.settings.render.edgesType.hard' | 'menu.settings.render.bendSize' | 'menu.help' | 'menu.help.zoom' | 'menu.help.zoom.content' | 'menu.help.drag' | 'menu.help.drag.content' | 'menu.exportSvg' | 'menu.resetPosition';
|
|
2
2
|
export type I18nMessages = {
|
|
3
3
|
[key in I18nMessageKeys]: string;
|
|
4
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.css
CHANGED
|
@@ -1 +1,127 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
.nomnoml[data-v-f6a013a9] {
|
|
3
|
+
height: 100%;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.nomnoml text {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
@keyframes shining-info {
|
|
11
|
+
from {
|
|
12
|
+
stroke-width: 1px;
|
|
13
|
+
stroke-opacity: 0.2;
|
|
14
|
+
stroke: #000;
|
|
15
|
+
-webkit-text-stroke-color: #000;
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
stroke-width: 1px;
|
|
19
|
+
stroke-opacity: 0.8;
|
|
20
|
+
stroke: #000;
|
|
21
|
+
-webkit-text-stroke-color: #000;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@keyframes shining-node {
|
|
25
|
+
from {
|
|
26
|
+
stroke-opacity: 0.2;
|
|
27
|
+
stroke: #33322e;
|
|
28
|
+
-webkit-text-stroke-color: #33322e;
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
stroke-opacity: 1;
|
|
32
|
+
stroke: #33322e;
|
|
33
|
+
-webkit-text-stroke-color: #33322e;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.nomnoml .highlight-info:not(.active) text {
|
|
37
|
+
animation: shining-info 0.6s alternate infinite;
|
|
38
|
+
-webkit-animation: shining-info 0.6s alternate infinite;
|
|
39
|
+
-moz-animation: shining-info 0.6s alternate infinite;
|
|
40
|
+
}
|
|
41
|
+
.nomnoml .highlight-note:not(.active) {
|
|
42
|
+
animation: shining-info 0.6s alternate infinite;
|
|
43
|
+
-webkit-animation: shining-info 0.6s alternate infinite;
|
|
44
|
+
-moz-animation: shining-info 0.6s alternate infinite;
|
|
45
|
+
}
|
|
46
|
+
.nomnoml .highlight-node:not(.active) g:first-child {
|
|
47
|
+
animation: shining-node 0.6s alternate infinite;
|
|
48
|
+
-webkit-animation: shining-node 0.6s alternate infinite;
|
|
49
|
+
-moz-animation: shining-node 0.6s alternate infinite;
|
|
50
|
+
}
|
|
51
|
+
.nomnoml g[data-id].active text,
|
|
52
|
+
.nomnoml tspan[data-id].active {
|
|
53
|
+
stroke-width: 1px;
|
|
54
|
+
stroke-opacity: 0.8;
|
|
55
|
+
stroke: #000;
|
|
56
|
+
-webkit-text-stroke-color: #000;
|
|
57
|
+
}
|
|
58
|
+
.nomnoml g.node.active {
|
|
59
|
+
animation: shining-node 0.6s alternate infinite;
|
|
60
|
+
-webkit-animation: shining-node 0.6s alternate infinite;
|
|
61
|
+
-moz-animation: shining-node 0.6s alternate infinite;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.container {
|
|
65
|
+
width: 100vw;
|
|
66
|
+
height: 100vh;
|
|
67
|
+
background-color: #efefef;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
.draggable {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
user-select: none;
|
|
76
|
+
transform-origin: 0 0; /* 设置缩放原点为左上角 */
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.p-dock {
|
|
80
|
+
opacity: 0.4;
|
|
81
|
+
transition: 0.5s;
|
|
82
|
+
}
|
|
83
|
+
.p-dock:hover {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
.p-dock .p-dock-item:hover {
|
|
87
|
+
scale: 1.1;
|
|
88
|
+
}
|
|
89
|
+
.toolbar-drawer {
|
|
90
|
+
width: 40%;
|
|
91
|
+
}
|
|
92
|
+
.toolbar-drawer .datasource {
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
.toolbar-drawer .datasource .datasource-item {
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 20px 1fr;
|
|
98
|
+
grid-template-rows: 1fr;
|
|
99
|
+
margin: 5px 0;
|
|
100
|
+
line-height: 1.5rem;
|
|
101
|
+
font-size: 1rem;
|
|
102
|
+
border-radius: 5px;
|
|
103
|
+
}
|
|
104
|
+
.toolbar-drawer .datasource .datasource-item :hover {
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
background-image: linear-gradient(to bottom, white, rgb(228, 250, 255), white);
|
|
107
|
+
}
|
|
108
|
+
.toolbar-drawer .datasource .datasource-item label {
|
|
109
|
+
padding-left: 5px;
|
|
110
|
+
}
|
|
111
|
+
.root-fieldset {
|
|
112
|
+
opacity: 0.9;
|
|
113
|
+
white-space: pre-line;
|
|
114
|
+
position: absolute;
|
|
115
|
+
right: 4rem;
|
|
116
|
+
top: 0;
|
|
117
|
+
width: 30%;
|
|
118
|
+
}
|
|
119
|
+
.root-fieldset .note::before {
|
|
120
|
+
content: '';
|
|
121
|
+
display: inline-block;
|
|
122
|
+
height: 1rem;
|
|
123
|
+
width: 0.5rem;
|
|
124
|
+
border-radius: 0.25rem;
|
|
125
|
+
margin-right: 0.5rem;
|
|
126
|
+
background-color: #4441ff;
|
|
127
|
+
}
|