@ag-grid-enterprise/status-bar
Advanced tools
Comparing version 23.0.2 to 23.1.0
@@ -40,3 +40,3 @@ "use strict"; | ||
var listener = this.onDataChanged.bind(this); | ||
this.eventService.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, listener); | ||
this.events = [this.eventService.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, listener)]; | ||
}; | ||
@@ -43,0 +43,0 @@ FilteredRowsComp.prototype.onDataChanged = function () { |
import { Component, GridOptionsWrapper } from '@ag-grid-community/core'; | ||
export declare class NameValueComp extends Component { | ||
protected gridOptionsWrapper: GridOptionsWrapper; | ||
protected events: (() => void)[]; | ||
private static TEMPLATE; | ||
@@ -10,2 +11,3 @@ private eLabel; | ||
setValue(value: any): void; | ||
destroy(): void; | ||
} |
@@ -26,3 +26,5 @@ "use strict"; | ||
function NameValueComp() { | ||
return _super.call(this, NameValueComp.TEMPLATE) || this; | ||
var _this = _super.call(this, NameValueComp.TEMPLATE) || this; | ||
_this.events = []; | ||
return _this; | ||
} | ||
@@ -38,2 +40,7 @@ NameValueComp.prototype.setLabel = function (key, defaultValue) { | ||
}; | ||
NameValueComp.prototype.destroy = function () { | ||
this.events.forEach(function (func) { return func(); }); | ||
this.events = []; | ||
_super.prototype.destroy.call(this); | ||
}; | ||
NameValueComp.TEMPLATE = "<div class=\"ag-status-name-value\"> \n <span ref=\"eLabel\"></span>: \n <span ref=\"eValue\" class=\"ag-status-name-value-value\"></span>\n </div>"; | ||
@@ -40,0 +47,0 @@ __decorate([ |
@@ -41,4 +41,6 @@ "use strict"; | ||
var eventListener = this.onRowSelectionChanged.bind(this); | ||
this.eventService.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, eventListener); | ||
this.eventService.addEventListener(core_1.Events.EVENT_SELECTION_CHANGED, eventListener); | ||
this.events = [ | ||
this.eventService.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, eventListener), | ||
this.eventService.addEventListener(core_1.Events.EVENT_SELECTION_CHANGED, eventListener) | ||
]; | ||
}; | ||
@@ -45,0 +47,0 @@ SelectedRowsComp.prototype.isValidRowModel = function () { |
@@ -40,3 +40,3 @@ "use strict"; | ||
var listener = this.onDataChanged.bind(this); | ||
this.eventService.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, listener); | ||
this.events = [this.eventService.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, listener)]; | ||
}; | ||
@@ -43,0 +43,0 @@ TotalRowsComp.prototype.onDataChanged = function () { |
@@ -38,3 +38,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var listener = this.onDataChanged.bind(this); | ||
this.eventService.addEventListener(Events.EVENT_MODEL_UPDATED, listener); | ||
this.events = [this.eventService.addEventListener(Events.EVENT_MODEL_UPDATED, listener)]; | ||
}; | ||
@@ -41,0 +41,0 @@ FilteredRowsComp.prototype.onDataChanged = function () { |
import { Component, GridOptionsWrapper } from '@ag-grid-community/core'; | ||
export declare class NameValueComp extends Component { | ||
protected gridOptionsWrapper: GridOptionsWrapper; | ||
protected events: (() => void)[]; | ||
private static TEMPLATE; | ||
@@ -10,2 +11,3 @@ private eLabel; | ||
setValue(value: any): void; | ||
destroy(): void; | ||
} |
@@ -24,3 +24,5 @@ var __extends = (this && this.__extends) || (function () { | ||
function NameValueComp() { | ||
return _super.call(this, NameValueComp.TEMPLATE) || this; | ||
var _this = _super.call(this, NameValueComp.TEMPLATE) || this; | ||
_this.events = []; | ||
return _this; | ||
} | ||
@@ -36,2 +38,7 @@ NameValueComp.prototype.setLabel = function (key, defaultValue) { | ||
}; | ||
NameValueComp.prototype.destroy = function () { | ||
this.events.forEach(function (func) { return func(); }); | ||
this.events = []; | ||
_super.prototype.destroy.call(this); | ||
}; | ||
NameValueComp.TEMPLATE = "<div class=\"ag-status-name-value\"> \n <span ref=\"eLabel\"></span>: \n <span ref=\"eValue\" class=\"ag-status-name-value-value\"></span>\n </div>"; | ||
@@ -38,0 +45,0 @@ __decorate([ |
@@ -39,4 +39,6 @@ var __extends = (this && this.__extends) || (function () { | ||
var eventListener = this.onRowSelectionChanged.bind(this); | ||
this.eventService.addEventListener(Events.EVENT_MODEL_UPDATED, eventListener); | ||
this.eventService.addEventListener(Events.EVENT_SELECTION_CHANGED, eventListener); | ||
this.events = [ | ||
this.eventService.addEventListener(Events.EVENT_MODEL_UPDATED, eventListener), | ||
this.eventService.addEventListener(Events.EVENT_SELECTION_CHANGED, eventListener) | ||
]; | ||
}; | ||
@@ -43,0 +45,0 @@ SelectedRowsComp.prototype.isValidRowModel = function () { |
@@ -38,3 +38,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var listener = this.onDataChanged.bind(this); | ||
this.eventService.addEventListener(Events.EVENT_MODEL_UPDATED, listener); | ||
this.events = [this.eventService.addEventListener(Events.EVENT_MODEL_UPDATED, listener)]; | ||
}; | ||
@@ -41,0 +41,0 @@ TotalRowsComp.prototype.onDataChanged = function () { |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"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
5360220
84966
+ 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)