@ddd-tool/domain-designer-ui-component 0.1.0-beta.5 → 0.1.0-beta.7

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.
@@ -1,34 +1,11 @@
1
- declare const position: import("vue").Ref<{
2
- x: number;
3
- y: number;
4
- }, {
5
- x: number;
6
- y: number;
7
- } | {
8
- x: number;
9
- y: number;
10
- }>;
11
- declare const containerRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
12
- declare const cursor: import("vue").Ref<string, string>;
13
- declare const scale: import("vue").Ref<number, number>;
14
- declare const onMouseDown: (e: MouseEvent) => void;
15
- declare const onMouseMove: (e: MouseEvent) => void;
16
- declare const onMouseUp: (_: MouseEvent) => void;
17
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
1
+ declare function resetPosition(): void;
18
2
  declare var __VLS_1: {};
19
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
3
+ type __VLS_Slots = {} & {
20
4
  default?: (props: typeof __VLS_1) => any;
21
- }>;
22
- declare const __VLS_self: import("vue").DefineComponent<{}, {
23
- position: typeof position;
24
- containerRef: typeof containerRef;
25
- cursor: typeof cursor;
26
- scale: typeof scale;
27
- onMouseDown: typeof onMouseDown;
28
- onMouseMove: typeof onMouseMove;
29
- onMouseUp: typeof onMouseUp;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<{}, {
7
+ resetPosition: typeof resetPosition;
30
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
9
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
10
  export default _default;
34
11
  type __VLS_WithSlots<T, S> = T & {
@@ -0,0 +1 @@
1
+ export declare const EMPTY_STORY = "__Empty__";
@@ -1,2 +1,25 @@
1
- import type { DomainDesigner } from '@ddd-tool/domain-designer-core';
2
- export declare function nomnomlCodeGenerator<T extends DomainDesigner>(design: T, displayReadModel: boolean, displaySystem: boolean): Generator<string, void, unknown>;
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;
13
+ }): {
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
+ };
@@ -1,9 +1,9 @@
1
1
  import type { DomainDesigner } from '@ddd-tool/domain-designer-core';
2
+ export { EMPTY_STORY } from './define';
2
3
  interface FocusFlowFn {
3
4
  (workflow: undefined, userStory?: string): void;
4
5
  (workflow: string, userStory: string): void;
5
6
  }
6
- export declare const EMPTY_STORY = "__Empty__";
7
7
  export declare function useDiagramAgg(data?: Record<string, DomainDesigner>): Readonly<{
8
8
  states: Readonly<{
9
9
  design: Readonly<import("vue").Ref<{
@@ -185,12 +185,25 @@ export declare function useDiagramAgg(data?: Record<string, DomainDesigner>): Re
185
185
  currentDesignKey: Readonly<import("vue").Ref<string | undefined, string | undefined>>;
186
186
  currentNode: Readonly<import("vue").Ref<string | undefined, string | undefined>>;
187
187
  downloadEnabled: Readonly<import("vue").Ref<boolean, boolean>>;
188
- displayReadModel: Readonly<import("vue").Ref<boolean, boolean>>;
189
- displaySystem: Readonly<import("vue").Ref<boolean, boolean>>;
188
+ linkReadModel: Readonly<import("vue").Ref<boolean, boolean>>;
189
+ linkSystem: Readonly<import("vue").Ref<boolean, boolean>>;
190
190
  }>;
191
191
  commands: Readonly<{
192
192
  focusFlow: FocusFlowFn;
193
193
  downloadSvg: () => void;
194
+ filterContext: () => {
195
+ aggs: import("@ddd-tool/domain-designer-core").DomainDesignAgg<any>[];
196
+ commands: import("@ddd-tool/domain-designer-core").DomainDesignCommand<any>[];
197
+ facadeCommands: import("@ddd-tool/domain-designer-core").DomainDesignFacadeCommand<any>[];
198
+ events: import("@ddd-tool/domain-designer-core").DomainDesignEvent<any>[];
199
+ services: import("@ddd-tool/domain-designer-core").DomainDesignService[];
200
+ actors: import("@ddd-tool/domain-designer-core").DomainDesignActor[];
201
+ policies: import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
202
+ readModels: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
203
+ systems: import("@ddd-tool/domain-designer-core").DomainDesignSystem[];
204
+ links: Record<string, import("@ddd-tool/domain-designer-core/common").LinkType>;
205
+ getIdMap: () => Record<string, import("@ddd-tool/domain-designer-core").DomainDesignObject>;
206
+ };
194
207
  setDownloadEnabled: (b: boolean) => void;
195
208
  setWorkflowPlayInterval: (i: number) => void;
196
209
  setDisplayReadModel: (b: boolean) => void;
@@ -230,4 +243,3 @@ export declare function useDiagramAgg(data?: Record<string, DomainDesigner>): Re
230
243
  };
231
244
  }>;
232
245
  }>;
233
- export {};
@@ -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.replayWorkflow' | 'menu.focusOnUserStory' | 'menu.focusOnUserStory.focusNothing' | 'menu.focusOnUserStory.animationDuration' | 'menu.completenessAssist' | 'menu.settings' | 'menu.settings.renderExternalSystem' | 'menu.settings.renderReadModel' | 'menu.settings.language' | 'menu.settings.dataSource' | 'menu.help' | 'menu.help.zoom' | 'menu.help.zoom.content' | 'menu.help.drag' | 'menu.help.drag.content' | 'menu.exportSvg';
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.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
  };
package/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- .nomnoml[data-v-83e775ca] {
2
+ .nomnoml[data-v-ddc71b2c] {
3
3
  height: 100%;
4
4
  overflow: auto;
5
5
  }