@decaf-ts/ui-decorators 0.5.32 → 0.6.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 (61) 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/esm/index.d.ts +1 -1
  6. package/lib/esm/index.js +1 -1
  7. package/lib/esm/model/decorators.d.ts +1 -1
  8. package/lib/esm/model/decorators.js +15 -17
  9. package/lib/esm/model/decorators.js.map +1 -1
  10. package/lib/esm/model/model.d.ts +17 -0
  11. package/lib/esm/model/overrides.d.ts +1 -1
  12. package/lib/esm/model/overrides.js +74 -0
  13. package/lib/esm/model/overrides.js.map +1 -1
  14. package/lib/esm/ui/DecafComponent.d.ts +195 -0
  15. package/lib/esm/ui/DecafComponent.js +96 -0
  16. package/lib/esm/ui/DecafComponent.js.map +1 -0
  17. package/lib/esm/ui/Rendering.d.ts +1 -11
  18. package/lib/esm/ui/Rendering.js +139 -70
  19. package/lib/esm/ui/Rendering.js.map +1 -1
  20. package/lib/esm/ui/constants.d.ts +3 -1
  21. package/lib/esm/ui/constants.js +10 -10
  22. package/lib/esm/ui/constants.js.map +1 -1
  23. package/lib/esm/ui/decorators.d.ts +38 -10
  24. package/lib/esm/ui/decorators.js +53 -12
  25. package/lib/esm/ui/decorators.js.map +1 -1
  26. package/lib/esm/ui/index.d.ts +1 -0
  27. package/lib/esm/ui/index.js +1 -0
  28. package/lib/esm/ui/index.js.map +1 -1
  29. package/lib/esm/ui/types.d.ts +7 -3
  30. package/lib/esm/ui/utils.d.ts +1 -0
  31. package/lib/esm/ui/utils.js +24 -12
  32. package/lib/esm/ui/utils.js.map +1 -1
  33. package/lib/index.cjs +1 -1
  34. package/lib/index.d.ts +1 -1
  35. package/lib/model/decorators.cjs +15 -17
  36. package/lib/model/decorators.d.ts +1 -1
  37. package/lib/model/decorators.js.map +1 -1
  38. package/lib/model/model.d.ts +17 -0
  39. package/lib/model/overrides.cjs +74 -0
  40. package/lib/model/overrides.d.ts +1 -1
  41. package/lib/model/overrides.js.map +1 -1
  42. package/lib/ui/DecafComponent.cjs +100 -0
  43. package/lib/ui/DecafComponent.d.ts +195 -0
  44. package/lib/ui/DecafComponent.js.map +1 -0
  45. package/lib/ui/Rendering.cjs +138 -69
  46. package/lib/ui/Rendering.d.ts +1 -11
  47. package/lib/ui/Rendering.js.map +1 -1
  48. package/lib/ui/constants.cjs +9 -9
  49. package/lib/ui/constants.d.ts +3 -1
  50. package/lib/ui/constants.js.map +1 -1
  51. package/lib/ui/decorators.cjs +55 -12
  52. package/lib/ui/decorators.d.ts +38 -10
  53. package/lib/ui/decorators.js.map +1 -1
  54. package/lib/ui/index.cjs +1 -0
  55. package/lib/ui/index.d.ts +1 -0
  56. package/lib/ui/index.js.map +1 -1
  57. package/lib/ui/types.d.ts +7 -3
  58. package/lib/ui/utils.cjs +23 -10
  59. package/lib/ui/utils.d.ts +1 -0
  60. package/lib/ui/utils.js.map +1 -1
  61. package/package.json +2 -3
@@ -1,5 +1,5 @@
1
- import "reflect-metadata";
2
- import { CrudOperationKeys, UILayoutCol } from "./types";
1
+ import { CrudOperationKeys, UIFunctionLike, UILayoutCol } from "./types";
2
+ import { DecafComponent } from "./DecafComponent";
3
3
  /**
4
4
  * @description Decorator that hides a property during specific CRUD operations
5
5
  * @summary Controls property visibility based on operation type
@@ -35,7 +35,7 @@ import { CrudOperationKeys, UILayoutCol } from "./types";
35
35
  * Model->>RenderingEngine: Return hidden operations
36
36
  * RenderingEngine->>UI: Render or hide based on current operation
37
37
  */
