@ag-grid-enterprise/status-bar
Advanced tools
Comparing version 32.0.2 to 32.1.0
@@ -618,6 +618,6 @@ var __defProp = Object.defineProperty; | ||
// enterprise-modules/status-bar/src/version.ts | ||
var VERSION = "32.0.2"; | ||
var VERSION = "32.1.0"; | ||
// enterprise-modules/status-bar/src/statusBarModule.ts | ||
var StatusBarCoreModule = { | ||
var StatusBarCoreModule = (0, import_core10._defineModule)({ | ||
version: VERSION, | ||
@@ -634,4 +634,4 @@ moduleName: `${import_core10.ModuleNames.StatusBarModule}-core`, | ||
dependantModules: [import_core11.EnterpriseCoreModule] | ||
}; | ||
var StatusBarApiModule = { | ||
}); | ||
var StatusBarApiModule = (0, import_core10._defineModule)({ | ||
version: VERSION, | ||
@@ -643,7 +643,7 @@ moduleName: `${import_core10.ModuleNames.StatusBarModule}-api`, | ||
dependantModules: [StatusBarCoreModule] | ||
}; | ||
var StatusBarModule = { | ||
}); | ||
var StatusBarModule = (0, import_core10._defineModule)({ | ||
version: VERSION, | ||
moduleName: import_core10.ModuleNames.StatusBarModule, | ||
dependantModules: [StatusBarCoreModule, StatusBarApiModule] | ||
}; | ||
}); |
@@ -14,2 +14,2 @@ var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var a in t)__defProp(e,a,{get:t[a],enumerable:!0})},__copyProps=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of __getOwnPropNames(t))!__hasOwnProp.call(e,s)&&s!==a&&__defProp(e,s,{get:()=>t[s],enumerable:!(o=__getOwnPropDesc(t,s))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),main_exports={};__export(main_exports,{StatusBarModule:()=>StatusBarModule}),module.exports=__toCommonJS(main_exports);var import_core10=require("@ag-grid-community/core"),import_core11=require("@ag-grid-enterprise/core"),import_core2=require("@ag-grid-community/core"),import_core=require("@ag-grid-community/core"),AgNameValue=class extends import_core.Component{constructor(){super(`<div class="ag-status-name-value"> | ||
<div data-ref="eStatusBarRight" class="ag-status-bar-right" role="status"></div> | ||
</div>`),this.updateQueued=!1,this.panelsPromise=import_core8.AgPromise.resolve(),this.eStatusBarLeft=import_core8.RefPlaceholder,this.eStatusBarCenter=import_core8.RefPlaceholder,this.eStatusBarRight=import_core8.RefPlaceholder,this.compDestroyFunctions={}}wireBeans(e){this.userComponentFactory=e.userComponentFactory,this.statusBarService=e.statusBarService}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(e){const t=this.gos.get("statusBar")?.statusPanels;if(t){const a=t.filter(r=>r.align==="left"),o=t.filter(r=>r.align==="center"),s=t.filter(r=>!r.align||r.align==="right");this.panelsPromise=import_core8.AgPromise.all([this.createAndRenderComponents(a,this.eStatusBarLeft,e),this.createAndRenderComponents(o,this.eStatusBarCenter,e),this.createAndRenderComponents(s,this.eStatusBarRight,e)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){const e=this.gos.get("statusBar")?.statusPanels,t=Array.isArray(e)&&e.length>0;this.setDisplayed(t);const a=new Map;t&&e.forEach(o=>{const s=o.key??o.statusPanel,r=this.statusBarService.getStatusPanel(s);if(r?.refresh){const i=this.gos.addGridCommonParams(o.statusPanelParams??{});r.refresh(i)&&(a.set(s,r),delete this.compDestroyFunctions[s],(0,import_core8._removeFromParent)(r.getGui()))}}),this.resetStatusBar(),t&&this.processStatusPanels(a)}resetStatusBar(){this.eStatusBarLeft.innerHTML="",this.eStatusBarCenter.innerHTML="",this.eStatusBarRight.innerHTML="",this.destroyComponents(),this.statusBarService.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(e=>e()),this.compDestroyFunctions={}}createAndRenderComponents(e,t,a){const o=[];return e.forEach(s=>{const r=s.key||s.statusPanel,i=a.get(r);let u;if(i)u=import_core8.AgPromise.resolve(i);else{const d={};if(u=this.userComponentFactory.getStatusPanelCompDetails(s,d).newAgStackInstance(),u==null)return}o.push({key:r,promise:u})}),import_core8.AgPromise.all(o.map(s=>s.promise)).then(()=>{o.forEach(s=>{s.promise.then(r=>{const i=()=>{this.destroyBean(r)};this.isAlive()?(this.statusBarService.registerStatusPanel(s.key,r),t.appendChild(r.getGui()),this.compDestroyFunctions[s.key]=i):i()})})})}},AgStatusBarSelector={selector:"AG-STATUS-BAR",component:AgStatusBar},StatusBarService=class extends import_core9.BeanStub{constructor(){super(),this.beanName="statusBarService",this.allComponents=new Map}registerStatusPanel(e,t){this.allComponents.set(e,t)}unregisterStatusPanel(e){this.allComponents.delete(e)}unregisterAllComponents(){this.allComponents.clear()}getStatusPanel(e){return this.allComponents.get(e)}getStatusPanelSelector(){return AgStatusBarSelector}destroy(){this.unregisterAllComponents(),super.destroy()}},VERSION="32.0.2",StatusBarCoreModule={version:VERSION,moduleName:`${import_core10.ModuleNames.StatusBarModule}-core`,beans:[StatusBarService],userComponents:[{name:"agAggregationComponent",classImp:AggregationComp},{name:"agSelectedRowCountComponent",classImp:SelectedRowsComp},{name:"agTotalRowCountComponent",classImp:TotalRowsComp},{name:"agFilteredRowCountComponent",classImp:FilteredRowsComp},{name:"agTotalAndFilteredRowCountComponent",classImp:TotalAndFilteredRowsComp}],dependantModules:[import_core11.EnterpriseCoreModule]},StatusBarApiModule={version:VERSION,moduleName:`${import_core10.ModuleNames.StatusBarModule}-api`,apiFunctions:{getStatusPanel},dependantModules:[StatusBarCoreModule]},StatusBarModule={version:VERSION,moduleName:import_core10.ModuleNames.StatusBarModule,dependantModules:[StatusBarCoreModule,StatusBarApiModule]}; | ||
</div>`),this.updateQueued=!1,this.panelsPromise=import_core8.AgPromise.resolve(),this.eStatusBarLeft=import_core8.RefPlaceholder,this.eStatusBarCenter=import_core8.RefPlaceholder,this.eStatusBarRight=import_core8.RefPlaceholder,this.compDestroyFunctions={}}wireBeans(e){this.userComponentFactory=e.userComponentFactory,this.statusBarService=e.statusBarService}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(e){const t=this.gos.get("statusBar")?.statusPanels;if(t){const a=t.filter(r=>r.align==="left"),o=t.filter(r=>r.align==="center"),s=t.filter(r=>!r.align||r.align==="right");this.panelsPromise=import_core8.AgPromise.all([this.createAndRenderComponents(a,this.eStatusBarLeft,e),this.createAndRenderComponents(o,this.eStatusBarCenter,e),this.createAndRenderComponents(s,this.eStatusBarRight,e)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){const e=this.gos.get("statusBar")?.statusPanels,t=Array.isArray(e)&&e.length>0;this.setDisplayed(t);const a=new Map;t&&e.forEach(o=>{const s=o.key??o.statusPanel,r=this.statusBarService.getStatusPanel(s);if(r?.refresh){const i=this.gos.addGridCommonParams(o.statusPanelParams??{});r.refresh(i)&&(a.set(s,r),delete this.compDestroyFunctions[s],(0,import_core8._removeFromParent)(r.getGui()))}}),this.resetStatusBar(),t&&this.processStatusPanels(a)}resetStatusBar(){this.eStatusBarLeft.innerHTML="",this.eStatusBarCenter.innerHTML="",this.eStatusBarRight.innerHTML="",this.destroyComponents(),this.statusBarService.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(e=>e()),this.compDestroyFunctions={}}createAndRenderComponents(e,t,a){const o=[];return e.forEach(s=>{const r=s.key||s.statusPanel,i=a.get(r);let u;if(i)u=import_core8.AgPromise.resolve(i);else{const d={};if(u=this.userComponentFactory.getStatusPanelCompDetails(s,d).newAgStackInstance(),u==null)return}o.push({key:r,promise:u})}),import_core8.AgPromise.all(o.map(s=>s.promise)).then(()=>{o.forEach(s=>{s.promise.then(r=>{const i=()=>{this.destroyBean(r)};this.isAlive()?(this.statusBarService.registerStatusPanel(s.key,r),t.appendChild(r.getGui()),this.compDestroyFunctions[s.key]=i):i()})})})}},AgStatusBarSelector={selector:"AG-STATUS-BAR",component:AgStatusBar},StatusBarService=class extends import_core9.BeanStub{constructor(){super(),this.beanName="statusBarService",this.allComponents=new Map}registerStatusPanel(e,t){this.allComponents.set(e,t)}unregisterStatusPanel(e){this.allComponents.delete(e)}unregisterAllComponents(){this.allComponents.clear()}getStatusPanel(e){return this.allComponents.get(e)}getStatusPanelSelector(){return AgStatusBarSelector}destroy(){this.unregisterAllComponents(),super.destroy()}},VERSION="32.1.0",StatusBarCoreModule=(0,import_core10._defineModule)({version:VERSION,moduleName:`${import_core10.ModuleNames.StatusBarModule}-core`,beans:[StatusBarService],userComponents:[{name:"agAggregationComponent",classImp:AggregationComp},{name:"agSelectedRowCountComponent",classImp:SelectedRowsComp},{name:"agTotalRowCountComponent",classImp:TotalRowsComp},{name:"agFilteredRowCountComponent",classImp:FilteredRowsComp},{name:"agTotalAndFilteredRowCountComponent",classImp:TotalAndFilteredRowsComp}],dependantModules:[import_core11.EnterpriseCoreModule]}),StatusBarApiModule=(0,import_core10._defineModule)({version:VERSION,moduleName:`${import_core10.ModuleNames.StatusBarModule}-api`,apiFunctions:{getStatusPanel},dependantModules:[StatusBarCoreModule]}),StatusBarModule=(0,import_core10._defineModule)({version:VERSION,moduleName:import_core10.ModuleNames.StatusBarModule,dependantModules:[StatusBarCoreModule,StatusBarApiModule]}); |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"version": "32.0.2", | ||
"version": "32.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
"dependencies": { | ||
"tslib": "^2.3.0", | ||
"@ag-grid-community/core": "32.0.2", | ||
"@ag-grid-enterprise/core": "32.0.2" | ||
"@ag-grid-community/core": "32.1.0", | ||
"@ag-grid-enterprise/core": "32.1.0" | ||
}, | ||
@@ -58,2 +58,2 @@ "main": "./dist/package/main.cjs.js", | ||
} | ||
} | ||
} |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"version": "32.0.2", | ||
"version": "32.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
"dependencies": { | ||
"tslib": "^2.3.0", | ||
"@ag-grid-community/core": "32.0.2", | ||
"@ag-grid-enterprise/core": "32.0.2" | ||
"@ag-grid-community/core": "32.1.0", | ||
"@ag-grid-enterprise/core": "32.1.0" | ||
}, | ||
@@ -10,0 +10,0 @@ "main": "./src/main.js", |
@@ -1,4 +0,3 @@ | ||
import type { Module } from '@ag-grid-community/core'; | ||
export declare const StatusBarCoreModule: Module; | ||
export declare const StatusBarApiModule: Module; | ||
export declare const StatusBarModule: Module; | ||
export declare const StatusBarCoreModule: import("@ag-grid-community/core").Module; | ||
export declare const StatusBarApiModule: import("@ag-grid-community/core").Module; | ||
export declare const StatusBarModule: import("@ag-grid-community/core").Module; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "32.0.2"; | ||
export declare const VERSION = "32.1.0"; |
{ | ||
"name": "@ag-grid-enterprise/status-bar", | ||
"version": "32.0.2", | ||
"version": "32.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
"dependencies": { | ||
"tslib": "^2.3.0", | ||
"@ag-grid-community/core": "32.0.2", | ||
"@ag-grid-enterprise/core": "32.0.2" | ||
"@ag-grid-community/core": "32.1.0", | ||
"@ag-grid-enterprise/core": "32.1.0" | ||
}, | ||
@@ -58,2 +58,2 @@ "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
215981
23
1497
+ Added@ag-grid-community/core@32.1.0(transitive)
+ Added@ag-grid-enterprise/core@32.1.0(transitive)
+ Addedag-charts-types@10.1.0(transitive)
- Removed@ag-grid-community/core@32.0.2(transitive)
- Removed@ag-grid-enterprise/core@32.0.2(transitive)
- Removedag-charts-types@10.0.2(transitive)