@ag-grid-enterprise/status-bar
Advanced tools
Comparing version 31.3.3 to 31.3.4
@@ -628,3 +628,3 @@ var __defProp = Object.defineProperty; | ||
// enterprise-modules/status-bar/src/version.ts | ||
var VERSION = "31.3.3"; | ||
var VERSION = "31.3.4"; | ||
@@ -631,0 +631,0 @@ // enterprise-modules/status-bar/src/statusBarModule.ts |
@@ -14,2 +14,2 @@ var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(t,e)=>{for(var o in e)__defProp(t,o,{get:e[o],enumerable:!0})},__copyProps=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of __getOwnPropNames(e))!__hasOwnProp.call(t,a)&&a!==o&&__defProp(t,a,{get:()=>e[a],enumerable:!(s=__getOwnPropDesc(e,a))||s.enumerable});return t},__toCommonJS=t=>__copyProps(__defProp({},"__esModule",{value:!0}),t),__decorateClass=(t,e,o,s)=>{for(var a=s>1?void 0:s?__getOwnPropDesc(e,o):e,r=t.length-1,n;r>=0;r--)(n=t[r])&&(a=(s?n(e,o,a):n(a))||a);return s&&a&&__defProp(e,o,a),a},main_exports={};__export(main_exports,{StatusBarModule:()=>StatusBarModule}),module.exports=__toCommonJS(main_exports);var import_core9=require("@ag-grid-community/core"),import_core10=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),StatusBarService=class extends import_core.BeanStub{constructor(){super(),this.allComponents=new Map}registerStatusPanel(t,e){this.allComponents.set(t,e)}unregisterStatusPanel(t){this.allComponents.delete(t)}unregisterAllComponents(){this.allComponents.clear()}getStatusPanel(t){return this.allComponents.get(t)}destroy(){this.unregisterAllComponents(),super.destroy()}};StatusBarService=__decorateClass([(0,import_core.Bean)("statusBarService")],StatusBarService);var import_core2=require("@ag-grid-community/core"),_StatusBar=class S extends import_core2.Component{constructor(){super(S.TEMPLATE),this.compDestroyFunctions={}}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(e){var o;const s=(o=this.gos.get("statusBar"))==null?void 0:o.statusPanels;if(s){const a=s.filter(i=>i.align==="left");this.createAndRenderComponents(a,this.eStatusBarLeft,e);const r=s.filter(i=>i.align==="center");this.createAndRenderComponents(r,this.eStatusBarCenter,e);const n=s.filter(i=>!i.align||i.align==="right");this.createAndRenderComponents(n,this.eStatusBarRight,e)}else this.setDisplayed(!1)}handleStatusBarChanged(){var e;const o=(e=this.gos.get("statusBar"))==null?void 0:e.statusPanels,s=Array.isArray(o)&&o.length>0;this.setDisplayed(s);const a=new Map;s&&o.forEach(r=>{var n,i;const u=(n=r.key)!=null?n:r.statusPanel,d=this.statusBarService.getStatusPanel(u);if(d?.refresh){const g=this.gos.addGridCommonParams((i=r.statusPanelParams)!=null?i:{});d.refresh(g)&&(a.set(u,d),delete this.compDestroyFunctions[u],import_core2._.removeFromParent(d.getGui()))}}),this.resetStatusBar(),s&&this.processStatusPanels(a)}resetStatusBar(){this.eStatusBarLeft.innerHTML="",this.eStatusBarCenter.innerHTML="",this.eStatusBarRight.innerHTML="",this.destroyComponents(),this.statusBarService.unregisterAllComponents()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(e=>e()),this.compDestroyFunctions={}}createAndRenderComponents(e,o,s){const a=[];e.forEach(r=>{const n=r.key||r.statusPanel,i=s.get(n);let u;if(i)u=import_core2.AgPromise.resolve(i);else{const d={};if(u=this.userComponentFactory.getStatusPanelCompDetails(r,d).newAgStackInstance(),!u)return}a.push({key:n,promise:u})}),import_core2.AgPromise.all(a.map(r=>r.promise)).then(()=>{a.forEach(r=>{r.promise.then(n=>{const i=()=>{this.getContext().destroyBean(n)};this.isAlive()?(this.statusBarService.registerStatusPanel(r.key,n),o.appendChild(n.getGui()),this.compDestroyFunctions[r.key]=i):i()})})})}};_StatusBar.TEMPLATE=`<div class="ag-status-bar"> | ||
<ag-name-value ref="sumAggregationComp"></ag-name-value> | ||
</div>`,__decorateClass([(0,import_core8.Optional)("rangeService")],_AggregationComp.prototype,"rangeService",2),__decorateClass([(0,import_core8.Autowired)("valueService")],_AggregationComp.prototype,"valueService",2),__decorateClass([(0,import_core8.Autowired)("cellNavigationService")],_AggregationComp.prototype,"cellNavigationService",2),__decorateClass([(0,import_core8.Autowired)("rowModel")],_AggregationComp.prototype,"rowModel",2),__decorateClass([(0,import_core8.Autowired)("cellPositionUtils")],_AggregationComp.prototype,"cellPositionUtils",2),__decorateClass([(0,import_core8.Autowired)("rowPositionUtils")],_AggregationComp.prototype,"rowPositionUtils",2),__decorateClass([(0,import_core8.RefSelector)("sumAggregationComp")],_AggregationComp.prototype,"sumAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("countAggregationComp")],_AggregationComp.prototype,"countAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("minAggregationComp")],_AggregationComp.prototype,"minAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("maxAggregationComp")],_AggregationComp.prototype,"maxAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("avgAggregationComp")],_AggregationComp.prototype,"avgAggregationComp",2),__decorateClass([import_core8.PostConstruct],_AggregationComp.prototype,"postConstruct",1);var AggregationComp=_AggregationComp,VERSION="31.3.3",StatusBarModule={version:VERSION,moduleName:import_core9.ModuleNames.StatusBarModule,beans:[StatusBarService],agStackComponents:[{componentName:"AgStatusBar",componentClass:StatusBar},{componentName:"AgNameValue",componentClass:NameValueComp}],userComponents:[{componentName:"agAggregationComponent",componentClass:AggregationComp},{componentName:"agSelectedRowCountComponent",componentClass:SelectedRowsComp},{componentName:"agTotalRowCountComponent",componentClass:TotalRowsComp},{componentName:"agFilteredRowCountComponent",componentClass:FilteredRowsComp},{componentName:"agTotalAndFilteredRowCountComponent",componentClass:TotalAndFilteredRowsComp}],dependantModules:[import_core10.EnterpriseCoreModule]}; | ||
</div>`,__decorateClass([(0,import_core8.Optional)("rangeService")],_AggregationComp.prototype,"rangeService",2),__decorateClass([(0,import_core8.Autowired)("valueService")],_AggregationComp.prototype,"valueService",2),__decorateClass([(0,import_core8.Autowired)("cellNavigationService")],_AggregationComp.prototype,"cellNavigationService",2),__decorateClass([(0,import_core8.Autowired)("rowModel")],_AggregationComp.prototype,"rowModel",2),__decorateClass([(0,import_core8.Autowired)("cellPositionUtils")],_AggregationComp.prototype,"cellPositionUtils",2),__decorateClass([(0,import_core8.Autowired)("rowPositionUtils")],_AggregationComp.prototype,"rowPositionUtils",2),__decorateClass([(0,import_core8.RefSelector)("sumAggregationComp")],_AggregationComp.prototype,"sumAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("countAggregationComp")],_AggregationComp.prototype,"countAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("minAggregationComp")],_AggregationComp.prototype,"minAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("maxAggregationComp")],_AggregationComp.prototype,"maxAggregationComp",2),__decorateClass([(0,import_core8.RefSelector)("avgAggregationComp")],_AggregationComp.prototype,"avgAggregationComp",2),__decorateClass([import_core8.PostConstruct],_AggregationComp.prototype,"postConstruct",1);var AggregationComp=_AggregationComp,VERSION="31.3.4",StatusBarModule={version:VERSION,moduleName:import_core9.ModuleNames.StatusBarModule,beans:[StatusBarService],agStackComponents:[{componentName:"AgStatusBar",componentClass:StatusBar},{componentName:"AgNameValue",componentClass:NameValueComp}],userComponents:[{componentName:"agAggregationComponent",componentClass:AggregationComp},{componentName:"agSelectedRowCountComponent",componentClass:SelectedRowsComp},{componentName:"agTotalRowCountComponent",componentClass:TotalRowsComp},{componentName:"agFilteredRowCountComponent",componentClass:FilteredRowsComp},{componentName:"agTotalAndFilteredRowCountComponent",componentClass:TotalAndFilteredRowsComp}],dependantModules:[import_core10.EnterpriseCoreModule]}; |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"version": "31.3.3", | ||
"version": "31.3.4", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
"dependencies": { | ||
"tslib": "^2.3.0", | ||
"@ag-grid-community/core": "31.3.3", | ||
"@ag-grid-enterprise/core": "31.3.3" | ||
"@ag-grid-community/core": "31.3.4", | ||
"@ag-grid-enterprise/core": "31.3.4" | ||
}, | ||
@@ -10,0 +10,0 @@ "main": "./dist/package/main.cjs.js", |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"version": "31.3.3", | ||
"version": "31.3.4", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
"dependencies": { | ||
"tslib": "^2.3.0", | ||
"@ag-grid-community/core": "31.3.3", | ||
"@ag-grid-enterprise/core": "31.3.3" | ||
"@ag-grid-community/core": "31.3.4", | ||
"@ag-grid-enterprise/core": "31.3.4" | ||
}, | ||
@@ -10,0 +10,0 @@ "main": "./src/main.js", |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "31.3.3"; | ||
export declare const VERSION = "31.3.4"; |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"version": "31.3.3", | ||
"version": "31.3.4", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
"dependencies": { | ||
"tslib": "^2.3.0", | ||
"@ag-grid-community/core": "31.3.3", | ||
"@ag-grid-enterprise/core": "31.3.3" | ||
"@ag-grid-community/core": "31.3.4", | ||
"@ag-grid-enterprise/core": "31.3.4" | ||
}, | ||
@@ -10,0 +10,0 @@ "main": "./dist/package/main.cjs.js", |
Sorry, the diff of this file is not supported yet
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
+ Added@ag-grid-community/core@31.3.4(transitive)
+ Added@ag-grid-enterprise/core@31.3.4(transitive)
- Removed@ag-grid-community/core@31.3.3(transitive)
- Removed@ag-grid-enterprise/core@31.3.3(transitive)