@ddd-tool/domain-designer-ui-component 0.0.0-alpha.9 → 0.1.0-beta.1
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/README.md +1 -3
- package/UI.vue.d.ts +1 -1
- package/common.d.ts +2 -0
- package/components/drag-zoom/Index.vue.d.ts +33 -12
- package/components/node-info/Index.vue.d.ts +7 -0
- package/components/nomnoml/Index.vue.d.ts +1 -1
- package/domain/common.d.ts +7 -5
- package/domain/diagram-agg/index.d.ts +104 -361
- package/domain/i18n-agg/message.d.ts +1 -1
- package/index.css +1 -1
- package/index.d.ts +1 -1
- package/index.js +843 -17500
- package/package.json +13 -13
- package/ui.d.ts +5 -5
package/README.md
CHANGED
package/UI.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DomainDesigner } from '@ddd-tool/domain-designer-core';
|
|
2
2
|
export type NonEmptyObject<T extends object> = keyof T extends never ? never : T;
|
|
3
3
|
interface Props {
|
|
4
4
|
designs: NonEmptyObject<Record<string, DomainDesigner>>;
|
package/common.d.ts
ADDED
|
@@ -1,16 +1,37 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare const
|
|
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 () => {}>>;
|
|
18
|
+
declare var __VLS_1: {};
|
|
19
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
20
|
+
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;
|
|
30
|
+
}, {}, {}, {}, 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
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
33
|
export default _default;
|
|
13
|
-
type
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
35
|
new (): {
|
|
15
36
|
$slots: S;
|
|
16
37
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NodeLike } from '#lib/domain/common';
|
|
2
|
+
interface Props {
|
|
3
|
+
node: NodeLike;
|
|
4
|
+
element: HTMLElement;
|
|
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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
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
2
|
export default _default;
|
package/domain/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DomainDesignInfo, DomainDesignInfoType } from '@ddd-tool/domain-designer-core';
|
|
1
|
+
import type { DomainDesignNote, DomainDesignInfo, DomainDesignObject, DomainDesignInfoType } from '@ddd-tool/domain-designer-core';
|
|
2
2
|
export declare const RULES: readonly ["Command", "FacadeCommand", "Event", "Agg", "ReadModel"];
|
|
3
3
|
export type ClassNodeLike = {
|
|
4
4
|
_attributes: {
|
|
@@ -8,11 +8,13 @@ export type ClassNodeLike = {
|
|
|
8
8
|
inner: Record<string, DomainDesignInfo<DomainDesignInfoType, string>>;
|
|
9
9
|
};
|
|
10
10
|
export declare function isClassNodeLike(node: any): node is ClassNodeLike;
|
|
11
|
-
export
|
|
12
|
-
_attributes: {
|
|
11
|
+
export interface NodeLike extends DomainDesignObject {
|
|
12
|
+
readonly _attributes: {
|
|
13
13
|
__id: string;
|
|
14
|
-
rule:
|
|
14
|
+
rule: (typeof RULES)[number];
|
|
15
15
|
name: string;
|
|
16
|
+
note?: DomainDesignNote;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
inner?: Record<string, any>;
|
|
19
|
+
}
|
|
18
20
|
export declare function isNodeLike(node: any): node is NodeLike;
|