@genesislcap/foundation-entity-management 14.439.0 → 14.439.1-GENC-1250.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.
@@ -234,21 +234,27 @@
234
234
  "name": "type",
235
235
  "type": {
236
236
  "text": "ModalFormType | CrudAction.Delete | string"
237
- }
237
+ },
238
+ "description": "The type of action performed (Create, Update, Delete, etc.)"
238
239
  },
239
240
  {
240
241
  "name": "label",
241
242
  "type": {
242
243
  "text": "string"
243
- }
244
+ },
245
+ "description": "The label of the entity being managed."
244
246
  }
245
247
  ],
246
- "description": "Main class which defines the entity management functionality",
247
- "privacy": "public"
248
+ "description": "Returns the title and body for a notification based on the action type and entity label.",
249
+ "return": {
250
+ "type": {
251
+ "text": ""
252
+ }
253
+ }
248
254
  },
249
255
  {
250
256
  "kind": "class",
251
- "description": "",
257
+ "description": "Main class which defines the entity management functionality",
252
258
  "name": "EntityManagement",
253
259
  "members": [
254
260
  {
@@ -884,6 +890,56 @@
884
890
  "description": "Ensure any confirmation dialog anchored to the modal boundary is closed/removed"
885
891
  }
886
892
  ],
893
+ "events": [
894
+ {
895
+ "description": "Fired when the request is changed",
896
+ "name": "request-changed"
897
+ },
898
+ {
899
+ "description": "Fired when the criteria is changed",
900
+ "name": "criteria-changed"
901
+ },
902
+ {
903
+ "description": "Fired when an entity is created",
904
+ "name": "create-entity"
905
+ },
906
+ {
907
+ "description": "Fired when an entity is edited",
908
+ "name": "edit-entity"
909
+ },
910
+ {
911
+ "description": "Fired when an entity is deleted Bubbled events from the child entity-list component",
912
+ "name": "delete-entity"
913
+ },
914
+ {
915
+ "description": "Fired when there is an error in a create, edit or delete operation",
916
+ "name": "submit-failure"
917
+ },
918
+ {
919
+ "description": "Fired when a create, edit or delete operation is completed successfully",
920
+ "name": "submit-success"
921
+ },
922
+ {
923
+ "description": "Fired when a row is clicked",
924
+ "name": "rowClick"
925
+ },
926
+ {
927
+ "description": "Fired when a row is double clicked",
928
+ "name": "rowDblClick"
929
+ },
930
+ {
931
+ "description": "Fired when a row is right clicked",
932
+ "name": "contextMenu"
933
+ },
934
+ {
935
+ "description": "Fired when a row is selected",
936
+ "name": "rowSelected"
937
+ },
938
+ {
939
+ "description": "Fired when grid selection changes (bubbled from entity-list)",
940
+ "name": "selectionChanged"
941
+ }
942
+ ],
887
943
  "attributes": [
888
944
  {
889
945
  "name": "design-system-prefix",
@@ -2565,6 +2621,104 @@
2565
2621
  "module": "src/entities/entities.ts"
2566
2622
  }
2567
2623
  }
2624
+ ],
2625
+ "events": [
2626
+ {
2627
+ "description": "Fired when the request is changed",
2628
+ "name": "request-changed",
2629
+ "inheritedFrom": {
2630
+ "name": "EntityManagement",
2631
+ "module": "src/entities/entities.ts"
2632
+ }
2633
+ },
2634
+ {
2635
+ "description": "Fired when the criteria is changed",
2636
+ "name": "criteria-changed",
2637
+ "inheritedFrom": {
2638
+ "name": "EntityManagement",
2639
+ "module": "src/entities/entities.ts"
2640
+ }
2641
+ },
2642
+ {
2643
+ "description": "Fired when an entity is created",
2644
+ "name": "create-entity",
2645
+ "inheritedFrom": {
2646
+ "name": "EntityManagement",
2647
+ "module": "src/entities/entities.ts"
2648
+ }
2649
+ },
2650
+ {
2651
+ "description": "Fired when an entity is edited",
2652
+ "name": "edit-entity",
2653
+ "inheritedFrom": {
2654
+ "name": "EntityManagement",
2655
+ "module": "src/entities/entities.ts"
2656
+ }
2657
+ },
2658
+ {
2659
+ "description": "Fired when an entity is deleted Bubbled events from the child entity-list component",
2660
+ "name": "delete-entity",
2661
+ "inheritedFrom": {
2662
+ "name": "EntityManagement",
2663
+ "module": "src/entities/entities.ts"
2664
+ }
2665
+ },
2666
+ {
2667
+ "description": "Fired when there is an error in a create, edit or delete operation",
2668
+ "name": "submit-failure",
2669
+ "inheritedFrom": {
2670
+ "name": "EntityManagement",
2671
+ "module": "src/entities/entities.ts"
2672
+ }
2673
+ },
2674
+ {
2675
+ "description": "Fired when a create, edit or delete operation is completed successfully",
2676
+ "name": "submit-success",
2677
+ "inheritedFrom": {
2678
+ "name": "EntityManagement",
2679
+ "module": "src/entities/entities.ts"
2680
+ }
2681
+ },
2682
+ {
2683
+ "description": "Fired when a row is clicked",
2684
+ "name": "rowClick",
2685
+ "inheritedFrom": {
2686
+ "name": "EntityManagement",
2687
+ "module": "src/entities/entities.ts"
2688
+ }
2689
+ },
2690
+ {
2691
+ "description": "Fired when a row is double clicked",
2692
+ "name": "rowDblClick",
2693
+ "inheritedFrom": {
2694
+ "name": "EntityManagement",
2695
+ "module": "src/entities/entities.ts"
2696
+ }
2697
+ },
2698
+ {
2699
+ "description": "Fired when a row is right clicked",
2700
+ "name": "contextMenu",
2701
+ "inheritedFrom": {
2702
+ "name": "EntityManagement",
2703
+ "module": "src/entities/entities.ts"
2704
+ }
2705
+ },
2706
+ {
2707
+ "description": "Fired when a row is selected",
2708
+ "name": "rowSelected",
2709
+ "inheritedFrom": {
2710
+ "name": "EntityManagement",
2711
+ "module": "src/entities/entities.ts"
2712
+ }
2713
+ },
2714
+ {
2715
+ "description": "Fired when grid selection changes (bubbled from entity-list)",
2716
+ "name": "selectionChanged",
2717
+ "inheritedFrom": {
2718
+ "name": "EntityManagement",
2719
+ "module": "src/entities/entities.ts"
2720
+ }
2721
+ }
2568
2722
  ]
2569
2723
  }
2570
2724
  ],
@@ -3504,27 +3658,6 @@
3504
3658
  }
3505
3659
  ]
3506
3660
  },
