@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.
Files changed (55) hide show
  1. package/lib/cjs/index.cjs +1 -1
  2. package/lib/esm/index.js +1 -1
  3. package/lib/types/index.d.cts +4 -4
  4. package/lib/types/index.d.mts +4 -4
  5. package/lib/types/model/decorators.d.cts +1 -1
  6. package/lib/types/model/decorators.d.mts +1 -1
  7. package/lib/types/model/index.d.cts +3 -3
  8. package/lib/types/model/index.d.mts +3 -3
  9. package/lib/types/model/model.d.cts +2 -2
  10. package/lib/types/model/model.d.mts +2 -2
  11. package/lib/types/overrides/index.d.cts +1 -1
  12. package/lib/types/overrides/index.d.mts +1 -1
  13. package/lib/types/ui/DecafComponent.d.cts +3 -3
  14. package/lib/types/ui/DecafComponent.d.mts +3 -3
  15. package/lib/types/ui/DecafEventHandler.d.cts +1 -1
  16. package/lib/types/ui/DecafEventHandler.d.mts +1 -1
  17. package/lib/types/ui/Rendering.d.cts +1 -1
  18. package/lib/types/ui/Rendering.d.mts +1 -1
  19. package/lib/types/ui/UIValidator.d.cts +1 -1
  20. package/lib/types/ui/UIValidator.d.mts +1 -1
  21. package/lib/types/ui/decorators.d.cts +2 -2
  22. package/lib/types/ui/decorators.d.mts +2 -2
  23. package/lib/types/ui/index.d.cts +11 -11
  24. package/lib/types/ui/index.d.mts +11 -11
  25. package/lib/types/ui/interfaces.d.cts +1 -1
  26. package/lib/types/ui/interfaces.d.mts +1 -1
  27. package/lib/types/ui/types.d.cts +2 -2
  28. package/lib/types/ui/types.d.mts +2 -2
  29. package/lib/types/ui/utils.d.cts +1 -1
  30. package/lib/types/ui/utils.d.mts +1 -1
  31. package/lib/types/ui/validator.d.cts +1 -1
  32. package/lib/types/ui/validator.d.mts +1 -1
  33. package/package.json +1 -1
  34. package/lib/types/index.d.ts +0 -19
  35. package/lib/types/model/Renderable.d.ts +0 -18
  36. package/lib/types/model/decorators.d.ts +0 -318
  37. package/lib/types/model/index.d.ts +0 -4
  38. package/lib/types/model/model.d.ts +0 -31
  39. package/lib/types/model/overrides.d.ts +0 -9
  40. package/lib/types/overrides/ModelBuilderExtensions.d.ts +0 -16
  41. package/lib/types/overrides/index.d.ts +0 -6
  42. package/lib/types/ui/DecafComponent.d.ts +0 -293
  43. package/lib/types/ui/DecafEventHandler.d.ts +0 -43
  44. package/lib/types/ui/DecafTranslateService.d.ts +0 -5
  45. package/lib/types/ui/Rendering.d.ts +0 -202
  46. package/lib/types/ui/UIValidator.d.ts +0 -6
  47. package/lib/types/ui/constants.d.ts +0 -355
  48. package/lib/types/ui/decorators.d.ts +0 -482
  49. package/lib/types/ui/errors.d.ts +0 -32
  50. package/lib/types/ui/index.d.ts +0 -11
  51. package/lib/types/ui/interfaces.d.ts +0 -64
  52. package/lib/types/ui/overrides.d.ts +0 -1
  53. package/lib/types/ui/types.d.ts +0 -186
  54. package/lib/types/ui/utils.d.ts +0 -27
  55. 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.13.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.13.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
@@ -6,14 +6,14 @@
6
6
  * @module ui-decorators
7
7
  */
8
8
  import "./overrides";
9
- export * from "./overrides/index.cjs";
10
- export * from "./model/index.cjs";
11
- export * from "./ui/index.cjs";
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.13.0";
18
+ export declare const VERSION = "0.14.0";
19
19
  export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
@@ -6,14 +6,14 @@
6
6
  * @module ui-decorators
7
7
  */
8
8
  import "./overrides";
9
- export * from "./overrides/index.js";
10
- export * from "./model/index.js";
11
- export * from "./ui/index.js";
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.13.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.cjs";
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.js";
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.cjs";
3
- export * from "./overrides.cjs";
4
- export * from "./Renderable.cjs";
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.js";
3
- export * from "./overrides.js";
4
- export * from "./Renderable.js";
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.cjs";
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.cjs";
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.js";
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.js";
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
  /**
@@ -3,4 +3,4 @@
3
3
  * @module ui-decorators/overrides
4
4
  */
5
5
  import "../model/overrides";
