@datorama/core 22.12.1-beta.4 → 22.12.1
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 +8 -7
- 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/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-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-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 +8 -7
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +8 -7
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid/grid-v2.types.d.ts +1 -1
- package/package.json +1 -1
package/fesm5/datorama-core.js
CHANGED
|
@@ -13537,7 +13537,7 @@ var defaultGridOptions = __assign({
|
|
|
13537
13537
|
type: DatoGridColumnTypes.String,
|
|
13538
13538
|
menuTabs: ['filterMenuTab'],
|
|
13539
13539
|
headerComponentFramework: DatoGridColumnHeaderComponent
|
|
13540
|
-
}, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1,
|
|
13540
|
+
}, suppressCellSelection: true, suppressPropertyNamesCheck: true, rowHeight: 35, headerHeight: 30, rowSelection: GridRowSelectionType.MULTIPLE, rowDeselection: true, unSortIcon: true, animateRows: true, rememberGroupStateWhenNewData: true, groupMultiAutoColumn: true, groupDefaultExpanded: -1, usePivotGridStyle: false }, (isTestEnv() ? { suppressColumnVirtualisation: true, rowBuffer: 99999 } : {}));
|
|
13541
13541
|
var DEFAULT_GRID_SEARCH_DEBOUNCE_TIME = {
|
|
13542
13542
|
CLIENT: 200,
|
|
13543
13543
|
SERVER: 250
|
|
@@ -14156,10 +14156,11 @@ var GridService = /** @class */ (function () {
|
|
|
14156
14156
|
this.initPivotSecondaryColsProcess(params);
|
|
14157
14157
|
params.gridOptions.saveSettings = false;
|
|
14158
14158
|
}
|
|
14159
|
-
if (params.gridOptions.
|
|
14160
|
-
|
|
14159
|
+
if (params.gridOptions.usePivotGridStyle) {
|
|
14160
|
+
var rowHeight_1 = 30;
|
|
14161
|
+
params.gridOptions.rowHeight = rowHeight_1;
|
|
14161
14162
|
params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClass: this.getPivotCellClass.bind(this), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
|
|
14162
|
-
var style = { lineHeight:
|
|
14163
|
+
var style = { lineHeight: rowHeight_1 + "px" };
|
|
14163
14164
|
if (params.colDef.type === DatoGridColumnTypes.Number) {
|
|
14164
14165
|
style.textAlign = 'end';
|
|
14165
14166
|
}
|
|
@@ -14452,7 +14453,7 @@ var GridService = /** @class */ (function () {
|
|
|
14452
14453
|
}
|
|
14453
14454
|
this.updateSettings({ sort: sortToApply });
|
|
14454
14455
|
this.api.grid.setSortModel([sortToApply]);
|
|
14455
|
-
if (this.gridRef.gridOptions.
|
|
14456
|
+
if (this.gridRef.gridOptions.usePivotGridStyle) {
|
|
14456
14457
|
this.api.grid.redrawRows();
|
|
14457
14458
|
}
|
|
14458
14459
|
}
|
|
@@ -16002,7 +16003,7 @@ var DatoGridV2Component = /** @class */ (function () {
|
|
|
16002
16003
|
});
|
|
16003
16004
|
Object.defineProperty(DatoGridV2Component.prototype, "isPivotStyle", {
|
|
16004
16005
|
get: function () {
|
|
16005
|
-
return this.gridOptions
|
|
16006
|
+
return this.gridOptions && this.gridOptions.usePivotGridStyle;
|
|
16006
16007
|
},
|
|
16007
16008
|
enumerable: true,
|
|
16008
16009
|
configurable: true
|
|
@@ -25428,7 +25429,7 @@ function fixNgLeaks() {
|
|
|
25428
25429
|
};
|
|
25429
25430
|
}
|
|
25430
25431
|
|
|
25431
|
-
window.coreVersion = '22.12.
|
|
25432
|
+
window.coreVersion = '22.12.1';
|
|
25432
25433
|
|
|
25433
25434
|
/**
|
|
25434
25435
|
* @license
|