@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.
- package/README.md +15 -1
- 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/reader.cjs +9 -0
- package/lib/cjs/graph/reader.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/ui/Rendering.cjs +36 -6
- package/lib/cjs/ui/Rendering.cjs.map +1 -1
- package/lib/cjs/ui/constants.cjs +3 -0
- package/lib/cjs/ui/constants.cjs.map +1 -1
- package/lib/cjs/ui/decorators.cjs +28 -0
- package/lib/cjs/ui/decorators.cjs.map +1 -1
- package/lib/esm/graph/constants.js.map +1 -1
- package/lib/esm/graph/reader.js +9 -0
- package/lib/esm/graph/reader.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/ui/Rendering.js +36 -6
- package/lib/esm/ui/Rendering.js.map +1 -1
- package/lib/esm/ui/constants.js +3 -0
- package/lib/esm/ui/constants.js.map +1 -1
- package/lib/esm/ui/decorators.js +25 -0
- package/lib/esm/ui/decorators.js.map +1 -1
- package/lib/types/graph/constants.d.cts +9 -0
- package/lib/types/graph/constants.d.mts +9 -0
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/lib/types/ui/constants.d.cts +3 -0
- package/lib/types/ui/constants.d.mts +3 -0
- package/lib/types/ui/decorators.d.cts +15 -0
- package/lib/types/ui/decorators.d.mts +15 -0
- package/package.json +1 -1
|
@@ -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
|
package/lib/types/index.d.cts
CHANGED
|
@@ -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.
|
|
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 = "
|
|
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.
|
|
32
|
+
export declare const FULL_VERSION = "0.17.11-bcc23e4";
|
|
33
33
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -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.
|
|
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 = "
|
|
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.
|
|
32
|
+
export declare const FULL_VERSION = "0.17.11-bcc23e4";
|
|
33
33
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
|
@@ -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
|