@ag-grid-enterprise/filter-tool-panel
Advanced tools
Comparing version 26.0.0 to 26.1.0
import { ColDef, ColGroupDef, Component, IFiltersToolPanel, IToolPanelComp, IToolPanelParams } from "@ag-grid-community/core"; | ||
export interface ToolPanelFiltersCompParams extends IToolPanelParams { | ||
/** To suppress Expand / Collapse All */ | ||
suppressExpandAll: boolean; | ||
/** To suppress the Filter Search */ | ||
suppressFilterSearch: boolean; | ||
/** Suppress updating the layout of columns as they are rearranged in the grid */ | ||
suppressSyncLayoutWithGrid: boolean; | ||
@@ -6,0 +9,0 @@ } |
@@ -40,3 +40,3 @@ "use strict"; | ||
this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaSearch', 'Search')); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaFilterColumnsInput', 'Filter Columns Input')); | ||
this.createExpandIcons(); | ||
@@ -43,0 +43,0 @@ this.setExpandState(EXPAND_STATE.EXPANDED); |
@@ -106,3 +106,3 @@ "use strict"; | ||
return core_1._.flatten(tree.map(function (child) { | ||
if (child instanceof core_1.OriginalColumnGroup) { | ||
if (child instanceof core_1.ProvidedColumnGroup) { | ||
return core_1._.flatten(_this.recursivelyAddFilterGroupComps(child, depth)); | ||
@@ -148,3 +148,3 @@ } | ||
return tree.some(function (child) { | ||
if (child instanceof core_1.OriginalColumnGroup) { | ||
if (child instanceof core_1.ProvidedColumnGroup) { | ||
return _this.filtersExistInChildren(child.getChildren()); | ||
@@ -151,0 +151,0 @@ } |
@@ -93,2 +93,3 @@ "use strict"; | ||
this.expanded = true; | ||
core_1._.setAriaExpanded(this.eFilterToolPanelHeader, true); | ||
var container = core_1._.loadTemplate(/* html */ "<div class=\"ag-filter-toolpanel-instance-filter\"></div>"); | ||
@@ -117,2 +118,3 @@ var filterPromise = this.filterManager.getOrCreateFilterWrapper(this.column, 'TOOLBAR').filterPromise; | ||
this.expanded = false; | ||
core_1._.setAriaExpanded(this.eFilterToolPanelHeader, false); | ||
this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]); | ||
@@ -149,3 +151,3 @@ core_1._.setDisplayed(this.eExpandChecked, false); | ||
}; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\" role=\"button\" aria-expanded=\"false\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
__decorate([ | ||
@@ -152,0 +154,0 @@ core_1.RefSelector('eFilterToolPanelHeader') |
@@ -1,2 +0,2 @@ | ||
import { Component, OriginalColumnGroupChild, ITooltipParams } from "@ag-grid-community/core"; | ||
import { Component, IProvidedColumn, ITooltipParams } from "@ag-grid-community/core"; | ||
import { ToolPanelFilterComp } from "./toolPanelFilterComp"; | ||
@@ -14,3 +14,3 @@ export declare type ToolPanelFilterItem = ToolPanelFilterGroupComp | ToolPanelFilterComp; | ||
private filterGroupName; | ||
constructor(columnGroup: OriginalColumnGroupChild, childFilterComps: ToolPanelFilterItem[], expandedCallback: () => void, depth: number, showingColumn: boolean); | ||
constructor(columnGroup: IProvidedColumn, childFilterComps: ToolPanelFilterItem[], expandedCallback: () => void, depth: number, showingColumn: boolean); | ||
private preConstruct; | ||
@@ -17,0 +17,0 @@ init(): void; |
@@ -91,3 +91,3 @@ "use strict"; | ||
ToolPanelFilterGroupComp.prototype.isColumnGroup = function () { | ||
return this.columnGroup instanceof core_1.OriginalColumnGroup; | ||
return this.columnGroup instanceof core_1.ProvidedColumnGroup; | ||
}; | ||
@@ -132,3 +132,3 @@ ToolPanelFilterGroupComp.prototype.isExpanded = function () { | ||
var _this = this; | ||
if (this.columnGroup instanceof core_1.OriginalColumnGroup) { | ||
if (this.columnGroup instanceof core_1.ProvidedColumnGroup) { | ||
var group_1 = this.columnGroup; | ||
@@ -171,3 +171,3 @@ var anyChildFiltersActive_1 = function () { return group_1.getLeafColumns().some(function (col) { return col.isFilterActive(); }); }; | ||
ToolPanelFilterGroupComp.prototype.setGroupTitle = function () { | ||
this.filterGroupName = (this.columnGroup instanceof core_1.OriginalColumnGroup) ? | ||
this.filterGroupName = (this.columnGroup instanceof core_1.ProvidedColumnGroup) ? | ||
this.getColumnGroupName(this.columnGroup) : this.getColumnName(this.columnGroup); | ||
@@ -174,0 +174,0 @@ this.filterGroupComp.setTitle(this.filterGroupName || ''); |
import { ColDef, ColGroupDef, Component, IFiltersToolPanel, IToolPanelComp, IToolPanelParams } from "@ag-grid-community/core"; | ||
export interface ToolPanelFiltersCompParams extends IToolPanelParams { | ||
/** To suppress Expand / Collapse All */ | ||
suppressExpandAll: boolean; | ||
/** To suppress the Filter Search */ | ||
suppressFilterSearch: boolean; | ||
/** Suppress updating the layout of columns as they are rearranged in the grid */ | ||
suppressSyncLayoutWithGrid: boolean; | ||
@@ -6,0 +9,0 @@ } |
@@ -38,3 +38,3 @@ var __extends = (this && this.__extends) || (function () { | ||
this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaSearch', 'Search')); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaFilterColumnsInput', 'Filter Columns Input')); | ||
this.createExpandIcons(); | ||
@@ -41,0 +41,0 @@ this.setExpandState(EXPAND_STATE.EXPANDED); |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { _, Autowired, Component, Events, OriginalColumnGroup } from "@ag-grid-community/core"; | ||
import { _, Autowired, Component, Events, ProvidedColumnGroup } from "@ag-grid-community/core"; | ||
import { ToolPanelFilterComp } from "./toolPanelFilterComp"; | ||
@@ -105,3 +105,3 @@ import { ToolPanelFilterGroupComp } from "./toolPanelFilterGroupComp"; | ||
return _.flatten(tree.map(function (child) { | ||
if (child instanceof OriginalColumnGroup) { | ||
if (child instanceof ProvidedColumnGroup) { | ||
return _.flatten(_this.recursivelyAddFilterGroupComps(child, depth)); | ||
@@ -147,3 +147,3 @@ } | ||
return tree.some(function (child) { | ||
if (child instanceof OriginalColumnGroup) { | ||
if (child instanceof ProvidedColumnGroup) { | ||
return _this.filtersExistInChildren(child.getChildren()); | ||
@@ -150,0 +150,0 @@ } |
@@ -91,2 +91,3 @@ var __extends = (this && this.__extends) || (function () { | ||
this.expanded = true; | ||
_.setAriaExpanded(this.eFilterToolPanelHeader, true); | ||
var container = _.loadTemplate(/* html */ "<div class=\"ag-filter-toolpanel-instance-filter\"></div>"); | ||
@@ -115,2 +116,3 @@ var filterPromise = this.filterManager.getOrCreateFilterWrapper(this.column, 'TOOLBAR').filterPromise; | ||
this.expanded = false; | ||
_.setAriaExpanded(this.eFilterToolPanelHeader, false); | ||
this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]); | ||
@@ -147,3 +149,3 @@ _.setDisplayed(this.eExpandChecked, false); | ||
}; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\" role=\"button\" aria-expanded=\"false\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
__decorate([ | ||
@@ -150,0 +152,0 @@ RefSelector('eFilterToolPanelHeader') |
@@ -1,2 +0,2 @@ | ||
import { Component, OriginalColumnGroupChild, ITooltipParams } from "@ag-grid-community/core"; | ||
import { Component, IProvidedColumn, ITooltipParams } from "@ag-grid-community/core"; | ||
import { ToolPanelFilterComp } from "./toolPanelFilterComp"; | ||
@@ -14,3 +14,3 @@ export declare type ToolPanelFilterItem = ToolPanelFilterGroupComp | ToolPanelFilterComp; | ||
private filterGroupName; | ||
constructor(columnGroup: OriginalColumnGroupChild, childFilterComps: ToolPanelFilterItem[], expandedCallback: () => void, depth: number, showingColumn: boolean); | ||
constructor(columnGroup: IProvidedColumn, childFilterComps: ToolPanelFilterItem[], expandedCallback: () => void, depth: number, showingColumn: boolean); | ||
private preConstruct; | ||
@@ -17,0 +17,0 @@ init(): void; |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { _, AgGroupComponent, Autowired, Column, Component, Events, OriginalColumnGroup, PostConstruct, PreConstruct, RefSelector } from "@ag-grid-community/core"; | ||
import { _, AgGroupComponent, Autowired, Column, Component, Events, ProvidedColumnGroup, PostConstruct, PreConstruct, RefSelector } from "@ag-grid-community/core"; | ||
import { ToolPanelFilterComp } from "./toolPanelFilterComp"; | ||
@@ -90,3 +90,3 @@ var ToolPanelFilterGroupComp = /** @class */ (function (_super) { | ||
ToolPanelFilterGroupComp.prototype.isColumnGroup = function () { | ||
return this.columnGroup instanceof OriginalColumnGroup; | ||
return this.columnGroup instanceof ProvidedColumnGroup; | ||
}; | ||
@@ -131,3 +131,3 @@ ToolPanelFilterGroupComp.prototype.isExpanded = function () { | ||
var _this = this; | ||
if (this.columnGroup instanceof OriginalColumnGroup) { | ||
if (this.columnGroup instanceof ProvidedColumnGroup) { | ||
var group_1 = this.columnGroup; | ||
@@ -170,3 +170,3 @@ var anyChildFiltersActive_1 = function () { return group_1.getLeafColumns().some(function (col) { return col.isFilterActive(); }); }; | ||
ToolPanelFilterGroupComp.prototype.setGroupTitle = function () { | ||
this.filterGroupName = (this.columnGroup instanceof OriginalColumnGroup) ? | ||
this.filterGroupName = (this.columnGroup instanceof ProvidedColumnGroup) ? | ||
this.getColumnGroupName(this.columnGroup) : this.getColumnName(this.columnGroup); | ||
@@ -173,0 +173,0 @@ this.filterGroupComp.setTitle(this.filterGroupName || ''); |
/** | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.0.0 | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0 | ||
* @link http://www.ag-grid.com/ | ||
@@ -51,3 +51,3 @@ ' * @license Commercial | ||
this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaSearch', 'Search')); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaFilterColumnsInput', 'Filter Columns Input')); | ||
this.createExpandIcons(); | ||
@@ -206,2 +206,3 @@ this.setExpandState(EXPAND_STATE.EXPANDED); | ||
this.expanded = true; | ||
core._.setAriaExpanded(this.eFilterToolPanelHeader, true); | ||
var container = core._.loadTemplate(/* html */ "<div class=\"ag-filter-toolpanel-instance-filter\"></div>"); | ||
@@ -230,2 +231,3 @@ var filterPromise = this.filterManager.getOrCreateFilterWrapper(this.column, 'TOOLBAR').filterPromise; | ||
this.expanded = false; | ||
core._.setAriaExpanded(this.eFilterToolPanelHeader, false); | ||
this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]); | ||
@@ -262,3 +264,3 @@ core._.setDisplayed(this.eExpandChecked, false); | ||
}; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\" role=\"button\" aria-expanded=\"false\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
__decorate$1([ | ||
@@ -377,3 +379,3 @@ core.RefSelector('eFilterToolPanelHeader') | ||
ToolPanelFilterGroupComp.prototype.isColumnGroup = function () { | ||
return this.columnGroup instanceof core.OriginalColumnGroup; | ||
return this.columnGroup instanceof core.ProvidedColumnGroup; | ||
}; | ||
@@ -418,3 +420,3 @@ ToolPanelFilterGroupComp.prototype.isExpanded = function () { | ||
var _this = this; | ||
if (this.columnGroup instanceof core.OriginalColumnGroup) { | ||
if (this.columnGroup instanceof core.ProvidedColumnGroup) { | ||
var group_1 = this.columnGroup; | ||
@@ -457,3 +459,3 @@ var anyChildFiltersActive_1 = function () { return group_1.getLeafColumns().some(function (col) { return col.isFilterActive(); }); }; | ||
ToolPanelFilterGroupComp.prototype.setGroupTitle = function () { | ||
this.filterGroupName = (this.columnGroup instanceof core.OriginalColumnGroup) ? | ||
this.filterGroupName = (this.columnGroup instanceof core.ProvidedColumnGroup) ? | ||
this.getColumnGroupName(this.columnGroup) : this.getColumnName(this.columnGroup); | ||
@@ -591,3 +593,3 @@ this.filterGroupComp.setTitle(this.filterGroupName || ''); | ||
return core._.flatten(tree.map(function (child) { | ||
if (child instanceof core.OriginalColumnGroup) { | ||
if (child instanceof core.ProvidedColumnGroup) { | ||
return core._.flatten(_this.recursivelyAddFilterGroupComps(child, depth)); | ||
@@ -633,3 +635,3 @@ } | ||
return tree.some(function (child) { | ||
if (child instanceof core.OriginalColumnGroup) { | ||
if (child instanceof core.ProvidedColumnGroup) { | ||
return _this.filtersExistInChildren(child.getChildren()); | ||
@@ -636,0 +638,0 @@ } |
/** | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.0.0 | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0 | ||
* @link http://www.ag-grid.com/ | ||
@@ -8,6 +8,6 @@ ' * @license Commercial | ||
/** | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.0.0 | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0 | ||
* @link http://www.ag-grid.com/ | ||
' * @license Commercial | ||
*/ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,o=require("@ag-grid-community/core"),i=require("@ag-grid-enterprise/core"),r=require("@ag-grid-enterprise/side-bar"),n=(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)},function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}),s=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(t||(t={}));var l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.preConstruct=function(){this.setTemplate('<div class="ag-filter-toolpanel-search" role="presentation">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <ag-input-text-field ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>\n </div>')},i.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)),this.eFilterTextField.setInputAriaLabel(e("ariaSearch","Search")),this.createExpandIcons(),this.setExpandState(t.EXPANDED),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eventService,o.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},i.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},i.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=o._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=o._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=o._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},i.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,t=!this.params.suppressExpandAll,i=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(i("searchOoo","Search..."));var r=this.columnModel.getAllGridColumns().some((function(e){return e.getOriginalParent()&&e.isFilterAllowed()}));o._.setDisplayed(this.eFilterTextField.getGui(),e),o._.setDisplayed(this.eExpand,t&&r)},i.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=o._.debounce((function(){e.dispatchEvent({type:"searchChanged",searchText:e.eFilterTextField.getValue()})}),300)),this.onSearchTextChangedDebounced()},i.prototype.onExpandClicked=function(){var e=this.currentExpandState===t.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchEvent(e)},i.prototype.setExpandState=function(e){this.currentExpandState=e,o._.setDisplayed(this.eExpandChecked,this.currentExpandState===t.EXPANDED),o._.setDisplayed(this.eExpandUnchecked,this.currentExpandState===t.COLLAPSED),o._.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===t.INDETERMINATE)},s([o.Autowired("columnModel")],i.prototype,"columnModel",void 0),s([o.RefSelector("eExpand")],i.prototype,"eExpand",void 0),s([o.RefSelector("eFilterTextField")],i.prototype,"eFilterTextField",void 0),s([o.PreConstruct],i.prototype,"preConstruct",null),s([o.PostConstruct],i.prototype,"postConstruct",null),i}(o.Component),a=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),p=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},d=function(e){function t(o){void 0===o&&(o=!1);var i=e.call(this,t.TEMPLATE)||this;return i.expanded=!1,i.hideHeader=o,i}return a(t,e),t.prototype.postConstruct=function(){this.eExpandChecked=o._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=o._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},t.prototype.setColumn=function(e){var t=this;this.column=e,this.eFilterName.innerText=this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addManagedListener(this.eFilterToolPanelHeader,"keydown",(function(e){e.keyCode===o.KeyCode.ENTER&&t.toggleExpanded()})),this.addManagedListener(this.eventService,o.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),o._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),o._.addCssClass(this.eExpandChecked,"ag-hidden"),this.hideHeader?(o._.addOrRemoveCssClass(this.eFilterToolPanelHeader,"ag-hidden",!0),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListener(this.column,o.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},t.prototype.getColumn=function(){return this.column},t.prototype.getColumnFilterName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)},t.prototype.addCssClassToTitleBar=function(e){o._.addCssClass(this.eFilterToolPanelHeader,e)},t.prototype.addInIcon=function(e,t,i){if(null!=t){var r=o._.createIconNoSpan(e,this.gridOptionsWrapper,i);t.appendChild(r)}},t.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},t.prototype.onFilterChanged=function(){o._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),this.dispatchEvent({type:o.Column.EVENT_FILTER_CHANGED})},t.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},t.prototype.expand=function(){var e=this;if(!this.expanded){this.expanded=!0;var t=o._.loadTemplate('<div class="ag-filter-toolpanel-instance-filter"></div>'),i=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise;i&&i.then((function(o){e.underlyingFilter=o,o&&(t.appendChild(o.getGui()),e.agFilterToolPanelBody.appendChild(t),o.afterGuiAttached&&o.afterGuiAttached({container:"toolPanel"}))})),o._.setDisplayed(this.eExpandChecked,!0),o._.setDisplayed(this.eExpandUnchecked,!1)}},t.prototype.collapse=function(){this.expanded&&(this.expanded=!1,this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),o._.setDisplayed(this.eExpandChecked,!1),o._.setDisplayed(this.eExpandUnchecked,!0))},t.prototype.refreshFilter=function(){if(this.expanded){var e=this.underlyingFilter;e&&"function"==typeof e.refreshVirtualList&&e.refreshVirtualList()}},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},t.TEMPLATE='\n <div class="ag-filter-toolpanel-instance">\n <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" ref="eFilterToolPanelHeader">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <span ref="eFilterName" class="ag-header-cell-text"></span>\n <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>\n </div>\n <div class="ag-filter-toolpanel-instance-body ag-filter" ref="agFilterToolPanelBody"></div>\n </div>',p([o.RefSelector("eFilterToolPanelHeader")],t.prototype,"eFilterToolPanelHeader",void 0),p([o.RefSelector("eFilterName")],t.prototype,"eFilterName",void 0),p([o.RefSelector("agFilterToolPanelBody")],t.prototype,"agFilterToolPanelBody",void 0),p([o.RefSelector("eFilterIcon")],t.prototype,"eFilterIcon",void 0),p([o.RefSelector("eExpand")],t.prototype,"eExpand",void 0),p([o.Autowired("filterManager")],t.prototype,"filterManager",void 0),p([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),p([o.PostConstruct],t.prototype,"postConstruct",null),t}(o.Component),u=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),c=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},h=function(e){function t(t,o,i,r,n){var s=e.call(this)||this;return s.columnGroup=t,s.childFilterComps=o,s.depth=r,s.expandedCallback=i,s.showingColumn=n,s}return u(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE,{filterGroupComp:{cssIdentifier:"filter-toolpanel",direction:"vertical"}})},t.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),o._.addCssClass(this.filterGroupComp.getGui(),"ag-filter-toolpanel-group-level-"+this.depth),this.filterGroupComp.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+this.depth+"-header"),this.childFilterComps.forEach((function(t){e.filterGroupComp.addItem(t),t.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+(e.depth+1)+"-header")})),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip()},t.prototype.setupTooltip=function(){var e=this;if(this.showingColumn){var t=function(){var t=e.columnGroup.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,o.Events.EVENT_NEW_COLUMNS_LOADED,t)}},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="filterToolPanelColumnGroup",t},t.prototype.addCssClassToTitleBar=function(e){this.filterGroupComp.addCssClassToTitleBar(e)},t.prototype.refreshFilters=function(){this.childFilterComps.forEach((function(e){e instanceof t?e.refreshFilters():e.refreshFilter()}))},t.prototype.isColumnGroup=function(){return this.columnGroup instanceof o.OriginalColumnGroup},t.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},t.prototype.getChildren=function(){return this.childFilterComps},t.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},t.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},t.prototype.hideGroupItem=function(e,t){this.filterGroupComp.hideItem(e,t)},t.prototype.hideGroup=function(e){o._.addOrRemoveCssClass(this.getGui(),"ag-hidden",e)},t.prototype.forEachToolPanelFilterChild=function(e){o._.forEach(this.childFilterComps,(function(t){t instanceof d&&e(t)}))},t.prototype.addExpandCollapseListeners=function(){var e=this,t=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.expand()}))},i=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.collapse()}))};this.addManagedListener(this.filterGroupComp,o.AgGroupComponent.EVENT_EXPANDED,t),this.addManagedListener(this.filterGroupComp,o.AgGroupComponent.EVENT_COLLAPSED,i)},t.prototype.addFilterChangedListeners=function(){var e=this;if(this.columnGroup instanceof o.OriginalColumnGroup){var t=this.columnGroup;t.getLeafColumns().forEach((function(i){e.addManagedListener(i,o.Column.EVENT_FILTER_CHANGED,(function(){o._.addOrRemoveCssClass(e.filterGroupComp.getGui(),"ag-has-filter",t.getLeafColumns().some((function(e){return e.isFilterActive()})))}))}))}else{var i=this.columnGroup;this.addManagedListener(this.eventService,o.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addManagedListener(i,o.Column.EVENT_FILTER_CHANGED,(function(){o._.addOrRemoveCssClass(e.filterGroupComp.getGui(),"ag-has-filter",i.isFilterActive())}))}},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},t.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},t.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},t.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof o.OriginalColumnGroup?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")},t.prototype.getColumnGroupName=function(e){return this.columnModel.getDisplayNameForOriginalColumnGroup(null,e,"filterToolPanel")},t.prototype.getColumnName=function(e){return this.columnModel.getDisplayNameForColumn(e,"filterToolPanel",!1)},t.prototype.destroyFilters=function(){this.childFilterComps=this.destroyBeans(this.childFilterComps),o._.clearElement(this.getGui())},t.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-toolpanel-group-wrapper">\n <ag-group-component ref="filterGroupComp"></ag-group-component>\n </div>',c([o.RefSelector("filterGroupComp")],t.prototype,"filterGroupComp",void 0),c([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),c([o.PreConstruct],t.prototype,"preConstruct",null),c([o.PostConstruct],t.prototype,"init",null),t}(o.Component),f=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),y=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},C=function(e){function i(){var t=e.call(this,i.TEMPLATE)||this;return t.initialised=!1,t.filterGroupComps=[],t}return f(i,e),i.prototype.init=function(e){var t=this;this.initialised=!0;var i={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};o._.mergeDeep(i,e),this.params=i,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,o.Events.EVENT_COLUMN_MOVED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,o.Events.EVENT_NEW_COLUMNS_LOADED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,o.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,(function(e){"filters"===e.source&&t.refreshFilters()})),this.columnModel.isReady()&&this.onColumnsChanged()},i.prototype.onColumnsChanged=function(){var e=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs()},i.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},i.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this;this.destroyFilters();var t=this.columnModel.getPrimaryColumnTree();this.filterGroupComps=this.recursivelyAddComps(t,0);var i=this.filterGroupComps.length;i&&(this.filterGroupComps.forEach((function(t){return e.appendChild(t)})),this.setFirstAndLastVisible(0,i-1)),o._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},i.prototype.setFiltersLayout=function(e){var t=this;this.destroyFilters();var i=this.toolPanelColDefService.createColumnTree(e);this.filterGroupComps=this.recursivelyAddComps(i,0);var r=this.filterGroupComps.length;r&&(this.filterGroupComps.forEach((function(e){return t.appendChild(e)})),this.setFirstAndLastVisible(0,r-1)),o._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},i.prototype.recursivelyAddComps=function(e,t){var i=this;return o._.flatten(e.map((function(e){if(e instanceof o.OriginalColumnGroup)return o._.flatten(i.recursivelyAddFilterGroupComps(e,t));var r=e;if(!i.shouldDisplayFilter(r))return[];var n=new d(0===t);if(i.getContext().createBean(n),n.setColumn(r),t>0)return n;var s=i.createBean(new h(r,[n],i.onGroupExpanded.bind(i),t,!0));return s.addCssClassToTitleBar("ag-filter-toolpanel-header"),s.collapse(),s})))},i.prototype.recursivelyAddFilterGroupComps=function(e,t){if(this.filtersExistInChildren(e.getChildren())){var i=e.getColGroupDef();if(i&&i.suppressFiltersToolPanel)return[];var r=e.isPadding()?t:t+1,n=o._.flatten(this.recursivelyAddComps(e.getChildren(),r));if(e.isPadding())return n;var s=new h(e,n,this.onGroupExpanded.bind(this),t,!1);return this.getContext().createBean(s),s.addCssClassToTitleBar("ag-filter-toolpanel-header"),[s]}},i.prototype.filtersExistInChildren=function(e){var t=this;return e.some((function(e){return e instanceof o.OriginalColumnGroup?t.filtersExistInChildren(e.getChildren()):t.shouldDisplayFilter(e)}))},i.prototype.shouldDisplayFilter=function(e){var t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t},i.prototype.refresh=function(){},i.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},i.prototype.expandFilterGroups=function(e,t){var i=[],r=function(n){var s=n.getFilterGroupId();(!t||o._.includes(t,s))&&(e&&n.isColumnGroup()?n.expand():n.collapse(),i.push(s)),n.getChildren().forEach((function(e){e instanceof h&&r(e)}))};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){var n=t.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find groups for these supplied groupIds:",n)}},i.prototype.expandFilters=function(e,t){var i=[],r=function(n){if(n instanceof h){var s=!1;return n.getChildren().forEach((function(t){r(t)&&(e?(n.expand(),s=!0):n.isColumnGroup()||n.collapse())})),s}var l=n.getColumn().getColId(),a=!t||o._.includes(t,l);return a&&(e?n.expand():n.collapse(),i.push(l)),a};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){var n=t.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find columns for these supplied colIds:",n)}},i.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},i.prototype.fireExpandedEvent=function(){var e,o=0,i=0,r=function(e){e.isColumnGroup()&&(e.isExpanded()?o++:i++,e.getChildren().forEach((function(e){e instanceof h&&r(e)})))};this.filterGroupComps.forEach(r),e=o>0&&i>0?t.INDETERMINATE:i>0?t.COLLAPSED:t.EXPANDED,this.dispatchEvent({type:"groupExpanded",state:e})},i.prototype.performFilterSearch=function(e){this.searchFilterText=o._.exists(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)},i.prototype.searchFilters=function(e){var t,i,r=function(t){return!o._.exists(e)||-1!==t.toLowerCase().indexOf(e)},n=function(e,t){if(!(e instanceof h))return r(e.getColumnFilterName()||"");var o=e.getChildren(),i=r(e.getFilterGroupName()),s=t||i;if(s){e.hideGroup(!1);for(var l=0;l<o.length;l++)n(o[l],s),e.hideGroupItem(!1,l);return!0}var a=!1;return o.forEach((function(o,i){var r=n(o,t);e.hideGroupItem(!r,i),r&&(a=!0)})),e.hideGroup(!a),a};this.filterGroupComps.forEach((function(e,r){n(e,!1),void 0===t?o._.containsClass(e.getGui(),"ag-hidden")||(t=r,i=r):o._.containsClass(e.getGui(),"ag-hidden")||i===r||(i=r)})),this.setFirstAndLastVisible(t,i)},i.prototype.setFirstAndLastVisible=function(e,t){this.filterGroupComps.forEach((function(i,r){o._.removeCssClass(i.getGui(),"ag-first-group-visible"),o._.removeCssClass(i.getGui(),"ag-last-group-visible"),r===e&&o._.addCssClass(i.getGui(),"ag-first-group-visible"),r===t&&o._.addCssClass(i.getGui(),"ag-last-group-visible")}))},i.prototype.refreshFilters=function(){this.filterGroupComps.forEach((function(e){return e.refreshFilters()}))},i.prototype.destroyFilters=function(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),o._.clearElement(this.getGui())},i.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},i.TEMPLATE='<div class="ag-filter-list-panel"></div>',y([o.Autowired("gridApi")],i.prototype,"gridApi",void 0),y([o.Autowired("columnApi")],i.prototype,"columnApi",void 0),y([o.Autowired("toolPanelColDefService")],i.prototype,"toolPanelColDefService",void 0),y([o.Autowired("columnModel")],i.prototype,"columnModel",void 0),i}(o.Component),m=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),g=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},E=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.initialised=!1,o.listenerDestroyFuncs=[],o}return m(t,e),t.prototype.init=function(e){this.initialised&&(this.listenerDestroyFuncs.forEach((function(e){return e()})),this.listenerDestroyFuncs=[]),this.initialised=!0;var t={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};o._.mergeDeep(t,e),this.params=t,this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);var i=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;i&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addManagedListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this)))},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},t.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},t.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},t.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},t.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},t.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},t.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},t.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},t.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},t.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},t.prototype.refresh=function(){this.init(this.params)},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-toolpanel">\n <ag-filters-tool-panel-header ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>\n <ag-filters-tool-panel-list ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>\n </div>',g([o.RefSelector("filtersToolPanelHeaderPanel")],t.prototype,"filtersToolPanelHeaderPanel",void 0),g([o.RefSelector("filtersToolPanelListPanel")],t.prototype,"filtersToolPanelListPanel",void 0),g([o.Autowired("gridApi")],t.prototype,"gridApi",void 0),g([o.Autowired("columnApi")],t.prototype,"columnApi",void 0),t}(o.Component),v={moduleName:o.ModuleNames.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:l},{componentName:"AgFiltersToolPanelList",componentClass:C}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:E}],dependantModules:[r.SideBarModule,i.EnterpriseCoreModule]};exports.FiltersToolPanelModule=v; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,o=require("@ag-grid-community/core"),i=require("@ag-grid-enterprise/core"),r=require("@ag-grid-enterprise/side-bar"),n=(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)},function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}),s=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(t||(t={}));var l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.preConstruct=function(){this.setTemplate('<div class="ag-filter-toolpanel-search" role="presentation">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <ag-input-text-field ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>\n </div>')},i.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)),this.eFilterTextField.setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")),this.createExpandIcons(),this.setExpandState(t.EXPANDED),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eventService,o.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},i.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},i.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=o._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=o._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=o._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},i.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,t=!this.params.suppressExpandAll,i=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(i("searchOoo","Search..."));var r=this.columnModel.getAllGridColumns().some((function(e){return e.getOriginalParent()&&e.isFilterAllowed()}));o._.setDisplayed(this.eFilterTextField.getGui(),e),o._.setDisplayed(this.eExpand,t&&r)},i.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=o._.debounce((function(){e.dispatchEvent({type:"searchChanged",searchText:e.eFilterTextField.getValue()})}),300)),this.onSearchTextChangedDebounced()},i.prototype.onExpandClicked=function(){var e=this.currentExpandState===t.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchEvent(e)},i.prototype.setExpandState=function(e){this.currentExpandState=e,o._.setDisplayed(this.eExpandChecked,this.currentExpandState===t.EXPANDED),o._.setDisplayed(this.eExpandUnchecked,this.currentExpandState===t.COLLAPSED),o._.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===t.INDETERMINATE)},s([o.Autowired("columnModel")],i.prototype,"columnModel",void 0),s([o.RefSelector("eExpand")],i.prototype,"eExpand",void 0),s([o.RefSelector("eFilterTextField")],i.prototype,"eFilterTextField",void 0),s([o.PreConstruct],i.prototype,"preConstruct",null),s([o.PostConstruct],i.prototype,"postConstruct",null),i}(o.Component),a=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),p=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},d=function(e){function t(o){void 0===o&&(o=!1);var i=e.call(this,t.TEMPLATE)||this;return i.expanded=!1,i.hideHeader=o,i}return a(t,e),t.prototype.postConstruct=function(){this.eExpandChecked=o._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=o._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},t.prototype.setColumn=function(e){var t=this;this.column=e,this.eFilterName.innerText=this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addManagedListener(this.eFilterToolPanelHeader,"keydown",(function(e){e.keyCode===o.KeyCode.ENTER&&t.toggleExpanded()})),this.addManagedListener(this.eventService,o.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),o._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),o._.addCssClass(this.eExpandChecked,"ag-hidden"),this.hideHeader?(o._.addOrRemoveCssClass(this.eFilterToolPanelHeader,"ag-hidden",!0),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListener(this.column,o.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},t.prototype.getColumn=function(){return this.column},t.prototype.getColumnFilterName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)},t.prototype.addCssClassToTitleBar=function(e){o._.addCssClass(this.eFilterToolPanelHeader,e)},t.prototype.addInIcon=function(e,t,i){if(null!=t){var r=o._.createIconNoSpan(e,this.gridOptionsWrapper,i);t.appendChild(r)}},t.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},t.prototype.onFilterChanged=function(){o._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),this.dispatchEvent({type:o.Column.EVENT_FILTER_CHANGED})},t.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},t.prototype.expand=function(){var e=this;if(!this.expanded){this.expanded=!0,o._.setAriaExpanded(this.eFilterToolPanelHeader,!0);var t=o._.loadTemplate('<div class="ag-filter-toolpanel-instance-filter"></div>'),i=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise;i&&i.then((function(o){e.underlyingFilter=o,o&&(t.appendChild(o.getGui()),e.agFilterToolPanelBody.appendChild(t),o.afterGuiAttached&&o.afterGuiAttached({container:"toolPanel"}))})),o._.setDisplayed(this.eExpandChecked,!0),o._.setDisplayed(this.eExpandUnchecked,!1)}},t.prototype.collapse=function(){this.expanded&&(this.expanded=!1,o._.setAriaExpanded(this.eFilterToolPanelHeader,!1),this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),o._.setDisplayed(this.eExpandChecked,!1),o._.setDisplayed(this.eExpandUnchecked,!0))},t.prototype.refreshFilter=function(){if(this.expanded){var e=this.underlyingFilter;e&&"function"==typeof e.refreshVirtualList&&e.refreshVirtualList()}},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},t.TEMPLATE='\n <div class="ag-filter-toolpanel-instance">\n <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" ref="eFilterToolPanelHeader" role="button" aria-expanded="false">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <span ref="eFilterName" class="ag-header-cell-text"></span>\n <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>\n </div>\n <div class="ag-filter-toolpanel-instance-body ag-filter" ref="agFilterToolPanelBody"></div>\n </div>',p([o.RefSelector("eFilterToolPanelHeader")],t.prototype,"eFilterToolPanelHeader",void 0),p([o.RefSelector("eFilterName")],t.prototype,"eFilterName",void 0),p([o.RefSelector("agFilterToolPanelBody")],t.prototype,"agFilterToolPanelBody",void 0),p([o.RefSelector("eFilterIcon")],t.prototype,"eFilterIcon",void 0),p([o.RefSelector("eExpand")],t.prototype,"eExpand",void 0),p([o.Autowired("filterManager")],t.prototype,"filterManager",void 0),p([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),p([o.PostConstruct],t.prototype,"postConstruct",null),t}(o.Component),u=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),c=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},h=function(e){function t(t,o,i,r,n){var s=e.call(this)||this;return s.columnGroup=t,s.childFilterComps=o,s.depth=r,s.expandedCallback=i,s.showingColumn=n,s}return u(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE,{filterGroupComp:{cssIdentifier:"filter-toolpanel",direction:"vertical"}})},t.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),o._.addCssClass(this.filterGroupComp.getGui(),"ag-filter-toolpanel-group-level-"+this.depth),this.filterGroupComp.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+this.depth+"-header"),this.childFilterComps.forEach((function(t){e.filterGroupComp.addItem(t),t.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+(e.depth+1)+"-header")})),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip()},t.prototype.setupTooltip=function(){var e=this;if(this.showingColumn){var t=function(){var t=e.columnGroup.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,o.Events.EVENT_NEW_COLUMNS_LOADED,t)}},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="filterToolPanelColumnGroup",t},t.prototype.addCssClassToTitleBar=function(e){this.filterGroupComp.addCssClassToTitleBar(e)},t.prototype.refreshFilters=function(){this.childFilterComps.forEach((function(e){e instanceof t?e.refreshFilters():e.refreshFilter()}))},t.prototype.isColumnGroup=function(){return this.columnGroup instanceof o.ProvidedColumnGroup},t.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},t.prototype.getChildren=function(){return this.childFilterComps},t.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},t.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},t.prototype.hideGroupItem=function(e,t){this.filterGroupComp.hideItem(e,t)},t.prototype.hideGroup=function(e){o._.addOrRemoveCssClass(this.getGui(),"ag-hidden",e)},t.prototype.forEachToolPanelFilterChild=function(e){o._.forEach(this.childFilterComps,(function(t){t instanceof d&&e(t)}))},t.prototype.addExpandCollapseListeners=function(){var e=this,t=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.expand()}))},i=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.collapse()}))};this.addManagedListener(this.filterGroupComp,o.AgGroupComponent.EVENT_EXPANDED,t),this.addManagedListener(this.filterGroupComp,o.AgGroupComponent.EVENT_COLLAPSED,i)},t.prototype.addFilterChangedListeners=function(){var e=this;if(this.columnGroup instanceof o.ProvidedColumnGroup){var t=this.columnGroup;t.getLeafColumns().forEach((function(i){e.addManagedListener(i,o.Column.EVENT_FILTER_CHANGED,(function(){o._.addOrRemoveCssClass(e.filterGroupComp.getGui(),"ag-has-filter",t.getLeafColumns().some((function(e){return e.isFilterActive()})))}))}))}else{var i=this.columnGroup;this.addManagedListener(this.eventService,o.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addManagedListener(i,o.Column.EVENT_FILTER_CHANGED,(function(){o._.addOrRemoveCssClass(e.filterGroupComp.getGui(),"ag-has-filter",i.isFilterActive())}))}},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},t.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},t.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},t.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof o.ProvidedColumnGroup?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")},t.prototype.getColumnGroupName=function(e){return this.columnModel.getDisplayNameForOriginalColumnGroup(null,e,"filterToolPanel")},t.prototype.getColumnName=function(e){return this.columnModel.getDisplayNameForColumn(e,"filterToolPanel",!1)},t.prototype.destroyFilters=function(){this.childFilterComps=this.destroyBeans(this.childFilterComps),o._.clearElement(this.getGui())},t.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-toolpanel-group-wrapper">\n <ag-group-component ref="filterGroupComp"></ag-group-component>\n </div>',c([o.RefSelector("filterGroupComp")],t.prototype,"filterGroupComp",void 0),c([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),c([o.PreConstruct],t.prototype,"preConstruct",null),c([o.PostConstruct],t.prototype,"init",null),t}(o.Component),f=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),C=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},y=function(e){function i(){var t=e.call(this,i.TEMPLATE)||this;return t.initialised=!1,t.filterGroupComps=[],t}return f(i,e),i.prototype.init=function(e){var t=this;this.initialised=!0;var i={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};o._.mergeDeep(i,e),this.params=i,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,o.Events.EVENT_COLUMN_MOVED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,o.Events.EVENT_NEW_COLUMNS_LOADED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,o.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,(function(e){"filters"===e.source&&t.refreshFilters()})),this.columnModel.isReady()&&this.onColumnsChanged()},i.prototype.onColumnsChanged=function(){var e=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs()},i.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},i.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this;this.destroyFilters();var t=this.columnModel.getPrimaryColumnTree();this.filterGroupComps=this.recursivelyAddComps(t,0);var i=this.filterGroupComps.length;i&&(this.filterGroupComps.forEach((function(t){return e.appendChild(t)})),this.setFirstAndLastVisible(0,i-1)),o._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},i.prototype.setFiltersLayout=function(e){var t=this;this.destroyFilters();var i=this.toolPanelColDefService.createColumnTree(e);this.filterGroupComps=this.recursivelyAddComps(i,0);var r=this.filterGroupComps.length;r&&(this.filterGroupComps.forEach((function(e){return t.appendChild(e)})),this.setFirstAndLastVisible(0,r-1)),o._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},i.prototype.recursivelyAddComps=function(e,t){var i=this;return o._.flatten(e.map((function(e){if(e instanceof o.ProvidedColumnGroup)return o._.flatten(i.recursivelyAddFilterGroupComps(e,t));var r=e;if(!i.shouldDisplayFilter(r))return[];var n=new d(0===t);if(i.getContext().createBean(n),n.setColumn(r),t>0)return n;var s=i.createBean(new h(r,[n],i.onGroupExpanded.bind(i),t,!0));return s.addCssClassToTitleBar("ag-filter-toolpanel-header"),s.collapse(),s})))},i.prototype.recursivelyAddFilterGroupComps=function(e,t){if(this.filtersExistInChildren(e.getChildren())){var i=e.getColGroupDef();if(i&&i.suppressFiltersToolPanel)return[];var r=e.isPadding()?t:t+1,n=o._.flatten(this.recursivelyAddComps(e.getChildren(),r));if(e.isPadding())return n;var s=new h(e,n,this.onGroupExpanded.bind(this),t,!1);return this.getContext().createBean(s),s.addCssClassToTitleBar("ag-filter-toolpanel-header"),[s]}},i.prototype.filtersExistInChildren=function(e){var t=this;return e.some((function(e){return e instanceof o.ProvidedColumnGroup?t.filtersExistInChildren(e.getChildren()):t.shouldDisplayFilter(e)}))},i.prototype.shouldDisplayFilter=function(e){var t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t},i.prototype.refresh=function(){},i.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},i.prototype.expandFilterGroups=function(e,t){var i=[],r=function(n){var s=n.getFilterGroupId();(!t||o._.includes(t,s))&&(e&&n.isColumnGroup()?n.expand():n.collapse(),i.push(s)),n.getChildren().forEach((function(e){e instanceof h&&r(e)}))};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){var n=t.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find groups for these supplied groupIds:",n)}},i.prototype.expandFilters=function(e,t){var i=[],r=function(n){if(n instanceof h){var s=!1;return n.getChildren().forEach((function(t){r(t)&&(e?(n.expand(),s=!0):n.isColumnGroup()||n.collapse())})),s}var l=n.getColumn().getColId(),a=!t||o._.includes(t,l);return a&&(e?n.expand():n.collapse(),i.push(l)),a};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){var n=t.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find columns for these supplied colIds:",n)}},i.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},i.prototype.fireExpandedEvent=function(){var e,o=0,i=0,r=function(e){e.isColumnGroup()&&(e.isExpanded()?o++:i++,e.getChildren().forEach((function(e){e instanceof h&&r(e)})))};this.filterGroupComps.forEach(r),e=o>0&&i>0?t.INDETERMINATE:i>0?t.COLLAPSED:t.EXPANDED,this.dispatchEvent({type:"groupExpanded",state:e})},i.prototype.performFilterSearch=function(e){this.searchFilterText=o._.exists(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)},i.prototype.searchFilters=function(e){var t,i,r=function(t){return!o._.exists(e)||-1!==t.toLowerCase().indexOf(e)},n=function(e,t){if(!(e instanceof h))return r(e.getColumnFilterName()||"");var o=e.getChildren(),i=r(e.getFilterGroupName()),s=t||i;if(s){e.hideGroup(!1);for(var l=0;l<o.length;l++)n(o[l],s),e.hideGroupItem(!1,l);return!0}var a=!1;return o.forEach((function(o,i){var r=n(o,t);e.hideGroupItem(!r,i),r&&(a=!0)})),e.hideGroup(!a),a};this.filterGroupComps.forEach((function(e,r){n(e,!1),void 0===t?o._.containsClass(e.getGui(),"ag-hidden")||(t=r,i=r):o._.containsClass(e.getGui(),"ag-hidden")||i===r||(i=r)})),this.setFirstAndLastVisible(t,i)},i.prototype.setFirstAndLastVisible=function(e,t){this.filterGroupComps.forEach((function(i,r){o._.removeCssClass(i.getGui(),"ag-first-group-visible"),o._.removeCssClass(i.getGui(),"ag-last-group-visible"),r===e&&o._.addCssClass(i.getGui(),"ag-first-group-visible"),r===t&&o._.addCssClass(i.getGui(),"ag-last-group-visible")}))},i.prototype.refreshFilters=function(){this.filterGroupComps.forEach((function(e){return e.refreshFilters()}))},i.prototype.destroyFilters=function(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),o._.clearElement(this.getGui())},i.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},i.TEMPLATE='<div class="ag-filter-list-panel"></div>',C([o.Autowired("gridApi")],i.prototype,"gridApi",void 0),C([o.Autowired("columnApi")],i.prototype,"columnApi",void 0),C([o.Autowired("toolPanelColDefService")],i.prototype,"toolPanelColDefService",void 0),C([o.Autowired("columnModel")],i.prototype,"columnModel",void 0),i}(o.Component),m=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),g=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},E=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.initialised=!1,o.listenerDestroyFuncs=[],o}return m(t,e),t.prototype.init=function(e){this.initialised&&(this.listenerDestroyFuncs.forEach((function(e){return e()})),this.listenerDestroyFuncs=[]),this.initialised=!0;var t={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};o._.mergeDeep(t,e),this.params=t,this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);var i=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;i&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addManagedListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this)))},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},t.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},t.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},t.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},t.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},t.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},t.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},t.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},t.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},t.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},t.prototype.refresh=function(){this.init(this.params)},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-toolpanel">\n <ag-filters-tool-panel-header ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>\n <ag-filters-tool-panel-list ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>\n </div>',g([o.RefSelector("filtersToolPanelHeaderPanel")],t.prototype,"filtersToolPanelHeaderPanel",void 0),g([o.RefSelector("filtersToolPanelListPanel")],t.prototype,"filtersToolPanelListPanel",void 0),g([o.Autowired("gridApi")],t.prototype,"gridApi",void 0),g([o.Autowired("columnApi")],t.prototype,"columnApi",void 0),t}(o.Component),v={moduleName:o.ModuleNames.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:l},{componentName:"AgFiltersToolPanelList",componentClass:y}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:E}],dependantModules:[r.SideBarModule,i.EnterpriseCoreModule]};exports.FiltersToolPanelModule=v; |
/** | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.0.0 | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0 | ||
* @link http://www.ag-grid.com/ | ||
@@ -7,3 +7,3 @@ ' * @license Commercial | ||
import { Events, _, Autowired, RefSelector, PreConstruct, PostConstruct, Component, KeyCode, Column, OriginalColumnGroup, AgGroupComponent, ModuleNames } from '@ag-grid-community/core'; | ||
import { Events, _, Autowired, RefSelector, PreConstruct, PostConstruct, Component, KeyCode, Column, ProvidedColumnGroup, AgGroupComponent, ModuleNames } from '@ag-grid-community/core'; | ||
import { EnterpriseCoreModule } from '@ag-grid-enterprise/core'; | ||
@@ -48,3 +48,3 @@ import { SideBarModule } from '@ag-grid-enterprise/side-bar'; | ||
this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaSearch', 'Search')); | ||
this.eFilterTextField.setInputAriaLabel(translate('ariaFilterColumnsInput', 'Filter Columns Input')); | ||
this.createExpandIcons(); | ||
@@ -203,2 +203,3 @@ this.setExpandState(EXPAND_STATE.EXPANDED); | ||
this.expanded = true; | ||
_.setAriaExpanded(this.eFilterToolPanelHeader, true); | ||
var container = _.loadTemplate(/* html */ "<div class=\"ag-filter-toolpanel-instance-filter\"></div>"); | ||
@@ -227,2 +228,3 @@ var filterPromise = this.filterManager.getOrCreateFilterWrapper(this.column, 'TOOLBAR').filterPromise; | ||
this.expanded = false; | ||
_.setAriaExpanded(this.eFilterToolPanelHeader, false); | ||
this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]); | ||
@@ -259,3 +261,3 @@ _.setDisplayed(this.eExpandChecked, false); | ||
}; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
ToolPanelFilterComp.TEMPLATE = "\n <div class=\"ag-filter-toolpanel-instance\">\n <div class=\"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header\" ref=\"eFilterToolPanelHeader\" role=\"button\" aria-expanded=\"false\">\n <div ref=\"eExpand\" class=\"ag-filter-toolpanel-expand\"></div>\n <span ref=\"eFilterName\" class=\"ag-header-cell-text\"></span>\n <span ref=\"eFilterIcon\" class=\"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"ag-filter-toolpanel-instance-body ag-filter\" ref=\"agFilterToolPanelBody\"></div>\n </div>"; | ||
__decorate$1([ | ||
@@ -374,3 +376,3 @@ RefSelector('eFilterToolPanelHeader') | ||
ToolPanelFilterGroupComp.prototype.isColumnGroup = function () { | ||
return this.columnGroup instanceof OriginalColumnGroup; | ||
return this.columnGroup instanceof ProvidedColumnGroup; | ||
}; | ||
@@ -415,3 +417,3 @@ ToolPanelFilterGroupComp.prototype.isExpanded = function () { | ||
var _this = this; | ||
if (this.columnGroup instanceof OriginalColumnGroup) { | ||
if (this.columnGroup instanceof ProvidedColumnGroup) { | ||
var group_1 = this.columnGroup; | ||
@@ -454,3 +456,3 @@ var anyChildFiltersActive_1 = function () { return group_1.getLeafColumns().some(function (col) { return col.isFilterActive(); }); }; | ||
ToolPanelFilterGroupComp.prototype.setGroupTitle = function () { | ||
this.filterGroupName = (this.columnGroup instanceof OriginalColumnGroup) ? | ||
this.filterGroupName = (this.columnGroup instanceof ProvidedColumnGroup) ? | ||
this.getColumnGroupName(this.columnGroup) : this.getColumnName(this.columnGroup); | ||
@@ -588,3 +590,3 @@ this.filterGroupComp.setTitle(this.filterGroupName || ''); | ||
return _.flatten(tree.map(function (child) { | ||
if (child instanceof OriginalColumnGroup) { | ||
if (child instanceof ProvidedColumnGroup) { | ||
return _.flatten(_this.recursivelyAddFilterGroupComps(child, depth)); | ||
@@ -630,3 +632,3 @@ } | ||
return tree.some(function (child) { | ||
if (child instanceof OriginalColumnGroup) { | ||
if (child instanceof ProvidedColumnGroup) { | ||
return _this.filtersExistInChildren(child.getChildren()); | ||
@@ -633,0 +635,0 @@ } |
/** | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.0.0 | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0 | ||
* @link http://www.ag-grid.com/ | ||
@@ -8,6 +8,6 @@ ' * @license Commercial | ||
/** | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.0.0 | ||
* @ag-grid-enterprise/filter-tool-panel - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0 | ||
* @link http://www.ag-grid.com/ | ||
' * @license Commercial | ||
*/ | ||
import{Events as e,_ as t,Autowired as o,RefSelector as i,PreConstruct as r,PostConstruct as n,Component as s,KeyCode as l,Column as a,OriginalColumnGroup as p,AgGroupComponent as d,ModuleNames as c}from"@ag-grid-community/core";import{EnterpriseCoreModule as u}from"@ag-grid-enterprise/core";import{SideBarModule as h}from"@ag-grid-enterprise/side-bar";var f,y,m=(f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),C=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(y||(y={}));var g=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return m(l,s),l.prototype.preConstruct=function(){this.setTemplate('<div class="ag-filter-toolpanel-search" role="presentation">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <ag-input-text-field ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>\n </div>')},l.prototype.postConstruct=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)),this.eFilterTextField.setInputAriaLabel(t("ariaSearch","Search")),this.createExpandIcons(),this.setExpandState(y.EXPANDED),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eventService,e.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},l.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},l.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=t.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=t.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=t.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},l.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,o=!this.params.suppressExpandAll,i=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(i("searchOoo","Search..."));var r=this.columnModel.getAllGridColumns().some((function(e){return e.getOriginalParent()&&e.isFilterAllowed()}));t.setDisplayed(this.eFilterTextField.getGui(),e),t.setDisplayed(this.eExpand,o&&r)},l.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=t.debounce((function(){e.dispatchEvent({type:"searchChanged",searchText:e.eFilterTextField.getValue()})}),300)),this.onSearchTextChangedDebounced()},l.prototype.onExpandClicked=function(){var e=this.currentExpandState===y.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchEvent(e)},l.prototype.setExpandState=function(e){this.currentExpandState=e,t.setDisplayed(this.eExpandChecked,this.currentExpandState===y.EXPANDED),t.setDisplayed(this.eExpandUnchecked,this.currentExpandState===y.COLLAPSED),t.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===y.INDETERMINATE)},C([o("columnModel")],l.prototype,"columnModel",void 0),C([i("eExpand")],l.prototype,"eExpand",void 0),C([i("eFilterTextField")],l.prototype,"eFilterTextField",void 0),C([r],l.prototype,"preConstruct",null),C([n],l.prototype,"postConstruct",null),l}(s),E=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),v=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},F=function(r){function s(e){void 0===e&&(e=!1);var t=r.call(this,s.TEMPLATE)||this;return t.expanded=!1,t.hideHeader=e,t}return E(s,r),s.prototype.postConstruct=function(){this.eExpandChecked=t.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=t.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},s.prototype.setColumn=function(o){var i=this;this.column=o,this.eFilterName.innerText=this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addManagedListener(this.eFilterToolPanelHeader,"keydown",(function(e){e.keyCode===l.ENTER&&i.toggleExpanded()})),this.addManagedListener(this.eventService,e.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),t.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),t.addCssClass(this.eExpandChecked,"ag-hidden"),this.hideHeader?(t.addOrRemoveCssClass(this.eFilterToolPanelHeader,"ag-hidden",!0),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListener(this.column,a.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},s.prototype.getColumn=function(){return this.column},s.prototype.getColumnFilterName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)},s.prototype.addCssClassToTitleBar=function(e){t.addCssClass(this.eFilterToolPanelHeader,e)},s.prototype.addInIcon=function(e,o,i){if(null!=o){var r=t.createIconNoSpan(e,this.gridOptionsWrapper,i);o.appendChild(r)}},s.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},s.prototype.onFilterChanged=function(){t.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),this.dispatchEvent({type:a.EVENT_FILTER_CHANGED})},s.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},s.prototype.expand=function(){var e=this;if(!this.expanded){this.expanded=!0;var o=t.loadTemplate('<div class="ag-filter-toolpanel-instance-filter"></div>'),i=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise;i&&i.then((function(t){e.underlyingFilter=t,t&&(o.appendChild(t.getGui()),e.agFilterToolPanelBody.appendChild(o),t.afterGuiAttached&&t.afterGuiAttached({container:"toolPanel"}))})),t.setDisplayed(this.eExpandChecked,!0),t.setDisplayed(this.eExpandUnchecked,!1)}},s.prototype.collapse=function(){this.expanded&&(this.expanded=!1,this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),t.setDisplayed(this.eExpandChecked,!1),t.setDisplayed(this.eExpandUnchecked,!0))},s.prototype.refreshFilter=function(){if(this.expanded){var e=this.underlyingFilter;e&&"function"==typeof e.refreshVirtualList&&e.refreshVirtualList()}},s.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},s.TEMPLATE='\n <div class="ag-filter-toolpanel-instance">\n <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" ref="eFilterToolPanelHeader">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <span ref="eFilterName" class="ag-header-cell-text"></span>\n <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>\n </div>\n <div class="ag-filter-toolpanel-instance-body ag-filter" ref="agFilterToolPanelBody"></div>\n </div>',v([i("eFilterToolPanelHeader")],s.prototype,"eFilterToolPanelHeader",void 0),v([i("eFilterName")],s.prototype,"eFilterName",void 0),v([i("agFilterToolPanelBody")],s.prototype,"agFilterToolPanelBody",void 0),v([i("eFilterIcon")],s.prototype,"eFilterIcon",void 0),v([i("eExpand")],s.prototype,"eExpand",void 0),v([o("filterManager")],s.prototype,"filterManager",void 0),v([o("columnModel")],s.prototype,"columnModel",void 0),v([n],s.prototype,"postConstruct",null),s}(s),T=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),x=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},P=function(s){function l(e,t,o,i,r){var n=s.call(this)||this;return n.columnGroup=e,n.childFilterComps=t,n.depth=i,n.expandedCallback=o,n.showingColumn=r,n}return T(l,s),l.prototype.preConstruct=function(){this.setTemplate(l.TEMPLATE,{filterGroupComp:{cssIdentifier:"filter-toolpanel",direction:"vertical"}})},l.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),t.addCssClass(this.filterGroupComp.getGui(),"ag-filter-toolpanel-group-level-"+this.depth),this.filterGroupComp.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+this.depth+"-header"),this.childFilterComps.forEach((function(t){e.filterGroupComp.addItem(t),t.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+(e.depth+1)+"-header")})),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip()},l.prototype.setupTooltip=function(){var t=this;if(this.showingColumn){var o=function(){var e=t.columnGroup.getColDef().headerTooltip;t.setTooltip(e)};o(),this.addManagedListener(this.eventService,e.EVENT_NEW_COLUMNS_LOADED,o)}},l.prototype.getTooltipParams=function(){var e=s.prototype.getTooltipParams.call(this);return e.location="filterToolPanelColumnGroup",e},l.prototype.addCssClassToTitleBar=function(e){this.filterGroupComp.addCssClassToTitleBar(e)},l.prototype.refreshFilters=function(){this.childFilterComps.forEach((function(e){e instanceof l?e.refreshFilters():e.refreshFilter()}))},l.prototype.isColumnGroup=function(){return this.columnGroup instanceof p},l.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},l.prototype.getChildren=function(){return this.childFilterComps},l.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},l.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},l.prototype.hideGroupItem=function(e,t){this.filterGroupComp.hideItem(e,t)},l.prototype.hideGroup=function(e){t.addOrRemoveCssClass(this.getGui(),"ag-hidden",e)},l.prototype.forEachToolPanelFilterChild=function(e){t.forEach(this.childFilterComps,(function(t){t instanceof F&&e(t)}))},l.prototype.addExpandCollapseListeners=function(){var e=this,t=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.expand()}))},o=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.collapse()}))};this.addManagedListener(this.filterGroupComp,d.EVENT_EXPANDED,t),this.addManagedListener(this.filterGroupComp,d.EVENT_COLLAPSED,o)},l.prototype.addFilterChangedListeners=function(){var o=this;if(this.columnGroup instanceof p){var i=this.columnGroup;i.getLeafColumns().forEach((function(e){o.addManagedListener(e,a.EVENT_FILTER_CHANGED,(function(){t.addOrRemoveCssClass(o.filterGroupComp.getGui(),"ag-has-filter",i.getLeafColumns().some((function(e){return e.isFilterActive()})))}))}))}else{var r=this.columnGroup;this.addManagedListener(this.eventService,e.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addManagedListener(r,a.EVENT_FILTER_CHANGED,(function(){t.addOrRemoveCssClass(o.filterGroupComp.getGui(),"ag-has-filter",r.isFilterActive())}))}},l.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},l.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},l.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},l.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof p?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")},l.prototype.getColumnGroupName=function(e){return this.columnModel.getDisplayNameForOriginalColumnGroup(null,e,"filterToolPanel")},l.prototype.getColumnName=function(e){return this.columnModel.getDisplayNameForColumn(e,"filterToolPanel",!1)},l.prototype.destroyFilters=function(){this.childFilterComps=this.destroyBeans(this.childFilterComps),t.clearElement(this.getGui())},l.prototype.destroy=function(){this.destroyFilters(),s.prototype.destroy.call(this)},l.TEMPLATE='<div class="ag-filter-toolpanel-group-wrapper">\n <ag-group-component ref="filterGroupComp"></ag-group-component>\n </div>',x([i("filterGroupComp")],l.prototype,"filterGroupComp",void 0),x([o("columnModel")],l.prototype,"columnModel",void 0),x([r],l.prototype,"preConstruct",null),x([n],l.prototype,"init",null),l}(s),G=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),L=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},A=function(i){function r(){var e=i.call(this,r.TEMPLATE)||this;return e.initialised=!1,e.filterGroupComps=[],e}return G(r,i),r.prototype.init=function(o){var i=this;this.initialised=!0;var r={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};t.mergeDeep(r,o),this.params=r,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,e.EVENT_COLUMN_MOVED,(function(){return i.onColumnsChanged()})),this.addManagedListener(this.eventService,e.EVENT_NEW_COLUMNS_LOADED,(function(){return i.onColumnsChanged()})),this.addManagedListener(this.eventService,e.EVENT_TOOL_PANEL_VISIBLE_CHANGED,(function(e){"filters"===e.source&&i.refreshFilters()})),this.columnModel.isReady()&&this.onColumnsChanged()},r.prototype.onColumnsChanged=function(){var e=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs()},r.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},r.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this;this.destroyFilters();var o=this.columnModel.getPrimaryColumnTree();this.filterGroupComps=this.recursivelyAddComps(o,0);var i=this.filterGroupComps.length;i&&(this.filterGroupComps.forEach((function(t){return e.appendChild(t)})),this.setFirstAndLastVisible(0,i-1)),t.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},r.prototype.setFiltersLayout=function(e){var o=this;this.destroyFilters();var i=this.toolPanelColDefService.createColumnTree(e);this.filterGroupComps=this.recursivelyAddComps(i,0);var r=this.filterGroupComps.length;r&&(this.filterGroupComps.forEach((function(e){return o.appendChild(e)})),this.setFirstAndLastVisible(0,r-1)),t.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},r.prototype.recursivelyAddComps=function(e,o){var i=this;return t.flatten(e.map((function(e){if(e instanceof p)return t.flatten(i.recursivelyAddFilterGroupComps(e,o));var r=e;if(!i.shouldDisplayFilter(r))return[];var n=new F(0===o);if(i.getContext().createBean(n),n.setColumn(r),o>0)return n;var s=i.createBean(new P(r,[n],i.onGroupExpanded.bind(i),o,!0));return s.addCssClassToTitleBar("ag-filter-toolpanel-header"),s.collapse(),s})))},r.prototype.recursivelyAddFilterGroupComps=function(e,o){if(this.filtersExistInChildren(e.getChildren())){var i=e.getColGroupDef();if(i&&i.suppressFiltersToolPanel)return[];var r=e.isPadding()?o:o+1,n=t.flatten(this.recursivelyAddComps(e.getChildren(),r));if(e.isPadding())return n;var s=new P(e,n,this.onGroupExpanded.bind(this),o,!1);return this.getContext().createBean(s),s.addCssClassToTitleBar("ag-filter-toolpanel-header"),[s]}},r.prototype.filtersExistInChildren=function(e){var t=this;return e.some((function(e){return e instanceof p?t.filtersExistInChildren(e.getChildren()):t.shouldDisplayFilter(e)}))},r.prototype.shouldDisplayFilter=function(e){var t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t},r.prototype.refresh=function(){},r.prototype.setVisible=function(e){i.prototype.setDisplayed.call(this,e),e&&!this.initialised&&this.init(this.params)},r.prototype.expandFilterGroups=function(e,o){var i=[],r=function(n){var s=n.getFilterGroupId();(!o||t.includes(o,s))&&(e&&n.isColumnGroup()?n.expand():n.collapse(),i.push(s)),n.getChildren().forEach((function(e){e instanceof P&&r(e)}))};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),o){var n=o.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find groups for these supplied groupIds:",n)}},r.prototype.expandFilters=function(e,o){var i=[],r=function(n){if(n instanceof P){var s=!1;return n.getChildren().forEach((function(t){r(t)&&(e?(n.expand(),s=!0):n.isColumnGroup()||n.collapse())})),s}var l=n.getColumn().getColId(),a=!o||t.includes(o,l);return a&&(e?n.expand():n.collapse(),i.push(l)),a};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),o){var n=o.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find columns for these supplied colIds:",n)}},r.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},r.prototype.fireExpandedEvent=function(){var e,t=0,o=0,i=function(e){e.isColumnGroup()&&(e.isExpanded()?t++:o++,e.getChildren().forEach((function(e){e instanceof P&&i(e)})))};this.filterGroupComps.forEach(i),e=t>0&&o>0?y.INDETERMINATE:o>0?y.COLLAPSED:y.EXPANDED,this.dispatchEvent({type:"groupExpanded",state:e})},r.prototype.performFilterSearch=function(e){this.searchFilterText=t.exists(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)},r.prototype.searchFilters=function(e){var o,i,r=function(o){return!t.exists(e)||-1!==o.toLowerCase().indexOf(e)},n=function(e,t){if(!(e instanceof P))return r(e.getColumnFilterName()||"");var o=e.getChildren(),i=r(e.getFilterGroupName()),s=t||i;if(s){e.hideGroup(!1);for(var l=0;l<o.length;l++)n(o[l],s),e.hideGroupItem(!1,l);return!0}var a=!1;return o.forEach((function(o,i){var r=n(o,t);e.hideGroupItem(!r,i),r&&(a=!0)})),e.hideGroup(!a),a};this.filterGroupComps.forEach((function(e,r){n(e,!1),void 0===o?t.containsClass(e.getGui(),"ag-hidden")||(o=r,i=r):t.containsClass(e.getGui(),"ag-hidden")||i===r||(i=r)})),this.setFirstAndLastVisible(o,i)},r.prototype.setFirstAndLastVisible=function(e,o){this.filterGroupComps.forEach((function(i,r){t.removeCssClass(i.getGui(),"ag-first-group-visible"),t.removeCssClass(i.getGui(),"ag-last-group-visible"),r===e&&t.addCssClass(i.getGui(),"ag-first-group-visible"),r===o&&t.addCssClass(i.getGui(),"ag-last-group-visible")}))},r.prototype.refreshFilters=function(){this.filterGroupComps.forEach((function(e){return e.refreshFilters()}))},r.prototype.destroyFilters=function(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),t.clearElement(this.getGui())},r.prototype.destroy=function(){this.destroyFilters(),i.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-list-panel"></div>',L([o("gridApi")],r.prototype,"gridApi",void 0),L([o("columnApi")],r.prototype,"columnApi",void 0),L([o("toolPanelColDefService")],r.prototype,"toolPanelColDefService",void 0),L([o("columnModel")],r.prototype,"columnModel",void 0),r}(s),O=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),D=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},N=function(e){function r(){var t=e.call(this,r.TEMPLATE)||this;return t.initialised=!1,t.listenerDestroyFuncs=[],t}return O(r,e),r.prototype.init=function(e){this.initialised&&(this.listenerDestroyFuncs.forEach((function(e){return e()})),this.listenerDestroyFuncs=[]),this.initialised=!0;var o={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};t.mergeDeep(o,e),this.params=o,this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);var i=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;i&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addManagedListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this)))},r.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},r.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},r.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},r.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},r.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},r.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},r.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},r.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},r.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},r.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},r.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},r.prototype.refresh=function(){this.init(this.params)},r.prototype.destroy=function(){e.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-toolpanel">\n <ag-filters-tool-panel-header ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>\n <ag-filters-tool-panel-list ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>\n </div>',D([i("filtersToolPanelHeaderPanel")],r.prototype,"filtersToolPanelHeaderPanel",void 0),D([i("filtersToolPanelListPanel")],r.prototype,"filtersToolPanelListPanel",void 0),D([o("gridApi")],r.prototype,"gridApi",void 0),D([o("columnApi")],r.prototype,"columnApi",void 0),r}(s),_={moduleName:c.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:g},{componentName:"AgFiltersToolPanelList",componentClass:A}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:N}],dependantModules:[h,u]};export{_ as FiltersToolPanelModule}; | ||
import{Events as e,_ as t,Autowired as o,RefSelector as i,PreConstruct as r,PostConstruct as n,Component as s,KeyCode as l,Column as a,ProvidedColumnGroup as p,AgGroupComponent as d,ModuleNames as c}from"@ag-grid-community/core";import{EnterpriseCoreModule as u}from"@ag-grid-enterprise/core";import{SideBarModule as h}from"@ag-grid-enterprise/side-bar";var f,y,m=(f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),C=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(y||(y={}));var g=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return m(l,s),l.prototype.preConstruct=function(){this.setTemplate('<div class="ag-filter-toolpanel-search" role="presentation">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <ag-input-text-field ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>\n </div>')},l.prototype.postConstruct=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)),this.eFilterTextField.setInputAriaLabel(t("ariaFilterColumnsInput","Filter Columns Input")),this.createExpandIcons(),this.setExpandState(y.EXPANDED),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eventService,e.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},l.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},l.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=t.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=t.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=t.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},l.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,o=!this.params.suppressExpandAll,i=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(i("searchOoo","Search..."));var r=this.columnModel.getAllGridColumns().some((function(e){return e.getOriginalParent()&&e.isFilterAllowed()}));t.setDisplayed(this.eFilterTextField.getGui(),e),t.setDisplayed(this.eExpand,o&&r)},l.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=t.debounce((function(){e.dispatchEvent({type:"searchChanged",searchText:e.eFilterTextField.getValue()})}),300)),this.onSearchTextChangedDebounced()},l.prototype.onExpandClicked=function(){var e=this.currentExpandState===y.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchEvent(e)},l.prototype.setExpandState=function(e){this.currentExpandState=e,t.setDisplayed(this.eExpandChecked,this.currentExpandState===y.EXPANDED),t.setDisplayed(this.eExpandUnchecked,this.currentExpandState===y.COLLAPSED),t.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===y.INDETERMINATE)},C([o("columnModel")],l.prototype,"columnModel",void 0),C([i("eExpand")],l.prototype,"eExpand",void 0),C([i("eFilterTextField")],l.prototype,"eFilterTextField",void 0),C([r],l.prototype,"preConstruct",null),C([n],l.prototype,"postConstruct",null),l}(s),E=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),v=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},F=function(r){function s(e){void 0===e&&(e=!1);var t=r.call(this,s.TEMPLATE)||this;return t.expanded=!1,t.hideHeader=e,t}return E(s,r),s.prototype.postConstruct=function(){this.eExpandChecked=t.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=t.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},s.prototype.setColumn=function(o){var i=this;this.column=o,this.eFilterName.innerText=this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addManagedListener(this.eFilterToolPanelHeader,"keydown",(function(e){e.keyCode===l.ENTER&&i.toggleExpanded()})),this.addManagedListener(this.eventService,e.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),t.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),t.addCssClass(this.eExpandChecked,"ag-hidden"),this.hideHeader?(t.addOrRemoveCssClass(this.eFilterToolPanelHeader,"ag-hidden",!0),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListener(this.column,a.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},s.prototype.getColumn=function(){return this.column},s.prototype.getColumnFilterName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)},s.prototype.addCssClassToTitleBar=function(e){t.addCssClass(this.eFilterToolPanelHeader,e)},s.prototype.addInIcon=function(e,o,i){if(null!=o){var r=t.createIconNoSpan(e,this.gridOptionsWrapper,i);o.appendChild(r)}},s.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},s.prototype.onFilterChanged=function(){t.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),this.dispatchEvent({type:a.EVENT_FILTER_CHANGED})},s.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},s.prototype.expand=function(){var e=this;if(!this.expanded){this.expanded=!0,t.setAriaExpanded(this.eFilterToolPanelHeader,!0);var o=t.loadTemplate('<div class="ag-filter-toolpanel-instance-filter"></div>'),i=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise;i&&i.then((function(t){e.underlyingFilter=t,t&&(o.appendChild(t.getGui()),e.agFilterToolPanelBody.appendChild(o),t.afterGuiAttached&&t.afterGuiAttached({container:"toolPanel"}))})),t.setDisplayed(this.eExpandChecked,!0),t.setDisplayed(this.eExpandUnchecked,!1)}},s.prototype.collapse=function(){this.expanded&&(this.expanded=!1,t.setAriaExpanded(this.eFilterToolPanelHeader,!1),this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),t.setDisplayed(this.eExpandChecked,!1),t.setDisplayed(this.eExpandUnchecked,!0))},s.prototype.refreshFilter=function(){if(this.expanded){var e=this.underlyingFilter;e&&"function"==typeof e.refreshVirtualList&&e.refreshVirtualList()}},s.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},s.TEMPLATE='\n <div class="ag-filter-toolpanel-instance">\n <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" ref="eFilterToolPanelHeader" role="button" aria-expanded="false">\n <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n <span ref="eFilterName" class="ag-header-cell-text"></span>\n <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>\n </div>\n <div class="ag-filter-toolpanel-instance-body ag-filter" ref="agFilterToolPanelBody"></div>\n </div>',v([i("eFilterToolPanelHeader")],s.prototype,"eFilterToolPanelHeader",void 0),v([i("eFilterName")],s.prototype,"eFilterName",void 0),v([i("agFilterToolPanelBody")],s.prototype,"agFilterToolPanelBody",void 0),v([i("eFilterIcon")],s.prototype,"eFilterIcon",void 0),v([i("eExpand")],s.prototype,"eExpand",void 0),v([o("filterManager")],s.prototype,"filterManager",void 0),v([o("columnModel")],s.prototype,"columnModel",void 0),v([n],s.prototype,"postConstruct",null),s}(s),T=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),x=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},P=function(s){function l(e,t,o,i,r){var n=s.call(this)||this;return n.columnGroup=e,n.childFilterComps=t,n.depth=i,n.expandedCallback=o,n.showingColumn=r,n}return T(l,s),l.prototype.preConstruct=function(){this.setTemplate(l.TEMPLATE,{filterGroupComp:{cssIdentifier:"filter-toolpanel",direction:"vertical"}})},l.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),t.addCssClass(this.filterGroupComp.getGui(),"ag-filter-toolpanel-group-level-"+this.depth),this.filterGroupComp.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+this.depth+"-header"),this.childFilterComps.forEach((function(t){e.filterGroupComp.addItem(t),t.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+(e.depth+1)+"-header")})),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip()},l.prototype.setupTooltip=function(){var t=this;if(this.showingColumn){var o=function(){var e=t.columnGroup.getColDef().headerTooltip;t.setTooltip(e)};o(),this.addManagedListener(this.eventService,e.EVENT_NEW_COLUMNS_LOADED,o)}},l.prototype.getTooltipParams=function(){var e=s.prototype.getTooltipParams.call(this);return e.location="filterToolPanelColumnGroup",e},l.prototype.addCssClassToTitleBar=function(e){this.filterGroupComp.addCssClassToTitleBar(e)},l.prototype.refreshFilters=function(){this.childFilterComps.forEach((function(e){e instanceof l?e.refreshFilters():e.refreshFilter()}))},l.prototype.isColumnGroup=function(){return this.columnGroup instanceof p},l.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},l.prototype.getChildren=function(){return this.childFilterComps},l.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},l.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},l.prototype.hideGroupItem=function(e,t){this.filterGroupComp.hideItem(e,t)},l.prototype.hideGroup=function(e){t.addOrRemoveCssClass(this.getGui(),"ag-hidden",e)},l.prototype.forEachToolPanelFilterChild=function(e){t.forEach(this.childFilterComps,(function(t){t instanceof F&&e(t)}))},l.prototype.addExpandCollapseListeners=function(){var e=this,t=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.expand()}))},o=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild((function(e){return e.collapse()}))};this.addManagedListener(this.filterGroupComp,d.EVENT_EXPANDED,t),this.addManagedListener(this.filterGroupComp,d.EVENT_COLLAPSED,o)},l.prototype.addFilterChangedListeners=function(){var o=this;if(this.columnGroup instanceof p){var i=this.columnGroup;i.getLeafColumns().forEach((function(e){o.addManagedListener(e,a.EVENT_FILTER_CHANGED,(function(){t.addOrRemoveCssClass(o.filterGroupComp.getGui(),"ag-has-filter",i.getLeafColumns().some((function(e){return e.isFilterActive()})))}))}))}else{var r=this.columnGroup;this.addManagedListener(this.eventService,e.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addManagedListener(r,a.EVENT_FILTER_CHANGED,(function(){t.addOrRemoveCssClass(o.filterGroupComp.getGui(),"ag-has-filter",r.isFilterActive())}))}},l.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},l.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},l.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},l.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof p?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")},l.prototype.getColumnGroupName=function(e){return this.columnModel.getDisplayNameForOriginalColumnGroup(null,e,"filterToolPanel")},l.prototype.getColumnName=function(e){return this.columnModel.getDisplayNameForColumn(e,"filterToolPanel",!1)},l.prototype.destroyFilters=function(){this.childFilterComps=this.destroyBeans(this.childFilterComps),t.clearElement(this.getGui())},l.prototype.destroy=function(){this.destroyFilters(),s.prototype.destroy.call(this)},l.TEMPLATE='<div class="ag-filter-toolpanel-group-wrapper">\n <ag-group-component ref="filterGroupComp"></ag-group-component>\n </div>',x([i("filterGroupComp")],l.prototype,"filterGroupComp",void 0),x([o("columnModel")],l.prototype,"columnModel",void 0),x([r],l.prototype,"preConstruct",null),x([n],l.prototype,"init",null),l}(s),G=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),L=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},A=function(i){function r(){var e=i.call(this,r.TEMPLATE)||this;return e.initialised=!1,e.filterGroupComps=[],e}return G(r,i),r.prototype.init=function(o){var i=this;this.initialised=!0;var r={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};t.mergeDeep(r,o),this.params=r,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,e.EVENT_COLUMN_MOVED,(function(){return i.onColumnsChanged()})),this.addManagedListener(this.eventService,e.EVENT_NEW_COLUMNS_LOADED,(function(){return i.onColumnsChanged()})),this.addManagedListener(this.eventService,e.EVENT_TOOL_PANEL_VISIBLE_CHANGED,(function(e){"filters"===e.source&&i.refreshFilters()})),this.columnModel.isReady()&&this.onColumnsChanged()},r.prototype.onColumnsChanged=function(){var e=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs()},r.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},r.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this;this.destroyFilters();var o=this.columnModel.getPrimaryColumnTree();this.filterGroupComps=this.recursivelyAddComps(o,0);var i=this.filterGroupComps.length;i&&(this.filterGroupComps.forEach((function(t){return e.appendChild(t)})),this.setFirstAndLastVisible(0,i-1)),t.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},r.prototype.setFiltersLayout=function(e){var o=this;this.destroyFilters();var i=this.toolPanelColDefService.createColumnTree(e);this.filterGroupComps=this.recursivelyAddComps(i,0);var r=this.filterGroupComps.length;r&&(this.filterGroupComps.forEach((function(e){return o.appendChild(e)})),this.setFirstAndLastVisible(0,r-1)),t.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},r.prototype.recursivelyAddComps=function(e,o){var i=this;return t.flatten(e.map((function(e){if(e instanceof p)return t.flatten(i.recursivelyAddFilterGroupComps(e,o));var r=e;if(!i.shouldDisplayFilter(r))return[];var n=new F(0===o);if(i.getContext().createBean(n),n.setColumn(r),o>0)return n;var s=i.createBean(new P(r,[n],i.onGroupExpanded.bind(i),o,!0));return s.addCssClassToTitleBar("ag-filter-toolpanel-header"),s.collapse(),s})))},r.prototype.recursivelyAddFilterGroupComps=function(e,o){if(this.filtersExistInChildren(e.getChildren())){var i=e.getColGroupDef();if(i&&i.suppressFiltersToolPanel)return[];var r=e.isPadding()?o:o+1,n=t.flatten(this.recursivelyAddComps(e.getChildren(),r));if(e.isPadding())return n;var s=new P(e,n,this.onGroupExpanded.bind(this),o,!1);return this.getContext().createBean(s),s.addCssClassToTitleBar("ag-filter-toolpanel-header"),[s]}},r.prototype.filtersExistInChildren=function(e){var t=this;return e.some((function(e){return e instanceof p?t.filtersExistInChildren(e.getChildren()):t.shouldDisplayFilter(e)}))},r.prototype.shouldDisplayFilter=function(e){var t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t},r.prototype.refresh=function(){},r.prototype.setVisible=function(e){i.prototype.setDisplayed.call(this,e),e&&!this.initialised&&this.init(this.params)},r.prototype.expandFilterGroups=function(e,o){var i=[],r=function(n){var s=n.getFilterGroupId();(!o||t.includes(o,s))&&(e&&n.isColumnGroup()?n.expand():n.collapse(),i.push(s)),n.getChildren().forEach((function(e){e instanceof P&&r(e)}))};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),o){var n=o.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find groups for these supplied groupIds:",n)}},r.prototype.expandFilters=function(e,o){var i=[],r=function(n){if(n instanceof P){var s=!1;return n.getChildren().forEach((function(t){r(t)&&(e?(n.expand(),s=!0):n.isColumnGroup()||n.collapse())})),s}var l=n.getColumn().getColId(),a=!o||t.includes(o,l);return a&&(e?n.expand():n.collapse(),i.push(l)),a};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),o){var n=o.filter((function(e){return i.indexOf(e)<0}));n.length>0&&console.warn("AG Grid: unable to find columns for these supplied colIds:",n)}},r.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},r.prototype.fireExpandedEvent=function(){var e,t=0,o=0,i=function(e){e.isColumnGroup()&&(e.isExpanded()?t++:o++,e.getChildren().forEach((function(e){e instanceof P&&i(e)})))};this.filterGroupComps.forEach(i),e=t>0&&o>0?y.INDETERMINATE:o>0?y.COLLAPSED:y.EXPANDED,this.dispatchEvent({type:"groupExpanded",state:e})},r.prototype.performFilterSearch=function(e){this.searchFilterText=t.exists(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)},r.prototype.searchFilters=function(e){var o,i,r=function(o){return!t.exists(e)||-1!==o.toLowerCase().indexOf(e)},n=function(e,t){if(!(e instanceof P))return r(e.getColumnFilterName()||"");var o=e.getChildren(),i=r(e.getFilterGroupName()),s=t||i;if(s){e.hideGroup(!1);for(var l=0;l<o.length;l++)n(o[l],s),e.hideGroupItem(!1,l);return!0}var a=!1;return o.forEach((function(o,i){var r=n(o,t);e.hideGroupItem(!r,i),r&&(a=!0)})),e.hideGroup(!a),a};this.filterGroupComps.forEach((function(e,r){n(e,!1),void 0===o?t.containsClass(e.getGui(),"ag-hidden")||(o=r,i=r):t.containsClass(e.getGui(),"ag-hidden")||i===r||(i=r)})),this.setFirstAndLastVisible(o,i)},r.prototype.setFirstAndLastVisible=function(e,o){this.filterGroupComps.forEach((function(i,r){t.removeCssClass(i.getGui(),"ag-first-group-visible"),t.removeCssClass(i.getGui(),"ag-last-group-visible"),r===e&&t.addCssClass(i.getGui(),"ag-first-group-visible"),r===o&&t.addCssClass(i.getGui(),"ag-last-group-visible")}))},r.prototype.refreshFilters=function(){this.filterGroupComps.forEach((function(e){return e.refreshFilters()}))},r.prototype.destroyFilters=function(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),t.clearElement(this.getGui())},r.prototype.destroy=function(){this.destroyFilters(),i.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-list-panel"></div>',L([o("gridApi")],r.prototype,"gridApi",void 0),L([o("columnApi")],r.prototype,"columnApi",void 0),L([o("toolPanelColDefService")],r.prototype,"toolPanelColDefService",void 0),L([o("columnModel")],r.prototype,"columnModel",void 0),r}(s),O=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),D=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},N=function(e){function r(){var t=e.call(this,r.TEMPLATE)||this;return t.initialised=!1,t.listenerDestroyFuncs=[],t}return O(r,e),r.prototype.init=function(e){this.initialised&&(this.listenerDestroyFuncs.forEach((function(e){return e()})),this.listenerDestroyFuncs=[]),this.initialised=!0;var o={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};t.mergeDeep(o,e),this.params=o,this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);var i=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;i&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addManagedListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this)))},r.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},r.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},r.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},r.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},r.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},r.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},r.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},r.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},r.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},r.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},r.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},r.prototype.refresh=function(){this.init(this.params)},r.prototype.destroy=function(){e.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-toolpanel">\n <ag-filters-tool-panel-header ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>\n <ag-filters-tool-panel-list ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>\n </div>',D([i("filtersToolPanelHeaderPanel")],r.prototype,"filtersToolPanelHeaderPanel",void 0),D([i("filtersToolPanelListPanel")],r.prototype,"filtersToolPanelListPanel",void 0),D([o("gridApi")],r.prototype,"gridApi",void 0),D([o("columnApi")],r.prototype,"columnApi",void 0),r}(s),_={moduleName:c.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:g},{componentName:"AgFiltersToolPanelList",componentClass:A}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:N}],dependantModules:[h,u]};export{_ as FiltersToolPanelModule}; |
{ | ||
"name": "@ag-grid-enterprise/filter-tool-panel", | ||
"version": "26.0.0", | ||
"version": "26.1.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components", | ||
@@ -45,5 +45,5 @@ "main": "./dist/cjs/main.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "~26.0.0", | ||
"@ag-grid-enterprise/core": "~26.0.0", | ||
"@ag-grid-enterprise/side-bar": "~26.0.0" | ||
"@ag-grid-community/core": "~26.1.0", | ||
"@ag-grid-enterprise/core": "~26.1.0", | ||
"@ag-grid-enterprise/side-bar": "~26.1.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
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 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
406462
4249
0
+ Added@ag-grid-community/core@26.1.0(transitive)
+ Added@ag-grid-enterprise/core@26.1.0(transitive)
+ Added@ag-grid-enterprise/side-bar@26.1.0(transitive)
- Removed@ag-grid-community/core@26.0.0(transitive)
- Removed@ag-grid-enterprise/core@26.0.0(transitive)
- Removed@ag-grid-enterprise/side-bar@26.0.0(transitive)