@dforge-core/diagram 0.0.2 → 0.0.3
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.
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
col('last_name', 'Last Name'),
|
|
43
43
|
col('email', 'Email', { fieldTypeCd: 'email' }),
|
|
44
44
|
col('company_id', 'Company', {
|
|
45
|
-
columnType: 'R', fieldTypeCd: '
|
|
45
|
+
columnType: 'R', fieldTypeCd: 'lookup', baseDatatypeCd: 'number',
|
|
46
46
|
refEntityId: COMPANY_ID, isNullable: true,
|
|
47
47
|
}),
|
|
48
48
|
];
|
package/dist/model-types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseDatatypeCd, ColumnTypeCd, FieldTypeCd } from '@dforge-core/metadata';
|
|
1
2
|
export interface ModelGetResponse {
|
|
2
3
|
modules: ModelModule[];
|
|
3
4
|
}
|
|
@@ -38,11 +39,11 @@ export interface ModelConstraint {
|
|
|
38
39
|
export interface ModelColumn {
|
|
39
40
|
columnCd: string;
|
|
40
41
|
description?: string;
|
|
41
|
-
columnType?:
|
|
42
|
+
columnType?: ColumnTypeCd;
|
|
42
43
|
isPk: boolean;
|
|
43
44
|
isNullable?: boolean;
|
|
44
|
-
fieldTypeCd?:
|
|
45
|
-
baseDatatypeCd:
|
|
45
|
+
fieldTypeCd?: FieldTypeCd;
|
|
46
|
+
baseDatatypeCd: BaseDatatypeCd;
|
|
46
47
|
maxLen?: number;
|
|
47
48
|
precision?: number;
|
|
48
49
|
flags?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-types.d.ts","sourceRoot":"","sources":["../src/lib/model-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-types.d.ts","sourceRoot":"","sources":["../src/lib/model-types.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM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,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/model-types.js
CHANGED
|
@@ -11,4 +11,9 @@
|
|
|
11
11
|
// caught at type-check time by the compat guard at
|
|
12
12
|
// `clients/apps/dforge/src/lib/type-tests/diagram-sdk-compat.ts`
|
|
13
13
|
// (runs via the root `pnpm check`).
|
|
14
|
+
//
|
|
15
|
+
// The scalar code fields (`columnType`, `fieldTypeCd`, `baseDatatypeCd`) are
|
|
16
|
+
// the canonical enums from `@dforge-core/metadata` — the same source the SDK
|
|
17
|
+
// uses — so both sides of the compat guard reference one definition. The import
|
|
18
|
+
// is type-only and erased at build, so the package ships no runtime dependency.
|
|
14
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
"name": "@dforge-core/diagram",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Entity-relationship and workspace diagram components for dForge models. Standalone Svelte 5 library with no dForge runtime dependencies.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "dForge",
|
|
7
|
+
"homepage": "https://github.com/iash44/dForge-core/tree/main/clients/packages/diagram#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/iash44/dForge-core.git",
|
|
11
|
+
"directory": "clients/packages/diagram"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/iash44/dForge-core/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"svelte",
|
|
18
|
+
"diagram",
|
|
19
|
+
"erd",
|
|
20
|
+
"entity-relationship",
|
|
21
|
+
"dforge",
|
|
22
|
+
"visualization"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"svelte": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"source": "./src/lib/index.ts",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"svelte": "./dist/index.js",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist"
|
|
40
|
+
],
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@dforge-core/metadata": "0.0.2"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"svelte": "^5.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@sveltejs/package": "^2.5.7",
|
|
49
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
50
|
+
"svelte": "^5.55.10",
|
|
51
|
+
"typescript": "^6.0.2"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "svelte-package",
|
|
55
|
+
"dev": "svelte-package --watch",
|
|
56
|
+
"package": "pnpm pack"
|
|
57
|
+
}
|
|
58
|
+
}
|