38
- export declare function hideOn(...operations: CrudOperationKeys[]): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
38
+ export declare function hideOn(...operations: CrudOperationKeys[]): (object: any, propertyKey?: any) => void;
39
39
  /**
40
40
  * @description Decorator that sets the order of a UI element
41
41
  * @summary Specifies the rendering order for UI components
@@ -65,7 +65,7 @@ export declare function hideOn(...operations: CrudOperationKeys[]): (target: obj
65
65
  * uiorder->>property: sets order metadata
66
66
  * uiorder->>System: returns decorated property
67
67
  */
68
- export declare function uiorder(order?: number): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
68
+ export declare function uiorder(order?: number): (object: any, propertyKey?: any) => void;
69
69
  /**
70
70
  * @description Decorator that completely hides a property in all UI operations
71
71
  * @summary Makes a property invisible in all CRUD operations
@@ -101,7 +101,7 @@ export declare function uiorder(order?: number): (target: object, propertyKey?:
101
101
  * Model->>RenderingEngine: Return all operations
102
102
  * RenderingEngine->>UI: Always hide property
103
103
  */
104
- export declare function hidden(): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
104
+ export declare function hidden(): (object: any, propertyKey?: any) => void;
105
105
  /**
106
106
  * @description Decorator that specifies how a property should be rendered as a UI element
107
107
  * @summary Maps a model property to a specific UI element with custom properties
@@ -188,7 +188,7 @@ export declare function uielement(tag: string, props?: Record<string, any>, seri
188
188
  * Model->>RenderingEngine: Return prop name and stringify flag
189
189
  * RenderingEngine->>Component: Pass property with specified name
190
190
  */
191
- export declare function uiprop(propName?: string | undefined, stringify?: boolean): (target: any, propertyKey: string) => void;
191
+ export declare function uiprop(propName?: string | undefined, stringify?: boolean): (target: any, propertyKey?: any) => void;
192
192
  /**
193
193
  * @description Decorator that maps a nested model property to a UI component property.
194
194
  * @summary Defines how a parent component should render the child model when nested.
@@ -242,7 +242,7 @@ export declare function uiprop(propName?: string | undefined, stringify?: boolea
242
242
  * Model->>RenderingEngine: Return prop name, stringify flag, and child tag override
243
243
  * RenderingEngine->>Component: Pass property with specified name and render with overridden tag if nested
244
244
  */
245
- export declare function uichild(clazz: string, tag: string, props?: Record<string, any>, isArray?: boolean, serialize?: boolean): (target: any, propertyKey: string) => void;
245
+ export declare function uichild(clazz: string, tag: string, props?: Record<string, any>, isArray?: boolean, serialize?: boolean): (target: any, propertyKey?: any) => void;
246
246
  /**
247
247
  * @description Decorator that maps a model property to a list item component
248
248
  * @summary Specifies how a property should be rendered in a list context
@@ -292,7 +292,7 @@ export declare function uichild(clazz: string, tag: string, props?: Record<strin
292
292
  * RenderingEngine->>ListItems: Render each item using @uilistmodel
293
293
  * ListContainer->>RenderingEngine: Return rendered list
294
294
  */
295
- export declare function uilistprop(propName?: string | undefined, props?: Record<string, any>): (target: any, propertyKey: string) => void;
295
+ export declare function uilistprop(propName?: string | undefined, props?: Record<string, any>): (target: any, propertyKey?: any) => void;
296
296
  /**
297
297
  * @description Decorator that positions a property in a specific grid layout position
298
298
  * @summary Specifies the column and row position for a property in a UI layout grid
@@ -343,7 +343,7 @@ export declare function uilistprop(propName?: string | undefined, props?: Record
343
343
  * RenderingEngine->>LayoutContainer: Position element at grid coordinates
344
344
  * LayoutContainer->>RenderingEngine: Return positioned element
345
345
  */
