@symphony-talent/component-library 4.232.0 → 4.233.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 (19) hide show
  1. package/esm2020/lib/atoms/contextual-menu/contextual-menu.component.mjs +2 -2
  2. package/esm2020/lib/atoms/grid/framework/custom-detail-with-grid/custom-detail-with-grid.component.mjs +57 -3
  3. package/esm2020/lib/atoms/pill/pill.component.mjs +2 -2
  4. package/esm2020/lib/pages/modals/notification-modal/notification-modal.component.mjs +2 -2
  5. package/esm2020/projects/component-library/lib/atoms/contextual-menu/contextual-menu.component.mjs +2 -2
  6. package/esm2020/projects/component-library/lib/atoms/grid/framework/custom-detail-with-grid/custom-detail-with-grid.component.mjs +57 -3
  7. package/esm2020/projects/component-library/lib/atoms/pill/pill.component.mjs +2 -2
  8. package/esm2020/projects/component-library/lib/pages/modals/notification-modal/notification-modal.component.mjs +2 -2
  9. package/fesm2015/symphony-talent-component-library-projects-component-library.mjs +71 -11
  10. package/fesm2015/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
  11. package/fesm2015/symphony-talent-component-library.mjs +71 -11
  12. package/fesm2015/symphony-talent-component-library.mjs.map +1 -1
  13. package/fesm2020/symphony-talent-component-library-projects-component-library.mjs +62 -8
  14. package/fesm2020/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
  15. package/fesm2020/symphony-talent-component-library.mjs +62 -8
  16. package/fesm2020/symphony-talent-component-library.mjs.map +1 -1
  17. package/lib/atoms/grid/framework/custom-detail-with-grid/custom-detail-with-grid.component.d.ts +16 -1
  18. package/package.json +1 -1
  19. package/projects/component-library/lib/atoms/grid/framework/custom-detail-with-grid/custom-detail-with-grid.component.d.ts +16 -1
@@ -1,4 +1,4 @@
1
- import { ColDef, GridApi, GridReadyEvent, ICellRenderer, ICellRendererParams } from 'ag-grid-community';
1
+ import { ColDef, GridApi, GridReadyEvent, ICellRenderer, ICellRendererParams, IServerSideDatasource } from 'ag-grid-community';
2
2
  import { ContextualMenuActionModel } from '../event-settings-more-options/event-settings-more-options.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface CustomDetailWithGridParams {
@@ -17,10 +17,17 @@ export interface CustomDetailWithGridParams {
17
17
  nestedSuppressRowClickSelection?: boolean;
18
18
  nestedSuppressContextMenu?: boolean;
19
19
  nestedSuppressAutoSizeColumns?: boolean;
20
+ nestedRowModelType?: string;
21
+ nestedDatasource?: IServerSideDatasource;
22
+ nestedDatasourceFactory?: (parentRow: any, params: ICellRendererParams) => IServerSideDatasource;
23
+ nestedPageSize?: number;
24
+ nestedCacheBlockSize?: number;
25
+ onNestedGridReady?: (gridReadyEvent: GridReadyEvent, params: ICellRendererParams) => void;
20
26
  }
