Socket
Socket
Sign inDemoInstall

@ag-grid-enterprise/side-bar

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-enterprise/side-bar - npm Package Compare versions

Comparing version 31.2.0 to 31.2.1

2

dist/package/main.cjs.js

@@ -913,3 +913,3 @@ var __defProp = Object.defineProperty;

// enterprise-modules/side-bar/src/version.ts
var VERSION = "31.2.0";
var VERSION = "31.2.1";

@@ -916,0 +916,0 @@ // enterprise-modules/side-bar/src/sideBar/sideBarService.ts

@@ -8,2 +8,2 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(n,e,t)=>e in n?__defProp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,__spreadValues=(n,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(n,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(n,t,e[t]);return n},__spreadProps=(n,e)=>__defProps(n,__getOwnPropDescs(e)),__export=(n,e)=>{for(var t in e)__defProp(n,t,{get:e[t],enumerable:!0})},__copyProps=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of __getOwnPropNames(e))!__hasOwnProp.call(n,s)&&s!==t&&__defProp(n,s,{get:()=>e[s],enumerable:!(o=__getOwnPropDesc(e,s))||o.enumerable});return n},__toCommonJS=n=>__copyProps(__defProp({},"__esModule",{value:!0}),n),__decorateClass=(n,e,t,o)=>{for(var s=o>1?void 0:o?__getOwnPropDesc(e,t):e,i=n.length-1,r;i>=0;i--)(r=n[i])&&(s=(o?r(e,t,s):r(s))||s);return o&&s&&__defProp(e,t,s),s},main_exports={};__export(main_exports,{SideBarModule:()=>SideBarModule,ToolPanelColDefService:()=>ToolPanelColDefService}),module.exports=__toCommonJS(main_exports);var import_core8=require("@ag-grid-community/core"),import_core9=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),HorizontalResizeComp=class extends import_core.Component{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}setElementToResize(n){this.elementToResize=n}postConstruct(){const n=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(n),this.setInverted(this.gridOptionsService.get("enableRtl"))}dispatchResizeEvent(n,e,t){const o={type:import_core.Events.EVENT_TOOL_PANEL_SIZE_CHANGED,width:t,started:n,ended:e};this.eventService.dispatchEvent(o)}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(n){return this.onResizing(n,!0)}onResizing(n,e=!1){const t=this.inverted?-1:1;let o=Math.max(this.minWidth,Math.floor(this.startingWidth-n*t));this.maxWidth!=null&&(o=Math.min(this.maxWidth,o)),this.elementToResize.style.width=`${o}px`,this.dispatchResizeEvent(!1,e,o)}setInverted(n){this.inverted=n}setMaxWidth(n){this.maxWidth=n}setMinWidth(n){n!=null?this.minWidth=n:this.minWidth=100}};__decorateClass([(0,import_core.Autowired)("horizontalResizeService")],HorizontalResizeComp.prototype,"horizontalResizeService",2),__decorateClass([import_core.PostConstruct],HorizontalResizeComp.prototype,"postConstruct",1);var import_core5=require("@ag-grid-community/core"),import_core3=require("@ag-grid-community/core"),import_core2=require("@ag-grid-community/core"),_SideBarButtonComp=class g extends import_core2.Component{constructor(e){super(),this.toolPanelDef=e}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){const e=this.createTemplate();this.setTemplate(e),this.setLabel(),this.setIcon(),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this)),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation">

