@decaf-ts/ui-decorators 0.14.0 → 0.15.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/lib/cjs/index.cjs +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/types/index.d.cts +4 -4
- package/lib/types/index.d.mts +4 -4
- package/lib/types/model/decorators.d.cts +1 -1
- package/lib/types/model/decorators.d.mts +1 -1
- package/lib/types/model/index.d.cts +3 -3
- package/lib/types/model/index.d.mts +3 -3
- package/lib/types/model/model.d.cts +2 -2
- package/lib/types/model/model.d.mts +2 -2
- package/lib/types/overrides/index.d.cts +1 -1
- package/lib/types/overrides/index.d.mts +1 -1
- package/lib/types/ui/DecafComponent.d.cts +3 -3
- package/lib/types/ui/DecafComponent.d.mts +3 -3
- package/lib/types/ui/DecafEventHandler.d.cts +1 -1
- package/lib/types/ui/DecafEventHandler.d.mts +1 -1
- package/lib/types/ui/Rendering.d.cts +1 -1
- package/lib/types/ui/Rendering.d.mts +1 -1
- package/lib/types/ui/UIValidator.d.cts +1 -1
- package/lib/types/ui/UIValidator.d.mts +1 -1
- package/lib/types/ui/decorators.d.cts +2 -2
- package/lib/types/ui/decorators.d.mts +2 -2
- package/lib/types/ui/index.d.cts +11 -11
- package/lib/types/ui/index.d.mts +11 -11
- package/lib/types/ui/interfaces.d.cts +1 -1
- package/lib/types/ui/interfaces.d.mts +1 -1
- package/lib/types/ui/types.d.cts +2 -2
- package/lib/types/ui/types.d.mts +2 -2
- package/lib/types/ui/utils.d.cts +1 -1
- package/lib/types/ui/utils.d.mts +1 -1
- package/lib/types/ui/validator.d.cts +1 -1
- package/lib/types/ui/validator.d.mts +1 -1
- package/package.json +1 -1
- package/lib/types/index.d.ts +0 -19
- package/lib/types/model/Renderable.d.ts +0 -18
- package/lib/types/model/decorators.d.ts +0 -318
- package/lib/types/model/index.d.ts +0 -4
- package/lib/types/model/model.d.ts +0 -31
- package/lib/types/model/overrides.d.ts +0 -9
- package/lib/types/overrides/ModelBuilderExtensions.d.ts +0 -16
- package/lib/types/overrides/index.d.ts +0 -6
- package/lib/types/ui/DecafComponent.d.ts +0 -293
- package/lib/types/ui/DecafEventHandler.d.ts +0 -43
- package/lib/types/ui/DecafTranslateService.d.ts +0 -5
- package/lib/types/ui/Rendering.d.ts +0 -202
- package/lib/types/ui/UIValidator.d.ts +0 -6
- package/lib/types/ui/constants.d.ts +0 -355
- package/lib/types/ui/decorators.d.ts +0 -482
- package/lib/types/ui/errors.d.ts +0 -32
- package/lib/types/ui/index.d.ts +0 -11
- package/lib/types/ui/interfaces.d.ts +0 -64
- package/lib/types/ui/overrides.d.ts +0 -1
- package/lib/types/ui/types.d.ts +0 -186
- package/lib/types/ui/utils.d.ts +0 -27
- package/lib/types/ui/validator.d.ts +0 -9
package/lib/cjs/index.cjs
CHANGED
|
@@ -33,7 +33,7 @@ __exportStar(require("./ui/index.cjs"), exports);
|
|
|
33
33
|
* @const VERSION
|
|
34
34
|
* @memberOf module:ui-decorators
|
|
35
35
|
*/
|
|
36
|
-
exports.VERSION = "0.
|
|
36
|
+
exports.VERSION = "0.14.0";
|
|
37
37
|
exports.PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
|
38
38
|
decoration_1.Metadata.registerLibrary(exports.PACKAGE_NAME, exports.VERSION);
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export * from "./ui/index.js";
|
|
|
16
16
|
* @const VERSION
|
|
17
17
|
* @memberOf module:ui-decorators
|
|
18
18
|
*/
|
|
19
|
-
export const VERSION = "0.
|
|
19
|
+
export const VERSION = "0.14.0";
|
|
20
20
|
export const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
|
21
21
|
Metadata.registerLibrary(PACKAGE_NAME, VERSION);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/lib/types/index.d.cts
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module ui-decorators
|
|
7
7
|
*/
|
|
8
8
|
import "./overrides";
|
|
9
|
-
export * from "./overrides/index.
|
|
10
|
-
export * from "./model/index.
|
|
11
|
-
export * from "./ui/index.
|
|
9
|
+
export * from "./overrides/index.d.cts";
|
|
10
|
+
export * from "./model/index.d.cts";
|
|
11
|
+
export * from "./ui/index.d.cts";
|
|
12
12
|
/**
|
|
13
13
|
* @description Current package version string
|
|
14
14
|
* @summary Stores the current package version for reference
|
|
15
15
|
* @const VERSION
|
|
16
16
|
* @memberOf module:ui-decorators
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "0.
|
|
18
|
+
export declare const VERSION = "0.14.0";
|
|
19
19
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module ui-decorators
|
|
7
7
|
*/
|
|
8
8
|
import "./overrides";
|
|
9
|
-
export * from "./overrides/index.
|
|
10
|
-
export * from "./model/index.
|
|
11
|
-
export * from "./ui/index.
|
|
9
|
+
export * from "./overrides/index.d.mts";
|
|
10
|
+
export * from "./model/index.d.mts";
|
|
11
|
+
export * from "./ui/index.d.mts";
|
|
12
12
|
/**
|
|
13
13
|
* @description Current package version string
|
|
14
14
|
* @summary Stores the current package version for reference
|
|
15
15
|
* @const VERSION
|
|
16
16
|
* @memberOf module:ui-decorators
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "0.
|
|
18
|
+
export declare const VERSION = "0.14.0";
|
|
19
19
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPagedComponentProperties } from "../ui/interfaces.
|
|
1
|
+
import { IPagedComponentProperties } from "../ui/interfaces.d.cts";
|
|
2
2
|
/**
|
|
3
3
|
* @description Decorator that tags a class as a UI model
|
|
4
4
|
* @summary Adds rendering capabilities to a model class by providing a render method
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPagedComponentProperties } from "../ui/interfaces.
|
|
1
|
+
import { IPagedComponentProperties } from "../ui/interfaces.d.mts";
|
|
2
2
|
/**
|
|
3
3
|
* @description Decorator that tags a class as a UI model
|
|
4
4
|
* @summary Adds rendering capabilities to a model class by providing a render method
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./model";
|
|
2
|
-
export * from "./decorators.
|
|
3
|
-
export * from "./overrides.
|
|
4
|
-
export * from "./Renderable.
|
|
2
|
+
export * from "./decorators.d.cts";
|
|
3
|
+
export * from "./overrides.d.cts";
|
|
4
|
+
export * from "./Renderable.d.cts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./model";
|
|
2
|
-
export * from "./decorators.
|
|
3
|
-
export * from "./overrides.
|
|
4
|
-
export * from "./Renderable.
|
|
2
|
+
export * from "./decorators.d.mts";
|
|
3
|
+
export * from "./overrides.d.mts";
|
|
4
|
+
export * from "./Renderable.d.mts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Renderable } from "./Renderable.
|
|
1
|
+
import { Renderable } from "./Renderable.d.cts";
|
|
2
2
|
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { CrudOperationKeys, UIElementMetadata, UIHandlerMetadata, UILayoutMetadata, UIListModelMetadata, UIModelMetadata } from "../ui/index.
|
|
3
|
+
import { CrudOperationKeys, UIElementMetadata, UIHandlerMetadata, UILayoutMetadata, UIListModelMetadata, UIModelMetadata } from "../ui/index.d.cts";
|
|
4
4
|
declare module "@decaf-ts/decorator-validation" {
|
|
5
5
|
interface Model extends Renderable {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Renderable } from "./Renderable.
|
|
1
|
+
import { Renderable } from "./Renderable.d.mts";
|
|
2
2
|
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { CrudOperationKeys, UIElementMetadata, UIHandlerMetadata, UILayoutMetadata, UIListModelMetadata, UIModelMetadata } from "../ui/index.
|
|
3
|
+
import { CrudOperationKeys, UIElementMetadata, UIHandlerMetadata, UILayoutMetadata, UIListModelMetadata, UIModelMetadata } from "../ui/index.d.mts";
|
|
4
4
|
declare module "@decaf-ts/decorator-validation" {
|
|
5
5
|
interface Model extends Renderable {
|
|
6
6
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LoggedClass } from "@decaf-ts/logging";
|
|
2
|
-
import { CrudOperationKeys, UIEventProperty } from "./types.
|
|
2
|
+
import { CrudOperationKeys, UIEventProperty } from "./types.d.cts";
|
|
3
3
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
4
4
|
import { IRepository, OperationKeys } from "@decaf-ts/db-decorators";
|
|
5
|
-
import { DecafEventHandler } from "./DecafEventHandler.
|
|
6
|
-
import { DecafTranslateService } from "./DecafTranslateService.
|
|
5
|
+
import { DecafEventHandler } from "./DecafEventHandler.d.cts";
|
|
6
|
+
import { DecafTranslateService } from "./DecafTranslateService.d.cts";
|
|
7
7
|
type PrimaryKeyType = string | number | bigint;
|
|
8
8
|
/**
|
|
9
9
|
* @description Base class for all Decaf UI components
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LoggedClass } from "@decaf-ts/logging";
|
|
2
|
-
import { CrudOperationKeys, UIEventProperty } from "./types.
|
|
2
|
+
import { CrudOperationKeys, UIEventProperty } from "./types.d.mts";
|
|
3
3
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
4
4
|
import { IRepository, OperationKeys } from "@decaf-ts/db-decorators";
|
|
5
|
-
import { DecafEventHandler } from "./DecafEventHandler.
|
|
6
|
-
import { DecafTranslateService } from "./DecafTranslateService.
|
|
5
|
+
import { DecafEventHandler } from "./DecafEventHandler.d.mts";
|
|
6
|
+
import { DecafTranslateService } from "./DecafTranslateService.d.mts";
|
|
7
7
|
type PrimaryKeyType = string | number | bigint;
|
|
8
8
|
/**
|
|
9
9
|
* @description Base class for all Decaf UI components
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { DecafComponent } from "./DecafComponent.
|
|
2
|
+
import { DecafComponent } from "./DecafComponent.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Class representing an event handler
|
|
5
5
|
* @summary Defines the structure for handling events in the UI decorators system
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { DecafComponent } from "./DecafComponent.
|
|
2
|
+
import { DecafComponent } from "./DecafComponent.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Class representing an event handler
|
|
5
5
|
* @summary Defines the structure for handling events in the UI decorators system
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Validator } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { DecafTranslateService } from "./DecafTranslateService.
|
|
2
|
+
import { DecafTranslateService } from "./DecafTranslateService.d.cts";
|
|
3
3
|
export declare abstract class UIValidator extends Validator {
|
|
4
4
|
static translateService: DecafTranslateService;
|
|
5
5
|
getMessage(message: string, ...args: any[]): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Validator } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { DecafTranslateService } from "./DecafTranslateService.
|
|
2
|
+
import { DecafTranslateService } from "./DecafTranslateService.d.mts";
|
|
3
3
|
export declare abstract class UIValidator extends Validator {
|
|
4
4
|
static translateService: DecafTranslateService;
|
|
5
5
|
getMessage(message: string, ...args: any[]): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UIKeys } from "./constants.
|
|
2
|
-
import { CrudOperationKeys, UIEventName, UIFunctionLike, UILayoutCol } from "./types.
|
|
1
|
+
import { UIKeys } from "./constants.d.cts";
|
|
2
|
+
import { CrudOperationKeys, UIEventName, UIFunctionLike, UILayoutCol } from "./types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Decorator that hides a property during specific CRUD operations
|
|
5
5
|
* @summary Controls property visibility based on operation type
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UIKeys } from "./constants.
|
|
2
|
-
import { CrudOperationKeys, UIEventName, UIFunctionLike, UILayoutCol } from "./types.
|
|
1
|
+
import { UIKeys } from "./constants.d.mts";
|
|
2
|
+
import { CrudOperationKeys, UIEventName, UIFunctionLike, UILayoutCol } from "./types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Decorator that hides a property during specific CRUD operations
|
|
5
5
|
* @summary Controls property visibility based on operation type
|
package/lib/types/ui/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./constants.
|
|
2
|
-
export * from "./decorators.
|
|
3
|
-
export * from "./errors.
|
|
4
|
-
export * from "./interfaces.
|
|
5
|
-
export * from "./Rendering.
|
|
6
|
-
export * from "./types.
|
|
7
|
-
export * from "./utils.
|
|
8
|
-
export * from "./UIValidator.
|
|
9
|
-
export * from "./DecafComponent.
|
|
10
|
-
export * from "./DecafEventHandler.
|
|
11
|
-
export * from "./DecafTranslateService.
|
|
1
|
+
export * from "./constants.d.cts";
|
|
2
|
+
export * from "./decorators.d.cts";
|
|
3
|
+
export * from "./errors.d.cts";
|
|
4
|
+
export * from "./interfaces.d.cts";
|
|
5
|
+
export * from "./Rendering.d.cts";
|
|
6
|
+
export * from "./types.d.cts";
|
|
7
|
+
export * from "./utils.d.cts";
|
|
8
|
+
export * from "./UIValidator.d.cts";
|
|
9
|
+
export * from "./DecafComponent.d.cts";
|
|
10
|
+
export * from "./DecafEventHandler.d.cts";
|
|
11
|
+
export * from "./DecafTranslateService.d.cts";
|
package/lib/types/ui/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./constants.
|
|
2
|
-
export * from "./decorators.
|
|
3
|
-
export * from "./errors.
|
|
4
|
-
export * from "./interfaces.
|
|
5
|
-
export * from "./Rendering.
|
|
6
|
-
export * from "./types.
|
|
7
|
-
export * from "./utils.
|
|
8
|
-
export * from "./UIValidator.
|
|
9
|
-
export * from "./DecafComponent.
|
|
10
|
-
export * from "./DecafEventHandler.
|
|
11
|
-
export * from "./DecafTranslateService.
|
|
1
|
+
export * from "./constants.d.mts";
|
|
2
|
+
export * from "./decorators.d.mts";
|
|
3
|
+
export * from "./errors.d.mts";
|
|
4
|
+
export * from "./interfaces.d.mts";
|
|
5
|
+
export * from "./Rendering.d.mts";
|
|
6
|
+
export * from "./types.d.mts";
|
|
7
|
+
export * from "./utils.d.mts";
|
|
8
|
+
export * from "./UIValidator.d.mts";
|
|
9
|
+
export * from "./DecafComponent.d.mts";
|
|
10
|
+
export * from "./DecafEventHandler.d.mts";
|
|
11
|
+
export * from "./DecafTranslateService.d.mts";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ui/interfaces
|
|
7
7
|
* @memberOf module:ui-decorators
|
|
8
8
|
*/
|
|
9
|
-
import { FieldProperties } from "./types.
|
|
9
|
+
import { FieldProperties } from "./types.d.cts";
|
|
10
10
|
import { CrudOperations } from "@decaf-ts/db-decorators";
|
|
11
11
|
/**
|
|
12
12
|
* @description Form field interface with CRUD operation information
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ui/interfaces
|
|
7
7
|
* @memberOf module:ui-decorators
|
|
8
8
|
*/
|
|
9
|
-
import { FieldProperties } from "./types.
|
|
9
|
+
import { FieldProperties } from "./types.d.mts";
|
|
10
10
|
import { CrudOperations } from "@decaf-ts/db-decorators";
|
|
11
11
|
/**
|
|
12
12
|
* @description Form field interface with CRUD operation information
|
package/lib/types/ui/types.d.cts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @memberOf module:ui-decorators
|
|
8
8
|
*/
|
|
9
9
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
10
|
-
import { ElementSizes, UIKeys, UIMediaBreakPoints } from "./constants.
|
|
11
|
-
import { DecafEventHandler } from "./DecafEventHandler.
|
|
10
|
+
import { ElementSizes, UIKeys, UIMediaBreakPoints } from "./constants.d.cts";
|
|
11
|
+
import { DecafEventHandler } from "./DecafEventHandler.d.cts";
|
|
12
12
|
/**
|
|
13
13
|
* @description Interface for defining a UI field or component
|
|
14
14
|
* @summary Represents a renderable UI element with properties and children
|
package/lib/types/ui/types.d.mts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @memberOf module:ui-decorators
|
|
8
8
|
*/
|
|
9
9
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
10
|
-
import { ElementSizes, UIKeys, UIMediaBreakPoints } from "./constants.
|
|
11
|
-
import { DecafEventHandler } from "./DecafEventHandler.
|
|
10
|
+
import { ElementSizes, UIKeys, UIMediaBreakPoints } from "./constants.d.mts";
|
|
11
|
+
import { DecafEventHandler } from "./DecafEventHandler.d.mts";
|
|
12
12
|
/**
|
|
13
13
|
* @description Interface for defining a UI field or component
|
|
14
14
|
* @summary Represents a renderable UI element with properties and children
|
package/lib/types/ui/utils.d.cts
CHANGED
package/lib/types/ui/utils.d.mts
CHANGED
package/package.json
CHANGED
package/lib/types/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description UI decorators module for TypeScript applications
|
|
3
|
-
* @summary A collection of decorators and utilities for building UI components in TypeScript applications.
|
|
4
|
-
* This module exports functionality from both the model and UI submodules, providing decorators for
|
|
5
|
-
* rendering, component definition, and UI state management.
|
|
6
|
-
* @module ui-decorators
|
|
7
|
-
*/
|
|
8
|
-
import "./overrides";
|
|
9
|
-
export * from "./overrides";
|
|
10
|
-
export * from "./model";
|
|
11
|
-
export * from "./ui";
|
|
12
|
-
/**
|
|
13
|
-
* @description Current package version string
|
|
14
|
-
* @summary Stores the current package version for reference
|
|
15
|
-
* @const VERSION
|
|
16
|
-
* @memberOf module:ui-decorators
|
|
17
|
-
*/
|
|
18
|
-
export declare const VERSION = "0.13.0";
|
|
19
|
-
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Interface for objects that can be rendered
|
|
3
|
-
* @summary Defines the contract for objects that can be rendered to a specific output format
|
|
4
|
-
* This interface provides a generic render method that can transform the implementing object
|
|
5
|
-
* into any desired output format.
|
|
6
|
-
* @interface Renderable
|
|
7
|
-
* @memberOf module:ui-decorators/model
|
|
8
|
-
*/
|
|
9
|
-
export interface Renderable {
|
|
10
|
-
/**
|
|
11
|
-
* @description Renders the object to a specific output format
|
|
12
|
-
* @summary Transforms the object into the desired output representation
|
|
13
|
-
* @template R The return type of the render operation
|
|
14
|
-
* @param {any[]} args Additional arguments needed for rendering
|
|
15
|
-
* @return {R} The rendered output in the specified format
|
|
16
|
-
*/
|
|
17
|
-
render<R>(...args: any[]): R;
|
|
18
|
-
}
|