UNPKG

ag-grid-enterprise

Version:

AG Grid Enterprise Features

11 lines 1.56 MB
/** * @ag-grid-enterprise/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.2.1 * @link https://www.ag-grid.com/ * @license Commercial */ /** * @ag-grid-enterprise/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.2.1 * @link https://www.ag-grid.com/ * @license Commercial */ import{PreConstruct as t,Bean as e,BeanStub as r,Autowired as n,RefSelector as o,PostConstruct as i,Component as a,ModuleNames as s,Events as l,_ as u,KeyCode as c,AgRichSelect as p,VirtualListDragFeature as d,DragSourceType as h,AgInputDateField as f,AgInputNumberField as v,AgInputTextField as y,TooltipFeature as g,DragAndDropService as m,TabGuardComp as b,VirtualList as C,AgDialog as S,FocusService as w,AgAutocomplete as x,ChangedPath as O,Optional as E,CsvExportModule as T,EventService as P,Column as D,ProvidedColumnGroup as A,AgMenuList as M,AgMenuItemComponent as _,CssClassApplier as R,TouchListener as k,PreDestroy as F,NumberSequence as I,RowNode as L,ManagedFocusFeature as N,PositionableFeature as G,AgSelect as j,AgPromise as V,ModuleRegistry as B,ExcelFactoryMode as U,XmlFactory as H,RowType as z,BaseGridSerializingSession as W,Downloader as K,BaseCreator as X,ZipContainer as Y,GridSerializer as q,CsvCreator as Z,AgGroupComponent as J,AutoScrollService as $,AgRadioButton as Q,AgToggleButton as tt,AgCheckbox as et,AgAbstractLabel as rt,AgSlider as nt,DEFAULT_CHART_GROUPS as ot,TabbedLayout as it,CHART_TOOLBAR_ALLOW_LIST as at,CHART_TOOL_PANEL_ALLOW_LIST as st,CHART_TOOL_PANEL_MENU_OPTIONS as lt,AgPanel as ut,CellRangeType as ct,CellCtrl as pt,SelectionHandleType as dt,AgPickerField as ht,Grid as ft,ProvidedFilter as vt,PopupComponent as yt,RowNodeBlock as gt,ServerSideTransactionResultStatus as mt,RowNodeBlockLoader as bt,GROUP_AUTO_COLUMN_ID as Ct,TextFilter as St,AllCommunityModules as wt}from"ag-grid-community";export*from"ag-grid-community";var xt=function(){function t(){this.ieCompatibility=!1}return t.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},t.prototype.md5cycle=function(t,e){var r=t[0],n=t[1],o=t[2],i=t[3];r=this.ff(r,n,o,i,e[0],7,-680876936),i=this.ff(i,r,n,o,e[1],12,-389564586),o=this.ff(o,i,r,n,e[2],17,606105819),n=this.ff(n,o,i,r,e[3],22,-1044525330),r=this.ff(r,n,o,i,e[4],7,-176418897),i=this.ff(i,r,n,o,e[5],12,1200080426),o=this.ff(o,i,r,n,e[6],17,-1473231341),n=this.ff(n,o,i,r,e[7],22,-45705983),r=this.ff(r,n,o,i,e[8],7,1770035416),i=this.ff(i,r,n,o,e[9],12,-1958414417),o=this.ff(o,i,r,n,e[10],17,-42063),n=this.ff(n,o,i,r,e[11],22,-1990404162),r=this.ff(r,n,o,i,e[12],7,1804603682),i=this.ff(i,r,n,o,e[13],12,-40341101),o=this.ff(o,i,r,n,e[14],17,-1502002290),n=this.ff(n,o,i,r,e[15],22,1236535329),r=this.gg(r,n,o,i,e[1],5,-165796510),i=this.gg(i,r,n,o,e[6],9,-1069501632),o=this.gg(o,i,r,n,e[11],14,643717713),n=this.gg(n,o,i,r,e[0],20,-373897302),r=this.gg(r,n,o,i,e[5],5,-701558691),i=this.gg(i,r,n,o,e[10],9,38016083),o=this.gg(o,i,r,n,e[15],14,-660478335),n=this.gg(n,o,i,r,e[4],20,-405537848),r=this.gg(r,n,o,i,e[9],5,568446438),i=this.gg(i,r,n,o,e[14],9,-1019803690),o=this.gg(o,i,r,n,e[3],14,-187363961),n=this.gg(n,o,i,r,e[8],20,1163531501),r=this.gg(r,n,o,i,e[13],5,-1444681467),i=this.gg(i,r,n,o,e[2],9,-51403784),o=this.gg(o,i,r,n,e[7],14,1735328473),n=this.gg(n,o,i,r,e[12],20,-1926607734),r=this.hh(r,n,o,i,e[5],4,-378558),i=this.hh(i,r,n,o,e[8],11,-2022574463),o=this.hh(o,i,r,n,e[11],16,1839030562),n=this.hh(n,o,i,r,e[14],23,-35309556),r=this.hh(r,n,o,i,e[1],4,-1530992060),i=this.hh(i,r,n,o,e[4],11,1272893353),o=this.hh(o,i,r,n,e[7],16,-155497632),n=this.hh(n,o,i,r,e[10],23,-1094730640),r=this.hh(r,n,o,i,e[13],4,681279174),i=this.hh(i,r,n,o,e[0],11,-358537222),o=this.hh(o,i,r,n,e[3],16,-722521979),n=this.hh(n,o,i,r,e[6],23,76029189),r=this.hh(r,n,o,i,e[9],4,-640364487),i=this.hh(i,r,n,o,e[12],11,-421815835),o=this.hh(o,i,r,n,e[15],16,530742520),n=this.hh(n,o,i,r,e[2],23,-995338651),r=this.ii(r,n,o,i,e[0],6,-198630844),i=this.ii(i,r,n,o,e[7],10,1126891415),o=this.ii(o,i,r,n,e[14],15,-1416354905),n=this.ii(n,o,i,r,e[5],21,-57434055),r=this.ii(r,n,o,i,e[12],6,1700485571),i=this.ii(i,r,n,o,e[3],10,-1894986606),o=this.ii(o,i,r,n,e[10],15,-1051523),n=this.ii(n,o,i,r,e[1],21,-2054922799),r=this.ii(r,n,o,i,e[8],6,1873313359),i=this.ii(i,r,n,o,e[15],10,-30611744),o=this.ii(o,i,r,n,e[6],15,-1560198380),n=this.ii(n,o,i,r,e[13],21,1309151649),r=this.ii(r,n,o,i,e[4],6,-145523070),i=this.ii(i,r,n,o,e[11],10,-1120210379),o=this.ii(o,i,r,n,e[2],15,718787259),n=this.ii(n,o,i,r,e[9],21,-343485551),t[0]=this.add32(r,t[0]),t[1]=this.add32(n,t[1]),t[2]=this.add32(o,t[2]),t[3]=this.add32(i,t[3])},t.prototype.cmn=function(t,e,r,n,o,i){return e=this.add32(this.add32(e,t),this.add32(n,i)),this.add32(e<<o|e>>>32-o,r)},t.prototype.ff=function(t,e,r,n,o,i,a){return this.cmn(e&r|~e&n,t,e,o,i,a)},t.prototype.gg=function(t,e,r,n,o,i,a){return this.cmn(e&n|r&~n,t,e,o,i,a)},t.prototype.hh=function(t,e,r,n,o,i,a){return this.cmn(e^r^n,t,e,o,i,a)},t.prototype.ii=function(t,e,r,n,o,i,a){return this.cmn(r^(e|~n),t,e,o,i,a)},t.prototype.md51=function(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)this.md5cycle(n,this.md5blk(t.substring(e-64,e)));t=t.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(this.md5cycle(n,o),e=0;e<16;e++)o[e]=0;return o[14]=8*r,this.md5cycle(n,o),n},t.prototype.md5blk=function(t){for(var e=[],r=0;r<64;r+=4)e[r>>2]=t.charCodeAt(r)+(t.charCodeAt(r+1)<<8)+(t.charCodeAt(r+2)<<16)+(t.charCodeAt(r+3)<<24);return e},t.prototype.rhex=function(t){for(var e="0123456789abcdef".split(""),r="",n=0;n<4;n++)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r},t.prototype.hex=function(t){for(var e=0;e<t.length;e++)t[e]=this.rhex(t[e]);return t.join("")},t.prototype.md5=function(t){return this.hex(this.md51(t))},t.prototype.add32=function(t,e){return this.ieCompatibility?this.add32Compat(t,e):this.add32Std(t,e)},t.prototype.add32Std=function(t,e){return t+e&4294967295},t.prototype.add32Compat=function(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r},t}(),Ot=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Et(t){return null==t||0===t.length}var Tt,Pt=function(){function t(t){this.watermarkMessage=void 0,this.document=t,this.md5=new xt,this.md5.init()}return t.prototype.validateLicense=function(){if(Et(t.licenseKey))this.isWebsiteUrl()&&!this.isForceWatermark()||this.outputMissingLicenseKey();else if(t.licenseKey.length>32)if(-1!==t.licenseKey.indexOf("For_Trialing_ag-Grid_Only"))this.outputInvalidLicenseKey();else{var e=t.extractLicenseComponents(t.licenseKey),r=e.md5,n=e.license,o=e.version,i=e.isTrial;r===this.md5.md5(n)?(void 0===s&&(s=!1),null!=(a=o)&&(""!==a||s)&&o?this.validateLicenseKeyForVersion(o,!!i,n):this.validateLegacyKey(n)):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey();var a,s},t.extractExpiry=function(e){var r=e.substring(e.lastIndexOf("_")+1,e.length);return new Date(parseInt(t.decode(r),10))},t.extractLicenseComponents=function(e){var r=e.replace(/[\u200B-\u200D\uFEFF]/g,""),n=(r=r.replace(/\r?\n|\r/g,"")).length-32,o=r.substring(n),i=r.substring(0,n),a=Ot(t.extractBracketedInformation(r),2);return{md5:o,license:i,version:a[0],isTrial:a[1]}},t.prototype.getLicenseDetails=function(e){var r=t.extractLicenseComponents(e),n=r.md5,o=r.license,i=r.version,a=r.isTrial,s=n===this.md5.md5(o)&&-1===e.indexOf("For_Trialing_ag-Grid_Only"),l=null,u=null;s&&(u=t.extractExpiry(o),s=!isNaN(u.getTime()),a&&(l=u<new Date));return{licenseKey:e,valid:s,expiry:s?t.formatDate(u):null,version:i||"legacy",isTrial:a,trialExpired:l}},t.prototype.isDisplayWatermark=function(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!Et(this.watermarkMessage)},t.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},t.prototype.getHostname=function(){var t=(this.document.defaultView||window).location.hostname;return void 0===t?"":t},t.prototype.isForceWatermark=function(){var t=(this.document.defaultView||window).location.pathname;return!!t&&-1!==t.indexOf("forceWatermark")},t.prototype.isWebsiteUrl=function(){return null!==this.getHostname().match(/^((?:\w+\.)?ag-grid\.com)$/)},t.prototype.isLocalhost=function(){return null!==this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)},t.formatDate=function(t){var e=t.getDate(),r=t.getMonth(),n=t.getFullYear();return e+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][r]+" "+n},t.getGridReleaseDate=function(){return new Date(parseInt(t.decode(t.RELEASE_INFORMATION),10))},t.decode=function(e){for(var r,n,o,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0,p=e.replace(/[^A-Za-z0-9+/=]/g,"");c<p.length;)r=l.indexOf(p.charAt(c++))<<2|(i=l.indexOf(p.charAt(c++)))>>4,n=(15&i)<<4|(a=l.indexOf(p.charAt(c++)))>>2,o=(3&a)<<6|(s=l.indexOf(p.charAt(c++))),u+=String.fromCharCode(r),64!=a&&(u+=String.fromCharCode(n)),64!=s&&(u+=String.fromCharCode(o));return u=t.utf8_decode(u)},t.utf8_decode=function(t){t=t.replace(/rn/g,"n");for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e},t.setLicenseKey=function(t){this.licenseKey=t},t.extractBracketedInformation=function(t){var e=t.split("[").filter((function(t){return t.indexOf("]")>-1})).map((function(t){return t.split("]")[0]}));if(!e||0===e.length)return[null,null];var r=1===e.filter((function(t){return"TRIAL"===t})).length;return[e.filter((function(t){return 0===t.indexOf("v")})).map((function(t){return t.replace(/^v/,"")}))[0],r]},t.prototype.validateLicenseKeyForVersion=function(t,e,r){"2"===t&&(e?this.validateForTrial(r):this.validateLegacyKey(r))},t.prototype.validateLegacyKey=function(e){var r=t.getGridReleaseDate(),n=t.extractExpiry(e),o=!1,i=!1;if(isNaN(n.getTime())||(o=!0,i=r<n),o){if(!i){var a=t.formatDate(n),s=t.formatDate(r);this.outputIncompatibleVersion(a,s)}}else this.outputInvalidLicenseKey()},t.prototype.validateForTrial=function(e){var r=t.extractExpiry(e),n=new Date,o=!1,i=!1;if(isNaN(r.getTime())||(o=!0,i=r>n),o){if(!i){var a=t.formatDate(r);this.outputExpiredTrialKey(a)}}else this.outputInvalidLicenseKey()},t.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},t.prototype.outputExpiredTrialKey=function(t){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+t+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},t.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},t.prototype.outputIncompatibleVersion=function(t,e){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("* AG Grid Enterprise License *"),console.error("* License not compatible with installed version of AG Grid Enterprise. *"),console.error("* *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *"),console.error("* license end date. The license key that you have expires on "+t+", however the version of AG Grid you *"),console.error("* are trying to use was released on "+e+". *"),console.error("* *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *"),console.error("* version of AG Grid. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},t.RELEASE_INFORMATION="MTY5ODkxNzc1MzgxNA==",t}(),Dt=(Tt=function(t,e){return(Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Tt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),At=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Mt=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return Dt(n,r),n.prototype.validateLicense=function(){this.licenseManager=new Pt(this.gridOptionsService.getDocument()),this.licenseManager.validateLicense()},n.getLicenseDetails=function(t){return new Pt(null).getLicenseDetails(t)},n.prototype.isDisplayWatermark=function(){return this.licenseManager.isDisplayWatermark()},n.prototype.getWatermarkMessage=function(){return this.licenseManager.getWatermarkMessage()},n.setLicenseKey=function(t){Pt.setLicenseKey(t)},At([t],n.prototype,"validateLicense",null),n=At([e("licenseManager")],n)}(r),_t=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Rt=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},kt=function(t){function e(){return t.call(this,'<div class="ag-watermark">\n <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n </div>')||this}return _t(e,t),e.prototype.postConstruct=function(){var t=this,e=this.shouldDisplayWatermark();this.setDisplayed(e),e&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){return t.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){return t.setDisplayed(!1)}),5e3))},e.prototype.shouldDisplayWatermark=function(){return this.licenseManager.isDisplayWatermark()},Rt([n("licenseManager")],e.prototype,"licenseManager",void 0),Rt([o("eLicenseTextRef")],e.prototype,"eLicenseTextRef",void 0),Rt([i],e.prototype,"postConstruct",null),e}(a),Ft={version:"30.2.1",moduleName:s.EnterpriseCoreModule,beans:[Mt],agStackComponents:[{componentName:"AgWatermark",componentClass:kt}]},It=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Lt=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Nt=function(t){function e(e){var r=t.call(this,'\n <div class="ag-advanced-filter-header" role="row">\n </div>')||this;return r.enabled=e,r}return It(e,t),e.prototype.postConstruct=function(){var t=this;this.setupAdvancedFilter(this.enabled),this.addDestroyFunc((function(){return t.destroyBean(t.eAdvancedFilter)})),this.addManagedListener(this.eventService,l.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onGridColumnsChanged()})),this.addGuiEventListener("keydown",(function(e){return t.onKeyDown(e)})),this.addGuiEventListener("focusout",(function(e){t.getFocusableElement().contains(e.relatedTarget)||t.focusService.clearAdvancedFilterColumn()}))},e.prototype.getFocusableElement=function(){var t,e;return null!==(e=null===(t=this.eAdvancedFilter)||void 0===t?void 0:t.getGui())&&void 0!==e?e:this.getGui()},e.prototype.setEnabled=function(t){t!==this.enabled&&this.setupAdvancedFilter(t)},e.prototype.refresh=function(){var t;null===(t=this.eAdvancedFilter)||void 0===t||t.refresh()},e.prototype.getHeight=function(){return this.height},e.prototype.setInputDisabled=function(t){var e;null===(e=this.eAdvancedFilter)||void 0===e||e.setInputDisabled(t)},e.prototype.setupAdvancedFilter=function(t){var e=this.getGui();if(t){this.eAdvancedFilter=this.createBean(new Ee);var r=this.eAdvancedFilter.getGui();this.eAdvancedFilter.addCssClass("ag-advanced-filter-header-cell"),this.height=this.columnModel.getFloatingFiltersHeight();var n=this.height+"px";e.style.height=n,e.style.minHeight=n,this.setAriaRowIndex(),u.setAriaRole(r,"gridcell"),u.setAriaColIndex(r,1),this.setAriaColumnCount(r),e.appendChild(r)}else u.clearElement(e),this.destroyBean(this.eAdvancedFilter),this.height=0;u.setDisplayed(e,t),this.enabled=t},e.prototype.setAriaColumnCount=function(t){var e,r;u.setAriaColSpan(t,null!==(r=null===(e=this.columnModel.getAllGridColumns())||void 0===e?void 0:e.length)&&void 0!==r?r:0)},e.prototype.setAriaRowIndex=function(){u.setAriaRowIndex(this.getGui(),this.headerNavigationService.getHeaderRowCount())},e.prototype.onGridColumnsChanged=function(){this.eAdvancedFilter&&(this.setAriaColumnCount(this.eAdvancedFilter.getGui()),this.setAriaRowIndex())},e.prototype.onKeyDown=function(t){switch(t.key){case c.ENTER:this.hasFocus()&&this.focusService.focusInto(this.getFocusableElement())&&t.preventDefault();break;case c.ESCAPE:this.hasFocus()||this.getFocusableElement().focus();break;case c.UP:this.navigateUpDown(!0,t);break;case c.DOWN:this.navigateUpDown(!1,t);break;case c.TAB:if(this.hasFocus())this.navigateLeftRight(t);else{var e=this.focusService.findNextFocusableElement(this.getFocusableElement(),null,t.shiftKey);e?(t.preventDefault(),e.focus()):this.navigateLeftRight(t)}}},e.prototype.navigateUpDown=function(t,e){this.hasFocus()&&this.focusService.focusNextFromAdvancedFilter(t)&&e.preventDefault()},e.prototype.navigateLeftRight=function(t){(t.shiftKey?this.focusService.focusLastHeader():this.focusService.focusNextFromAdvancedFilter(!1,!0))&&t.preventDefault()},e.prototype.hasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.getFocusableElement()},Lt([n("columnModel")],e.prototype,"columnModel",void 0),Lt([n("focusService")],e.prototype,"focusService",void 0),Lt([n("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Lt([i],e.prototype,"postConstruct",null),e}(a),Gt=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),jt=function(){return(jt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Vt=function(t){function e(e){var r=t.call(this,jt(jt({},e),{template:'\n <div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper" class="ag-wrapper ag-picker-collapsed">\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>'}))||this;return r.params=e,r}return Gt(e,t),e.prototype.showPicker=function(){var e=this;setTimeout((function(){return t.prototype.showPicker.call(e)}))},e.prototype.hidePicker=function(){var e=this;setTimeout((function(){return t.prototype.hidePicker.call(e)}))},e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.params,r=e.wrapperClassName,n=e.ariaLabel;u.setDisplayed(this.eDisplayField,!1),r&&this.eWrapper.classList.add(r),u.setAriaLabelledBy(this.eWrapper,""),u.setAriaLabel(this.eWrapper,n)},e.prototype.onEnterKeyDown=function(e){u.stopPropagationForAgGrid(e),this.isPickerDisplayed?t.prototype.onEnterKeyDown.call(this,e):(e.preventDefault(),this.showPicker())},e}(p),Bt=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ut=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ht=function(t){function e(e,r){var n=t.call(this)||this;return n.comp=e,n.virtualList=r,n}return Bt(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new d(this.comp,this.virtualList,{dragSourceType:h.AdvancedFilterBuilder,listItemDragStartEvent:e.EVENT_DRAG_STARTED,listItemDragEndEvent:e.EVENT_DRAG_ENDED,eventSource:this,getCurrentDragValue:function(e){return t.getCurrentDragValue(e)},isMoveBlocked:function(){return!1},getNumRows:function(t){return t.getNumItems()},moveItem:function(e,r){return t.moveItem(e,r)}}))},e.prototype.getCurrentDragValue=function(t){return t.item},e.prototype.moveItem=function(t,e){this.comp.moveItem(t,e)},e.EVENT_DRAG_STARTED="advancedFilterBuilderDragStarted",e.EVENT_DRAG_ENDED="advancedFilterBuilderDragEnded",Ut([i],e.prototype,"postConstruct",null),e}(r),zt=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wt=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Kt=function(t){function e(e,r,n){var o=t.call(this)||this;return o.eGui=e,o.focusWrapper=r,o.eFocusableComp=n,o}return zt(e,t),e.prototype.postConstruct=function(){var t=this;this.addManagedListener(this.eGui,"keydown",(function(e){switch(e.key){case c.TAB:e.defaultPrevented||u.stopPropagationForAgGrid(e);break;case c.UP:case c.DOWN:u.stopPropagationForAgGrid(e);break;case c.ESCAPE:if(u.isStopPropagationForAgGrid(e))return;var r=t.gridOptionsService.getDocument();t.eGui.contains(r.activeElement)&&(e.preventDefault(),u.stopPropagationForAgGrid(e),t.focusWrapper.focus())}})),this.addManagedListener(this.focusWrapper,"keydown",(function(e){switch(e.key){case c.ENTER:if(u.isStopPropagationForAgGrid(e))return;t.gridOptionsService.getDocument().activeElement===t.focusWrapper&&(e.preventDefault(),u.stopPropagationForAgGrid(e),t.eFocusableComp.getFocusableElement().focus())}})),this.addManagedListener(this.focusWrapper,"focusin",(function(){t.focusWrapper.classList.add("ag-advanced-filter-builder-virtual-list-item-highlight")})),this.addManagedListener(this.focusWrapper,"focusout",(function(e){t.focusWrapper.contains(e.relatedTarget)||t.focusWrapper.classList.remove("ag-advanced-filter-builder-virtual-list-item-highlight")}))},Wt([i],e.prototype,"postConstruct",null),e}(r);function Xt(t,e){return{pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderAddField",pickerAriaLabelValue:"Advanced Filter Builder Add Field",pickerType:"ag-list",valueList:[{key:"condition",displayValue:t("advancedFilterBuilderAddCondition")},{key:"join",displayValue:t("advancedFilterBuilderAddJoin")}],valueFormatter:function(t){var e;return null==t?null:null!==(e=t.displayValue)&&void 0!==e?e:t.key},pickerIcon:"advancedFilterBuilderAdd",maxPickerWidth:(null!=e?e:120)+"px",wrapperClassName:"ag-advanced-filter-builder-item-button",ariaLabel:t("advancedFilterBuilderAddButtonTooltip")}}var Yt=function(){function t(){}return t.EVENT_ADDED="advancedFilterBuilderAdded",t.EVENT_MOVED="advancedFilterBuilderMoved",t.EVENT_REMOVED="advancedFilterBuilderRemoved",t.EVENT_VALUE_CHANGED="advancedFilterBuilderValueChanged",t.EVENT_VALID_CHANGED="advancedFilterBuilderValidChanged",t}(),qt=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zt=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Jt=function(t){function e(){var e=t.call(this,'\n <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>\n ')||this;return e.validationMessage=null,e}return qt(e,t),e.prototype.init=function(t){var e=this,r=t.item,n=t.createPill;this.item=r,this.createPill=n,this.filterModel=r.filterModel,this.setupColumnCondition(this.filterModel),this.validate(),this.addDestroyFunc((function(){return e.destroyBeans([e.eColumnPill,e.eOperatorPill,e.eOperandPill])}))},e.prototype.getDragName=function(){return this.filterModel.colId?this.advancedFilterExpressionService.parseColumnFilterModel(this.filterModel):this.getDefaultColumnDisplayValue()},e.prototype.getAriaLabel=function(){return this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderFilterItem")+" "+this.getDragName()},e.prototype.getValidationMessage=function(){return this.validationMessage},e.prototype.getFocusableElement=function(){return this.eColumnPill.getFocusableElement()},e.prototype.setupColumnCondition=function(t){var e,r,n=this,o=this.advancedFilterExpressionService.getColumnDetails(t.colId);this.baseCellDataType=null!==(e=null==o?void 0:o.baseCellDataType)&&void 0!==e?e:"text",this.column=null==o?void 0:o.column,this.numOperands=this.getNumOperands(this.getOperatorKey()),this.eColumnPill=this.createPill({key:this.getColumnKey(),displayValue:null!==(r=this.getColumnDisplayValue())&&void 0!==r?r:this.getDefaultColumnDisplayValue(),cssClass:"ag-advanced-filter-builder-column-pill",isSelect:!0,getEditorParams:function(){return{values:n.advancedFilterExpressionService.getColumnAutocompleteEntries()}},update:function(t){return n.setColumnKey(t)},pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderColumnSelectField",pickerAriaLabelValue:"Advanced Filter Builder Column Select Field",ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderColumn")}),this.getGui().appendChild(this.eColumnPill.getGui()),u.exists(this.getColumnKey())&&(this.createOperatorPill(),this.hasOperand()&&this.createOperandPill())},e.prototype.createOperatorPill=function(){var t,e=this;this.eOperatorPill=this.createPill({key:this.getOperatorKey(),displayValue:null!==(t=this.getOperatorDisplayValue())&&void 0!==t?t:this.getDefaultOptionSelectValue(),cssClass:"ag-advanced-filter-builder-option-pill",isSelect:!0,getEditorParams:function(){return{values:e.getOperatorAutocompleteEntries()}},update:function(t){return e.setOperatorKey(t)},pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderOptionSelectField",pickerAriaLabelValue:"Advanced Filter Builder Option Select Field",ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderOption")}),this.eColumnPill.getGui().insertAdjacentElement("afterend",this.eOperatorPill.getGui())},e.prototype.createOperandPill=function(){var t,e=this,r=null!==(t=this.getOperandDisplayValue())&&void 0!==t?t:"";this.eOperandPill=this.createPill({key:r,displayValue:r,baseCellDataType:this.baseCellDataType,cssClass:"ag-advanced-filter-builder-value-pill",isSelect:!1,update:function(t){return e.setOperand(t)},ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderValue")}),this.getGui().appendChild(this.eOperandPill.getGui())},e.prototype.getColumnKey=function(){return this.filterModel.colId},e.prototype.getColumnDisplayValue=function(){return this.advancedFilterExpressionService.getColumnDisplayValue(this.filterModel)},e.prototype.getOperatorKey=function(){return this.filterModel.type},e.prototype.getOperatorDisplayValue=function(){return this.advancedFilterExpressionService.getOperatorDisplayValue(this.filterModel)},e.prototype.getOperandDisplayValue=function(){return this.advancedFilterExpressionService.getOperandDisplayValue(this.filterModel,!0)},e.prototype.hasOperand=function(){return this.numOperands>0},e.prototype.getOperatorAutocompleteEntries=function(){return this.column?this.advancedFilterExpressionService.getOperatorAutocompleteEntries(this.column,this.baseCellDataType):[]},e.prototype.setColumnKey=function(t){var e;this.eOperatorPill||this.createOperatorPill();var r=this.advancedFilterExpressionService.getColumnDetails(t);this.column=null==r?void 0:r.column;var n=null!==(e=null==r?void 0:r.baseCellDataType)&&void 0!==e?e:"text";this.baseCellDataType!==n&&(this.baseCellDataType=n,this.setOperatorKey(void 0),this.eOperatorPill&&(u.removeFromParent(this.eOperatorPill.getGui()),this.destroyBean(this.eOperatorPill),this.createOperatorPill()),this.validate()),this.filterModel.colId=t,this.filterModel.filterType=this.baseCellDataType},e.prototype.setOperatorKey=function(t){var e=this.getNumOperands(t);e!==this.numOperands&&(this.numOperands=e,0===e?this.destroyOperandPill():(this.createOperandPill(),"number"!==this.baseCellDataType&&this.setOperand(""))),this.filterModel.type=t,this.validate()},e.prototype.setOperand=function(t){var e,r=t;this.column&&(r=null!==(e=this.advancedFilterExpressionService.getOperandModelValue(t,this.baseCellDataType,this.column))&&void 0!==e?e:""),this.filterModel.filter=r,this.validate()},e.prototype.getNumOperands=function(t){var e,r;return null!==(r=null===(e=this.advancedFilterExpressionService.getExpressionOperator(this.baseCellDataType,t))||void 0===e?void 0:e.numOperands)&&void 0!==r?r:0},e.prototype.destroyOperandPill=function(){delete this.filterModel.filter,this.getGui().removeChild(this.eOperandPill.getGui()),this.destroyBean(this.eOperandPill),this.eOperandPill=void 0},e.prototype.validate=function(){var t=null;u.exists(this.getColumnKey())?u.exists(this.getOperatorKey())?this.numOperands>0&&!u.exists(this.getOperandDisplayValue())&&(t=this.advancedFilterExpressionService.translate("advancedFilterBuilderValidationEnterValue")):t=this.advancedFilterExpressionService.translate("advancedFilterBuilderValidationSelectOption"):t=this.advancedFilterExpressionService.translate("advancedFilterBuilderValidationSelectColumn"),this.item.valid=!t,t!==this.validationMessage&&(this.validationMessage=t,this.dispatchEvent({type:Yt.EVENT_VALID_CHANGED}))},e.prototype.getDefaultColumnDisplayValue=function(){return this.advancedFilterExpressionService.translate("advancedFilterBuilderSelectColumn")},e.prototype.getDefaultOptionSelectValue=function(){return this.advancedFilterExpressionService.translate("advancedFilterBuilderSelectOption")},Zt([n("advancedFilterExpressionService")],e.prototype,"advancedFilterExpressionService",void 0),Zt([n("valueParserService")],e.prototype,"valueParserService",void 0),e}(a),$t=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qt=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},te=function(t){function e(e){var r=t.call(this,'\n <div class="ag-advanced-filter-builder-pill-wrapper" role="presentation">\n <div ref="ePill" class="ag-advanced-filter-builder-pill" role="button">\n <span ref="eLabel" class="ag-advanced-filter-builder-pill-display"></span>\n </div>\n </div>\n ')||this;return r.params=e,r.value=e.value,r}return $t(e,t),e.prototype.postConstruct=function(){var t=this,e=this.params,r=e.cssClass,n=e.ariaLabel;this.ePill.classList.add(r),this.activateTabIndex([this.ePill]),this.eLabel.id=""+this.getCompId(),u.setAriaDescribedBy(this.ePill,this.eLabel.id),u.setAriaLabel(this.ePill,n),this.renderValue(),this.addManagedListener(this.ePill,"click",(function(e){e.preventDefault(),t.showEditor()})),this.addManagedListener(this.ePill,"keydown",(function(e){switch(e.key){case c.ENTER:e.preventDefault(),u.stopPropagationForAgGrid(e),t.showEditor()}})),this.addDestroyFunc((function(){return t.destroyBean(t.eEditor)}))},e.prototype.getFocusableElement=function(){return this.ePill},e.prototype.showEditor=function(){var t=this;if(!this.eEditor){u.setDisplayed(this.ePill,!1),this.eEditor=this.createEditorComp(this.params.type),this.eEditor.setValue(this.value);var e=this.eEditor.getGui();this.eEditor.addManagedListener(e,"keydown",(function(e){switch(e.key){case c.ENTER:e.preventDefault(),u.stopPropagationForAgGrid(e),t.updateValue(!0);break;case c.ESCAPE:e.preventDefault(),u.stopPropagationForAgGrid(e),t.hideEditor(!0)}})),this.eEditor.addManagedListener(e,"focusout",(function(){t.updateValue(!1)})),this.getGui().appendChild(e),this.eEditor.getFocusableElement().focus()}},e.prototype.createEditorComp=function(t){var e;switch(t){case"text":e=new y;break;case"number":e=new v;break;case"date":e=new f}return this.createBean(e)},e.prototype.hideEditor=function(t){var e=this.eEditor;e&&(this.eEditor=void 0,this.getGui().removeChild(e.getGui()),this.destroyBean(e),u.setDisplayed(this.ePill,!0),t&&this.ePill.focus())},e.prototype.renderValue=function(){var t;this.eLabel.classList.remove("ag-advanced-filter-builder-value-empty","ag-advanced-filter-builder-value-number","ag-advanced-filter-builder-value-text"),u.exists(this.value)?"number"===this.params.type?(t=this.value,this.eLabel.classList.add("ag-advanced-filter-builder-value-number")):(t='"'+this.value+'"',this.eLabel.classList.add("ag-advanced-filter-builder-value-text")):(t=this.advancedFilterExpressionService.translate("advancedFilterBuilderEnterValue"),this.eLabel.classList.add("ag-advanced-filter-builder-value-empty")),this.eLabel.innerText=t},e.prototype.updateValue=function(t){var e;if(this.eEditor){var r=null!==(e=this.eEditor.getValue())&&void 0!==e?e:"";this.dispatchEvent({type:l.EVENT_FIELD_VALUE_CHANGED,value:r}),this.value=r,this.renderValue(),this.hideEditor(t)}},Qt([o("ePill")],e.prototype,"ePill",void 0),Qt([o("eLabel")],e.prototype,"eLabel",void 0),Qt([n("advancedFilterExpressionService")],e.prototype,"advancedFilterExpressionService",void 0),Qt([i],e.prototype,"postConstruct",null),e}(a),ee=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),re=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ne=function(t){function e(){return t.call(this,'\n <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>\n ')||this}return ee(e,t),e.prototype.init=function(t){var e=this,r=t.item,n=t.createPill,o=r.filterModel;this.filterModel=o,this.ePill=n({key:o.type,displayValue:this.advancedFilterExpressionService.parseJoinOperator(o),cssClass:"ag-advanced-filter-builder-join-pill",isSelect:!0,getEditorParams:function(){return{values:e.advancedFilterExpressionService.getJoinOperatorAutocompleteEntries()}},update:function(t){return o.type=t},pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderJoinSelectField",pickerAriaLabelValue:"Advanced Filter Builder Join Operator Select Field",ariaLabel:this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderJoinOperator")}),this.getGui().appendChild(this.ePill.getGui()),this.addDestroyFunc((function(){return e.destroyBean(e.ePill)}))},e.prototype.getDragName=function(){return this.advancedFilterExpressionService.parseJoinOperator(this.filterModel)},e.prototype.getAriaLabel=function(){return this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderGroupItem")+" "+this.getDragName()},e.prototype.getValidationMessage=function(){return null},e.prototype.getFocusableElement=function(){return this.ePill.getFocusableElement()},re([n("advancedFilterExpressionService")],e.prototype,"advancedFilterExpressionService",void 0),e}(a),oe=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ie=function(){return(ie=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ae=function(t){function e(e){var r=t.call(this,ie(ie({},e),{template:'\n <div class="ag-picker-field ag-advanced-filter-builder-pill-wrapper" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper" class="ag-wrapper ag-advanced-filter-builder-pill ag-picker-collapsed">\n <div ref="eDisplayField" class="ag-picker-field-display ag-advanced-filter-builder-pill-display"></div>\n <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>'}))||this;return r.params=e,r}return oe(e,t),e.prototype.getFocusableElement=function(){return this.eWrapper},e.prototype.showPicker=function(){var e=this;setTimeout((function(){return t.prototype.showPicker.call(e)}))},e.prototype.hidePicker=function(){var e=this;setTimeout((function(){return t.prototype.hidePicker.call(e)}))},e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.params,r=e.wrapperClassName,n=e.ariaLabel;this.eWrapper.classList.add(r),u.setAriaLabelledBy(this.eWrapper,""),u.setAriaLabel(this.eWrapper,n)},e.prototype.createPickerComponent=function(){var e;if(!this.values){var r=this.params.getEditorParams().values;this.values=r;var n=this.value.key,o=null!==(e=r.find((function(t){return t.key===n})))&&void 0!==e?e:{key:n,displayValue:this.value.displayValue};this.value=o}return t.prototype.createPickerComponent.call(this)},e.prototype.onEnterKeyDown=function(e){u.stopPropagationForAgGrid(e),this.isPickerDisplayed?t.prototype.onEnterKeyDown.call(this,e):(e.preventDefault(),this.showPicker())},e}(p),se=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),le=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ue=function(t){function e(e,r,n){var o=t.call(this,'\n <div class="ag-advanced-filter-builder-item-wrapper" role="presentation">\n <div ref="eItem" class="ag-advanced-filter-builder-item" role="presentation">\n <div ref="eTreeLines" class="ag-advanced-filter-builder-item-tree-lines" aria-hidden="true"></div>\n <span ref="eDragHandle" class="ag-drag-handle" aria-hidden="true"></span>\n <span ref="eValidation" class="ag-advanced-filter-builder-item-button ag-advanced-filter-builder-invalid" aria-hidden="true"></span>\n </div>\n <div ref="eButtons" class="ag-advanced-filter-builder-item-buttons">\n <span ref="eMoveUpButton" class="ag-advanced-filter-builder-item-button" role="button"></span>\n <span ref="eMoveDownButton" class="ag-advanced-filter-builder-item-button" role="button"></span>\n <div ref="eAddButton" role="presentation"></div>\n <span ref="eRemoveButton" class="ag-advanced-filter-builder-item-button" role="button"></span>\n </div>\n </div>\n ')||this;return o.item=e,o.dragFeature=r,o.focusWrapper=n,o.moveUpDisabled=!1,o.moveDownDisabled=!1,o}return se(e,t),e.prototype.postConstruct=function(){var t=this,e=this.item,r=e.filterModel,n=e.level,o=e.showMove,i="join"===r.filterType;if(this.ePillWrapper=this.createManagedBean(i?new ne:new Jt),this.ePillWrapper.init({item:this.item,createPill:function(e){return t.createPill(e)}}),this.eDragHandle.insertAdjacentElement("afterend",this.ePillWrapper.getGui()),0===n){var a=document.createElement("div");a.classList.add("ag-advanced-filter-builder-item-tree-line-vertical-bottom"),a.classList.add("ag-advanced-filter-builder-item-tree-line-root"),this.eTreeLines.appendChild(a),u.setDisplayed(this.eDragHandle,!1),u.setDisplayed(this.eButtons,!1),u.setAriaExpanded(this.focusWrapper,!0)}else this.setupTreeLines(n),this.eDragHandle.appendChild(u.createIconNoSpan("advancedFilterBuilderDrag",this.gridOptionsService)),this.setupValidation(),this.setupMoveButtons(o),this.setupAddButton(),this.setupRemoveButton(),this.setupDragging(),this.updateAriaExpanded();u.setAriaLevel(this.focusWrapper,n+1),this.initialiseTabGuard({}),this.createManagedBean(new Kt(this.getGui(),this.focusWrapper,this.ePillWrapper)),this.updateAriaLabel(),this.addManagedListener(this.ePillWrapper,Yt.EVENT_VALUE_CHANGED,(function(){return t.dispatchEvent({type:Yt.EVENT_VALUE_CHANGED})})),this.addManagedListener(this.ePillWrapper,Yt.EVENT_VALID_CHANGED,(function(){return t.updateValidity()}))},e.prototype.setState=function(t){if(0!==this.item.level){var e=this.item.showMove,r=t.disableMoveUp,n=t.disableMoveDown,o=t.treeLines,i=t.showStartTreeLine;this.updateTreeLines(o,i),this.updateAriaExpanded(),e&&(this.moveUpDisabled=!!r,this.moveDownDisabled=!!n,this.eMoveUpButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",r),this.eMoveDownButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",n),u.setAriaDisabled(this.eMoveUpButton,!!r),u.setAriaDisabled(this.eMoveDo