@ag-grid-enterprise/side-bar
Advanced tools
Comparing version 32.0.2 to 32.1.0
@@ -298,6 +298,7 @@ var __defProp = Object.defineProperty; | ||
} | ||
const lastColumn = (0, import_core4._last)(this.visibleColsService.getAllCols()); | ||
if (this.focusService.focusGridView(lastColumn, true)) { | ||
if (this.focusService.focusNextGridCoreContainer(true)) { | ||
e.preventDefault(); | ||
return; | ||
} | ||
(0, import_core4._stopPropagationForAgGrid)(e); | ||
} | ||
@@ -454,3 +455,3 @@ setActiveButton(id) { | ||
dispatchResizeEvent(start, end, width) { | ||
const event = { | ||
this.eventService.dispatchEvent({ | ||
type: "toolPanelSizeChanged", | ||
@@ -460,4 +461,3 @@ width, | ||
ended: end | ||
}; | ||
this.eventService.dispatchEvent(event); | ||
}); | ||
} | ||
@@ -715,3 +715,3 @@ onResizeStart() { | ||
}); | ||
this.eventService.dispatchEvent({ type: "sideBarUpdated" }); | ||
this.dispatchSideBarUpdated(); | ||
return this; | ||
@@ -721,3 +721,3 @@ } | ||
super.setDisplayed(displayed, options); | ||
this.eventService.dispatchEvent({ type: "sideBarUpdated" }); | ||
this.dispatchSideBarUpdated(); | ||
} | ||
@@ -792,3 +792,3 @@ getState() { | ||
initialState, | ||
onStateUpdated: () => this.eventService.dispatchEvent({ type: "sideBarUpdated" }) | ||
onStateUpdated: () => this.dispatchSideBarUpdated() | ||
}); | ||
@@ -832,3 +832,3 @@ } | ||
if (previousKey) { | ||
const event = { | ||
this.eventService.dispatchEvent({ | ||
type: "toolPanelVisibleChanged", | ||
@@ -839,7 +839,6 @@ source, | ||
switchingToolPanel | ||
}; | ||
this.eventService.dispatchEvent(event); | ||
}); | ||
} | ||
if (key) { | ||
const event = { | ||
this.eventService.dispatchEvent({ | ||
type: "toolPanelVisibleChanged", | ||
@@ -850,4 +849,3 @@ source, | ||
switchingToolPanel | ||
}; | ||
this.eventService.dispatchEvent(event); | ||
}); | ||
} | ||
@@ -891,3 +889,3 @@ } | ||
...toolPanelDef.toolPanelParams ?? {}, | ||
onStateUpdated: () => this.eventService.dispatchEvent({ type: "sideBarUpdated" }) | ||
onStateUpdated: () => this.dispatchSideBarUpdated() | ||
}); | ||
@@ -906,2 +904,5 @@ const hasRefreshed = toolPanelWrapper.getToolPanelInstance()?.refresh(params); | ||
} | ||
dispatchSideBarUpdated() { | ||
this.eventService.dispatchEvent({ type: "sideBarUpdated" }); | ||
} | ||
destroyToolPanelWrappers() { | ||
@@ -942,6 +943,6 @@ this.toolPanelWrappers.forEach((wrapper) => { | ||
// enterprise-modules/side-bar/src/version.ts | ||
var VERSION = "32.0.2"; | ||
var VERSION = "32.1.0"; | ||
// enterprise-modules/side-bar/src/sideBarModule.ts | ||
var SideBarCoreModule = { | ||
var SideBarCoreModule = (0, import_core10._defineModule)({ | ||
version: VERSION, | ||
@@ -951,4 +952,4 @@ moduleName: `${import_core10.ModuleNames.SideBarModule}-core`, | ||
dependantModules: [import_core11.EnterpriseCoreModule] | ||
}; | ||
var SideBarApiModule = { | ||
}); | ||
var SideBarApiModule = (0, import_core10._defineModule)({ | ||
version: VERSION, | ||
@@ -969,7 +970,7 @@ moduleName: `${import_core10.ModuleNames.SideBarModule}-api`, | ||
dependantModules: [SideBarCoreModule] | ||
}; | ||
var SideBarModule = { | ||
}); | ||
var SideBarModule = (0, import_core10._defineModule)({ | ||
version: VERSION, | ||
moduleName: import_core10.ModuleNames.SideBarModule, | ||
dependantModules: [SideBarCoreModule, SideBarApiModule] | ||
}; | ||
}); |
@@ -1,2 +0,2 @@ | ||
var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of __getOwnPropNames(t))!__hasOwnProp.call(e,i)&&i!==o&&__defProp(e,i,{get:()=>t[i],enumerable:!(s=__getOwnPropDesc(t,i))||s.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),main_exports={};__export(main_exports,{SideBarModule:()=>SideBarModule,ToolPanelColDefService:()=>ToolPanelColDefService}),module.exports=__toCommonJS(main_exports);var import_core10=require("@ag-grid-community/core"),import_core11=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),ToolPanelColDefService=class extends import_core.BeanStub{constructor(){super(...arguments),this.beanName="toolPanelColDefService",this.isColGroupDef=e=>e&&typeof e.children<"u",this.getId=e=>this.isColGroupDef(e)?e.groupId:e.colId}wireBeans(e){this.columnModel=e.columnModel}createColumnTree(e){const t=[],o=(i,n)=>{if(this.isColGroupDef(i)){const r=i,a=typeof r.groupId<"u"?r.groupId:r.headerName,l=new import_core.AgProvidedColumnGroup(r,a,!1,n),d=[];return r.children.forEach(c=>{const u=o(c,n+1);u&&d.push(u)}),l.setChildren(d),l}else{const r=i,a=r.colId?r.colId:r.field,l=this.columnModel.getColDefCol(a);return l||t.push(r),l}},s=[];return e.forEach(i=>{const n=o(i,0);n&&s.push(n)}),t.length>0&&(0,import_core._warnOnce)("unable to find grid columns for the supplied colDef(s):",t),s}syncLayoutWithGrid(e){const t=this.getLeafPathTrees(),o=this.mergeLeafPathTrees(t);e(o)}getLeafPathTrees(){const e=(s,i)=>{let n;if((0,import_core.isProvidedColumnGroup)(s))if(s.isPadding())n=i;else{const a=Object.assign({},s.getColGroupDef());a.groupId=s.getGroupId(),a.children=[i],n=a}else{const a=Object.assign({},s.getColDef());a.colId=s.getColId(),n=a}const r=s.getOriginalParent();return r?e(r,n):n};return this.columnModel.getCols().filter(s=>{const i=s.getColDef();return s.isPrimary()&&!i.showRowGroup}).map(s=>e(s,s.getColDef()))}mergeLeafPathTrees(e){const t=(i,n)=>this.isColGroupDef(i)&&this.isColGroupDef(n)&&this.getId(i)===this.getId(n),o=(i,n)=>{if(!this.isColGroupDef(n))return i;const r=i,a=n;return a.children&&a.groupId&&this.addChildrenToGroup(r,a.groupId,a.children[0])||a.children.forEach(l=>o(r,l)),r},s=[];for(let i=1;i<=e.length;i++){const n=e[i-1],r=e[i];t(n,r)?e[i]=o(n,r):s.push(n)}return s}addChildrenToGroup(e,t,o){const s=(r,a)=>{const l=r.children.map(this.getId),d=(0,import_core._includes)(l,this.getId(a)),c=(0,import_core._last)(r.children),u=c&&this.getId(c)!==this.getId(a);return d&&u};if(!this.isColGroupDef(e))return!0;const i=e,n=o;if(s(i,n))return i.children.push(n),!0;if(i.groupId===t){const r=i.children.map(this.getId);if(!(0,import_core._includes)(r,this.getId(n)))return i.children.push(n),!0}return i.children.forEach(r=>this.addChildrenToGroup(r,t,o)),!1}},import_core2=require("@ag-grid-community/core");function isSideBarVisible(e){return e.sideBarService?.getSideBarComp().isDisplayed()??!1}function setSideBarVisible(e,t){e.sideBarService?.getSideBarComp().setDisplayed(t)}function setSideBarPosition(e,t){e.sideBarService?.getSideBarComp().setSideBarPosition(t)}function openToolPanel(e,t){e.sideBarService?.getSideBarComp().openToolPanel(t,"api")}function closeToolPanel(e){e.sideBarService?.getSideBarComp().close("api")}function getOpenedToolPanel(e){return e.sideBarService?.getSideBarComp().openedItem()??null}function refreshToolPanel(e){e.sideBarService?.getSideBarComp().refresh()}function isToolPanelShowing(e){return e.sideBarService?.getSideBarComp().isToolPanelShowing()??!1}function getToolPanelInstance(e,t){const o=e.sideBarService?.getSideBarComp().getToolPanelInstance(t);return(0,import_core2._unwrapUserComp)(o)}function getSideBar(e){return e.sideBarService?.getSideBarComp().getDef()}var import_core9=require("@ag-grid-community/core"),import_core8=require("@ag-grid-community/core"),import_core4=require("@ag-grid-community/core"),import_core3=require("@ag-grid-community/core"),SideBarButtonComp=class extends import_core3.Component{constructor(e){super(),this.eToggleButton=import_core3.RefPlaceholder,this.eIconWrapper=import_core3.RefPlaceholder,this.eLabel=import_core3.RefPlaceholder,this.toolPanelDef=e}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){const e=this.createTemplate();this.setTemplate(e,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation"> | ||
var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var i in t)__defProp(e,i,{get:t[i],enumerable:!0})},__copyProps=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of __getOwnPropNames(t))!__hasOwnProp.call(e,s)&&s!==i&&__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,{SideBarModule:()=>SideBarModule,ToolPanelColDefService:()=>ToolPanelColDefService}),module.exports=__toCommonJS(main_exports);var import_core10=require("@ag-grid-community/core"),import_core11=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),ToolPanelColDefService=class extends import_core.BeanStub{constructor(){super(...arguments),this.beanName="toolPanelColDefService",this.isColGroupDef=e=>e&&typeof e.children<"u",this.getId=e=>this.isColGroupDef(e)?e.groupId:e.colId}wireBeans(e){this.columnModel=e.columnModel}createColumnTree(e){const t=[],i=(s,n)=>{if(this.isColGroupDef(s)){const r=s,a=typeof r.groupId<"u"?r.groupId:r.headerName,l=new import_core.AgProvidedColumnGroup(r,a,!1,n),d=[];return r.children.forEach(c=>{const u=i(c,n+1);u&&d.push(u)}),l.setChildren(d),l}else{const r=s,a=r.colId?r.colId:r.field,l=this.columnModel.getColDefCol(a);return l||t.push(r),l}},o=[];return e.forEach(s=>{const n=i(s,0);n&&o.push(n)}),t.length>0&&(0,import_core._warnOnce)("unable to find grid columns for the supplied colDef(s):",t),o}syncLayoutWithGrid(e){const t=this.getLeafPathTrees(),i=this.mergeLeafPathTrees(t);e(i)}getLeafPathTrees(){const e=(o,s)=>{let n;if((0,import_core.isProvidedColumnGroup)(o))if(o.isPadding())n=s;else{const a=Object.assign({},o.getColGroupDef());a.groupId=o.getGroupId(),a.children=[s],n=a}else{const a=Object.assign({},o.getColDef());a.colId=o.getColId(),n=a}const r=o.getOriginalParent();return r?e(r,n):n};return this.columnModel.getCols().filter(o=>{const s=o.getColDef();return o.isPrimary()&&!s.showRowGroup}).map(o=>e(o,o.getColDef()))}mergeLeafPathTrees(e){const t=(s,n)=>this.isColGroupDef(s)&&this.isColGroupDef(n)&&this.getId(s)===this.getId(n),i=(s,n)=>{if(!this.isColGroupDef(n))return s;const r=s,a=n;return a.children&&a.groupId&&this.addChildrenToGroup(r,a.groupId,a.children[0])||a.children.forEach(l=>i(r,l)),r},o=[];for(let s=1;s<=e.length;s++){const n=e[s-1],r=e[s];t(n,r)?e[s]=i(n,r):o.push(n)}return o}addChildrenToGroup(e,t,i){const o=(r,a)=>{const l=r.children.map(this.getId),d=(0,import_core._includes)(l,this.getId(a)),c=(0,import_core._last)(r.children),u=c&&this.getId(c)!==this.getId(a);return d&&u};if(!this.isColGroupDef(e))return!0;const s=e,n=i;if(o(s,n))return s.children.push(n),!0;if(s.groupId===t){const r=s.children.map(this.getId);if(!(0,import_core._includes)(r,this.getId(n)))return s.children.push(n),!0}return s.children.forEach(r=>this.addChildrenToGroup(r,t,i)),!1}},import_core2=require("@ag-grid-community/core");function isSideBarVisible(e){return e.sideBarService?.getSideBarComp().isDisplayed()??!1}function setSideBarVisible(e,t){e.sideBarService?.getSideBarComp().setDisplayed(t)}function setSideBarPosition(e,t){e.sideBarService?.getSideBarComp().setSideBarPosition(t)}function openToolPanel(e,t){e.sideBarService?.getSideBarComp().openToolPanel(t,"api")}function closeToolPanel(e){e.sideBarService?.getSideBarComp().close("api")}function getOpenedToolPanel(e){return e.sideBarService?.getSideBarComp().openedItem()??null}function refreshToolPanel(e){e.sideBarService?.getSideBarComp().refresh()}function isToolPanelShowing(e){return e.sideBarService?.getSideBarComp().isToolPanelShowing()??!1}function getToolPanelInstance(e,t){const i=e.sideBarService?.getSideBarComp().getToolPanelInstance(t);return(0,import_core2._unwrapUserComp)(i)}function getSideBar(e){return e.sideBarService?.getSideBarComp().getDef()}var import_core9=require("@ag-grid-community/core"),import_core8=require("@ag-grid-community/core"),import_core4=require("@ag-grid-community/core"),import_core3=require("@ag-grid-community/core"),SideBarButtonComp=class extends import_core3.Component{constructor(e){super(),this.eToggleButton=import_core3.RefPlaceholder,this.eIconWrapper=import_core3.RefPlaceholder,this.eLabel=import_core3.RefPlaceholder,this.toolPanelDef=e}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){const e=this.createTemplate();this.setTemplate(e,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation"> | ||
<button type="button" data-ref="eToggleButton" tabindex="-1" role="tab" aria-expanded="false" class="ag-button ag-side-button-button"> | ||
@@ -6,4 +6,4 @@ <div data-ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div> | ||
</button> | ||
</div>`}setLabel(){const e=this.localeService.getLocaleTextFunc(),t=this.toolPanelDef,o=e(t.labelKey,t.labelDefault);this.eLabel.innerText=o}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",(0,import_core3._createIconNoSpan)(this.toolPanelDef.iconKey,this.gos))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(e){this.addOrRemoveCssClass("ag-selected",e),(0,import_core3._setAriaExpanded)(this.eToggleButton,e)}getButtonElement(){return this.eToggleButton}},AgSideBarButtons=class extends import_core4.Component{constructor(){super('<div class="ag-side-buttons" role="tablist"></div>'),this.buttonComps=[]}wireBeans(e){this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){if(e.key!==import_core4.KeyCode.TAB||!e.shiftKey)return;const t=(0,import_core4._last)(this.visibleColsService.getAllCols());this.focusService.focusGridView(t,!0)&&e.preventDefault()}setActiveButton(e){this.buttonComps.forEach(t=>{t.setSelected(e===t.getToolPanelId())})}addButtonComp(e){const t=this.createBean(new SideBarButtonComp(e));return this.buttonComps.push(t),this.appendChild(t),t.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:e.id})}),t}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),(0,import_core4._clearElement)(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},AgSideBarButtonsSelector={selector:"AG-SIDE-BAR-BUTTONS",component:AgSideBarButtons},import_core5=require("@ag-grid-community/core"),DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},DEFAULT_BY_KEY={columns:DEFAULT_COLUMN_COMP,filters:DEFAULT_FILTER_COMP};function parseSideBarDef(e){if(!e)return;if(e===!0)return{toolPanels:[DEFAULT_COLUMN_COMP,DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if(typeof e=="string")return parseSideBarDef([e]);if(Array.isArray(e)){const o=[];return e.forEach(s=>{const i=DEFAULT_BY_KEY[s];if(!i){logMissingKey(s);return}o.push(i)}),o.length===0?void 0:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:parseComponents(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}}function logMissingKey(e){(0,import_core5._warnOnce)(`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(DEFAULT_BY_KEY).join(",")}`)}function parseComponents(e){const t=[];return e&&e.forEach(o=>{let s=null;if(typeof o=="string"){const i=DEFAULT_BY_KEY[o];if(!i){logMissingKey(o);return}s=i}else s=o;t.push(s)}),t}var import_core7=require("@ag-grid-community/core"),import_core6=require("@ag-grid-community/core"),AgHorizontalResize=class extends import_core6.Component{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}wireBeans(e){this.horizontalResizeService=e.horizontalResizeService}setElementToResize(e){this.elementToResize=e}postConstruct(){const e=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(e),this.setInverted(this.gos.get("enableRtl"))}dispatchResizeEvent(e,t,o){const s={type:"toolPanelSizeChanged",width:o,started:e,ended:t};this.eventService.dispatchEvent(s)}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(e){return this.onResizing(e,!0)}onResizing(e,t=!1){const o=this.inverted?-1:1;let s=Math.max(this.minWidth,Math.floor(this.startingWidth-e*o));this.maxWidth!=null&&(s=Math.min(this.maxWidth,s)),this.elementToResize.style.width=`${s}px`,this.dispatchResizeEvent(!1,t,s)}setInverted(e){this.inverted=e}setMaxWidth(e){this.maxWidth=e}setMinWidth(e){e!=null?this.minWidth=e:this.minWidth=100}},ToolPanelWrapper=class extends import_core7.Component{wireBeans(e){this.userComponentFactory=e.userComponentFactory}constructor(){super('<div class="ag-tool-panel-wrapper" role="tabpanel"/>')}postConstruct(){const e=this.getGui(),t=this.resizeBar=this.createManagedBean(new AgHorizontalResize);e.setAttribute("id",`ag-${this.getCompId()}`),t.setElementToResize(e),this.appendChild(t)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(e,t){const{id:o,minWidth:s,maxWidth:i,width:n}=e;this.toolPanelId=o,this.width=n;const r=this.userComponentFactory.getToolPanelCompDetails(e,t),a=r.newAgStackInstance();if(this.params=r.params,a==null){(0,import_core7._warnOnce)(`error processing tool panel component ${o}. You need to specify 'toolPanel'`);return}a.then(this.setToolPanelComponent.bind(this)),s!=null&&this.resizeBar.setMinWidth(s),i!=null&&this.resizeBar.setMaxWidth(i)}setToolPanelComponent(e){this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(()=>{this.destroyBean(e)}),this.width&&(this.getGui().style.width=`${this.width}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(e){const t=this.gos.get("enableRtl"),o=e==="left",s=t?o:!o;this.resizeBar.setInverted(s)}refresh(){this.toolPanelCompInstance?.refresh(this.params)}},AgSideBar=class extends import_core8.Component{constructor(){super(`<div class="ag-side-bar ag-unselectable"> | ||
</div>`}setLabel(){const e=this.localeService.getLocaleTextFunc(),t=this.toolPanelDef,i=e(t.labelKey,t.labelDefault);this.eLabel.innerText=i}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",(0,import_core3._createIconNoSpan)(this.toolPanelDef.iconKey,this.gos))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(e){this.addOrRemoveCssClass("ag-selected",e),(0,import_core3._setAriaExpanded)(this.eToggleButton,e)}getButtonElement(){return this.eToggleButton}},AgSideBarButtons=class extends import_core4.Component{constructor(){super('<div class="ag-side-buttons" role="tablist"></div>'),this.buttonComps=[]}wireBeans(e){this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){if(!(e.key!==import_core4.KeyCode.TAB||!e.shiftKey)){if(this.focusService.focusNextGridCoreContainer(!0)){e.preventDefault();return}(0,import_core4._stopPropagationForAgGrid)(e)}}setActiveButton(e){this.buttonComps.forEach(t=>{t.setSelected(e===t.getToolPanelId())})}addButtonComp(e){const t=this.createBean(new SideBarButtonComp(e));return this.buttonComps.push(t),this.appendChild(t),t.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:e.id})}),t}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),(0,import_core4._clearElement)(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},AgSideBarButtonsSelector={selector:"AG-SIDE-BAR-BUTTONS",component:AgSideBarButtons},import_core5=require("@ag-grid-community/core"),DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},DEFAULT_BY_KEY={columns:DEFAULT_COLUMN_COMP,filters:DEFAULT_FILTER_COMP};function parseSideBarDef(e){if(!e)return;if(e===!0)return{toolPanels:[DEFAULT_COLUMN_COMP,DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if(typeof e=="string")return parseSideBarDef([e]);if(Array.isArray(e)){const i=[];return e.forEach(o=>{const s=DEFAULT_BY_KEY[o];if(!s){logMissingKey(o);return}i.push(s)}),i.length===0?void 0:{toolPanels:i,defaultToolPanel:i[0].id}}return{toolPanels:parseComponents(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}}function logMissingKey(e){(0,import_core5._warnOnce)(`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(DEFAULT_BY_KEY).join(",")}`)}function parseComponents(e){const t=[];return e&&e.forEach(i=>{let o=null;if(typeof i=="string"){const s=DEFAULT_BY_KEY[i];if(!s){logMissingKey(i);return}o=s}else o=i;t.push(o)}),t}var import_core7=require("@ag-grid-community/core"),import_core6=require("@ag-grid-community/core"),AgHorizontalResize=class extends import_core6.Component{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}wireBeans(e){this.horizontalResizeService=e.horizontalResizeService}setElementToResize(e){this.elementToResize=e}postConstruct(){const e=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(e),this.setInverted(this.gos.get("enableRtl"))}dispatchResizeEvent(e,t,i){this.eventService.dispatchEvent({type:"toolPanelSizeChanged",width:i,started:e,ended:t})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(e){return this.onResizing(e,!0)}onResizing(e,t=!1){const i=this.inverted?-1:1;let o=Math.max(this.minWidth,Math.floor(this.startingWidth-e*i));this.maxWidth!=null&&(o=Math.min(this.maxWidth,o)),this.elementToResize.style.width=`${o}px`,this.dispatchResizeEvent(!1,t,o)}setInverted(e){this.inverted=e}setMaxWidth(e){this.maxWidth=e}setMinWidth(e){e!=null?this.minWidth=e:this.minWidth=100}},ToolPanelWrapper=class extends import_core7.Component{wireBeans(e){this.userComponentFactory=e.userComponentFactory}constructor(){super('<div class="ag-tool-panel-wrapper" role="tabpanel"/>')}postConstruct(){const e=this.getGui(),t=this.resizeBar=this.createManagedBean(new AgHorizontalResize);e.setAttribute("id",`ag-${this.getCompId()}`),t.setElementToResize(e),this.appendChild(t)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(e,t){const{id:i,minWidth:o,maxWidth:s,width:n}=e;this.toolPanelId=i,this.width=n;const r=this.userComponentFactory.getToolPanelCompDetails(e,t),a=r.newAgStackInstance();if(this.params=r.params,a==null){(0,import_core7._warnOnce)(`error processing tool panel component ${i}. You need to specify 'toolPanel'`);return}a.then(this.setToolPanelComponent.bind(this)),o!=null&&this.resizeBar.setMinWidth(o),s!=null&&this.resizeBar.setMaxWidth(s)}setToolPanelComponent(e){this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(()=>{this.destroyBean(e)}),this.width&&(this.getGui().style.width=`${this.width}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(e){const t=this.gos.get("enableRtl"),i=e==="left",o=t?i:!i;this.resizeBar.setInverted(o)}refresh(){this.toolPanelCompInstance?.refresh(this.params)}},AgSideBar=class extends import_core8.Component{constructor(){super(`<div class="ag-side-bar ag-unselectable"> | ||
<ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons> | ||
</div>`,[AgSideBarButtonsSelector]),this.sideBarButtons=import_core8.RefPlaceholder,this.toolPanelWrappers=[]}wireBeans(e){this.focusService=e.focusService,this.filterManager=e.filterManager,this.sideBarService=e.sideBarService}postConstruct(){this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));const{sideBar:e}=this.gos.get("initialState")??{};this.setSideBarDef({sideBarDef:parseSideBarDef(this.gos.get("sideBar")),sideBarState:e}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),this.sideBarService.registerSideBarComp(this);const t=this.getFocusableElement();this.createManagedBean(new import_core8.ManagedFocusFeature(t,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),(0,import_core8._addFocusableContainerListener)(this,t,this.focusService)}onTabKeyDown(e){if(e.defaultPrevented)return;const{focusService:t,sideBarButtons:o}=this,s=this.getGui(),i=o.getGui(),n=this.gos.getActiveDomElement(),r=s.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),a=e.target;if(!r)return;if(i.contains(n)){t.focusInto(r,e.shiftKey)&&e.preventDefault();return}if(!e.shiftKey)return;let l=null;r.contains(n)?l=this.focusService.findNextFocusableElement(r,void 0,!0):t.isTargetUnderManagedComponent(r,a)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(r,a)),l||(l=i.querySelector(".ag-selected button")),l&&l!==e.target&&(e.preventDefault(),l.focus())}handleKeyDown(e){const t=this.gos.getActiveDomElement();if(!this.sideBarButtons.getGui().contains(t))return;const o=this.sideBarButtons.getGui(),s=Array.prototype.slice.call(o.querySelectorAll(".ag-side-button")),i=s.findIndex(a=>a.contains(t));let n=null;switch(e.key){case import_core8.KeyCode.LEFT:case import_core8.KeyCode.UP:n=Math.max(0,i-1);break;case import_core8.KeyCode.RIGHT:case import_core8.KeyCode.DOWN:n=Math.min(i+1,s.length-1);break}if(n===null)return;const r=s[n].querySelector("button");r&&(r.focus(),e.preventDefault())}onToolPanelButtonClicked(e){const t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:e,sideBarState:t,existingToolPanelWrappers:o}){if(this.setDisplayed(!1),this.sideBar=e,this.sideBar&&this.sideBar.toolPanels){const s=this.sideBar.toolPanels;if(this.createToolPanelsAndSideButtons(s,t,o),!this.toolPanelWrappers.length)return;const i=t?t.visible:!this.sideBar.hiddenByDefault;if(this.setDisplayed(i),this.setSideBarPosition(t?t.position:this.sideBar.position),i)if(t){const{openToolPanel:n}=t;n&&this.openToolPanel(n,"sideBarInitializing")}else this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(e){e||(e="right"),this.position=e;const t=e==="left",o=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach(s=>{s.setResizerSizerSide(o)}),this.eventService.dispatchEvent({type:"sideBarUpdated"}),this}setDisplayed(e,t){super.setDisplayed(e,t),this.eventService.dispatchEvent({type:"sideBarUpdated"})}getState(){const e={};return this.toolPanelWrappers.forEach(t=>{e[t.getToolPanelId()]=t.getToolPanelInstance()?.getState?.()}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:e}}createToolPanelsAndSideButtons(e,t,o){for(const s of e)this.createToolPanelAndSideButton(s,t?.toolPanels?.[s.id],o?.[s.id])}validateDef(e){if(e.id==null)return(0,import_core8._warnOnce)("please review all your toolPanel components, it seems like at least one of them doesn't have an id"),!1;if(e.toolPanel==="agColumnsToolPanel"&&!import_core8.ModuleRegistry.__assertRegistered(import_core8.ModuleNames.ColumnsToolPanelModule,"Column Tool Panel",this.gridId))return!1;if(e.toolPanel==="agFiltersToolPanel"){if(!import_core8.ModuleRegistry.__assertRegistered(import_core8.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel",this.gridId))return!1;if(this.filterManager?.isAdvancedFilterEnabled())return(0,import_core8._warnOnce)("Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled."),!1}return!0}createToolPanelAndSideButton(e,t,o){if(!this.validateDef(e))return;const s=this.sideBarButtons.addButtonComp(e);let i;o?i=o:(i=this.createBean(new ToolPanelWrapper),i.setToolPanelDef(e,{initialState:t,onStateUpdated:()=>this.eventService.dispatchEvent({type:"sideBarUpdated"})})),i.setDisplayed(!1);const n=i.getGui();this.appendChild(n),this.toolPanelWrappers.push(i),(0,import_core8._setAriaControls)(s.getButtonElement(),n)}refresh(){this.toolPanelWrappers.forEach(e=>e.refresh())}openToolPanel(e,t="api"){const o=this.openedItem();if(o===e)return;this.toolPanelWrappers.forEach(n=>{const r=e===n.getToolPanelId();n.setDisplayed(r)});const s=this.openedItem();o!==s&&(this.sideBarButtons.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,o??void 0,t))}getToolPanelInstance(e){const t=this.toolPanelWrappers.filter(o=>o.getToolPanelId()===e)[0];if(!t){(0,import_core8._warnOnce)(`unable to lookup Tool Panel as invalid key supplied: ${e}`);return}return t.getToolPanelInstance()}raiseToolPanelVisibleEvent(e,t,o){const s=!!e&&!!t;if(t){const i={type:"toolPanelVisibleChanged",source:o,key:t,visible:!1,switchingToolPanel:s};this.eventService.dispatchEvent(i)}if(e){const i={type:"toolPanelVisibleChanged",source:o,key:e,visible:!0,switchingToolPanel:s};this.eventService.dispatchEvent(i)}}close(e="api"){this.openToolPanel(void 0,e)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let e=null;return this.toolPanelWrappers.forEach(t=>{t.isDisplayed()&&(e=t.getToolPanelId())}),e}onSideBarUpdated(){const e=parseSideBarDef(this.gos.get("sideBar")),t={};e&&this.sideBar&&e.toolPanels?.forEach(o=>{const{id:s}=o;if(!s)return;const i=this.sideBar.toolPanels?.find(l=>l.id===s);if(!i||o.toolPanel!==i.toolPanel)return;const n=this.toolPanelWrappers.find(l=>l.getToolPanelId()===s);if(!n)return;const r=this.gos.addGridCommonParams({...o.toolPanelParams??{},onStateUpdated:()=>this.eventService.dispatchEvent({type:"sideBarUpdated"})});n.getToolPanelInstance()?.refresh(r)===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(l=>l!==n),(0,import_core8._removeFromParent)(n.getGui()),t[s]=n)}),this.clearDownUi(),this.setSideBarDef({sideBarDef:e,existingToolPanelWrappers:t})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(e=>{(0,import_core8._removeFromParent)(e.getGui()),this.destroyBean(e)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}},AgSideBarSelector={selector:"AG-SIDE-BAR",component:AgSideBar},SideBarService=class extends import_core9.BeanStub{constructor(){super(...arguments),this.beanName="sideBarService"}registerSideBarComp(e){this.sideBarComp=e}getSideBarComp(){return this.sideBarComp}getSideBarSelector(){return AgSideBarSelector}},VERSION="32.0.2",SideBarCoreModule={version:VERSION,moduleName:`${import_core10.ModuleNames.SideBarModule}-core`,beans:[ToolPanelColDefService,SideBarService],dependantModules:[import_core11.EnterpriseCoreModule]},SideBarApiModule={version:VERSION,moduleName:`${import_core10.ModuleNames.SideBarModule}-api`,apiFunctions:{isSideBarVisible,setSideBarVisible,setSideBarPosition,openToolPanel,closeToolPanel,getOpenedToolPanel,refreshToolPanel,isToolPanelShowing,getToolPanelInstance,getSideBar},dependantModules:[SideBarCoreModule]},SideBarModule={version:VERSION,moduleName:import_core10.ModuleNames.SideBarModule,dependantModules:[SideBarCoreModule,SideBarApiModule]}; | ||
</div>`,[AgSideBarButtonsSelector]),this.sideBarButtons=import_core8.RefPlaceholder,this.toolPanelWrappers=[]}wireBeans(e){this.focusService=e.focusService,this.filterManager=e.filterManager,this.sideBarService=e.sideBarService}postConstruct(){this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));const{sideBar:e}=this.gos.get("initialState")??{};this.setSideBarDef({sideBarDef:parseSideBarDef(this.gos.get("sideBar")),sideBarState:e}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),this.sideBarService.registerSideBarComp(this);const t=this.getFocusableElement();this.createManagedBean(new import_core8.ManagedFocusFeature(t,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),(0,import_core8._addFocusableContainerListener)(this,t,this.focusService)}onTabKeyDown(e){if(e.defaultPrevented)return;const{focusService:t,sideBarButtons:i}=this,o=this.getGui(),s=i.getGui(),n=this.gos.getActiveDomElement(),r=o.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),a=e.target;if(!r)return;if(s.contains(n)){t.focusInto(r,e.shiftKey)&&e.preventDefault();return}if(!e.shiftKey)return;let l=null;r.contains(n)?l=this.focusService.findNextFocusableElement(r,void 0,!0):t.isTargetUnderManagedComponent(r,a)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(r,a)),l||(l=s.querySelector(".ag-selected button")),l&&l!==e.target&&(e.preventDefault(),l.focus())}handleKeyDown(e){const t=this.gos.getActiveDomElement();if(!this.sideBarButtons.getGui().contains(t))return;const i=this.sideBarButtons.getGui(),o=Array.prototype.slice.call(i.querySelectorAll(".ag-side-button")),s=o.findIndex(a=>a.contains(t));let n=null;switch(e.key){case import_core8.KeyCode.LEFT:case import_core8.KeyCode.UP:n=Math.max(0,s-1);break;case import_core8.KeyCode.RIGHT:case import_core8.KeyCode.DOWN:n=Math.min(s+1,o.length-1);break}if(n===null)return;const r=o[n].querySelector("button");r&&(r.focus(),e.preventDefault())}onToolPanelButtonClicked(e){const t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:e,sideBarState:t,existingToolPanelWrappers:i}){if(this.setDisplayed(!1),this.sideBar=e,this.sideBar&&this.sideBar.toolPanels){const o=this.sideBar.toolPanels;if(this.createToolPanelsAndSideButtons(o,t,i),!this.toolPanelWrappers.length)return;const s=t?t.visible:!this.sideBar.hiddenByDefault;if(this.setDisplayed(s),this.setSideBarPosition(t?t.position:this.sideBar.position),s)if(t){const{openToolPanel:n}=t;n&&this.openToolPanel(n,"sideBarInitializing")}else this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(e){e||(e="right"),this.position=e;const t=e==="left",i=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach(o=>{o.setResizerSizerSide(i)}),this.dispatchSideBarUpdated(),this}setDisplayed(e,t){super.setDisplayed(e,t),this.dispatchSideBarUpdated()}getState(){const e={};return this.toolPanelWrappers.forEach(t=>{e[t.getToolPanelId()]=t.getToolPanelInstance()?.getState?.()}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:e}}createToolPanelsAndSideButtons(e,t,i){for(const o of e)this.createToolPanelAndSideButton(o,t?.toolPanels?.[o.id],i?.[o.id])}validateDef(e){if(e.id==null)return(0,import_core8._warnOnce)("please review all your toolPanel components, it seems like at least one of them doesn't have an id"),!1;if(e.toolPanel==="agColumnsToolPanel"&&!import_core8.ModuleRegistry.__assertRegistered(import_core8.ModuleNames.ColumnsToolPanelModule,"Column Tool Panel",this.gridId))return!1;if(e.toolPanel==="agFiltersToolPanel"){if(!import_core8.ModuleRegistry.__assertRegistered(import_core8.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel",this.gridId))return!1;if(this.filterManager?.isAdvancedFilterEnabled())return(0,import_core8._warnOnce)("Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled."),!1}return!0}createToolPanelAndSideButton(e,t,i){if(!this.validateDef(e))return;const o=this.sideBarButtons.addButtonComp(e);let s;i?s=i:(s=this.createBean(new ToolPanelWrapper),s.setToolPanelDef(e,{initialState:t,onStateUpdated:()=>this.dispatchSideBarUpdated()})),s.setDisplayed(!1);const n=s.getGui();this.appendChild(n),this.toolPanelWrappers.push(s),(0,import_core8._setAriaControls)(o.getButtonElement(),n)}refresh(){this.toolPanelWrappers.forEach(e=>e.refresh())}openToolPanel(e,t="api"){const i=this.openedItem();if(i===e)return;this.toolPanelWrappers.forEach(n=>{const r=e===n.getToolPanelId();n.setDisplayed(r)});const o=this.openedItem();i!==o&&(this.sideBarButtons.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,i??void 0,t))}getToolPanelInstance(e){const t=this.toolPanelWrappers.filter(i=>i.getToolPanelId()===e)[0];if(!t){(0,import_core8._warnOnce)(`unable to lookup Tool Panel as invalid key supplied: ${e}`);return}return t.getToolPanelInstance()}raiseToolPanelVisibleEvent(e,t,i){const o=!!e&&!!t;t&&this.eventService.dispatchEvent({type:"toolPanelVisibleChanged",source:i,key:t,visible:!1,switchingToolPanel:o}),e&&this.eventService.dispatchEvent({type:"toolPanelVisibleChanged",source:i,key:e,visible:!0,switchingToolPanel:o})}close(e="api"){this.openToolPanel(void 0,e)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let e=null;return this.toolPanelWrappers.forEach(t=>{t.isDisplayed()&&(e=t.getToolPanelId())}),e}onSideBarUpdated(){const e=parseSideBarDef(this.gos.get("sideBar")),t={};e&&this.sideBar&&e.toolPanels?.forEach(i=>{const{id:o}=i;if(!o)return;const s=this.sideBar.toolPanels?.find(l=>l.id===o);if(!s||i.toolPanel!==s.toolPanel)return;const n=this.toolPanelWrappers.find(l=>l.getToolPanelId()===o);if(!n)return;const r=this.gos.addGridCommonParams({...i.toolPanelParams??{},onStateUpdated:()=>this.dispatchSideBarUpdated()});n.getToolPanelInstance()?.refresh(r)===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(l=>l!==n),(0,import_core8._removeFromParent)(n.getGui()),t[o]=n)}),this.clearDownUi(),this.setSideBarDef({sideBarDef:e,existingToolPanelWrappers:t})}dispatchSideBarUpdated(){this.eventService.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(e=>{(0,import_core8._removeFromParent)(e.getGui()),this.destroyBean(e)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}},AgSideBarSelector={selector:"AG-SIDE-BAR",component:AgSideBar},SideBarService=class extends import_core9.BeanStub{constructor(){super(...arguments),this.beanName="sideBarService"}registerSideBarComp(e){this.sideBarComp=e}getSideBarComp(){return this.sideBarComp}getSideBarSelector(){return AgSideBarSelector}},VERSION="32.1.0",SideBarCoreModule=(0,import_core10._defineModule)({version:VERSION,moduleName:`${import_core10.ModuleNames.SideBarModule}-core`,beans:[ToolPanelColDefService,SideBarService],dependantModules:[import_core11.EnterpriseCoreModule]}),SideBarApiModule=(0,import_core10._defineModule)({version:VERSION,moduleName:`${import_core10.ModuleNames.SideBarModule}-api`,apiFunctions:{isSideBarVisible,setSideBarVisible,setSideBarPosition,openToolPanel,closeToolPanel,getOpenedToolPanel,refreshToolPanel,isToolPanelShowing,getToolPanelInstance,getSideBar},dependantModules:[SideBarCoreModule]}),SideBarModule=(0,import_core10._defineModule)({version:VERSION,moduleName:import_core10.ModuleNames.SideBarModule,dependantModules:[SideBarCoreModule,SideBarApiModule]}); |
{ | ||
"name": "@ag-grid-enterprise/side-bar", | ||
"version": "32.0.2", | ||
"version": "32.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -16,4 +16,4 @@ "main": "./dist/package/main.cjs.js", | ||
"dependencies": { | ||
"@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 @@ "devDependencies": { | ||
} | ||
} | ||
} |
{ | ||
"name": "@ag-grid-enterprise/side-bar", | ||
"version": "32.0.2", | ||
"version": "32.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -16,4 +16,4 @@ "main": "./src/main.js", | ||
"dependencies": { | ||
"@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" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
@@ -36,2 +36,3 @@ import type { BeanCollection, ComponentSelector, ISideBar, IToolPanel, SideBarDef, SideBarState } from '@ag-grid-community/core'; | ||
private onSideBarUpdated; | ||
private dispatchSideBarUpdated; | ||
private destroyToolPanelWrappers; | ||
@@ -38,0 +39,0 @@ destroy(): void; |
@@ -1,4 +0,3 @@ | ||
import type { Module } from '@ag-grid-community/core'; | ||
export declare const SideBarCoreModule: Module; | ||
export declare const SideBarApiModule: Module; | ||
export declare const SideBarModule: Module; | ||
export declare const SideBarCoreModule: import("@ag-grid-community/core").Module; | ||
export declare const SideBarApiModule: import("@ag-grid-community/core").Module; | ||
export declare const SideBarModule: 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/side-bar", | ||
"version": "32.0.2", | ||
"version": "32.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -16,4 +16,4 @@ "main": "./dist/package/main.cjs.js", | ||
"dependencies": { | ||
"@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 @@ "devDependencies": { | ||
} | ||
} | ||
} |
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
243128
24
2215
+ 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)