6
- export * from "./ModelBuilderExtensions.cjs";
6
+ export * from "./ModelBuilderExtensions.d.cts";
@@ -3,4 +3,4 @@
3
3
  * @module ui-decorators/overrides
4
4
  */
5
5
  import "../model/overrides";
6
- export * from "./ModelBuilderExtensions.js";
6
+ export * from "./ModelBuilderExtensions.d.mts";
@@ -1,9 +1,9 @@
1
1
  import { LoggedClass } from "@decaf-ts/logging";
2
- import { CrudOperationKeys, UIEventProperty } from "./types.cjs";
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.cjs";
6
- import { DecafTranslateService } from "./DecafTranslateService.cjs";
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.js";
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.js";
6
- import { DecafTranslateService } from "./DecafTranslateService.js";
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.cjs";
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.js";
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,4 +1,4 @@
1
- import { FieldDefinition } from "./types.cjs";
1
+ import { FieldDefinition } from "./types.d.cts";
2
2
  import { Model, ValidationMetadata } from "@decaf-ts/decorator-validation";
3
3
  /**
4
4
  * @description Abstract class for rendering UI components based on model metadata.
@@ -1,4 +1,4 @@
1
- import { FieldDefinition } from "./types.js";
1
+ import { FieldDefinition } from "./types.d.mts";
2
2
  import { Model, ValidationMetadata } from "@decaf-ts/decorator-validation";
3
3
  /**
4
4
  * @description Abstract class for rendering UI components based on model metadata.
@@ -1,5 +1,5 @@
1
1
  import { Validator } from "@decaf-ts/decorator-validation";
2
- import { DecafTranslateService } from "./DecafTranslateService.cjs";
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.js";
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.cjs";
2
- import { CrudOperationKeys, UIEventName, UIFunctionLike, UILayoutCol } from "./types.cjs";
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.js";
2
- import { CrudOperationKeys, UIEventName, UIFunctionLike, UILayoutCol } from "./types.js";
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
@@ -1,11 +1,11 @@
1
- export * from "./constants.cjs";
2
- export * from "./decorators.cjs";
3
- export * from "./errors.cjs";
4
- export * from "./interfaces.cjs";
5
- export * from "./Rendering.cjs";
6
- export * from "./types.cjs";
7
- export * from "./utils.cjs";
8
- export * from "./UIValidator.cjs";
9
- export * from "./DecafComponent.cjs";
10
- export * from "./DecafEventHandler.cjs";
11
- export * from "./DecafTranslateService.cjs";
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";
@@ -1,11 +1,11 @@
1
- export * from "./constants.js";
2
- export * from "./decorators.js";
3
- export * from "./errors.js";
4
- export * from "./interfaces.js";
5
- export * from "./Rendering.js";
6
- export * from "./types.js";
7
- export * from "./utils.js";
8
- export * from "./UIValidator.js";
9
- export * from "./DecafComponent.js";
10
- export * from "./DecafEventHandler.js";
11
- export * from "./DecafTranslateService.js";
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.cjs";
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.js";
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
@@ -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.cjs";
11
- import { DecafEventHandler } from "./DecafEventHandler.cjs";
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
@@ -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.js";
11
- import { DecafEventHandler } from "./DecafEventHandler.js";
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
@@ -1,5 +1,5 @@
1
1
  import { Model } from "@decaf-ts/decorator-validation";
2
- import { FieldProperties, UIFunctionLike } from "./types.cjs";
2
+ import { FieldProperties, UIFunctionLike } from "./types.d.cts";
3
3
  import { Constructor } from "@decaf-ts/decoration";
4
4
  /**
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { Model } from "@decaf-ts/decorator-validation";
2
- import { FieldProperties, UIFunctionLike } from "./types.js";
2
+ import { FieldProperties, UIFunctionLike } from "./types.d.mts";
3
3
  import { Constructor } from "@decaf-ts/decoration";
4
4
  /**
5
5
  *
@@ -1,4 +1,4 @@
1
- import { DecafTranslateService } from "./DecafTranslateService.cjs";
1
+ import { DecafTranslateService } from "./DecafTranslateService.d.cts";
2
2
  declare module "@decaf-ts/decorator-validation" {
3
3
  interface BaseValidator {
4
4
  translateService: DecafTranslateService;
@@ -1,4 +1,4 @@
1
- import { DecafTranslateService } from "./DecafTranslateService.js";
1
+ import { DecafTranslateService } from "./DecafTranslateService.d.mts";
2
2
  declare module "@decaf-ts/decorator-validation" {
3
3
  interface BaseValidator {
4
4
  translateService: DecafTranslateService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/ui-decorators",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Extension of decorator validation to ui elements to allow for web integration",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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
- }