<ag-side-bar-buttons ref="sideBarButtons"></ag-side-bar-buttons>
</div>`,__decorateClass([(0,import_core5.Autowired)("focusService")],_SideBarComp.prototype,"focusService",2),__decorateClass([(0,import_core5.Autowired)("filterManager")],_SideBarComp.prototype,"filterManager",2),__decorateClass([(0,import_core5.Autowired)("sideBarService")],_SideBarComp.prototype,"sideBarService",2),__decorateClass([(0,import_core5.RefSelector)("sideBarButtons")],_SideBarComp.prototype,"sideBarButtonsComp",2),__decorateClass([import_core5.PostConstruct],_SideBarComp.prototype,"postConstruct",1);var SideBarComp=_SideBarComp,import_core6=require("@ag-grid-community/core"),ToolPanelColDefService=class extends import_core6.BeanStub{constructor(){super(...arguments),this.isColGroupDef=n=>n&&typeof n.children<"u",this.getId=n=>this.isColGroupDef(n)?n.groupId:n.colId}createColumnTree(n){const e=[],t=(s,i)=>{if(this.isColGroupDef(s)){const r=s,a=typeof r.groupId<"u"?r.groupId:r.headerName,l=new import_core6.ProvidedColumnGroup(r,a,!1,i),d=[];return r.children.forEach(c=>{const p=t(c,i+1);p&&d.push(p)}),l.setChildren(d),l}else{const r=s,a=r.colId?r.colId:r.field,l=this.columnModel.getPrimaryColumn(a);return l||e.push(r),l}},o=[];return n.forEach(s=>{const i=t(s,0);i&&o.push(i)}),e.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",e),o}syncLayoutWithGrid(n){const e=this.getLeafPathTrees(),t=this.mergeLeafPathTrees(e);n(t)}getLeafPathTrees(){const n=(o,s)=>{let i;if(o instanceof import_core6.ProvidedColumnGroup)if(o.isPadding())i=s;else{const a=Object.assign({},o.getColGroupDef());a.groupId=o.getGroupId(),a.children=[s],i=a}else{const a=Object.assign({},o.getColDef());a.colId=o.getColId(),i=a}const r=o.getOriginalParent();return r?n(r,i):i};return this.columnModel.getAllGridColumns().filter(o=>{const s=o.getColDef();return o.isPrimary()&&!s.showRowGroup}).map(o=>n(o,o.getColDef()))}mergeLeafPathTrees(n){const e=(s,i)=>this.isColGroupDef(s)&&this.isColGroupDef(i)&&this.getId(s)===this.getId(i),t=(s,i)=>{if(!this.isColGroupDef(i))return s;const r=s,a=i;return a.children&&a.groupId&&this.addChildrenToGroup(r,a.groupId,a.children[0])||a.children.forEach(l=>t(r,l)),r},o=[];for(let s=1;s<=n.length;s++){const i=n[s-1],r=n[s];e(i,r)?n[s]=t(i,r):o.push(i)}return o}addChildrenToGroup(n,e,t){const o=(r,a)=>{const l=r.children.map(this.getId),d=import_core6._.includes(l,this.getId(a)),c=import_core6._.last(r.children),p=c&&this.getId(c)!==this.getId(a);return d&&p};if(!this.isColGroupDef(n))return!0;const s=n,i=t;if(o(s,i))return s.children.push(i),!0;if(s.groupId===e){const r=s.children.map(this.getId);if(!import_core6._.includes(r,this.getId(i)))return s.children.push(i),!0}return s.children.forEach(r=>this.addChildrenToGroup(r,e,t)),!1}};__decorateClass([(0,import_core6.Autowired)("columnModel")],ToolPanelColDefService.prototype,"columnModel",2),ToolPanelColDefService=__decorateClass([(0,import_core6.Bean)("toolPanelColDefService")],ToolPanelColDefService);var VERSION="31.2.0",import_core7=require("@ag-grid-community/core"),SideBarService=class extends import_core7.BeanStub{registerSideBarComp(n){this.sideBarComp=n}getSideBarComp(){return this.sideBarComp}};SideBarService=__decorateClass([(0,import_core7.Bean)("sideBarService")],SideBarService);var SideBarModule={version:VERSION,moduleName:import_core8.ModuleNames.SideBarModule,beans:[ToolPanelColDefService,SideBarService],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:HorizontalResizeComp},{componentName:"AgSideBar",componentClass:SideBarComp},{componentName:"AgSideBarButtons",componentClass:SideBarButtonsComp}],dependantModules:[import_core9.EnterpriseCoreModule]};
</div>`,__decorateClass([(0,import_core5.Autowired)("focusService")],_SideBarComp.prototype,"focusService",2),__decorateClass([(0,import_core5.Autowired)("filterManager")],_SideBarComp.prototype,"filterManager",2),__decorateClass([(0,import_core5.Autowired)("sideBarService")],_SideBarComp.prototype,"sideBarService",2),__decorateClass([(0,import_core5.RefSelector)("sideBarButtons")],_SideBarComp.prototype,"sideBarButtonsComp",2),__decorateClass([import_core5.PostConstruct],_SideBarComp.prototype,"postConstruct",1);var SideBarComp=_SideBarComp,import_core6=require("@ag-grid-community/core"),ToolPanelColDefService=class extends import_core6.BeanStub{constructor(){super(...arguments),this.isColGroupDef=n=>n&&typeof n.children<"u",this.getId=n=>this.isColGroupDef(n)?n.groupId:n.colId}createColumnTree(n){const e=[],t=(s,i)=>{if(this.isColGroupDef(s)){const r=s,a=typeof r.groupId<"u"?r.groupId:r.headerName,l=new import_core6.ProvidedColumnGroup(r,a,!1,i),d=[];return r.children.forEach(c=>{const p=t(c,i+1);p&&d.push(p)}),l.setChildren(d),l}else{const r=s,a=r.colId?r.colId:r.field,l=this.columnModel.getPrimaryColumn(a);return l||e.push(r),l}},o=[];return n.forEach(s=>{const i=t(s,0);i&&o.push(i)}),e.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",e),o}syncLayoutWithGrid(n){const e=this.getLeafPathTrees(),t=this.mergeLeafPathTrees(e);n(t)}getLeafPathTrees(){const n=(o,s)=>{let i;if(o instanceof import_core6.ProvidedColumnGroup)if(o.isPadding())i=s;else{const a=Object.assign({},o.getColGroupDef());a.groupId=o.getGroupId(),a.children=[s],i=a}else{const a=Object.assign({},o.getColDef());a.colId=o.getColId(),i=a}const r=o.getOriginalParent();return r?n(r,i):i};return this.columnModel.getAllGridColumns().filter(o=>{const s=o.getColDef();return o.isPrimary()&&!s.showRowGroup}).map(o=>n(o,o.getColDef()))}mergeLeafPathTrees(n){const e=(s,i)=>this.isColGroupDef(s)&&this.isColGroupDef(i)&&this.getId(s)===this.getId(i),t=(s,i)=>{if(!this.isColGroupDef(i))return s;const r=s,a=i;return a.children&&a.groupId&&this.addChildrenToGroup(r,a.groupId,a.children[0])||a.children.forEach(l=>t(r,l)),r},o=[];for(let s=1;s<=n.length;s++){const i=n[s-1],r=n[s];e(i,r)?n[s]=t(i,r):o.push(i)}return o}addChildrenToGroup(n,e,t){const o=(r,a)=>{const l=r.children.map(this.getId),d=import_core6._.includes(l,this.getId(a)),c=import_core6._.last(r.children),p=c&&this.getId(c)!==this.getId(a);return d&&p};if(!this.isColGroupDef(n))return!0;const s=n,i=t;if(o(s,i))return s.children.push(i),!0;if(s.groupId===e){const r=s.children.map(this.getId);if(!import_core6._.includes(r,this.getId(i)))return s.children.push(i),!0}return s.children.forEach(r=>this.addChildrenToGroup(r,e,t)),!1}};__decorateClass([(0,import_core6.Autowired)("columnModel")],ToolPanelColDefService.prototype,"columnModel",2),ToolPanelColDefService=__decorateClass([(0,import_core6.Bean)("toolPanelColDefService")],ToolPanelColDefService);var VERSION="31.2.1",import_core7=require("@ag-grid-community/core"),SideBarService=class extends import_core7.BeanStub{registerSideBarComp(n){this.sideBarComp=n}getSideBarComp(){return this.sideBarComp}};SideBarService=__decorateClass([(0,import_core7.Bean)("sideBarService")],SideBarService);var SideBarModule={version:VERSION,moduleName:import_core8.ModuleNames.SideBarModule,beans:[ToolPanelColDefService,SideBarService],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:HorizontalResizeComp},{componentName:"AgSideBar",componentClass:SideBarComp},{componentName:"AgSideBarButtons",componentClass:SideBarButtonsComp}],dependantModules:[import_core9.EnterpriseCoreModule]};
{
"name": "@ag-grid-enterprise/side-bar",
"version": "31.2.0",
"version": "31.2.1",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -15,4 +15,4 @@ "main": "./dist/package/main.cjs.js",

"dependencies": {
"@ag-grid-community/core": "31.2.0",
"@ag-grid-enterprise/core": "31.2.0"
"@ag-grid-community/core": "31.2.1",
"@ag-grid-enterprise/core": "31.2.1"
},

@@ -19,0 +19,0 @@ "devDependencies": {

{
"name": "@ag-grid-enterprise/side-bar",
"version": "31.2.0",
"version": "31.2.1",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -15,4 +15,4 @@ "main": "./src/main.js",

"dependencies": {
"@ag-grid-community/core": "31.2.0",
"@ag-grid-enterprise/core": "31.2.0"
"@ag-grid-community/core": "31.2.1",
"@ag-grid-enterprise/core": "31.2.1"
},

@@ -19,0 +19,0 @@ "devDependencies": {

@@ -1,1 +0,1 @@

export declare const VERSION = "31.2.0";
export declare const VERSION = "31.2.1";
{
"name": "@ag-grid-enterprise/side-bar",
"version": "31.2.0",
"version": "31.2.1",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -15,4 +15,4 @@ "main": "./dist/package/main.cjs.js",

"dependencies": {
"@ag-grid-community/core": "31.2.0",
"@ag-grid-enterprise/core": "31.2.0"
"@ag-grid-community/core": "31.2.1",
"@ag-grid-enterprise/core": "31.2.1"
},

@@ -19,0 +19,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc