@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.
Files changed (59) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/dist/ui-decorators.cjs.map +1 -1
  3. package/dist/ui-decorators.js +1 -1
  4. package/dist/ui-decorators.js.map +1 -1
  5. package/lib/cjs/graph/constants.cjs +15 -0
  6. package/lib/cjs/graph/constants.cjs.map +1 -0
  7. package/lib/cjs/graph/decorators.cjs +51 -0
  8. package/lib/cjs/graph/decorators.cjs.map +1 -0
  9. package/lib/cjs/graph/index.cjs +24 -0
  10. package/lib/cjs/graph/index.cjs.map +1 -0
  11. package/lib/cjs/graph/overrides/Rendering.cjs +4 -0
  12. package/lib/cjs/graph/overrides/Rendering.cjs.map +1 -0
  13. package/lib/cjs/graph/overrides/index.cjs +20 -0
  14. package/lib/cjs/graph/overrides/index.cjs.map +1 -0
  15. package/lib/cjs/graph/overrides/overrides.cjs +12 -0
  16. package/lib/cjs/graph/overrides/overrides.cjs.map +1 -0
  17. package/lib/cjs/graph/reader.cjs +107 -0
  18. package/lib/cjs/graph/reader.cjs.map +1 -0
  19. package/lib/cjs/graph/types.cjs +7 -0
  20. package/lib/cjs/graph/types.cjs.map +1 -0
  21. package/lib/cjs/index.cjs +16 -2
  22. package/lib/cjs/index.cjs.map +1 -1
  23. package/lib/esm/graph/constants.js +13 -0
  24. package/lib/esm/graph/constants.js.map +1 -0
  25. package/lib/esm/graph/decorators.js +44 -0
  26. package/lib/esm/graph/decorators.js.map +1 -0
  27. package/lib/esm/graph/index.js +7 -0
  28. package/lib/esm/graph/index.js.map +1 -0
  29. package/lib/esm/graph/overrides/Rendering.js +2 -0
  30. package/lib/esm/graph/overrides/Rendering.js.map +1 -0
  31. package/lib/esm/graph/overrides/index.js +3 -0
  32. package/lib/esm/graph/overrides/index.js.map +1 -0
  33. package/lib/esm/graph/overrides/overrides.js +9 -0
  34. package/lib/esm/graph/overrides/overrides.js.map +1 -0
  35. package/lib/esm/graph/reader.js +99 -0
  36. package/lib/esm/graph/reader.js.map +1 -0
  37. package/lib/esm/graph/types.js +2 -0
  38. package/lib/esm/graph/types.js.map +1 -0
  39. package/lib/esm/index.js +15 -1
  40. package/lib/esm/index.js.map +1 -1
  41. package/lib/types/graph/constants.d.cts +74 -0
  42. package/lib/types/graph/constants.d.mts +74 -0
  43. package/lib/types/graph/decorators.d.cts +6 -0
  44. package/lib/types/graph/decorators.d.mts +6 -0
  45. package/lib/types/graph/index.d.cts +6 -0
  46. package/lib/types/graph/index.d.mts +6 -0
  47. package/lib/types/graph/overrides/Rendering.d.cts +5 -0
  48. package/lib/types/graph/overrides/Rendering.d.mts +5 -0
  49. package/lib/types/graph/overrides/index.d.cts +2 -0
  50. package/lib/types/graph/overrides/index.d.mts +2 -0
  51. package/lib/types/graph/overrides/overrides.d.cts +1 -0
  52. package/lib/types/graph/overrides/overrides.d.mts +1 -0
  53. package/lib/types/graph/reader.d.cts +11 -0
  54. package/lib/types/graph/reader.d.mts +11 -0
  55. package/lib/types/graph/types.d.cts +2 -0
  56. package/lib/types/graph/types.d.mts +2 -0
  57. package/lib/types/index.d.cts +15 -1
  58. package/lib/types/index.d.mts +15 -1
  59. 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 {};
@@ -0,0 +1,2 @@
1
+ export { PortDirection } from "./constants.d.cts";
2
+ export type { GraphConnectionRule, GraphNodeDefinition, GraphNodeKind, GraphNodeMetadata, GraphPortDefinition, GraphPortMetadata, } from "./constants.d.cts";
@@ -0,0 +1,2 @@
1
+ export { PortDirection } from "./constants.d.mts";
2
+ export type { GraphConnectionRule, GraphNodeDefinition, GraphNodeKind, GraphNodeMetadata, GraphPortDefinition, GraphPortMetadata, } from "./constants.d.mts";
@@ -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.14.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";
@@ -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.14.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.15.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
  }