3507
- {
3508
- "kind": "javascript-module",
3509
- "path": "src/routes/config.ts",
3510
- "declarations": [],
3511
- "exports": []
3512
- },
3513
- {
3514
- "kind": "javascript-module",
3515
- "path": "src/routes/index.ts",
3516
- "declarations": [],
3517
- "exports": [
3518
- {
3519
- "kind": "js",
3520
- "name": "*",
3521
- "declaration": {
3522
- "name": "*",
3523
- "package": "./config"
3524
- }
3525
- }
3526
- ]
3527
- },
3528
3661
  {
3529
3662
  "kind": "javascript-module",
3530
3663
  "path": "src/layouts/default.ts",
@@ -3574,6 +3707,27 @@
3574
3707
  }
3575
3708
  ]
3576
3709
  },
3710
+ {
3711
+ "kind": "javascript-module",
3712
+ "path": "src/routes/config.ts",
3713
+ "declarations": [],
3714
+ "exports": []
3715
+ },
3716
+ {
3717
+ "kind": "javascript-module",
3718
+ "path": "src/routes/index.ts",
3719
+ "declarations": [],
3720
+ "exports": [
3721
+ {
3722
+ "kind": "js",
3723
+ "name": "*",
3724
+ "declaration": {
3725
+ "name": "*",
3726
+ "package": "./config"
3727
+ }
3728
+ }
3729
+ ]
3730
+ },
3577
3731
  {
3578
3732
  "kind": "javascript-module",
3579
3733
  "path": "src/utils/custom-actions-utils.ts",
@@ -9,6 +9,16 @@ import { DatasourceType, GridProCaseType, GridProStatusBarConfig } from '@genesi
9
9
  import { GenesisElement } from '@genesislcap/web-core';
10
10
  import { List } from '../list';
11
11
  import { ActionsMenuStyle, CrudAction, CrudMenuPosition, CustomAction, CustomActionState, ModalFormType } from '../types';
12
+ /**
13
+ * Returns the title and body for a notification based on the action type and entity label.
14
+ * @param type - The type of action performed (Create, Update, Delete, etc.)
15
+ * @param label - The label of the entity being managed.
16
+ * @returns An object containing the notification title and body.
17
+ */
18
+ export declare const getActionNotificationTitleAndBody: (type: ModalFormType | CrudAction.Delete | string, label: string) => {
19
+ title: string;
20
+ body: string;
21
+ };
12
22
  /**
13
23
  * The attribute which is set to configure the resource that the entity manager is working with
14
24
  *
@@ -101,55 +111,6 @@ import { ActionsMenuStyle, CrudAction, CrudMenuPosition, CustomAction, CustomAct
101
111
  * ```
102
112
  */
103
113
  export type DatasourceConfiguration = Omit<DatasourceOptions, 'resourceName'>;
104
- /**
105
- * Main class which defines the entity management functionality
106
- *
107
- * @remarks
108
- *
109
- * Connects to a backend resource and wraps up a grid which is populated
110
- * with entities from that resource. The different interactions that the user
111
- * can perform with the entities can be configured, examples being able to
112
- * update and delete entities.
113
- *
114
- * @public
115
- *
116
- * @example
117
- * Example of using the entity management system to handle counterparties
118
- * ```
119
- * <entity-management
120
- * resourceName="ALL_COUNTERPARTYS"
121
- * title="Counterparty Management"
122
- * updateEvent="EVENT_COUNTERPARTY_MODIFY"
123
- * deleteEvent="EVENT_COUNTERPARTY_DELETE"
124
- * createEvent="EVENT_COUNTERPARTY_INSERT"
125
- * ></entity-management>
126
- * ```
127
- * Where:<br />
128
- * - the title of the grid is `Counterparty Management`<br />
129
- * - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br />
130
- * - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br />
131
- * - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
132
- * - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
133
- *
134
- * @fires request-changed - Fired when the request is changed
135
- * @fires criteria-changed - Fired when the criteria is changed
136
- * @fires create-entity - Fired when an entity is created
137
- * @fires edit-entity - Fired when an entity is edited
138
- * @fires delete-entity - Fired when an entity is deleted
139
- *
140
- * Bubbled events from the child entity-list component
141
- * @fires submit-failure - Fired when there is an error in a create, edit or delete operation
142
- * @fires submit-success - Fired when a create, edit or delete operation is completed successfully
143
- * @fires rowClick - Fired when a row is clicked
144
- * @fires rowDblClick - Fired when a row is double clicked
145
- * @fires contextMenu - Fired when a row is right clicked
146
- * @fires rowSelected - Fired when a row is selected
147
- * @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
148
- */
149
- export declare const getActionNotificationTitleAndBody: (type: ModalFormType | CrudAction.Delete | string, label: string) => {
150
- title: string;
151
- body: string;
152
- };
153
114
  declare const EntityManagement_base: (new (...args: any[]) => {
154
115
  #_container: import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
155
116
  #_latestTokenCode: string;
@@ -376,23 +337,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
376
337
  ariaValueNow: string | null;
377
338
  ariaValueText: string | null;
378
339
  role: string | null;
379
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options
380
- /**
381
- * Disables the form while enabled to stop the user dispatching a large number of duplicate events
382
- * @internal
383
- */
384
- ?: number | KeyframeAnimationOptions): Animation;
340
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
385
341
  getAnimations(options?: GetAnimationsOptions): Animation[];
386
342
  after(...nodes: (Node | string)[]): void;
387
- before(
388
- /**
389
- * The default values to populate the form with when the user is adding an entity
390
- * @public
391
- */
392
- ... /**
393
- * The default values to populate the form with when the user is adding an entity
394
- * @public
395
- */nodes: (Node | string)[]): void;
343
+ before(...nodes: (Node | string)[]): void;
396
344
  remove(): void;
397
345
  replaceWith(...nodes: (Node | string)[]): void;
398
346
  readonly nextElementSibling: Element | null;
@@ -535,6 +483,51 @@ declare const EntityManagement_base: (new (...args: any[]) => {
535
483
  }>(BaseType: TBase): new () => InstanceType<TBase> & GenesisElement;
536
484
  define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition | undefined): TType;
537
485
  };
486
+ /**
487
+ * Main class which defines the entity management functionality
488
+ *
489
+ * @remarks
490
+ *
491
+ * Connects to a backend resource and wraps up a grid which is populated
492
+ * with entities from that resource. The different interactions that the user
493
+ * can perform with the entities can be configured, examples being able to
494
+ * update and delete entities.
495
+ *
496
+ * @public
497
+ *
498
+ * @example
499
+ * Example of using the entity management system to handle counterparties
500
+ * ```
501
+ * <entity-management
502
+ * resourceName="ALL_COUNTERPARTYS"
503
+ * title="Counterparty Management"
504
+ * updateEvent="EVENT_COUNTERPARTY_MODIFY"
505
+ * deleteEvent="EVENT_COUNTERPARTY_DELETE"
506
+ * createEvent="EVENT_COUNTERPARTY_INSERT"
507
+ * ></entity-management>
508
+ * ```
509
+ * Where:<br />
510
+ * - the title of the grid is `Counterparty Management`<br />
511
+ * - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br />
512
+ * - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br />
513
+ * - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
514
+ * - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
515
+ *
516
+ * @fires request-changed - Fired when the request is changed
517
+ * @fires criteria-changed - Fired when the criteria is changed
518
+ * @fires create-entity - Fired when an entity is created
519
+ * @fires edit-entity - Fired when an entity is edited
520
+ * @fires delete-entity - Fired when an entity is deleted
521
+ *
522
+ * Bubbled events from the child entity-list component
523
+ * @fires submit-failure - Fired when there is an error in a create, edit or delete operation
524
+ * @fires submit-success - Fired when a create, edit or delete operation is completed successfully
525
+ * @fires rowClick - Fired when a row is clicked
526
+ * @fires rowDblClick - Fired when a row is double clicked
527
+ * @fires contextMenu - Fired when a row is right clicked
528
+ * @fires rowSelected - Fired when a row is selected
529
+ * @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
530
+ */
538
531
  export declare class EntityManagement extends EntityManagement_base {
539
532
  /**
540
533
  * DI connect object which is used to interact with the backend.
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,OAAO,EACP,iBAAiB,EAGjB,YAAY,EAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAa,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEL,eAAe,EAEf,KAAK,EACL,cAAc,EACf,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAI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AAC,kBAAkB;IAa1B;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAKjC;;OAEG;IACG,aAAa;IAwBnB,OAAO,CAAC,sBAAsB;IAc9B;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;;OAIG;IACI,YAAY,CACjB,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,GAAG,MAAM,EAChD,YAAY,CAAC,EAAE,YAAY,EAAE;IAkC/B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IA2C/B;;;OAGG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;IAUjE;;;;OAIG;IACU,iBAAiB,CAAC,cAAc,GAAE,OAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7E;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IA6BjC,gBAAgB;IACV,eAAe;CAkCtB"}
@@ -42,6 +42,17 @@ export declare const EntityManagement: React.ForwardRefExoticComponent<
42
42
  React.PropsWithChildren<
43
43
  Omit<PublicOf<EntityManagementWC>, 'children' | 'style'> &
44
44
  HTMLWCProps & {
45
+ onRequestChanged?: (event: CustomEvent<unknown>) => void;
46
+ onCriteriaChanged?: (event: CustomEvent<unknown>) => void;
47
+ onCreateEntity?: (event: CustomEvent<unknown>) => void;
48
+ onEditEntity?: (event: CustomEvent<unknown>) => void;
49
+ onDeleteEntity?: (event: CustomEvent<unknown>) => void;
50
+ onSubmitFailure?: (event: CustomEvent<unknown>) => void;
51
+ onSubmitSuccess?: (event: CustomEvent<unknown>) => void;
52
+ onRowClick?: (event: CustomEvent<unknown>) => void;
53
+ onRowDblClick?: (event: CustomEvent<unknown>) => void;
54
+ onRowSelected?: (event: CustomEvent<unknown>) => void;
55
+ onSelectionChanged?: (event: CustomEvent<unknown>) => void;
45
56
  }
46
57
  > & React.RefAttributes<EntityManagementWC>
47
58
  >;
@@ -51,6 +62,17 @@ export declare const SmartFormModal: React.ForwardRefExoticComponent<
51
62
  React.PropsWithChildren<
52
63
  Omit<PublicOf<SmartFormModalWC>, 'children' | 'style'> &
53
64
  HTMLWCProps & {
65
+ onRequestChanged?: (event: CustomEvent<unknown>) => void;
66
+ onCriteriaChanged?: (event: CustomEvent<unknown>) => void;
67
+ onCreateEntity?: (event: CustomEvent<unknown>) => void;
68
+ onEditEntity?: (event: CustomEvent<unknown>) => void;
69
+ onDeleteEntity?: (event: CustomEvent<unknown>) => void;
70
+ onSubmitFailure?: (event: CustomEvent<unknown>) => void;
71
+ onSubmitSuccess?: (event: CustomEvent<unknown>) => void;
72
+ onRowClick?: (event: CustomEvent<unknown>) => void;
73
+ onRowDblClick?: (event: CustomEvent<unknown>) => void;
74
+ onRowSelected?: (event: CustomEvent<unknown>) => void;
75
+ onSelectionChanged?: (event: CustomEvent<unknown>) => void;
54
76
  }
55
77
  > & React.RefAttributes<SmartFormModalWC>
56
78
  >;
@@ -10,6 +10,38 @@ import { getErrorFormat, logger, mapDefaultValues } from '../utils';
10
10
  import { getSearchBarColumnsConfig, getSearchBarMetaConfig } from '../utils/search-bar-utils';
11
11
  import { styles } from './entities.styles';
12
12
  import { headerTemplate, template } from './entities.template';
13
+ /**
14
+ * Returns the title and body for a notification based on the action type and entity label.
15
+ * @param type - The type of action performed (Create, Update, Delete, etc.)
16
+ * @param label - The label of the entity being managed.
17
+ * @returns An object containing the notification title and body.
18
+ */
19
+ export const getActionNotificationTitleAndBody = (type, label) => {
20
+ if (!type) {
21
+ return { title: '', body: '' };
22
+ }
23
+ return ({
24
+ [ModalFormType.Create]: {
25
+ title: `${label} Added`,
26
+ body: `The ${label} was successfully added`,
27
+ },
28
+ [ModalFormType.Update]: {
29
+ title: `${label} Updated`,
30
+ body: `The ${label} was successfully updated`,
31
+ },
32
+ [CrudAction.Delete]: {
33
+ title: `${label} Deleted`,
34
+ body: `The ${label} was successfully deleted`,
35
+ },
36
+ [ModalFormType.Read]: {
37
+ title: '',
38
+ body: '',
39
+ },
40
+ }[type] || {
41
+ title: `${changeCase.capitalCase(type)} completed`,
42
+ body: `The ${changeCase.capitalCase(type)} was completed successfully`,
43
+ });
44
+ };
13
45
  /**
14
46
  * Main class which defines the entity management functionality
15
47
  *
@@ -55,32 +87,6 @@ import { headerTemplate, template } from './entities.template';
55
87
  * @fires rowSelected - Fired when a row is selected
56
88
  * @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
57
89
  */
58
- export const getActionNotificationTitleAndBody = (type, label) => {
59
- if (!type) {
60
- return { title: '', body: '' };
61
- }
62
- return ({
63
- [ModalFormType.Create]: {
64
- title: `${label} Added`,
65
- body: `The ${label} was successfully added`,
66
- },
67
- [ModalFormType.Update]: {
68
- title: `${label} Updated`,
69
- body: `The ${label} was successfully updated`,
70
- },
71
- [CrudAction.Delete]: {
72
- title: `${label} Deleted`,
73
- body: `The ${label} was successfully deleted`,
74
- },
75
- [ModalFormType.Read]: {
76
- title: '',
77
- body: '',
78
- },
79
- }[type] || {
80
- title: `${changeCase.capitalCase(type)} completed`,
81
- body: `The ${changeCase.capitalCase(type)} was completed successfully`,
82
- });
83
- };
84
90
  let EntityManagement = class EntityManagement extends LifecycleMixin(GenesisElement) {
85
91
  constructor() {
86
92
  super(...arguments);
@@ -1299,7 +1299,7 @@
1299
1299
  {
1300
1300
  "kind": "Class",
1301
1301
  "canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement:class",
1302
- "docComment": "",
1302
+ "docComment": "/**\n * Main class which defines the entity management functionality\n *\n * @remarks\n *\n * Connects to a backend resource and wraps up a grid which is populated with entities from that resource. The different interactions that the user can perform with the entities can be configured, examples being able to update and delete entities.\n *\n * @example\n *\n * Example of using the entity management system to handle counterparties\n * ```\n * <entity-management\n * resourceName=\"ALL_COUNTERPARTYS\"\n * title=\"Counterparty Management\"\n * updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n * deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n * createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n * ></entity-management>\n * ```\n *\n * Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br /> - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br /> - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br /> - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />\n *\n * @fires\n *\n * request-changed - Fired when the request is changed\n *\n * @fires\n *\n * criteria-changed - Fired when the criteria is changed\n *\n * @fires\n *\n * create-entity - Fired when an entity is created\n *\n * @fires\n *\n * edit-entity - Fired when an entity is edited\n *\n * @fires\n *\n * delete-entity - Fired when an entity is deleted\n *\n * Bubbled events from the child entity-list component\n *\n * @fires\n *\n * submit-failure - Fired when there is an error in a create, edit or delete operation\n *\n * @fires\n *\n * submit-success - Fired when a create, edit or delete operation is completed successfully\n *\n * @fires\n *\n * rowClick - Fired when a row is clicked\n *\n * @fires\n *\n * rowDblClick - Fired when a row is double clicked\n *\n * @fires\n *\n * contextMenu - Fired when a row is right clicked\n *\n * @fires\n *\n * rowSelected - Fired when a row is selected\n *\n * @fires\n *\n * selectionChanged - Fired when grid selection changes (bubbled from entity-list)\n *\n * @public\n */\n",
1303
1303
  "excerptTokens": [
1304
1304
  {
1305
1305
  "kind": "Content",
@@ -2918,7 +2918,7 @@
2918
2918
  {
2919
2919
  "kind": "Function",
2920
2920
  "canonicalReference": "@genesislcap/foundation-entity-management!getActionNotificationTitleAndBody:function(1)",
2921
- "docComment": "/**\n * Main class which defines the entity management functionality\n *\n * @remarks\n *\n * Connects to a backend resource and wraps up a grid which is populated with entities from that resource. The different interactions that the user can perform with the entities can be configured, examples being able to update and delete entities.\n *\n * @example\n *\n * Example of using the entity management system to handle counterparties\n * ```\n * <entity-management\n * resourceName=\"ALL_COUNTERPARTYS\"\n * title=\"Counterparty Management\"\n * updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n * deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n * createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n * ></entity-management>\n * ```\n *\n * Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br /> - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br /> - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br /> - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />\n *\n * @fires\n *\n * request-changed - Fired when the request is changed\n *\n * @fires\n *\n * criteria-changed - Fired when the criteria is changed\n *\n * @fires\n *\n * create-entity - Fired when an entity is created\n *\n * @fires\n *\n * edit-entity - Fired when an entity is edited\n *\n * @fires\n *\n * delete-entity - Fired when an entity is deleted\n *\n * Bubbled events from the child entity-list component\n *\n * @fires\n *\n * submit-failure - Fired when there is an error in a create, edit or delete operation\n *\n * @fires\n *\n * submit-success - Fired when a create, edit or delete operation is completed successfully\n *\n * @fires\n *\n * rowClick - Fired when a row is clicked\n *\n * @fires\n *\n * rowDblClick - Fired when a row is double clicked\n *\n * @fires\n *\n * contextMenu - Fired when a row is right clicked\n *\n * @fires\n *\n * rowSelected - Fired when a row is selected\n *\n * @fires\n *\n * selectionChanged - Fired when grid selection changes (bubbled from entity-list)\n *\n * @public\n */\n",
2921
+ "docComment": "/**\n * Returns the title and body for a notification based on the action type and entity label.\n *\n * @param type - The type of action performed (Create, Update, Delete, etc.)\n *\n * @param label - The label of the entity being managed.\n *\n * @returns An object containing the notification title and body.\n */\n",
2922
2922
  "excerptTokens": [
2923
2923
  {
2924
2924
  "kind": "Content",
@@ -229,6 +229,51 @@ export declare const DynamicTemplate: ViewTemplate_2<MainApplication>;
229
229
 
230
230
  export declare const ENTITY_NAME: InterfaceSymbol<string>;
231
231
 
232
+ /**
233
+ * Main class which defines the entity management functionality
234
+ *
235
+ * @remarks
236
+ *
237
+ * Connects to a backend resource and wraps up a grid which is populated
238
+ * with entities from that resource. The different interactions that the user
239
+ * can perform with the entities can be configured, examples being able to
240
+ * update and delete entities.
241
+ *
242
+ * @public
243
+ *
244
+ * @example
245
+ * Example of using the entity management system to handle counterparties
246
+ * ```
247
+ * <entity-management
248
+ * resourceName="ALL_COUNTERPARTYS"
249
+ * title="Counterparty Management"
250
+ * updateEvent="EVENT_COUNTERPARTY_MODIFY"
251
+ * deleteEvent="EVENT_COUNTERPARTY_DELETE"
252
+ * createEvent="EVENT_COUNTERPARTY_INSERT"
253
+ * ></entity-management>
254
+ * ```
255
+ * Where:<br />
256
+ * - the title of the grid is `Counterparty Management`<br />
257
+ * - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br />
258
+ * - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br />
259
+ * - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
260
+ * - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
261
+ *
262
+ * @fires request-changed - Fired when the request is changed
263
+ * @fires criteria-changed - Fired when the criteria is changed
264
+ * @fires create-entity - Fired when an entity is created
265
+ * @fires edit-entity - Fired when an entity is edited
266
+ * @fires delete-entity - Fired when an entity is deleted
267
+ *
268
+ * Bubbled events from the child entity-list component
269
+ * @fires submit-failure - Fired when there is an error in a create, edit or delete operation
270
+ * @fires submit-success - Fired when a create, edit or delete operation is completed successfully
271
+ * @fires rowClick - Fired when a row is clicked
272
+ * @fires rowDblClick - Fired when a row is double clicked
273
+ * @fires contextMenu - Fired when a row is right clicked
274
+ * @fires rowSelected - Fired when a row is selected
275
+ * @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
276
+ */
232
277
  export declare class EntityManagement extends EntityManagement_base {
233
278
  /**
234
279
  * DI connect object which is used to interact with the backend.
@@ -1142,23 +1187,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
1142
1187
  ariaValueNow: string | null;
1143
1188
  ariaValueText: string | null;
1144
1189
  role: string | null;
1145
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options
1146
- /**
1147
- * Disables the form while enabled to stop the user dispatching a large number of duplicate events
1148
- * @internal
1149
- */
1150
- ?: number | KeyframeAnimationOptions): Animation;
1190
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
1151
1191
  getAnimations(options?: GetAnimationsOptions): Animation[];
1152
1192
  after(...nodes: (Node | string)[]): void;
1153
- before(
1154
- /**
1155
- * The default values to populate the form with when the user is adding an entity
1156
- * @public
1157
- */
1158
- ... /**
1159
- * The default values to populate the form with when the user is adding an entity
1160
- * @public
1161
- */nodes: (Node | string)[]): void;
1193
+ before(...nodes: (Node | string)[]): void;
1162
1194
  remove(): void;
1163
1195
  replaceWith(...nodes: (Node | string)[]): void;
1164
1196
  readonly nextElementSibling: Element | null;
@@ -1303,49 +1335,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
1303
1335
  };
1304
1336
 
1305
1337
  /**
1306
- * Main class which defines the entity management functionality
1307
- *
1308
- * @remarks
1309
- *
1310
- * Connects to a backend resource and wraps up a grid which is populated
1311
- * with entities from that resource. The different interactions that the user
1312
- * can perform with the entities can be configured, examples being able to
1313
- * update and delete entities.
1314
- *
1315
- * @public
1316
- *
1317
- * @example
1318
- * Example of using the entity management system to handle counterparties
1319
- * ```
1320
- * <entity-management
1321
- * resourceName="ALL_COUNTERPARTYS"
1322
- * title="Counterparty Management"
1323
- * updateEvent="EVENT_COUNTERPARTY_MODIFY"
1324
- * deleteEvent="EVENT_COUNTERPARTY_DELETE"
1325
- * createEvent="EVENT_COUNTERPARTY_INSERT"
1326
- * ></entity-management>
1327
- * ```
1328
- * Where:<br />
1329
- * - the title of the grid is `Counterparty Management`<br />
1330
- * - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br />
1331
- * - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br />
1332
- * - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br />
1333
- * - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />
1334
- *
1335
- * @fires request-changed - Fired when the request is changed
1336
- * @fires criteria-changed - Fired when the criteria is changed
1337
- * @fires create-entity - Fired when an entity is created
1338
- * @fires edit-entity - Fired when an entity is edited
1339
- * @fires delete-entity - Fired when an entity is deleted
1340
- *
1341
- * Bubbled events from the child entity-list component
1342
- * @fires submit-failure - Fired when there is an error in a create, edit or delete operation
1343
- * @fires submit-success - Fired when a create, edit or delete operation is completed successfully
1344
- * @fires rowClick - Fired when a row is clicked
1345
- * @fires rowDblClick - Fired when a row is double clicked
1346
- * @fires contextMenu - Fired when a row is right clicked
1347
- * @fires rowSelected - Fired when a row is selected
1348
- * @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
1338
+ * Returns the title and body for a notification based on the action type and entity label.
1339
+ * @param type - The type of action performed (Create, Update, Delete, etc.)
1340
+ * @param label - The label of the entity being managed.
1341
+ * @returns An object containing the notification title and body.
1349
1342
  */
1350
1343
  export declare const getActionNotificationTitleAndBody: (type: ModalFormType | CrudAction.Delete | string, label: string) => {
1351
1344
  title: string;
package/dist/react.cjs CHANGED
@@ -21,13 +21,137 @@ function _mergeRefs(...refs) {
21
21
  }
22
22
 
23
23
  const EntityManagement = React.forwardRef(function EntityManagement(props, ref) {
24
- const { children, ...rest } = props;
25
- return React.createElement(customElements.getName(EntityManagementWC) ?? 'entity-management', { ...rest, ref }, children);
24
+ const { onRequestChanged, onCriteriaChanged, onCreateEntity, onEditEntity, onDeleteEntity, onSubmitFailure, onSubmitSuccess, onRowClick, onRowDblClick, onRowSelected, onSelectionChanged, children, ...rest } = props;
25
+ const _innerRef = React.useRef(null);
26
+ const _onRequestChangedRef = React.useRef(onRequestChanged);
27
+ _onRequestChangedRef.current = onRequestChanged;
28
+ const _onCriteriaChangedRef = React.useRef(onCriteriaChanged);
29
+ _onCriteriaChangedRef.current = onCriteriaChanged;
30
+ const _onCreateEntityRef = React.useRef(onCreateEntity);
31
+ _onCreateEntityRef.current = onCreateEntity;
32
+ const _onEditEntityRef = React.useRef(onEditEntity);
33
+ _onEditEntityRef.current = onEditEntity;
34
+ const _onDeleteEntityRef = React.useRef(onDeleteEntity);
35
+ _onDeleteEntityRef.current = onDeleteEntity;
36
+ const _onSubmitFailureRef = React.useRef(onSubmitFailure);
37
+ _onSubmitFailureRef.current = onSubmitFailure;
38
+ const _onSubmitSuccessRef = React.useRef(onSubmitSuccess);
39
+ _onSubmitSuccessRef.current = onSubmitSuccess;
40
+ const _onRowClickRef = React.useRef(onRowClick);
41
+ _onRowClickRef.current = onRowClick;
42
+ const _onRowDblClickRef = React.useRef(onRowDblClick);
43
+ _onRowDblClickRef.current = onRowDblClick;
44
+ const _onRowSelectedRef = React.useRef(onRowSelected);
45
+ _onRowSelectedRef.current = onRowSelected;
46
+ const _onSelectionChangedRef = React.useRef(onSelectionChanged);
47
+ _onSelectionChangedRef.current = onSelectionChanged;
48
+ React.useLayoutEffect(() => {
49
+ const el = _innerRef.current;
50
+ if (!el) return;
51
+ const _onRequestChangedFn = (e) => _onRequestChangedRef.current?.(e);
52
+ el.addEventListener('request-changed', _onRequestChangedFn);
53
+ const _onCriteriaChangedFn = (e) => _onCriteriaChangedRef.current?.(e);
54
+ el.addEventListener('criteria-changed', _onCriteriaChangedFn);
55
+ const _onCreateEntityFn = (e) => _onCreateEntityRef.current?.(e);
56
+ el.addEventListener('create-entity', _onCreateEntityFn);
57
+ const _onEditEntityFn = (e) => _onEditEntityRef.current?.(e);
58
+ el.addEventListener('edit-entity', _onEditEntityFn);
59
+ const _onDeleteEntityFn = (e) => _onDeleteEntityRef.current?.(e);
60
+ el.addEventListener('delete-entity', _onDeleteEntityFn);
61
+ const _onSubmitFailureFn = (e) => _onSubmitFailureRef.current?.(e);
62
+ el.addEventListener('submit-failure', _onSubmitFailureFn);
63
+ const _onSubmitSuccessFn = (e) => _onSubmitSuccessRef.current?.(e);
64
+ el.addEventListener('submit-success', _onSubmitSuccessFn);
65
+ const _onRowClickFn = (e) => _onRowClickRef.current?.(e);
66
+ el.addEventListener('rowClick', _onRowClickFn);
67
+ const _onRowDblClickFn = (e) => _onRowDblClickRef.current?.(e);
68
+ el.addEventListener('rowDblClick', _onRowDblClickFn);
69
+ const _onRowSelectedFn = (e) => _onRowSelectedRef.current?.(e);
70
+ el.addEventListener('rowSelected', _onRowSelectedFn);
71
+ const _onSelectionChangedFn = (e) => _onSelectionChangedRef.current?.(e);
72
+ el.addEventListener('selectionChanged', _onSelectionChangedFn);
73
+ return () => {
74
+ el.removeEventListener('request-changed', _onRequestChangedFn);
75
+ el.removeEventListener('criteria-changed', _onCriteriaChangedFn);
76
+ el.removeEventListener('create-entity', _onCreateEntityFn);
77
+ el.removeEventListener('edit-entity', _onEditEntityFn);
78
+ el.removeEventListener('delete-entity', _onDeleteEntityFn);
79
+ el.removeEventListener('submit-failure', _onSubmitFailureFn);
80
+ el.removeEventListener('submit-success', _onSubmitSuccessFn);
81
+ el.removeEventListener('rowClick', _onRowClickFn);
82
+ el.removeEventListener('rowDblClick', _onRowDblClickFn);
83
+ el.removeEventListener('rowSelected', _onRowSelectedFn);
84
+ el.removeEventListener('selectionChanged', _onSelectionChangedFn);
85
+ };
86
+ }, []);
87
+ return React.createElement(customElements.getName(EntityManagementWC) ?? 'entity-management', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
26
88
  });
27
89
 
28
90
  const SmartFormModal = React.forwardRef(function SmartFormModal(props, ref) {
29
- const { children, ...rest } = props;
30
- return React.createElement(customElements.getName(SmartFormModalWC) ?? 'smart-form-modal', { ...rest, ref }, children);
91
+ const { onRequestChanged, onCriteriaChanged, onCreateEntity, onEditEntity, onDeleteEntity, onSubmitFailure, onSubmitSuccess, onRowClick, onRowDblClick, onRowSelected, onSelectionChanged, children, ...rest } = props;
92
+ const _innerRef = React.useRef(null);
93
+ const _onRequestChangedRef = React.useRef(onRequestChanged);
94
+ _onRequestChangedRef.current = onRequestChanged;
95
+ const _onCriteriaChangedRef = React.useRef(onCriteriaChanged);
96
+ _onCriteriaChangedRef.current = onCriteriaChanged;
97
+ const _onCreateEntityRef = React.useRef(onCreateEntity);
98
+ _onCreateEntityRef.current = onCreateEntity;
99
+ const _onEditEntityRef = React.useRef(onEditEntity);
100
+ _onEditEntityRef.current = onEditEntity;
101
+ const _onDeleteEntityRef = React.useRef(onDeleteEntity);
102
+ _onDeleteEntityRef.current = onDeleteEntity;
103
+ const _onSubmitFailureRef = React.useRef(onSubmitFailure);
104
+ _onSubmitFailureRef.current = onSubmitFailure;
105
+ const _onSubmitSuccessRef = React.useRef(onSubmitSuccess);
106
+ _onSubmitSuccessRef.current = onSubmitSuccess;
107
+ const _onRowClickRef = React.useRef(onRowClick);
108
+ _onRowClickRef.current = onRowClick;
109
+ const _onRowDblClickRef = React.useRef(onRowDblClick);
110
+ _onRowDblClickRef.current = onRowDblClick;
111
+ const _onRowSelectedRef = React.useRef(onRowSelected);
112
+ _onRowSelectedRef.current = onRowSelected;
113
+ const _onSelectionChangedRef = React.useRef(onSelectionChanged);
114
+ _onSelectionChangedRef.current = onSelectionChanged;
115
+ React.useLayoutEffect(() => {
116
+ const el = _innerRef.current;
117
+ if (!el) return;
118
+ const _onRequestChangedFn = (e) => _onRequestChangedRef.current?.(e);
119
+ el.addEventListener('request-changed', _onRequestChangedFn);
120
+ const _onCriteriaChangedFn = (e) => _onCriteriaChangedRef.current?.(e);
121
+ el.addEventListener('criteria-changed', _onCriteriaChangedFn);
122
+ const _onCreateEntityFn = (e) => _onCreateEntityRef.current?.(e);
123
+ el.addEventListener('create-entity', _onCreateEntityFn);
124
+ const _onEditEntityFn = (e) => _onEditEntityRef.current?.(e);
125
+ el.addEventListener('edit-entity', _onEditEntityFn);
126
+ const _onDeleteEntityFn = (e) => _onDeleteEntityRef.current?.(e);
127
+ el.addEventListener('delete-entity', _onDeleteEntityFn);
128
+ const _onSubmitFailureFn = (e) => _onSubmitFailureRef.current?.(e);
129
+ el.addEventListener('submit-failure', _onSubmitFailureFn);
130
+ const _onSubmitSuccessFn = (e) => _onSubmitSuccessRef.current?.(e);
131
+ el.addEventListener('submit-success', _onSubmitSuccessFn);
132
+ const _onRowClickFn = (e) => _onRowClickRef.current?.(e);
133
+ el.addEventListener('rowClick', _onRowClickFn);
134
+ const _onRowDblClickFn = (e) => _onRowDblClickRef.current?.(e);
135
+ el.addEventListener('rowDblClick', _onRowDblClickFn);
136
+ const _onRowSelectedFn = (e) => _onRowSelectedRef.current?.(e);
137
+ el.addEventListener('rowSelected', _onRowSelectedFn);
138
+ const _onSelectionChangedFn = (e) => _onSelectionChangedRef.current?.(e);
139
+ el.addEventListener('selectionChanged', _onSelectionChangedFn);
140
+ return () => {
141
+ el.removeEventListener('request-changed', _onRequestChangedFn);
142
+ el.removeEventListener('criteria-changed', _onCriteriaChangedFn);
143
+ el.removeEventListener('create-entity', _onCreateEntityFn);
144
+ el.removeEventListener('edit-entity', _onEditEntityFn);
145
+ el.removeEventListener('delete-entity', _onDeleteEntityFn);
146
+ el.removeEventListener('submit-failure', _onSubmitFailureFn);
147
+ el.removeEventListener('submit-success', _onSubmitSuccessFn);
148
+ el.removeEventListener('rowClick', _onRowClickFn);
149
+ el.removeEventListener('rowDblClick', _onRowDblClickFn);
150
+ el.removeEventListener('rowSelected', _onRowSelectedFn);
151
+ el.removeEventListener('selectionChanged', _onSelectionChangedFn);
152
+ };
153
+ }, []);
154
+ return React.createElement(customElements.getName(SmartFormModalWC) ?? 'smart-form-modal', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
31
155
  });
32
156
 
33
157
  const List = React.forwardRef(function List(props, ref) {
package/dist/react.mjs CHANGED
@@ -19,13 +19,137 @@ function _mergeRefs(...refs) {
19
19
  }
20
20
 
21
21
  export const EntityManagement = React.forwardRef(function EntityManagement(props, ref) {
22
- const { children, ...rest } = props;
23
- return React.createElement(customElements.getName(EntityManagementWC) ?? 'entity-management', { ...rest, ref }, children);
22
+ const { onRequestChanged, onCriteriaChanged, onCreateEntity, onEditEntity, onDeleteEntity, onSubmitFailure, onSubmitSuccess, onRowClick, onRowDblClick, onRowSelected, onSelectionChanged, children, ...rest } = props;
23
+ const _innerRef = React.useRef(null);
24
+ const _onRequestChangedRef = React.useRef(onRequestChanged);
25
+ _onRequestChangedRef.current = onRequestChanged;
26
+ const _onCriteriaChangedRef = React.useRef(onCriteriaChanged);
27
+ _onCriteriaChangedRef.current = onCriteriaChanged;
28
+ const _onCreateEntityRef = React.useRef(onCreateEntity);
29
+ _onCreateEntityRef.current = onCreateEntity;
30
+ const _onEditEntityRef = React.useRef(onEditEntity);
31
+ _onEditEntityRef.current = onEditEntity;
32
+ const _onDeleteEntityRef = React.useRef(onDeleteEntity);
33
+ _onDeleteEntityRef.current = onDeleteEntity;
34
+ const _onSubmitFailureRef = React.useRef(onSubmitFailure);
35
+ _onSubmitFailureRef.current = onSubmitFailure;
36
+ const _onSubmitSuccessRef = React.useRef(onSubmitSuccess);
37
+ _onSubmitSuccessRef.current = onSubmitSuccess;
38
+ const _onRowClickRef = React.useRef(onRowClick);
39
+ _onRowClickRef.current = onRowClick;
40
+ const _onRowDblClickRef = React.useRef(onRowDblClick);
41
+ _onRowDblClickRef.current = onRowDblClick;
42
+ const _onRowSelectedRef = React.useRef(onRowSelected);
43
+ _onRowSelectedRef.current = onRowSelected;
44
+ const _onSelectionChangedRef = React.useRef(onSelectionChanged);
45
+ _onSelectionChangedRef.current = onSelectionChanged;
46
+ React.useLayoutEffect(() => {
47
+ const el = _innerRef.current;
48
+ if (!el) return;
49
+ const _onRequestChangedFn = (e) => _onRequestChangedRef.current?.(e);
50
+ el.addEventListener('request-changed', _onRequestChangedFn);
51
+ const _onCriteriaChangedFn = (e) => _onCriteriaChangedRef.current?.(e);
52
+ el.addEventListener('criteria-changed', _onCriteriaChangedFn);
53
+ const _onCreateEntityFn = (e) => _onCreateEntityRef.current?.(e);
54
+ el.addEventListener('create-entity', _onCreateEntityFn);
55
+ const _onEditEntityFn = (e) => _onEditEntityRef.current?.(e);
56
+ el.addEventListener('edit-entity', _onEditEntityFn);
57
+ const _onDeleteEntityFn = (e) => _onDeleteEntityRef.current?.(e);
58
+ el.addEventListener('delete-entity', _onDeleteEntityFn);
59
+ const _onSubmitFailureFn = (e) => _onSubmitFailureRef.current?.(e);
60
+ el.addEventListener('submit-failure', _onSubmitFailureFn);
61
+ const _onSubmitSuccessFn = (e) => _onSubmitSuccessRef.current?.(e);
62
+ el.addEventListener('submit-success', _onSubmitSuccessFn);
63
+ const _onRowClickFn = (e) => _onRowClickRef.current?.(e);
64
+ el.addEventListener('rowClick', _onRowClickFn);
65
+ const _onRowDblClickFn = (e) => _onRowDblClickRef.current?.(e);
66
+ el.addEventListener('rowDblClick', _onRowDblClickFn);
67
+ const _onRowSelectedFn = (e) => _onRowSelectedRef.current?.(e);
68
+ el.addEventListener('rowSelected', _onRowSelectedFn);
69
+ const _onSelectionChangedFn = (e) => _onSelectionChangedRef.current?.(e);
70
+ el.addEventListener('selectionChanged', _onSelectionChangedFn);
71
+ return () => {
72
+ el.removeEventListener('request-changed', _onRequestChangedFn);
73
+ el.removeEventListener('criteria-changed', _onCriteriaChangedFn);
74
+ el.removeEventListener('create-entity', _onCreateEntityFn);
75
+ el.removeEventListener('edit-entity', _onEditEntityFn);
76
+ el.removeEventListener('delete-entity', _onDeleteEntityFn);
77
+ el.removeEventListener('submit-failure', _onSubmitFailureFn);
78
+ el.removeEventListener('submit-success', _onSubmitSuccessFn);
79
+ el.removeEventListener('rowClick', _onRowClickFn);
80
+ el.removeEventListener('rowDblClick', _onRowDblClickFn);
81
+ el.removeEventListener('rowSelected', _onRowSelectedFn);
82
+ el.removeEventListener('selectionChanged', _onSelectionChangedFn);
83
+ };
84
+ }, []);
85
+ return React.createElement(customElements.getName(EntityManagementWC) ?? 'entity-management', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
24
86
  });
25
87
 
26
88
  export const SmartFormModal = React.forwardRef(function SmartFormModal(props, ref) {
27
- const { children, ...rest } = props;
28
- return React.createElement(customElements.getName(SmartFormModalWC) ?? 'smart-form-modal', { ...rest, ref }, children);
89
+ const { onRequestChanged, onCriteriaChanged, onCreateEntity, onEditEntity, onDeleteEntity, onSubmitFailure, onSubmitSuccess, onRowClick, onRowDblClick, onRowSelected, onSelectionChanged, children, ...rest } = props;
90
+ const _innerRef = React.useRef(null);
91
+ const _onRequestChangedRef = React.useRef(onRequestChanged);
92
+ _onRequestChangedRef.current = onRequestChanged;
93
+ const _onCriteriaChangedRef = React.useRef(onCriteriaChanged);
94
+ _onCriteriaChangedRef.current = onCriteriaChanged;
95
+ const _onCreateEntityRef = React.useRef(onCreateEntity);
96
+ _onCreateEntityRef.current = onCreateEntity;
97
+ const _onEditEntityRef = React.useRef(onEditEntity);
98
+ _onEditEntityRef.current = onEditEntity;
99
+ const _onDeleteEntityRef = React.useRef(onDeleteEntity);
100
+ _onDeleteEntityRef.current = onDeleteEntity;
101
+ const _onSubmitFailureRef = React.useRef(onSubmitFailure);
102
+ _onSubmitFailureRef.current = onSubmitFailure;
103
+ const _onSubmitSuccessRef = React.useRef(onSubmitSuccess);
104
+ _onSubmitSuccessRef.current = onSubmitSuccess;
105
+ const _onRowClickRef = React.useRef(onRowClick);
106
+ _onRowClickRef.current = onRowClick;
107
+ const _onRowDblClickRef = React.useRef(onRowDblClick);
108
+ _onRowDblClickRef.current = onRowDblClick;
109
+ const _onRowSelectedRef = React.useRef(onRowSelected);
110
+ _onRowSelectedRef.current = onRowSelected;
111
+ const _onSelectionChangedRef = React.useRef(onSelectionChanged);
112
+ _onSelectionChangedRef.current = onSelectionChanged;
113
+ React.useLayoutEffect(() => {
114
+ const el = _innerRef.current;
115
+ if (!el) return;
116
+ const _onRequestChangedFn = (e) => _onRequestChangedRef.current?.(e);
117
+ el.addEventListener('request-changed', _onRequestChangedFn);
118
+ const _onCriteriaChangedFn = (e) => _onCriteriaChangedRef.current?.(e);
119
+ el.addEventListener('criteria-changed', _onCriteriaChangedFn);
120
+ const _onCreateEntityFn = (e) => _onCreateEntityRef.current?.(e);
121
+ el.addEventListener('create-entity', _onCreateEntityFn);
122
+ const _onEditEntityFn = (e) => _onEditEntityRef.current?.(e);
123
+ el.addEventListener('edit-entity', _onEditEntityFn);
124
+ const _onDeleteEntityFn = (e) => _onDeleteEntityRef.current?.(e);
125
+ el.addEventListener('delete-entity', _onDeleteEntityFn);
126
+ const _onSubmitFailureFn = (e) => _onSubmitFailureRef.current?.(e);
127
+ el.addEventListener('submit-failure', _onSubmitFailureFn);
128
+ const _onSubmitSuccessFn = (e) => _onSubmitSuccessRef.current?.(e);
129
+ el.addEventListener('submit-success', _onSubmitSuccessFn);
130
+ const _onRowClickFn = (e) => _onRowClickRef.current?.(e);
131
+ el.addEventListener('rowClick', _onRowClickFn);
132
+ const _onRowDblClickFn = (e) => _onRowDblClickRef.current?.(e);
133
+ el.addEventListener('rowDblClick', _onRowDblClickFn);
134
+ const _onRowSelectedFn = (e) => _onRowSelectedRef.current?.(e);
135
+ el.addEventListener('rowSelected', _onRowSelectedFn);
136
+ const _onSelectionChangedFn = (e) => _onSelectionChangedRef.current?.(e);
137
+ el.addEventListener('selectionChanged', _onSelectionChangedFn);
138
+ return () => {
139
+ el.removeEventListener('request-changed', _onRequestChangedFn);
140
+ el.removeEventListener('criteria-changed', _onCriteriaChangedFn);
141
+ el.removeEventListener('create-entity', _onCreateEntityFn);
142
+ el.removeEventListener('edit-entity', _onEditEntityFn);
143
+ el.removeEventListener('delete-entity', _onDeleteEntityFn);
144
+ el.removeEventListener('submit-failure', _onSubmitFailureFn);
145
+ el.removeEventListener('submit-success', _onSubmitSuccessFn);
146
+ el.removeEventListener('rowClick', _onRowClickFn);
147
+ el.removeEventListener('rowDblClick', _onRowDblClickFn);
148
+ el.removeEventListener('rowSelected', _onRowSelectedFn);
149
+ el.removeEventListener('selectionChanged', _onSelectionChangedFn);
150
+ };
151
+ }, []);
152
+ return React.createElement(customElements.getName(SmartFormModalWC) ?? 'smart-form-modal', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
29
153
  });
30
154
 
31
155
  export const List = React.forwardRef(function List(props, ref) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-entity-management",
3
3
  "description": "Genesis Foundation Entity Management",
4
- "version": "14.439.0",
4
+ "version": "14.439.1-GENC-1250.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -54,32 +54,32 @@
54
54
  }
55
55
  },
56
56
  "devDependencies": {
57
- "@genesislcap/foundation-testing": "14.439.0",
58
- "@genesislcap/genx": "14.439.0",
59
- "@genesislcap/rollup-builder": "14.439.0",
60
- "@genesislcap/ts-builder": "14.439.0",
61
- "@genesislcap/uvu-playwright-builder": "14.439.0",
62
- "@genesislcap/vite-builder": "14.439.0",
63
- "@genesislcap/webpack-builder": "14.439.0"
57
+ "@genesislcap/foundation-testing": "14.439.1-GENC-1250.1",
58
+ "@genesislcap/genx": "14.439.1-GENC-1250.1",
59
+ "@genesislcap/rollup-builder": "14.439.1-GENC-1250.1",
60
+ "@genesislcap/ts-builder": "14.439.1-GENC-1250.1",
61
+ "@genesislcap/uvu-playwright-builder": "14.439.1-GENC-1250.1",
62
+ "@genesislcap/vite-builder": "14.439.1-GENC-1250.1",
63
+ "@genesislcap/webpack-builder": "14.439.1-GENC-1250.1"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@ag-grid-community/core": "29.2.0"
67
67
  },
68
68
  "dependencies": {
69
- "@genesislcap/foundation-ai": "14.439.0",
70
- "@genesislcap/foundation-comms": "14.439.0",
71
- "@genesislcap/foundation-errors": "14.439.0",
72
- "@genesislcap/foundation-events": "14.439.0",
73
- "@genesislcap/foundation-forms": "14.439.0",
74
- "@genesislcap/foundation-logger": "14.439.0",
75
- "@genesislcap/foundation-login": "14.439.0",
76
- "@genesislcap/foundation-notifications": "14.439.0",
77
- "@genesislcap/foundation-ui": "14.439.0",
78
- "@genesislcap/foundation-utils": "14.439.0",
79
- "@genesislcap/foundation-zero": "14.439.0",
80
- "@genesislcap/foundation-zero-grid-pro": "14.439.0",
81
- "@genesislcap/grid-pro": "14.439.0",
82
- "@genesislcap/web-core": "14.439.0",
69
+ "@genesislcap/foundation-ai": "14.439.1-GENC-1250.1",
70
+ "@genesislcap/foundation-comms": "14.439.1-GENC-1250.1",
71
+ "@genesislcap/foundation-errors": "14.439.1-GENC-1250.1",
72
+ "@genesislcap/foundation-events": "14.439.1-GENC-1250.1",
73
+ "@genesislcap/foundation-forms": "14.439.1-GENC-1250.1",
74
+ "@genesislcap/foundation-logger": "14.439.1-GENC-1250.1",
75
+ "@genesislcap/foundation-login": "14.439.1-GENC-1250.1",
76
+ "@genesislcap/foundation-notifications": "14.439.1-GENC-1250.1",
77
+ "@genesislcap/foundation-ui": "14.439.1-GENC-1250.1",
78
+ "@genesislcap/foundation-utils": "14.439.1-GENC-1250.1",
79
+ "@genesislcap/foundation-zero": "14.439.1-GENC-1250.1",
80
+ "@genesislcap/foundation-zero-grid-pro": "14.439.1-GENC-1250.1",
81
+ "@genesislcap/grid-pro": "14.439.1-GENC-1250.1",
82
+ "@genesislcap/web-core": "14.439.1-GENC-1250.1",
83
83
  "change-case": "^4.1.2"
84
84
  },
85
85
  "repository": {
@@ -102,5 +102,5 @@
102
102
  "require": "./dist/react.cjs"
103
103
  }
104
104
  },
105
- "gitHead": "25adab0e86be16092b258c8d7f429c4c6971d968"
105
+ "gitHead": "4347686a257fc3d74548bba4cdbc570d1ea14914"
106
106
  }