@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 CHANGED
@@ -1,7 +1,29 @@
1
- import { type DomainDesigner } from '@ddd-tool/domain-designer-core';
2
- export type NonEmptyObject<T extends object> = keyof T extends never ? never : T;
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
- designs: NonEmptyObject<Record<string, DomainDesigner>>;
4
+ designs: NonEmptyObject<Record<string, DomainDesigner>>
5
5
  }
6
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
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(): 'Windows Phone' | 'Windows' | 'Android' | 'Linux' | 'iOS' | 'MacOS' | 'Unknown OS';
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
- default?: (props: typeof __VLS_1) => any;
5
- };
6
- declare const __VLS_component: import("vue").DefineComponent<{}, {
7
- resetPosition: typeof resetPosition;
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
- export default _default;
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
- new (): {
13
- $slots: S;
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
- node: NodeLike;
4
- element: HTMLElement;
3
+ node: NodeLike
4
+ element: HTMLElement
5
5
  }
6
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
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 _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
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/define';
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(diagramAgg: ReturnType<typeof useDiagramAgg>, domStr: string): HTMLElement;
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
@@ -1,20 +1,27 @@
1
- import type { DomainDesignNote, DomainDesignInfo, DomainDesignObject, DomainDesignInfoType } from '@ddd-tool/domain-designer-core';
2
- export declare const RULES: readonly ["Command", "FacadeCommand", "Event", "Agg", "ReadModel"];
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
- _attributes: {
5
- __id: string;
6
- rule: (typeof RULES)[number];
7
- };
8
- inner: Record<string, DomainDesignInfo<DomainDesignInfoType, string>>;
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
- readonly _attributes: {
13
- __id: string;
14
- rule: (typeof RULES)[number];
15
- name: string;
16
- note?: DomainDesignNote;
17
- };
18
- inner?: Record<string, any>;
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 { DomainDesignAgg, DomainDesigner } from '@ddd-tool/domain-designer-core';
2
- export declare function nomnomlCodeGenerator<T extends DomainDesigner>(params: {
3
- design: T;
4
- currentStory: string;
5
- displayReadModel: boolean;
6
- displaySystem: boolean;
7
- }): Generator<string, void, unknown>;
8
- export declare function filterContext(params: {
9
- design: DomainDesigner;
10
- currentStory: string;
11
- displayReadModel: boolean;
12
- displaySystem: boolean;
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
- aggs: DomainDesignAgg<any>[];
15
- commands: import("@ddd-tool/domain-designer-core").DomainDesignCommand<any>[];
16
- facadeCommands: import("@ddd-tool/domain-designer-core").DomainDesignFacadeCommand<any>[];
17
- events: import("@ddd-tool/domain-designer-core").DomainDesignEvent<any>[];
18
- services: import("@ddd-tool/domain-designer-core").DomainDesignService[];
19
- actors: import("@ddd-tool/domain-designer-core").DomainDesignActor[];
20
- policies: import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
21
- readModels: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
22
- systems: import("@ddd-tool/domain-designer-core").DomainDesignSystem[];
23
- links: Record<string, import("@ddd-tool/domain-designer-core/common").LinkType>;
24
- getIdMap: () => Record<string, import("@ddd-tool/domain-designer-core").DomainDesignObject>;
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
+ }