@ag-grid-enterprise/menu
Advanced tools
Comparing version 23.0.2 to 23.1.0
@@ -96,3 +96,7 @@ "use strict"; | ||
mouseEvent: mouseEvent, | ||
ePopup: eMenuGui | ||
ePopup: eMenuGui, | ||
// move one pixel away so that accidentally double clicking | ||
// won't show the browser's contextmenu | ||
nudgeX: 1, | ||
nudgeY: 1 | ||
}); | ||
@@ -99,0 +103,0 @@ menu.afterGuiAttached({ |
@@ -27,2 +27,3 @@ import { AgEvent, BeanStub, Column, IMenuFactory } from "@ag-grid-community/core"; | ||
private gridApi; | ||
private columnApi; | ||
private gridOptionsWrapper; | ||
@@ -29,0 +30,0 @@ private eventService; |
@@ -153,3 +153,4 @@ "use strict"; | ||
this.getContext().wireBean(this.tabbedLayout); | ||
this.eventService.addEventListener(core_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)); | ||
var displayedListener = this.eventService.addEventListener(core_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)); | ||
this.addDestroyFunc(function () { return displayedListener(); }); | ||
}; | ||
@@ -355,3 +356,3 @@ EnterpriseMenu.prototype.getTabsToCreate = function () { | ||
title: core_1._.createIconNoSpan('filter', this.gridOptionsWrapper, this.column), | ||
bodyPromise: filterWrapper.guiPromise.promise, | ||
bodyPromise: filterWrapper.guiPromise, | ||
afterAttachedCallback: afterFilterAttachedCallback, | ||
@@ -377,3 +378,4 @@ name: EnterpriseMenu.TAB_FILTER | ||
suppressSyncLayoutWithGrid: false, | ||
api: this.gridApi | ||
api: this.gridApi, | ||
columnApi: this.columnApi | ||
}); | ||
@@ -437,2 +439,5 @@ core_1._.addCssClass(this.columnSelectPanel.getGui(), 'ag-menu-column-select'); | ||
__decorate([ | ||
core_1.Autowired('columnApi') | ||
], EnterpriseMenu.prototype, "columnApi", void 0); | ||
__decorate([ | ||
core_1.Autowired('gridOptionsWrapper') | ||
@@ -439,0 +444,0 @@ ], EnterpriseMenu.prototype, "gridOptionsWrapper", void 0); |
@@ -16,3 +16,2 @@ import { AgEvent, Component, MenuItemDef } from "@ag-grid-community/core"; | ||
private gridOptionsWrapper; | ||
private tooltipManager; | ||
private static TEMPLATE; | ||
@@ -19,0 +18,0 @@ private eIcon; |
@@ -58,3 +58,3 @@ "use strict"; | ||
else { | ||
this.tooltipManager.registerTooltip(this); | ||
this.addFeature(new core_1.TooltipFeature(this, 'menu')); | ||
} | ||
@@ -130,5 +130,2 @@ } | ||
__decorate([ | ||
core_1.Autowired('tooltipManager') | ||
], MenuItemComponent.prototype, "tooltipManager", void 0); | ||
__decorate([ | ||
core_1.RefSelector('eIcon') | ||
@@ -135,0 +132,0 @@ ], MenuItemComponent.prototype, "eIcon", void 0); |
@@ -247,3 +247,4 @@ "use strict"; | ||
'rangeXYChart', | ||
'rangeAreaChart' | ||
'rangeAreaChart', | ||
'rangeHistogramChart' | ||
], | ||
@@ -358,2 +359,4 @@ icon: core_1._.createIconNoSpan('chart', this.gridOptionsWrapper, null), | ||
return rangeChartMenuItem('normalizedArea', '100% Stacked‎', core_1.ChartType.NormalizedArea); | ||
case 'rangeHistogramChart': | ||
return rangeChartMenuItem('histogramChart', 'Histogram‎', core_1.ChartType.Histogram); | ||
default: | ||
@@ -360,0 +363,0 @@ return null; |
@@ -94,3 +94,7 @@ var __extends = (this && this.__extends) || (function () { | ||
mouseEvent: mouseEvent, | ||
ePopup: eMenuGui | ||
ePopup: eMenuGui, | ||
// move one pixel away so that accidentally double clicking | ||
// won't show the browser's contextmenu | ||
nudgeX: 1, | ||
nudgeY: 1 | ||
}); | ||
@@ -97,0 +101,0 @@ menu.afterGuiAttached({ |
@@ -27,2 +27,3 @@ import { AgEvent, BeanStub, Column, IMenuFactory } from "@ag-grid-community/core"; | ||
private gridApi; | ||
private columnApi; | ||
private gridOptionsWrapper; | ||
@@ -29,0 +30,0 @@ private eventService; |
@@ -151,3 +151,4 @@ var __extends = (this && this.__extends) || (function () { | ||
this.getContext().wireBean(this.tabbedLayout); | ||
this.eventService.addEventListener(Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)); | ||
var displayedListener = this.eventService.addEventListener(Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this)); | ||
this.addDestroyFunc(function () { return displayedListener(); }); | ||
}; | ||
@@ -353,3 +354,3 @@ EnterpriseMenu.prototype.getTabsToCreate = function () { | ||
title: _.createIconNoSpan('filter', this.gridOptionsWrapper, this.column), | ||
bodyPromise: filterWrapper.guiPromise.promise, | ||
bodyPromise: filterWrapper.guiPromise, | ||
afterAttachedCallback: afterFilterAttachedCallback, | ||
@@ -375,3 +376,4 @@ name: EnterpriseMenu.TAB_FILTER | ||
suppressSyncLayoutWithGrid: false, | ||
api: this.gridApi | ||
api: this.gridApi, | ||
columnApi: this.columnApi | ||
}); | ||
@@ -435,2 +437,5 @@ _.addCssClass(this.columnSelectPanel.getGui(), 'ag-menu-column-select'); | ||
__decorate([ | ||
Autowired('columnApi') | ||
], EnterpriseMenu.prototype, "columnApi", void 0); | ||
__decorate([ | ||
Autowired('gridOptionsWrapper') | ||
@@ -437,0 +442,0 @@ ], EnterpriseMenu.prototype, "gridOptionsWrapper", void 0); |
@@ -16,3 +16,2 @@ import { AgEvent, Component, MenuItemDef } from "@ag-grid-community/core"; | ||
private gridOptionsWrapper; | ||
private tooltipManager; | ||
private static TEMPLATE; | ||
@@ -19,0 +18,0 @@ private eIcon; |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { Autowired, Component, Constants, PostConstruct, RefSelector, _ } from "@ag-grid-community/core"; | ||
import { Autowired, Component, Constants, PostConstruct, RefSelector, TooltipFeature, _ } from "@ag-grid-community/core"; | ||
var MenuItemComponent = /** @class */ (function (_super) { | ||
@@ -57,3 +57,3 @@ __extends(MenuItemComponent, _super); | ||
else { | ||
this.tooltipManager.registerTooltip(this); | ||
this.addFeature(new TooltipFeature(this, 'menu')); | ||
} | ||
@@ -129,5 +129,2 @@ } | ||
__decorate([ | ||
Autowired('tooltipManager') | ||
], MenuItemComponent.prototype, "tooltipManager", void 0); | ||
__decorate([ | ||
RefSelector('eIcon') | ||
@@ -134,0 +131,0 @@ ], MenuItemComponent.prototype, "eIcon", void 0); |
@@ -245,3 +245,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
'rangeXYChart', | ||
'rangeAreaChart' | ||
'rangeAreaChart', | ||
'rangeHistogramChart' | ||
], | ||
@@ -356,2 +357,4 @@ icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null), | ||
return rangeChartMenuItem('normalizedArea', '100% Stacked‎', ChartType.NormalizedArea); | ||
case 'rangeHistogramChart': | ||
return rangeChartMenuItem('histogramChart', 'Histogram‎', ChartType.Histogram); | ||
default: | ||
@@ -358,0 +361,0 @@ return null; |
{ | ||
"name": "@ag-grid-enterprise/menu", | ||
"version": "23.0.2", | ||
"version": "23.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components", | ||
@@ -44,7 +44,7 @@ "main": "./dist/cjs/main.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "~23.0.0", | ||
"@ag-grid-enterprise/core": "~23.0.0" | ||
"@ag-grid-community/core": "~23.1.0", | ||
"@ag-grid-enterprise/core": "~23.1.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^3.6.3" | ||
"typescript": "~3.6.5" | ||
}, | ||
@@ -51,0 +51,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5567716
88512
+ Added@ag-grid-community/core@23.1.1(transitive)
+ Added@ag-grid-enterprise/core@23.1.1(transitive)
- Removed@ag-grid-community/core@23.0.2(transitive)
- Removed@ag-grid-enterprise/core@23.0.2(transitive)