@decaf-ts/ui-decorators 0.15.0 → 0.16.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/dist/ui-decorators.cjs +1 -1
- package/dist/ui-decorators.cjs.map +1 -1
- package/dist/ui-decorators.js +1 -1
- package/dist/ui-decorators.js.map +1 -1
- package/lib/cjs/graph/constants.cjs +15 -0
- package/lib/cjs/graph/constants.cjs.map +1 -0
- package/lib/cjs/graph/decorators.cjs +51 -0
- package/lib/cjs/graph/decorators.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +24 -0
- package/lib/cjs/graph/index.cjs.map +1 -0
- package/lib/cjs/graph/overrides/Rendering.cjs +4 -0
- package/lib/cjs/graph/overrides/Rendering.cjs.map +1 -0
- package/lib/cjs/graph/overrides/index.cjs +20 -0
- package/lib/cjs/graph/overrides/index.cjs.map +1 -0
- package/lib/cjs/graph/overrides/overrides.cjs +12 -0
- package/lib/cjs/graph/overrides/overrides.cjs.map +1 -0
- package/lib/cjs/graph/reader.cjs +107 -0
- package/lib/cjs/graph/reader.cjs.map +1 -0
- package/lib/cjs/graph/types.cjs +7 -0
- package/lib/cjs/graph/types.cjs.map +1 -0
- package/lib/cjs/index.cjs +16 -2
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/graph/constants.js +13 -0
- package/lib/esm/graph/constants.js.map +1 -0
- package/lib/esm/graph/decorators.js +44 -0
- package/lib/esm/graph/decorators.js.map +1 -0
- package/lib/esm/graph/index.js +7 -0
- package/lib/esm/graph/index.js.map +1 -0
- package/lib/esm/graph/overrides/Rendering.js +2 -0
- package/lib/esm/graph/overrides/Rendering.js.map +1 -0
- package/lib/esm/graph/overrides/index.js +3 -0
- package/lib/esm/graph/overrides/index.js.map +1 -0
- package/lib/esm/graph/overrides/overrides.js +9 -0
- package/lib/esm/graph/overrides/overrides.js.map +1 -0
- package/lib/esm/graph/reader.js +99 -0
- package/lib/esm/graph/reader.js.map +1 -0
- package/lib/esm/graph/types.js +2 -0
- package/lib/esm/graph/types.js.map +1 -0
- package/lib/esm/index.js +15 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/types/graph/constants.d.cts +74 -0
- package/lib/types/graph/constants.d.mts +74 -0
- package/lib/types/graph/decorators.d.cts +6 -0
- package/lib/types/graph/decorators.d.mts +6 -0
- package/lib/types/graph/index.d.cts +6 -0
- package/lib/types/graph/index.d.mts +6 -0
- package/lib/types/graph/overrides/Rendering.d.cts +5 -0
- package/lib/types/graph/overrides/Rendering.d.mts +5 -0
- package/lib/types/graph/overrides/index.d.cts +2 -0
- package/lib/types/graph/overrides/index.d.mts +2 -0
- package/lib/types/graph/overrides/overrides.d.cts +1 -0
- package/lib/types/graph/overrides/overrides.d.mts +1 -0
- package/lib/types/graph/reader.d.cts +11 -0
- package/lib/types/graph/reader.d.mts +11 -0
- package/lib/types/graph/types.d.cts +2 -0
- package/lib/types/graph/types.d.mts +2 -0
- package/lib/types/index.d.cts +15 -1
- package/lib/types/index.d.mts +15 -1
- package/package.json +16 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Rendering";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
+
import type { GraphNodeDefinition, GraphNodeMetadata, GraphPortDefinition, GraphPortMetadata } from "./constants.d.cts";
|
|
4
|
+
import "../model/overrides";
|
|
5
|
+
type GraphModelLike<M extends Model = Model> = Constructor<M> | M;
|
|
6
|
+
export declare function graphNodeMetadataOf<M extends Model>(model: GraphModelLike<M>): GraphNodeMetadata | undefined;
|
|
7
|
+
export declare function graphPortMetadataOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortMetadata | undefined;
|
|
8
|
+
export declare function graphPortDefinitionOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortDefinition | undefined;
|
|
9
|
+
export declare function graphPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
10
|
+
export declare function graphDefinitionOf<M extends Model>(model: GraphModelLike<M>): GraphNodeDefinition;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
+
import type { GraphNodeDefinition, GraphNodeMetadata, GraphPortDefinition, GraphPortMetadata } from "./constants.d.mts";
|
|
4
|
+
import "../model/overrides";
|
|
5
|
+
type GraphModelLike<M extends Model = Model> = Constructor<M> | M;
|
|
6
|
+
export declare function graphNodeMetadataOf<M extends Model>(model: GraphModelLike<M>): GraphNodeMetadata | undefined;
|
|
7
|
+
export declare function graphPortMetadataOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortMetadata | undefined;
|
|
8
|
+
export declare function graphPortDefinitionOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortDefinition | undefined;
|
|
9
|
+
export declare function graphPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
10
|
+
export declare function graphDefinitionOf<M extends Model>(model: GraphModelLike<M>): GraphNodeDefinition;
|
|
11
|
+
export {};
|
package/lib/types/index.d.cts
CHANGED
|
@@ -15,5 +15,19 @@ export * from "./ui/index.d.cts";
|
|
|
15
15
|
* @const VERSION
|
|
16
16
|
* @memberOf module:ui-decorators
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "0.
|
|
18
|
+
export declare const VERSION = "0.16.0";
|
|
19
|
+
/**
|
|
20
|
+
* @description Represents the current commit hash of the module build.
|
|
21
|
+
* @summary Stores the current git commit hash for the package. The build replaces
|
|
22
|
+
* the placeholder with the actual commit hash at publish time.
|
|
23
|
+
* @const COMMIT
|
|
24
|
+
*/
|
|
25
|
+
export declare const COMMIT = "1388a2e";
|
|
26
|
+
/**
|
|
27
|
+
* @description Represents the full version string of the module.
|
|
28
|
+
* @summary Stores the semver version and commit hash for the package.
|
|
29
|
+
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
30
|
+
* @const FULL_VERSION
|
|
31
|
+
*/
|
|
32
|
+
export declare const FULL_VERSION = "0.16.0-1388a2e";
|
|
19
33
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -15,5 +15,19 @@ export * from "./ui/index.d.mts";
|
|
|
15
15
|
* @const VERSION
|
|
16
16
|
* @memberOf module:ui-decorators
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "0.
|
|
18
|
+
export declare const VERSION = "0.16.0";
|
|
19
|
+
/**
|
|
20
|
+
* @description Represents the current commit hash of the module build.
|
|
21
|
+
* @summary Stores the current git commit hash for the package. The build replaces
|
|
22
|
+
* the placeholder with the actual commit hash at publish time.
|
|
23
|
+
* @const COMMIT
|
|
24
|
+
*/
|
|
25
|
+
export declare const COMMIT = "1388a2e";
|
|
26
|
+
/**
|
|
27
|
+
* @description Represents the full version string of the module.
|
|
28
|
+
* @summary Stores the semver version and commit hash for the package.
|
|
29
|
+
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
30
|
+
* @const FULL_VERSION
|
|
31
|
+
*/
|
|
32
|
+
export declare const FULL_VERSION = "0.16.0-1388a2e";
|
|
19
33
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/ui-decorators",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Extension of decorator validation to ui elements to allow for web integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -14,6 +14,17 @@
|
|
|
14
14
|
"default": "./lib/cjs/index.cjs"
|
|
15
15
|
},
|
|
16
16
|
"default": "./lib/esm/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./graph": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./lib/types/graph/index.d.mts",
|
|
21
|
+
"default": "./lib/esm/graph/index.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./lib/types/graph/index.d.cts",
|
|
25
|
+
"default": "./lib/cjs/graph/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"default": "./lib/esm/graph/index.js"
|
|
17
28
|
}
|
|
18
29
|
},
|
|
19
30
|
"types": "./lib/types/index.d.mts",
|
|
@@ -105,8 +116,12 @@
|
|
|
105
116
|
"module": "./lib/esm/index.js",
|
|
106
117
|
"sideEffects": [
|
|
107
118
|
"./lib/esm/overrides/index.js",
|
|
119
|
+
"./lib/esm/graph/overrides/index.js",
|
|
120
|
+
"./lib/esm/graph/overrides/overrides.js",
|
|
108
121
|
"./lib/esm/model/overrides.js",
|
|
109
122
|
"./lib/cjs/overrides/index.cjs",
|
|
123
|
+
"./lib/cjs/graph/overrides/index.cjs",
|
|
124
|
+
"./lib/cjs/graph/overrides/overrides.cjs",
|
|
110
125
|
"./lib/cjs/model/overrides.cjs"
|
|
111
126
|
]
|
|
112
127
|
}
|