@ddd-tool/domain-designer-ui-component 0.1.0-beta.9 → 0.3.0
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/UI.vue.d.ts +27 -5
- package/common.d.ts +9 -2
- package/components/drag-zoom/Index.vue.d.ts +35 -13
- package/components/node-info/Index.vue.d.ts +27 -5
- package/components/nomnoml/Index.vue.d.ts +24 -2
- package/components/nomnoml/base-style.d.ts +2 -2
- package/components/nomnoml/preprocess.d.ts +5 -2
- package/components/story-bar/Index.vue.d.ts +28 -0
- package/components/tool-bar/Index.vue.d.ts +29 -0
- package/domain/common.d.ts +24 -17
- package/domain/diagram-agg/gen-code.d.ts +63 -24
- package/domain/diagram-agg/index.d.ts +8525 -2287
- package/domain/diagram-agg/plugins.d.ts +80 -64
- package/domain/diagram-agg/types.d.ts +20 -0
- package/domain/i18n-agg/index.d.ts +24 -20
- package/domain/i18n-agg/locale/en-US.d.ts +3 -3
- package/domain/i18n-agg/locale/zh-CN.d.ts +3 -3
- package/domain/i18n-agg/message.d.ts +41 -3
- package/domain/mount-plugin.d.ts +1 -1
- package/index.css +95 -78
- package/index.d.ts +6 -6
- package/index.js +18913 -25971
- package/package.json +12 -22
- package/ui.d.ts +7 -7
- package/domain/diagram-agg/define.d.ts +0 -20
package/UI.vue.d.ts
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
import { type DomainDesigner } from '@ddd-tool/domain-designer-core'
|
|
2
|
-
|
|
1
|
+
import { type DomainDesigner } from '@ddd-tool/domain-designer-core'
|
|
2
|
+
type NonEmptyObject<T extends object> = keyof T extends never ? never : T
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
4
|
+
designs: NonEmptyObject<Record<string, DomainDesigner>>
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<
|
|
7
|
+
Props,
|
|
8
|
+
{},
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
{},
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
{},
|
|
15
|
+
string,
|
|
16
|
+
import('vue').PublicProps,
|
|
17
|
+
Readonly<Props> & Readonly<{}>,
|
|
18
|
+
{},
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string,
|
|
23
|
+
import('vue').ComponentProvideOptions,
|
|
24
|
+
false,
|
|
25
|
+
{},
|
|
26
|
+
any
|
|
27
|
+
>
|
|
28
|
+
declare const _default: typeof __VLS_export
|
|
29
|
+
export default _default
|
package/common.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
export declare function throttle<T extends (...args: any[]) => any>(func: T, wait: number): T
|
|
2
|
-
export declare function getOSType():
|
|
1
|
+
export declare function throttle<T extends (...args: any[]) => any>(func: T, wait: number): T
|
|
2
|
+
export declare function getOSType():
|
|
3
|
+
| 'Windows Phone'
|
|
4
|
+
| 'Windows'
|
|
5
|
+
| 'Android'
|
|
6
|
+
| 'Linux'
|
|
7
|
+
| 'iOS'
|
|
8
|
+
| 'MacOS'
|
|
9
|
+
| 'Unknown OS'
|
|
@@ -1,15 +1,37 @@
|
|
|
1
|
-
declare function resetPosition(): void
|
|
2
|
-
declare var __VLS_1: {}
|
|
1
|
+
declare function resetPosition(): void
|
|
2
|
+
declare var __VLS_1: {}
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
default?: (props: typeof __VLS_1) => any
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<
|
|
7
|
+
{},
|
|
8
|
+
{
|
|
9
|
+
resetPosition: typeof resetPosition
|
|
10
|
+
},
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
{},
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
import('vue').ComponentOptionsMixin,
|
|
16
|
+
{},
|
|
17
|
+
string,
|
|
18
|
+
import('vue').PublicProps,
|
|
19
|
+
Readonly<{}> & Readonly<{}>,
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
{},
|
|
23
|
+
{},
|
|
24
|
+
string,
|
|
25
|
+
import('vue').ComponentProvideOptions,
|
|
26
|
+
true,
|
|
27
|
+
{},
|
|
28
|
+
any
|
|
29
|
+
>
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>
|
|
31
|
+
declare const _default: typeof __VLS_export
|
|
32
|
+
export default _default
|
|
11
33
|
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
import type { NodeLike } from '#lib/domain/common'
|
|
1
|
+
import type { NodeLike } from '#lib/domain/common'
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
node: NodeLike
|
|
4
|
+
element: HTMLElement
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<
|
|
7
|
+
Props,
|
|
8
|
+
{},
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
{},
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
{},
|
|
15
|
+
string,
|
|
16
|
+
import('vue').PublicProps,
|
|
17
|
+
Readonly<Props> & Readonly<{}>,
|
|
18
|
+
{},
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string,
|
|
23
|
+
import('vue').ComponentProvideOptions,
|
|
24
|
+
false,
|
|
25
|
+
{},
|
|
26
|
+
any
|
|
27
|
+
>
|
|
28
|
+
declare const _default: typeof __VLS_export
|
|
29
|
+
export default _default
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<
|
|
2
|
+
{},
|
|
3
|
+
{},
|
|
4
|
+
{},
|
|
5
|
+
{},
|
|
6
|
+
{},
|
|
7
|
+
import('vue').ComponentOptionsMixin,
|
|
8
|
+
import('vue').ComponentOptionsMixin,
|
|
9
|
+
{},
|
|
10
|
+
string,
|
|
11
|
+
import('vue').PublicProps,
|
|
12
|
+
Readonly<{}> & Readonly<{}>,
|
|
13
|
+
{},
|
|
14
|
+
{},
|
|
15
|
+
{},
|
|
16
|
+
{},
|
|
17
|
+
string,
|
|
18
|
+
import('vue').ComponentProvideOptions,
|
|
19
|
+
true,
|
|
20
|
+
{},
|
|
21
|
+
any
|
|
22
|
+
>
|
|
23
|
+
declare const _default: typeof __VLS_export
|
|
24
|
+
export default _default
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RenderConfig } from '#lib/domain/diagram-agg/
|
|
2
|
-
export default function (config: RenderConfig): string
|
|
1
|
+
import type { RenderConfig } from '#lib/domain/diagram-agg/types'
|
|
2
|
+
export default function (config: RenderConfig): string
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { useDiagramAgg } from '#lib/domain/diagram-agg'
|
|
2
|
-
export declare function preprocessSvg(
|
|
1
|
+
import { useDiagramAgg } from '#lib/domain/diagram-agg'
|
|
2
|
+
export declare function preprocessSvg(
|
|
3
|
+
diagramAgg: ReturnType<typeof useDiagramAgg>,
|
|
4
|
+
domStr: string,
|
|
5
|
+
): HTMLElement
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import DragZoom from '#lib/components/drag-zoom/Index.vue'
|
|
2
|
+
interface Props {
|
|
3
|
+
dragZoomRef: InstanceType<typeof DragZoom> | undefined
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<
|
|
6
|
+
Props,
|
|
7
|
+
{},
|
|
8
|
+
{},
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
import('vue').ComponentOptionsMixin,
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
{},
|
|
14
|
+
string,
|
|
15
|
+
import('vue').PublicProps,
|
|
16
|
+
Readonly<Props> & Readonly<{}>,
|
|
17
|
+
{},
|
|
18
|
+
{},
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
string,
|
|
22
|
+
import('vue').ComponentProvideOptions,
|
|
23
|
+
false,
|
|
24
|
+
{},
|
|
25
|
+
any
|
|
26
|
+
>
|
|
27
|
+
declare const _default: typeof __VLS_export
|
|
28
|
+
export default _default
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type DomainDesigner } from '@ddd-tool/domain-designer-core'
|
|
2
|
+
type NonEmptyObject<T extends object> = keyof T extends never ? never : T
|
|
3
|
+
interface Props {
|
|
4
|
+
designs: NonEmptyObject<Record<string, DomainDesigner>>
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<
|
|
7
|
+
Props,
|
|
8
|
+
{},
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
{},
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
{},
|
|
15
|
+
string,
|
|
16
|
+
import('vue').PublicProps,
|
|
17
|
+
Readonly<Props> & Readonly<{}>,
|
|
18
|
+
{},
|
|
19
|
+
{},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string,
|
|
23
|
+
import('vue').ComponentProvideOptions,
|
|
24
|
+
false,
|
|
25
|
+
{},
|
|
26
|
+
any
|
|
27
|
+
>
|
|
28
|
+
declare const _default: typeof __VLS_export
|
|
29
|
+
export default _default
|
package/domain/common.d.ts
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
type DomainDesignNote,
|
|
3
|
+
type DomainDesignInfo,
|
|
4
|
+
type DomainDesignObject,
|
|
5
|
+
type DomainDesignInfoType,
|
|
6
|
+
} from '@ddd-tool/domain-designer-core'
|
|
7
|
+
export declare const Rules: readonly ['Command', 'FacadeCommand', 'Event', 'Agg', 'ReadModel']
|
|
8
|
+
type Rules = (typeof Rules)[number]
|
|
3
9
|
export type ClassNodeLike = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export declare function isClassNodeLike(node: any): node is ClassNodeLike
|
|
10
|
+
_attributes: {
|
|
11
|
+
__id: string
|
|
12
|
+
rule: Rules
|
|
13
|
+
}
|
|
14
|
+
inner: Record<string, DomainDesignInfo<DomainDesignInfoType, string>>
|
|
15
|
+
}
|
|
16
|
+
export declare function isClassNodeLike(node: any): node is ClassNodeLike
|
|
11
17
|
export interface NodeLike extends DomainDesignObject {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
readonly _attributes: {
|
|
19
|
+
__id: string
|
|
20
|
+
rule: Rules
|
|
21
|
+
name: string
|
|
22
|
+
note?: DomainDesignNote
|
|
23
|
+
}
|
|
24
|
+
inner?: Record<string, any>
|
|
19
25
|
}
|
|
20
|
-
export declare function isNodeLike(node: any): node is NodeLike
|
|
26
|
+
export declare function isNodeLike(node: any): node is NodeLike
|
|
27
|
+
export {}
|
|
@@ -1,25 +1,64 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import type {
|
|
2
|
+
DomainDesigner,
|
|
3
|
+
DomainDesignCommand,
|
|
4
|
+
DomainDesignSystem,
|
|
5
|
+
DomainDesignFacadeCommand,
|
|
6
|
+
DomainDesignAgg,
|
|
7
|
+
DomainDesignEvent,
|
|
8
|
+
DomainDesignService,
|
|
9
|
+
DomainDesignActor,
|
|
10
|
+
DomainDesignPolicy,
|
|
11
|
+
DomainDesignReadModel,
|
|
12
|
+
} from '@ddd-tool/domain-designer-core'
|
|
13
|
+
import type { LinkType } from '@ddd-tool/domain-designer-core/common'
|
|
14
|
+
export type FilterMode =
|
|
15
|
+
| {
|
|
16
|
+
mode: 'story'
|
|
17
|
+
currentStory: string
|
|
18
|
+
}
|
|
19
|
+
| {
|
|
20
|
+
mode: 'workflows'
|
|
21
|
+
customWorkflowNames: string[]
|
|
22
|
+
}
|
|
23
|
+
export declare function nomnomlCodeGenerator(params: {
|
|
24
|
+
design: DomainDesigner
|
|
25
|
+
filter: FilterMode
|
|
26
|
+
linkReadModel: boolean
|
|
27
|
+
linkSystem: boolean
|
|
28
|
+
}): Generator<string, void, unknown>
|
|
29
|
+
export declare function filterContextByStory(params: {
|
|
30
|
+
design: DomainDesigner
|
|
31
|
+
currentStory: string
|
|
32
|
+
displayReadModel: boolean
|
|
33
|
+
displaySystem: boolean
|
|
13
34
|
}): {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
35
|
+
aggs: DomainDesignAgg<any>[]
|
|
36
|
+
commands: DomainDesignCommand<any>[]
|
|
37
|
+
facadeCommands: DomainDesignFacadeCommand<any>[]
|
|
38
|
+
events: DomainDesignEvent<any>[]
|
|
39
|
+
services: DomainDesignService[]
|
|
40
|
+
actors: DomainDesignActor[]
|
|
41
|
+
policies: DomainDesignPolicy[]
|
|
42
|
+
readModels: DomainDesignReadModel<any>[]
|
|
43
|
+
systems: DomainDesignSystem[]
|
|
44
|
+
links: Record<string, LinkType>
|
|
45
|
+
getIdMap: () => Record<string, import('@ddd-tool/domain-designer-core').DomainDesignObject>
|
|
46
|
+
}
|
|
47
|
+
export declare function filterContextByWorkflows(params: {
|
|
48
|
+
design: DomainDesigner
|
|
49
|
+
workflowNames: string[]
|
|
50
|
+
displayReadModel: boolean
|
|
51
|
+
displaySystem: boolean
|
|
52
|
+
}): {
|
|
53
|
+
aggs: DomainDesignAgg<any>[]
|
|
54
|
+
commands: DomainDesignCommand<any>[]
|
|
55
|
+
facadeCommands: DomainDesignFacadeCommand<any>[]
|
|
56
|
+
events: DomainDesignEvent<any>[]
|
|
57
|
+
services: DomainDesignService[]
|
|
58
|
+
actors: DomainDesignActor[]
|
|
59
|
+
policies: DomainDesignPolicy[]
|
|
60
|
+
readModels: DomainDesignReadModel<any>[]
|
|
61
|
+
systems: DomainDesignSystem[]
|
|
62
|
+
links: Record<string, LinkType>
|
|
63
|
+
getIdMap: () => Record<string, import('@ddd-tool/domain-designer-core').DomainDesignObject>
|
|
64
|
+
}
|