21
27
  export declare class CustomDetailWithGridComponent implements ICellRenderer {
22
28
  private readonly defaultNotesCharacterLimit;
23
29
  private resizeTimeoutId;
30
+ private nestedDetailGridInfoId;
24
31
  params: ICellRendererParams;
25
32
  detailRendererParams: CustomDetailWithGridParams;
26
33
  nestedGridApi: GridApi;
@@ -38,12 +45,17 @@ export declare class CustomDetailWithGridComponent implements ICellRenderer {
38
45
  nestedSuppressRowClickSelection: boolean;
39
46
  nestedSuppressContextMenu: boolean;
40
47
  nestedSuppressAutoSizeColumns: boolean;
48
+ nestedRowModelType: string;
49
+ nestedDatasource: IServerSideDatasource | null;
50
+ nestedPageSize: number;
51
+ nestedCacheBlockSize: number;
41
52
  nestedColumnDefs: ColDef[];
42
53
  nestedDefaultColDef: ColDef;
43
54
  nestedRowData: any[];
44
55
  agInit(params: ICellRendererParams): void;
45
56
  refresh(params: ICellRendererParams): boolean;
46
57
  onNestedGridReady(gridReadyEvent: GridReadyEvent): void;
58
+ setNestedRowData(rowData: any[]): void;
47
59
  onWindowResize(): void;
48
60
  onViewAllClick(): void;
49
61
  onNestedMoreOptionsClick(action: ContextualMenuActionModel): void;
@@ -53,6 +65,9 @@ export declare class CustomDetailWithGridComponent implements ICellRenderer {
53
65
  get shouldShowNotesSection(): boolean;
54
66
  private getNestedColumnDefs;
55
67
  private getNestedFrameworkComponents;
68
+ private resolveNestedDatasource;
69
+ private applyNestedDatasource;
70
+ private registerNestedDetailGrid;
56
71
  destroy(): void;
57
72
  private resizeNestedGridColumns;
58
73
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDetailWithGridComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symphony-talent/component-library",
3
- "version": "4.232.0",
3
+ "version": "4.233.0",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "ag-grid-angular": "^24.0.0",
@@ -1,4 +1,4 @@
1
- import { ColDef, GridApi, GridReadyEvent, ICellRenderer, ICellRendererParams } from 'ag-grid-community';
1
+ import { ColDef, GridApi, GridReadyEvent, ICellRenderer, ICellRendererParams, IServerSideDatasource } from 'ag-grid-community';
2
2
  import { ContextualMenuActionModel } from '../event-settings-more-options/event-settings-more-options.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface CustomDetailWithGridParams {
@@ -17,10 +17,17 @@ export interface CustomDetailWithGridParams {
17
17
  nestedSuppressRowClickSelection?: boolean;
18
18
  nestedSuppressContextMenu?: boolean;
19
19
  nestedSuppressAutoSizeColumns?: boolean;
20
+ nestedRowModelType?: string;
21
+ nestedDatasource?: IServerSideDatasource;
22
+ nestedDatasourceFactory?: (parentRow: any, params: ICellRendererParams) => IServerSideDatasource;
23
+ nestedPageSize?: number;
24
+ nestedCacheBlockSize?: number;
25
+ onNestedGridReady?: (gridReadyEvent: GridReadyEvent, params: ICellRendererParams) => void;
20
26
  }
21
27
  export declare class CustomDetailWithGridComponent implements ICellRenderer {
22
28
  private readonly defaultNotesCharacterLimit;
23
29
  private resizeTimeoutId;
30
+ private nestedDetailGridInfoId;
24
31
  params: ICellRendererParams;
25
32
  detailRendererParams: CustomDetailWithGridParams;
26
33
  nestedGridApi: GridApi;
@@ -38,12 +45,17 @@ export declare class CustomDetailWithGridComponent implements ICellRenderer {
38
45
  nestedSuppressRowClickSelection: boolean;
39
46
  nestedSuppressContextMenu: boolean;
40
47
  nestedSuppressAutoSizeColumns: boolean;
48
+ nestedRowModelType: string;
49
+ nestedDatasource: IServerSideDatasource | null;
50
+ nestedPageSize: number;
51
+ nestedCacheBlockSize: number;
41
52
  nestedColumnDefs: ColDef[];
42
53
  nestedDefaultColDef: ColDef;
43
54
  nestedRowData: any[];
44
55
  agInit(params: ICellRendererParams): void;
45
56
  refresh(params: ICellRendererParams): boolean;
46
57
  onNestedGridReady(gridReadyEvent: GridReadyEvent): void;
58
+ setNestedRowData(rowData: any[]): void;
47
59
  onWindowResize(): void;
48
60
  onViewAllClick(): void;
49
61
  onNestedMoreOptionsClick(action: ContextualMenuActionModel): void;
@@ -53,6 +65,9 @@ export declare class CustomDetailWithGridComponent implements ICellRenderer {
53
65
  get shouldShowNotesSection(): boolean;
54
66
  private getNestedColumnDefs;
55
67
  private getNestedFrameworkComponents;
68
+ private resolveNestedDatasource;
69
+ private applyNestedDatasource;
70
+ private registerNestedDetailGrid;
56
71
  destroy(): void;
57
72
  private resizeNestedGridColumns;
58
73
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDetailWithGridComponent, never>;