346
- export declare function uilayoutprop(col?: UILayoutCol, row?: number): (target: any, propertyKey: string) => void;
346
+ export declare function uilayoutprop(col?: UILayoutCol, row?: number): (target: any, propertyKey?: any) => void;
347
347
  /**
348
348
  * @description Decorator that assigns a property to a specific page in multi-page forms
349
349
  * @summary Specifies which page a property should appear on in paginated UI layouts
@@ -405,4 +405,32 @@ export declare function uilayoutprop(col?: UILayoutCol, row?: number): (target:
405
405
  * RenderingEngine->>PaginationController: Group properties by page
406
406
  * PaginationController->>UI: Render current page properties
407
407
  */
408
- export declare function uipageprop(page?: number): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
408
+ export declare function uipageprop(page?: number): (original: any, propertyKey?: any) => void;
409
+ /**
410
+ * A decorator factory that binds a UI event to a specified handler function.
411
+ * This is used to attach event handlers to specific lifecycle events of a `DecafComponent`,
412
+ * such as `render` or `initialize`.
413
+ *
414
+ * @param event - The name of the lifecycle event to bind the handler to.
415
+ * Must be one of the keys in `Pick<DecafComponent, 'render' | 'initialize'>`.
416
+ * @param handler - The function to be executed when the specified event occurs.
417
+ *
418
+ * @returns A decorator function that applies the event-handler binding to the target object.
419
+ *
420
+ * @example
421
+ * ```typescript
422
+ * class MyComponent {
423
+ * @uion('render', () => console.log('Rendering...'))
424
+ * someProperty: string;
425
+ * }
426
+ * ```
427
+ */
428
+ export declare function uion(event: keyof Pick<DecafComponent, 'render' | 'initialize'>, handler: UIFunctionLike): (original: object, propertyKey?: string) => void;
429
+ /**
430
+ * A decorator function that associates a UI rendering handler with the 'render' event.
431
+ *
432
+ * @param handler - A function that conforms to the `UIFunctionLike` type, which will be executed
433
+ * when the 'render' event is triggered.
434
+ * @returns A decorated function that binds the handler to the 'render' event.
435
+ */
436
+ export declare function uionrender(handler: UIFunctionLike): (original: object, propertyKey?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/ui/decorators.ts"],"names":[],"mappings":";;AAiDA,wBAKC;AAgCD,0BAKC;AAsCD,wBAOC;AA4CD,8BAmBC;AA6CD,wBAcC;AAwDD,0BAqBC;AAmDD,gCAcC;AAoDD,oCAgBC;AAgED,gCAOC;AA3hBD,4BAA0B;AAC1B,+CAAqC;AACrC,yEAA8D;AAS9D,+CAA8C;AAC9C,2DAAwD;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,MAAM,CAAC,GAAG,UAA+B;IACvD,OAAO,IAAA,mCAAY,EACjB,2BAAe,CAAC,GAAG,CAAC,kBAAM,CAAC,MAAM,CAAC,EAClC,UAAU,CACX,CAAC;AACJ,CAAC;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,OAAO,CAAC,QAAgB,CAAC;IACvC,OAAO,IAAA,mCAAY,EACjB,2BAAe,CAAC,GAAG,CAAC,kBAAM,CAAC,KAAK,CAAC,EACjC,KAAK,CACN,CAAC;AACJ,CAAC;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,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SAAS,IAAI,CAAC,QAAgB,EAAE,WAAoB;QACzD,IAAA,yBAAY,EAAC,IAAA,yBAAiB,EAAC,WAAqB,EAAE,kBAAM,CAAC,MAAM,CAAC,EAAE,EAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAC,CAAC,CACvF,QAAQ,EACR,WAAW,CACZ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,OAAuB;IAChD,OAAO,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACjC,CAAC"}
package/lib/ui/index.cjs CHANGED
@@ -22,4 +22,5 @@ __exportStar(require("./Rendering.cjs"), exports);
22
22
  __exportStar(require("./types.cjs"), exports);
23
23
  __exportStar(require("./handlers.cjs"), exports);
24
24
  __exportStar(require("./utils.cjs"), exports);
25
+ __exportStar(require("./DecafComponent.cjs"), exports);
25
26
  //# sourceMappingURL=index.js.map
package/lib/ui/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from "./Rendering";
6
6
  export * from "./types";
7
7
  export * from "./handlers";
8
8
  export * from "./utils";
9
+ export * from "./DecafComponent";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAC5B,mDAA6B;AAC7B,+CAAyB;AACzB,mDAA6B;AAC7B,kDAA4B;AAC5B,8CAAwB;AACxB,iDAA2B;AAC3B,8CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAC5B,mDAA6B;AAC7B,+CAAyB;AACzB,mDAA6B;AAC7B,kDAA4B;AAC5B,8CAAwB;AACxB,iDAA2B;AAC3B,8CAAwB;AACxB,uDAAiC"}
package/lib/ui/types.d.ts CHANGED
@@ -162,17 +162,21 @@ export type UILayoutMetadata = {
162
162
  * @typedef UIClassMetadata
163
163
  * @memberOf module:ui-decorators
164
164
  */
165
- export type UIClassMetadata = UILayoutMetadata | UIModelMetadata | UIListModelMetadata;
165
+ export type UIClassMetadata = UILayoutMetadata | UIModelMetadata | UIHandlerMetadata | UIListModelMetadata;
166
166
  /**
167
167
  * @typedef UILayoutCol
168
168
  * @memberOf module:ui-decorators
169
169
  */
170
- export type UILayoutCol = number | 'half' | 'full' | 'auto' | 'expand';
170
+ export type UILayoutCol = number | "half" | "full" | "auto" | "expand";
171
171
  /**
172
172
  * @typedef UIListItemPosition
173
173
  * @memberOf module:ui-decorators
174
174
  */
175
- export type UIListItemPosition = 'title' | 'description' | 'info' | 'subinfo';
175
+ export type UIListItemPosition = "title" | "description" | "info" | "subinfo";
176
+ export type UIFunctionLike = (...args: unknown[]) => unknown | Promise<unknown>;
177
+ export type UIHandlerMetadata = {
178
+ handlers?: Record<string, UIFunctionLike>;
179
+ };
176
180
  /**
177
181
  * @typedef UILayoutPropMetadata
178
182
  * @memberOf module:ui-decorators
package/lib/ui/utils.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUIAttributeKey = getUIAttributeKey;
3
4
  exports.formatByType = formatByType;
4
5
  exports.parseValueByType = parseValueByType;
5
6
  exports.parseToNumber = parseToNumber;
@@ -9,6 +10,10 @@ exports.generateUIModelID = generateUIModelID;
9
10
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
10
11
  const constants_1 = require("./constants.cjs");
11
12
  const db_decorators_1 = require("@decaf-ts/db-decorators");
13
+ const decoration_1 = require("@decaf-ts/decoration");
14
+ function getUIAttributeKey(prop, key) {
15
+ return decoration_1.Metadata.key(constants_1.UIKeys.REFLECT, decoration_1.DecorationKeys.PROPERTIES, prop, key);
16
+ }
12
17
  /**
13
18
  * @function formatByType
14
19
  *
@@ -27,7 +32,9 @@ function parseValueByType(type, value, fieldProps) {
27
32
  let result = undefined;
28
33
  switch (type) {
29
34
  case Array.name: {
30
- const parsed = Array.isArray(value) ? value.map(v => parseValueByType(decorator_validation_1.ReservedModels.STRING, v, fieldProps)) : [value];
35
+ const parsed = Array.isArray(value)
36
+ ? value.map((v) => parseValueByType(decorator_validation_1.ReservedModels.STRING.name.toLowerCase(), v, fieldProps))
37
+ : [value];
31
38
  result = parsed.join(",");
32
39
  break;
33
40
  }
@@ -38,7 +45,7 @@ function parseValueByType(type, value, fieldProps) {
38
45
  const format = fieldProps.format;
39
46
  if (value && `${value}`.trim().length) {
40
47
  result =
41
- typeof value === decorator_validation_1.ReservedModels.NUMBER
48
+ typeof value === decorator_validation_1.ReservedModels.NUMBER.name.toLowerCase()
42
49
  ? new Date(value)
43
50
  : value
44
51
  ? format
@@ -50,11 +57,15 @@ function parseValueByType(type, value, fieldProps) {
50
57
  }
51
58
  default:
52
59
  result =
53
- typeof value === decorator_validation_1.ReservedModels.OBJECT ?
54
- (Array.isArray(value) ? value.join(",") : JSON.stringify(value)) :
55
- typeof value === decorator_validation_1.ReservedModels.BOOLEAN ?
56
- value : typeof value === decorator_validation_1.ReservedModels.STRING ?
57
- escapeHtml(value) : result;
60
+ typeof value === decorator_validation_1.ReservedModels.OBJECT.name.toLowerCase()
61
+ ? Array.isArray(value)
62
+ ? value.join(",")
63
+ : JSON.stringify(value)
64
+ : typeof value === decorator_validation_1.ReservedModels.BOOLEAN.name.toLowerCase()
65
+ ? value
66
+ : typeof value === decorator_validation_1.ReservedModels.STRING.name.toLowerCase()
67
+ ? escapeHtml(value)
68
+ : result;
58
69
  }
59
70
  if (typeof result === "undefined") {
60
71
  throw new db_decorators_1.InternalError(`Failed to parse value of type ${type} from ${typeof value} - ${value}`);
@@ -92,13 +103,15 @@ function revertHtml(value) {
92
103
  });
93
104
  }
94
105
  function generateUIModelID(model) {
95
- let id;
106
+ let id = Date.now();
96
107
  try {
97
- id = (0, db_decorators_1.findModelId)(model);
108
+ const pk = decorator_validation_1.Model.pk(model.constructor);
109
+ if (pk)
110
+ id = model[decorator_validation_1.Model.pk(model.constructor)];
98
111
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
99
112
  }
100
113
  catch (e) {
101
- id = Date.now();
114
+ // do nothing;
102
115
  }
103
116
  const name = model.constructor.name;
104
117
  return `${name}-${id}`;
package/lib/ui/utils.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Model } from "@decaf-ts/decorator-validation";
2
2
  import { FieldProperties } from "./types";
3
+ export declare function getUIAttributeKey(prop: string, key: string): string;
3
4
  /**
4
5
  * @function formatByType
5
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/ui/utils.ts"],"names":[],"mappings":";;AAeA,oCAYC;AAED,4CA6CC;AAED,sCAOC;AAED,gCAWC;AAED,gCAUC;AAED,8CAUC;AAxHD,yEAKwC;AACxC,+CAAuE;AACvE,2DAAqE;AAGrE;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,IAAS,EACT,KAAU,EACV,GAAG,IAAe;IAElB,IAAI,IAAI,KAAK,kBAAM,CAAC,IAAI,EAAE,CAAC;QACzB,IAAG,CAAC,KAAK;YACL,OAAO,EAAE,CAAC;QACd,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,EAAa,IAAI,2BAAe,CAAC;QACnE,OAAO,IAAA,iCAAU,EAAC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,gBAAgB,CAC9B,IAAY,EACZ,KAAsB,EACtB,UAA2B;IAE3B,IAAI,MAAM,GAAuC,SAAS,CAAC;IAC3D,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YAChB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,gBAA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2B;QAC5C,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GAAG;KACZ,CAAC;IAEF,OAAO,GAAG,KAAK,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,GAAG,EAAE,EAAE;QACpD,OAAO,aAAa,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,iBAAiB,CAAkB,KAAQ;IACzD,IAAI,EAAE,GAA6B,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9C,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,4BAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACvC,IAAI,EAAE;YACJ,EAAE,GAAG,KAAK,CAAC,4BAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAuB,CAElD,CAAC;QACb,6DAA6D;IAC/D,CAAC;IAAC,OAAO,CAAU,EAAE,CAAC;QACpB,cAAc;IAChB,CAAC;IACD,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,OAAO,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;AACzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/ui-decorators",
3
- "version": "0.5.32",
3
+ "version": "0.6.1",
4
4
  "description": "Extension of decorator validation to ui elements to allow for web integration",
5
5
  "type": "module",
6
6
  "exports": {
@@ -88,7 +88,6 @@
88
88
  "dependencies": {
89
89
  "@decaf-ts/db-decorators": "latest",
90
90
  "@decaf-ts/decoration": "latest",
91
- "@decaf-ts/decorator-validation": "latest",
92
- "@decaf-ts/reflection": "latest"
91
+ "@decaf-ts/decorator-validation": "latest"
93
92
  }
94
93
  }