@datorama/core 22.10.3-rc.0 → 22.10.9-rc.2
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 +244 -115
- package/bundles/datorama-core.umd.js +144 -40
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +38 -38
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid/grid-v2.component.js +1 -1
- package/esm2015/lib/grid-v2/grid/grid-v2.types.js +9 -1
- package/esm2015/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +19 -12
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +26 -12
- package/esm2015/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.js +58 -13
- package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +3 -2
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +17 -1
- package/esm2015/lib/loaders/page-loader/page-loader.component.js +7 -2
- package/esm2015/lib/select/select.component.js +2 -2
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/grid-v2/grid/grid-v2.component.js +1 -1
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +9 -1
- package/esm5/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +20 -12
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +25 -14
- package/esm5/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.js +71 -14
- package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +5 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +17 -1
- package/esm5/lib/loaders/page-loader/page-loader.component.js +7 -2
- package/esm5/lib/select/select.component.js +2 -2
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +131 -39
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +145 -41
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +11 -3
- package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +3 -5
- package/lib/grid-v2/grid-controller/grid-controller.component.d.ts +1 -0
- package/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.d.ts +10 -3
- package/lib/grid-v2/grid-store/grid.service.d.ts +1 -0
- package/lib/loaders/page-loader/page-loader.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -24,18 +24,19 @@ export declare type DatoGridColumnDef = {
|
|
|
24
24
|
valueToCustomCellConfig?: HashMap<DatoGridCustomCellConfig>;
|
|
25
25
|
} & ColDef;
|
|
26
26
|
export declare type DatoGridCustomCellConfig = {
|
|
27
|
-
|
|
28
|
-
icon?: string;
|
|
29
|
-
cssClass?: string;
|
|
27
|
+
textCssClass?: string;
|
|
30
28
|
iconCssClass?: string;
|
|
29
|
+
icon?: string;
|
|
31
30
|
minWidth?: number;
|
|
32
31
|
showSpinner?: boolean;
|
|
33
32
|
maxLabels?: number;
|
|
34
33
|
getAdditionalText?: (data: any) => string;
|
|
34
|
+
additionalTextCssClass?: string;
|
|
35
35
|
getImageUrl?: (data: any) => string;
|
|
36
36
|
initialsConfig?: DatoGridInitialsCellConfig;
|
|
37
37
|
getIsVisible?: (data: any) => boolean;
|
|
38
38
|
getItems?: (data: any) => string[];
|
|
39
|
+
status?: GridStatusColumnTypes;
|
|
39
40
|
};
|
|
40
41
|
export declare type DatoGridInitialsCellConfig = {
|
|
41
42
|
firstNameField?: string;
|
|
@@ -159,3 +160,10 @@ export declare type GridChangeEvent = {
|
|
|
159
160
|
filter: DatoGridExternalFilter[];
|
|
160
161
|
sort: DatoGridSort;
|
|
161
162
|
};
|
|
163
|
+
export declare enum GridStatusColumnTypes {
|
|
164
|
+
SUCCESS = "SUCCESS",
|
|
165
|
+
FAILURE = "FAILURE",
|
|
166
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
167
|
+
PENDING = "PENDING",
|
|
168
|
+
WAITING = "WAITING"
|
|
169
|
+
}
|
package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts
CHANGED
|
@@ -5,16 +5,14 @@ export declare class DatoGridStatusCellComponent implements ICellRendererAngular
|
|
|
5
5
|
private cdr;
|
|
6
6
|
status: string;
|
|
7
7
|
icon: string;
|
|
8
|
-
|
|
8
|
+
textCssClass: string;
|
|
9
9
|
iconCssClass: string;
|
|
10
|
-
|
|
10
|
+
additionalTextCssClass: string;
|
|
11
11
|
additionalText: string;
|
|
12
|
-
color: string;
|
|
13
|
-
backgroundClass: string;
|
|
14
12
|
showSpinner: boolean;
|
|
15
13
|
isGroup: boolean;
|
|
16
14
|
isVisible: boolean;
|
|
17
|
-
private
|
|
15
|
+
private defaultConfigByStatus;
|
|
18
16
|
constructor(cdr: ChangeDetectorRef);
|
|
19
17
|
agInit(params: ICellRendererParams): void;
|
|
20
18
|
private initCellData;
|
|
@@ -44,6 +44,7 @@ export declare class DatoGridControllerComponent implements OnDestroy, AfterCont
|
|
|
44
44
|
private lastHoveredRow;
|
|
45
45
|
private gridElements;
|
|
46
46
|
private readonly treeGridClass;
|
|
47
|
+
private cellMouseOutTimer;
|
|
47
48
|
constructor(gridService: GridService, gridQuery: GridQuery, cdr: ChangeDetectorRef, iconRegistry: IconRegistry, translate: DatoTranslateService, host: ElementRef, injector: Injector, resolver: ComponentFactoryResolver, hotkeys: DatoHotkeys, storageAPI: GridStorageAPI);
|
|
48
49
|
ngOnDestroy(): void;
|
|
49
50
|
ngAfterContentInit(): void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an Apache License 2.0 license that can be
|
|
6
6
|
* found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
|
|
7
7
|
*/
|
|
8
|
-
import { ElementRef } from '@angular/core';
|
|
8
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
9
9
|
import { INoRowsOverlayAngularComp } from 'ag-grid-angular';
|
|
10
10
|
import { INoRowsOverlayParams } from 'ag-grid-community';
|
|
11
11
|
import { GridQuery } from '../grid-store/grid.query';
|
|
@@ -25,16 +25,23 @@ export declare class DatoGridV2NoDataOverlayComponent implements INoRowsOverlayA
|
|
|
25
25
|
private gridQuery;
|
|
26
26
|
private gridService;
|
|
27
27
|
private element;
|
|
28
|
+
private cdr;
|
|
28
29
|
config: DatoGridOverlayInput;
|
|
29
30
|
mergedConfig: GridOverlayConfig;
|
|
30
31
|
filterActive$: Observable<boolean>;
|
|
31
32
|
hasError$: Observable<boolean>;
|
|
32
33
|
private defaultConfig;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
private gridBody;
|
|
35
|
+
/** Adjust the overlay to the grid body viewport height */
|
|
36
|
+
get overlayStyles(): {
|
|
37
|
+
height: string;
|
|
38
|
+
marginTop: string;
|
|
39
|
+
};
|
|
40
|
+
constructor(gridQuery: GridQuery, gridService: GridService, element: ElementRef, cdr: ChangeDetectorRef);
|
|
35
41
|
ngOnInit(): void;
|
|
36
42
|
clearFilters(): void;
|
|
37
43
|
agInit(params: INoRowsOverlayParams): void;
|
|
44
|
+
isIconHidden(): boolean;
|
|
38
45
|
private initDefaultConfig;
|
|
39
46
|
}
|
|
40
47
|
export {};
|
|
@@ -61,6 +61,7 @@ export declare class GridService implements OnDestroy {
|
|
|
61
61
|
clearTable(): void;
|
|
62
62
|
updateColumns(colDefs: DatoGridColumnDef | DatoGridColumnDef[], reloadSettings?: boolean): void;
|
|
63
63
|
normalizeOptions(params: NormalizeOptionsParams): DatoGridOptions;
|
|
64
|
+
private getPivotCellClass;
|
|
64
65
|
private normalizeColumns;
|
|
65
66
|
private normalizeColumnSearchConfig;
|
|
66
67
|
private hasCellRenderer;
|