@datorama/core 22.12.1 → 22.12.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/bundles/datorama-core.umd.js +16 -2
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +2 -2
- 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.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-column-header/grid-column-header.component.js +16 -2
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +1 -1
- package/esm5/lib/grid-v2/grid-column-header/grid-column-header.component.js +16 -2
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +16 -2
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +16 -2
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -0
- package/lib/grid-v2/grid-column-header/grid-column-header.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -13580,6 +13580,7 @@
|
|
|
13580
13580
|
this.showFilter = colDef.filter !== exports.DatoGridFilterTypes.None;
|
|
13581
13581
|
this.showMoreMenu = isNil(colDef.moreMenuActions) || colDef.moreMenuActions.length > 0;
|
|
13582
13582
|
this.field = getColField(colDef);
|
|
13583
|
+
this.headerTooltip = this.getHeaderTooltip(colDef);
|
|
13583
13584
|
this.context = {
|
|
13584
13585
|
api: {
|
|
13585
13586
|
grid: params.api,
|
|
@@ -13662,6 +13663,19 @@
|
|
|
13662
13663
|
});
|
|
13663
13664
|
};
|
|
13664
13665
|
DatoGridColumnHeaderComponent.prototype.ngOnDestroy = function () { };
|
|
13666
|
+
DatoGridColumnHeaderComponent.prototype.getHeaderTooltip = function (initialColDef) {
|
|
13667
|
+
if (this.params) {
|
|
13668
|
+
var colDef_1 = initialColDef;
|
|
13669
|
+
if (colDef_1.showRowGroup) {
|
|
13670
|
+
var rowGroupColumns = this.params.columnApi.getRowGroupColumns();
|
|
13671
|
+
var rowGroupColumn = rowGroupColumns && rowGroupColumns.find(function (col) { return col.getColId() === colDef_1.showRowGroup; });
|
|
13672
|
+
var rowGroupColDef = rowGroupColumn && rowGroupColumn.getColDef();
|
|
13673
|
+
colDef_1 = rowGroupColDef || colDef_1;
|
|
13674
|
+
}
|
|
13675
|
+
return colDef_1.customHeaderTooltip || colDef_1.headerName;
|
|
13676
|
+
}
|
|
13677
|
+
return '';
|
|
13678
|
+
};
|
|
13665
13679
|
DatoGridColumnHeaderComponent.ctorParameters = function () { return [
|
|
13666
13680
|
{ type: core.ViewContainerRef },
|
|
13667
13681
|
{ type: CustomHeaderControllerService },
|
|
@@ -13671,7 +13685,7 @@
|
|
|
13671
13685
|
DatoGridColumnHeaderComponent = __decorate([
|
|
13672
13686
|
core.Component({
|
|
13673
13687
|
selector: 'dato-grid-column-header',
|
|
13674
|
-
template: "<div class=\"d-flex align-start-center\" [attr.data-auto-id]=\"field + '-column-header'\" [attr.data-field]=\"field\">\n <ng-container *ngIf=\"customTemplates && customTemplates.customHeader as customHeader\">\n <div class=\"mr-5\" [attr.data-auto-id]=\"field + '-dynamic-section'\">\n <ng-container *ngTemplateOutlet=\"customHeader; context: context\"></ng-container>\n </div>\n </ng-container>\n <div class=\"d-flex d-flex-grow align-start-center min-width-0 items-center\">\n <span class=\"dato-simple-bold primary-400-color ellipsis min-width-0 mr-5\" [datoTooltip]=\"
|
|
13688
|
+
template: "<div class=\"d-flex align-start-center\" [attr.data-auto-id]=\"field + '-column-header'\" [attr.data-field]=\"field\">\n <ng-container *ngIf=\"customTemplates && customTemplates.customHeader as customHeader\">\n <div class=\"mr-5\" [attr.data-auto-id]=\"field + '-dynamic-section'\">\n <ng-container *ngTemplateOutlet=\"customHeader; context: context\"></ng-container>\n </div>\n </ng-container>\n <div class=\"d-flex d-flex-grow align-start-center min-width-0 items-center\">\n <span class=\"dato-simple-bold primary-400-color ellipsis min-width-0 mr-5\" [datoTooltip]=\"headerTooltip\"\n datoTooltipPosition=\"bottom\">{{headerName}}</span>\n <div>\n <dato-icon class=\"primary-300-color\" *ngIf=\"headerInfo\" [datoTooltip]=\"headerInfo\" datoTooltipPosition=\"bottom\" datoIcon=\"question\"></dato-icon>\n </div>\n </div>\n <div class=\"sort-icon opacity-0\" *ngIf=\"params.enableSorting && (sortingInfo$ | async) as sortingInfo\"\n [class.active]=\"sortingInfo.active\">\n <dato-icon width=\"24px\" height=\"16px\" class=\"primary-300-color\"\n [attr.data-auto-id]=\"field + '-sort'\"\n [icon]=\"sortingInfo.icon\"></dato-icon>\n </div>\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter relative\" *datoSubscribe=\"filterActive$ as filterActive\">\n <dato-icon-button (click.stop)=\"openFilters(filters)\" datoTooltip=\"core.filters\" datoTooltipPosition=\"bottom\"\n datoType=\"none\" [attr.data-auto-id]=\"field + '-filter'\" class=\"filter-icon opacity-0\"\n [class.active]=\"filtersMenuOpen || filterActive\"\n datoSize=\"md\" icon=\"filter\"\n #filters></dato-icon-button>\n <div [class.opacity-100]=\"filterActive\"\n class=\"opacity-0 filter-active-circle accent-400-background-color absolute\"></div>\n </div>\n </ng-container>\n <dato-icon-button *ngIf=\"showMoreMenu\" (click.stop)=\"openMoreMenu(moreMenu)\" datoTooltip=\"core.more-options\" datoTooltipPosition=\"bottom\"\n datoType=\"none\" [attr.data-auto-id]=\"field + '-more-menu'\" [class.active]=\"moreMenuOpen\"\n datoSize=\"md\" icon=\"more-vertical\" #moreMenu></dato-icon-button>\n</div>\n",
|
|
13675
13689
|
styles: [":host .filter-icon,:host .sort-icon{transition:opacity .25s linear,width .25s ease-in-out;width:0}:host .sort-icon{height:16px}:host .filter-icon.active,:host .sort-icon.active{opacity:1;width:24px}:host:hover .filter-icon,:host:hover .sort-icon{opacity:1;width:24px}:host .filter-active-circle{pointer-events:none;transition:opacity .2s ease-in-out;position:absolute;height:8px;width:8px;top:2px;right:2px;border-radius:4px;border:1px solid #fff}:host ::ng-deep .filter dato-icon-button dato-icon{transition:color .2s ease-in-out}"]
|
|
13676
13690
|
}),
|
|
13677
13691
|
__metadata("design:paramtypes", [core.ViewContainerRef,
|
|
@@ -25628,7 +25642,7 @@
|
|
|
25628
25642
|
};
|
|
25629
25643
|
}
|
|
25630
25644
|
|
|
25631
|
-
window.coreVersion = '22.12.
|
|
25645
|
+
window.coreVersion = '22.12.2';
|
|
25632
25646
|
|
|
25633
25647
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25634
25648
|
exports.AceService = AceService;
|