@decaf-ts/ui-decorators 0.17.10 → 0.18.0

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.
@@ -92,6 +92,15 @@ export type GraphPortMetadata = {
92
92
  * expansion (prefixed children).
93
93
  */
94
94
  schema?: boolean;
95
+ /**
96
+ * Explicit reference to the nested `Model` constructor for Schema port
97
+ * groups. When provided, the reader uses this directly instead of relying
98
+ * on TypeScript's `design:type` metadata (which bundlers like esbuild may
99
+ * tree-shake, replacing the class reference with `Object`).
100
+ *
101
+ * Set via `@input({ model: SomeSchema })` / `@output({ model: SomeSchema })`.
102
+ */
103
+ model?: unknown;
95
104
  };
96
105
  /**
97
106
  * Metadata for a Schema port group — the one-vs-all rendering choice for a
@@ -15,19 +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.17.9";
18
+ export declare const VERSION = "0.17.11";
19
19
  /**
20
20
  * @description Represents the current commit hash of the module build.
21
21
  * @summary Stores the current git commit hash for the package. The build replaces
22
22
  * the placeholder with the actual commit hash at publish time.
23
23
  * @const COMMIT
24
24
  */
25
- export declare const COMMIT = "091374c";
25
+ export declare const COMMIT = "bcc23e4";
26
26
  /**
27
27
  * @description Represents the full version string of the module.
28
28
  * @summary Stores the semver version and commit hash for the package.
29
29
  * The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
30
30
  * @const FULL_VERSION
31
31
  */
32
- export declare const FULL_VERSION = "0.17.9-091374c";
32
+ export declare const FULL_VERSION = "0.17.11-bcc23e4";
33
33
  export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
@@ -15,19 +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.17.9";
18
+ export declare const VERSION = "0.17.11";
19
19
  /**
20
20
  * @description Represents the current commit hash of the module build.
21
21
  * @summary Stores the current git commit hash for the package. The build replaces
22
22
  * the placeholder with the actual commit hash at publish time.
23
23
  * @const COMMIT
24
24
  */
25
- export declare const COMMIT = "091374c";
25
+ export declare const COMMIT = "bcc23e4";
26
26
  /**
27
27
  * @description Represents the full version string of the module.
28
28
  * @summary Stores the semver version and commit hash for the package.
29
29
  * The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
30
30
  * @const FULL_VERSION
31
31
  */
32
- export declare const FULL_VERSION = "0.17.9-091374c";
32
+ export declare const FULL_VERSION = "0.17.11-bcc23e4";
33
33
  export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
@@ -78,6 +78,9 @@ export declare const UIKeys: {
78
78
  TYPE: string;
79
79
  SUB_TYPE: string;
80
80
  HIDDEN: string;
81
+ HIDE_FOR: string;
82
+ SHOW_FOR: string;
83
+ RENDER_IF: string;
81
84
  FORMAT: string;
82
85
  ORDER: string;
83
86
  PAGE: string;
@@ -78,6 +78,9 @@ export declare const UIKeys: {
78
78
  TYPE: string;
79
79
  SUB_TYPE: string;
80
80
  HIDDEN: string;
81
+ HIDE_FOR: string;
82
+ SHOW_FOR: string;
83
+ RENDER_IF: string;
81
84
  FORMAT: string;
82
85
  ORDER: string;
83
86
  PAGE: string;
@@ -36,6 +36,21 @@ import { CrudOperationKeys, UIEventHandler, UIEventName, UIFunctionLike, UILayou
36
36
  * RenderingEngine->>UI: Render or hide based on current operation
37
37
  */
38
38
  export declare function hideOn(...operations: CrudOperationKeys[]): (object: any, propertyKey?: any) => any;
39
+ /**
40
+ * @description Decorator that hides a property for specific namespaces.
41
+ * @summary Controls property visibility based on namespace membership.
42
+ */
43
+ export declare function hideFor(...namespaces: string[]): (object: any, propertyKey?: any) => any;
44
+ /**
45
+ * @description Decorator that shows a property only for specific namespaces.
46
+ * @summary Namespace-aware counterpart to `hideFor`.
47
+ */
48
+ export declare function showFor(...namespaces: string[]): (object: any, propertyKey?: any) => any;
49
+ /**
50
+ * @description Decorator that renders a property only when the namespace matches.
51
+ * @summary Convenience alias for namespace-scoped visibility control.
52
+ */
53
+ export declare function renderIf(...namespaces: string[]): (object: any, propertyKey?: any) => any;
39
54
  /**
40
55
  * @description Decorator that sets the order of a UI element
41
56
  * @summary Specifies the rendering order for UI components
@@ -36,6 +36,21 @@ import { CrudOperationKeys, UIEventHandler, UIEventName, UIFunctionLike, UILayou
36
36
  * RenderingEngine->>UI: Render or hide based on current operation
37
37
  */
38
38
  export declare function hideOn(...operations: CrudOperationKeys[]): (object: any, propertyKey?: any) => any;
39
+ /**
40
+ * @description Decorator that hides a property for specific namespaces.
41
+ * @summary Controls property visibility based on namespace membership.
42
+ */
43
+ export declare function hideFor(...namespaces: string[]): (object: any, propertyKey?: any) => any;
44
+ /**
45
+ * @description Decorator that shows a property only for specific namespaces.
46
+ * @summary Namespace-aware counterpart to `hideFor`.
47
+ */
48
+ export declare function showFor(...namespaces: string[]): (object: any, propertyKey?: any) => any;
49
+ /**
50
+ * @description Decorator that renders a property only when the namespace matches.
51
+ * @summary Convenience alias for namespace-scoped visibility control.
52
+ */
53
+ export declare function renderIf(...namespaces: string[]): (object: any, propertyKey?: any) => any;
39
54
  /**
40
55
  * @description Decorator that sets the order of a UI element
41
56
  * @summary Specifies the rendering order for UI components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/ui-decorators",
3
- "version": "0.17.10",
3
+ "version": "0.18.0",
4
4
  "description": "Extension of decorator validation to ui elements to allow for web integration",
5
5
  "type": "module",
6
6
  "exports": {