@datorama/core 22.14.1 → 22.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.scss +9882 -6528
- package/bundles/datorama-core.umd.js +106 -52
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +60 -60
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/button/button.component.js +1 -1
- package/esm2015/lib/grid/dato-grid.js +4 -3
- package/esm2015/lib/grid/grid/grid.component.js +2 -6
- package/esm2015/lib/grid/grid-sort.utils.js +23 -0
- package/esm2015/lib/grid-v2/grid/grid-v2.component.js +1 -1
- package/esm2015/lib/grid-v2/grid/grid-v2.config.js +17 -12
- package/esm2015/lib/grid-v2/grid-column-header/grid-column-header.component.js +4 -1
- package/esm2015/lib/grid-v2/grid-column-header/grid-multi-select-header/grid-multi-select-header.component.js +4 -1
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +3 -3
- package/esm2015/lib/grid-v2/grid-on-hover/grid-on-hover.component.js +17 -14
- package/esm2015/lib/grid-v2/grid-store/grid.query.js +3 -2
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +19 -5
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +2 -2
- package/esm2015/lib/radio/radio.component.js +1 -1
- package/esm2015/lib/utils/string.js +9 -11
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/button/button.component.js +1 -1
- package/esm5/lib/grid/dato-grid.js +4 -3
- package/esm5/lib/grid/grid/grid.component.js +2 -6
- package/esm5/lib/grid/grid-sort.utils.js +30 -0
- package/esm5/lib/grid-v2/grid/grid-v2.component.js +1 -1
- package/esm5/lib/grid-v2/grid/grid-v2.config.js +19 -13
- package/esm5/lib/grid-v2/grid-column-header/grid-column-header.component.js +4 -1
- package/esm5/lib/grid-v2/grid-column-header/grid-multi-select-header/grid-multi-select-header.component.js +4 -1
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +3 -3
- package/esm5/lib/grid-v2/grid-on-hover/grid-on-hover.component.js +17 -14
- package/esm5/lib/grid-v2/grid-store/grid.query.js +3 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +19 -5
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +2 -2
- package/esm5/lib/radio/radio.component.js +1 -1
- package/esm5/lib/utils/string.js +9 -11
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +97 -52
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +106 -53
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid/grid-sort.utils.d.ts +15 -0
- package/lib/grid-v2/grid/grid-v2.config.d.ts +1 -0
- package/lib/grid-v2/grid-column-header/grid-column-header.component.d.ts +2 -1
- package/lib/grid-v2/grid-column-header/grid-multi-select-header/grid-multi-select-header.component.d.ts +1 -0
- package/lib/grid-v2/grid-on-hover/grid-on-hover.component.d.ts +1 -3
- package/lib/grid-v2/grid-store/grid.service.d.ts +325 -281
- package/package.json +4 -1
- package/testing/src/grid/rows.ts +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColumnApi } from '@ag-grid-community/core';
|
|
2
|
+
export declare type GridSortModelItem = {
|
|
3
|
+
colId: string;
|
|
4
|
+
sort: 'asc' | 'desc';
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Returns the active sort model using the Column State API introduced as the
|
|
8
|
+
* replacement for GridApi#getSortModel in AG Grid 24 and required in AG Grid 27.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getSortModel(columnApi: ColumnApi): GridSortModelItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Applies the complete sort model and clears sorting from columns omitted from
|
|
13
|
+
* the model, matching the behavior of the removed GridApi#setSortModel method.
|
|
14
|
+
*/
|
|
15
|
+
export declare function applySortModel(columnApi: ColumnApi, sortModel?: GridSortModelItem[]): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DatoGridOptions, DatoGridTreeConfig } from './grid-v2.types';
|
|
2
2
|
export declare const ROOT_NODE_ID = "ROOT_NODE_ID";
|
|
3
|
+
export declare function createDefaultTreeOptions(maxDepth?: number): Partial<DatoGridOptions>;
|
|
3
4
|
export declare const defaultTreeOptions: Partial<DatoGridOptions>;
|
|
4
5
|
export declare const defaultGridOptions: Partial<DatoGridOptions>;
|
|
5
6
|
export declare const DEFAULT_GRID_SEARCH_DEBOUNCE_TIME: {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ChangeDetectorRef, ElementRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
9
9
|
import { IHeaderAngularComp } from '@ag-grid-community/angular';
|
|
10
|
-
import { Column, ColumnApi, GridApi, IAfterGuiAttachedParams } from '@ag-grid-community/core';
|
|
10
|
+
import { Column, ColumnApi, GridApi, IAfterGuiAttachedParams, IHeaderParams } from '@ag-grid-community/core';
|
|
11
11
|
import { DatoColumnHeaderParams } from './grid-column-header.types';
|
|
12
12
|
import { CustomHeaderControllerService } from './custom-header-controller.service';
|
|
13
13
|
import { Observable } from 'rxjs';
|
|
@@ -44,6 +44,7 @@ export declare class DatoGridColumnHeaderComponent implements OnDestroy, IHeader
|
|
|
44
44
|
headerInfo: string;
|
|
45
45
|
constructor(vcr: ViewContainerRef, controller: CustomHeaderControllerService, host: ElementRef, cdr: ChangeDetectorRef);
|
|
46
46
|
afterGuiAttached(params?: IAfterGuiAttachedParams): void;
|
|
47
|
+
refresh(_params: IHeaderParams): boolean;
|
|
47
48
|
agInit(params: DatoColumnHeaderParams): void;
|
|
48
49
|
openFilters(origin: any): void;
|
|
49
50
|
openMoreMenu(origin: any): void;
|
|
@@ -21,6 +21,7 @@ export declare class DatoGridMultiSelectColumnHeaderComponent implements OnDestr
|
|
|
21
21
|
private gridOptions;
|
|
22
22
|
constructor(gridService: GridService, gridQuery: GridQuery, cdr: ChangeDetectorRef);
|
|
23
23
|
agInit(params: IHeaderParams): void;
|
|
24
|
+
refresh(_params: IHeaderParams): boolean;
|
|
24
25
|
private subscribeRowsSelectionData;
|
|
25
26
|
toggleMultiSelection(isSelectAll: boolean): void;
|
|
26
27
|
ngOnDestroy(): void;
|
|
@@ -10,11 +10,9 @@ import { CellMouseOverEvent } from '@ag-grid-community/core';
|
|
|
10
10
|
import { RowAction } from '../grid-toolbar/grid-toolbar.types';
|
|
11
11
|
import { DatoGridOnHoverConfig } from '../grid/grid-v2.types';
|
|
12
12
|
import { GridService } from '../grid-store/grid.service';
|
|
13
|
-
import { GridQuery } from '../grid-store/grid.query';
|
|
14
13
|
export declare class DatoGridOnHoverComponent {
|
|
15
14
|
private host;
|
|
16
15
|
private gridService;
|
|
17
|
-
private gridQuery;
|
|
18
16
|
private cdr;
|
|
19
17
|
displayedActions: RowAction[];
|
|
20
18
|
setBgColorBound: any;
|
|
@@ -24,7 +22,7 @@ export declare class DatoGridOnHoverComponent {
|
|
|
24
22
|
showMore: boolean;
|
|
25
23
|
private row;
|
|
26
24
|
private params;
|
|
27
|
-
constructor(host: ElementRef, gridService: GridService,
|
|
25
|
+
constructor(host: ElementRef, gridService: GridService, cdr: ChangeDetectorRef);
|
|
28
26
|
private get hostEl();
|
|
29
27
|
show(params: CellMouseOverEvent): void;
|
|
30
28
|
hide(): void;
|