@datorama/core 22.12.1-beta.4 → 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/bundle.scss +0 -4
- package/bundles/datorama-core.umd.js +23 -8
- 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.component.js +2 -2
- package/esm2015/lib/grid-v2/grid/grid-v2.config.js +2 -2
- 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/grid-v2/grid-store/grid.service.js +6 -5
- package/esm2015/lib/icon/icon.types.js +1 -1
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/grid-v2/grid/grid-v2.component.js +2 -2
- package/esm5/lib/grid-v2/grid/grid-v2.config.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/grid-v2/grid-store/grid.service.js +6 -5
- package/esm5/lib/icon/icon.types.js +1 -1
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +23 -8
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +23 -8
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +2 -1
- package/lib/grid-v2/grid-column-header/grid-column-header.component.d.ts +2 -0
- package/package.json +1 -1
package/bundle.scss
CHANGED
|
@@ -14320,10 +14320,6 @@ dato-input input:disabled:hover {
|
|
|
14320
14320
|
*/
|
|
14321
14321
|
}
|
|
14322
14322
|
|
|
14323
|
-
.dato-grid.pivot-style .ag-row.ag-row-group .bottom-border {
|
|
14324
|
-
border-bottom: 1px solid themify(primary-200);
|
|
14325
|
-
}
|
|
14326
|
-
|
|
14327
14323
|
.dato-grid.pivot-style .ag-row.ag-row-group:not(.ag-row-hover) {
|
|
14328
14324
|
background-color: themify(primary-50);
|
|
14329
14325
|
}
|
|
@@ -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,
|
|
@@ -13736,7 +13750,7 @@
|
|
|
13736
13750
|
type: exports.DatoGridColumnTypes.String,
|
|
13737
13751
|
menuTabs: ['filterMenuTab'],
|
|
13738
13752
|
headerComponentFramework: DatoGridColumnHeaderComponent
|
|
13739
|
-
}, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: exports.GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1,
|
|
13753
|
+
}, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: exports.GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, usePivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
|
|
13740
13754
|
var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
|
|
13741
13755
|
CLIENT: 200,
|
|
13742
13756
|
SERVER: 250
|
|
@@ -14355,10 +14369,11 @@
|
|
|
14355
14369
|
this.initPivotSecondaryColsProcess(params);
|
|
14356
14370
|
params.gridOptions.saveSettings = false;
|
|
14357
14371
|
}
|
|
14358
|
-
if (params.gridOptions.
|
|
14359
|
-
|
|
14372
|
+
if (params.gridOptions.usePivotGridStyle) {
|
|
14373
|
+
var rowHeight_1 = 30;
|
|
14374
|
+
params.gridOptions.rowHeight = rowHeight_1;
|
|
14360
14375
|
params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
|
|
14361
|
-
var style = { lineHeight:
|
|
14376
|
+
var style = { lineHeight: rowHeight_1 + "px" };
|
|
14362
14377
|
if (params.colDef.type === exports.DatoGridColumnTypes.Number) {
|
|
14363
14378
|
style.textAlign = 'end';
|
|
14364
14379
|
}
|
|
@@ -14651,7 +14666,7 @@
|
|
|
14651
14666
|
}
|
|
14652
14667
|
this.updateSettings({ sort: sortToApply });
|
|
14653
14668
|
this.api.grid.setSortModel([sortToApply]);
|
|
14654
|
-
if (this.gridRef.gridOptions.
|
|
14669
|
+
if (this.gridRef.gridOptions.usePivotGridStyle) {
|
|
14655
14670
|
this.api.grid.redrawRows();
|
|
14656
14671
|
}
|
|
14657
14672
|
}
|
|
@@ -16201,7 +16216,7 @@
|
|
|
16201
16216
|
});
|
|
16202
16217
|
Object.defineProperty(DatoGridV2Component.prototype, "isPivotStyle", {
|
|
16203
16218
|
get: function () {
|
|
16204
|
-
return this.gridOptions
|
|
16219
|
+
return this.gridOptions && this.gridOptions.usePivotGridStyle;
|
|
16205
16220
|
},
|
|
16206
16221
|
enumerable: true,
|
|
16207
16222
|
configurable: true
|
|
@@ -25627,7 +25642,7 @@
|
|
|
25627
25642
|
};
|
|
25628
25643
|
}
|
|
25629
25644
|
|
|
25630
|
-
window.coreVersion = '22.12.
|
|
25645
|
+
window.coreVersion = '22.12.2';
|
|
25631
25646
|
|
|
25632
25647
|
exports.APP_TRANSLATE = APP_TRANSLATE;
|
|
25633
25648
|
exports.AceService = AceService;
|