ag-grid-react
Advanced tools
Comparing version 27.0.1 to 27.1.0
@@ -1,1 +0,1 @@ | ||
define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(t,e,o,a,fe,me){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var de="default"in fe?fe.default:fe,i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var he=function(){return(he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function W(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}s(n,u=function(){}),n.prototype.getGui=function(){return this.eParentElement},n.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},n.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},n.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)}))},n.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},n.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},n.prototype.isStatelessComponent=function(){return this.statelessComponent},n.prototype.getReactComponentName=function(){return this.reactComponent.name},n.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},n.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},n.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},n.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},n.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});{if(o)return(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0;setTimeout(function(){return r.callMethod(e,t)})}},n.prototype.addMethod=function(e,t){this[e]=t};var u,c=n;function n(e,t,n){var r=u.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var l=0;function p(){return"agPortalKey_"+ ++l}s(d,f=c),d.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new me.AgPromise(function(e){return n.createReactComponent(t,e)})},d.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),fe.createElement(this.reactComponent,e)),e=a.createPortal(e,this.eParentElement,p());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},d.prototype.fallbackMethodAvailable=function(e){return!1},d.prototype.fallbackMethod=function(e,t){},d.prototype.isSlowRenderer=function(){return this.staticRenderTime>=d.SLOW_RENDERING_THRESHOLD},d.prototype.isNullValue=function(){return""===this.staticMarkup},d.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=fe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=o.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},d.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},d.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},d.SLOW_RENDERING_THRESHOLD=3;var f,m=d;function d(e,t,n,r){e=f.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}s(g,h=fe.Component),g.prototype.render=function(){return null},g.mapChildColumnDefs=function(e){return de.Children.map(e,function(e){return e?g.toColDef(e.props):null})},g.toColDef=function(e){var t=e.children,e=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}(e,["children"]);return g.hasChildColumns(t)&&(e.children=g.mapChildColumnDefs(t)),e},g.hasChildColumns=function(e){return 0<de.Children.count(e)};var h,C=g;function g(e){var t=h.call(this,e)||this;return t.props=e,t}function y(e,t){e.forEach(function(e){C[e]=t})}y(me.ColDefUtil.BOOLEAN_PROPERTIES,e.bool),y(me.ColDefUtil.STRING_PROPERTIES,e.string),y(me.ColDefUtil.OBJECT_PROPERTIES,e.object),y(me.ColDefUtil.ARRAY_PROPERTIES,e.array),y(me.ColDefUtil.NUMBER_PROPERTIES,e.number),y(me.ColDefUtil.FUNCTION_PROPERTIES,e.func),($=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",$.DeepValueCheck="DeepValueCheck",$.NoCheck="NoCheck";v.prototype.areEqual=function(e,t){return this.strategy(e,t)};var E=v;function v(e){this.strategy=e}S.prototype.areEqual=function(e,t){return S.areEquivalent(S.copy(e),S.copy(t))},S.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},S.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce(function(t,n){return Object.keys(n).forEach(function(e){t[e]=n[e]}),t},{})},S.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},S.areEquivalent=function(t,n){if(t=S.unwrapStringOrNumber(t),n=S.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(S.isNaN(t)&&S.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return!1;if("object"!=typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var e=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var o=void 0;if(e)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some(function(e){return e===n}))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some(function(e){return e===t}))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var a={};for(o in t)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in n)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in a)if(!this.areEquivalent(t[o],n[o]))return!1;return!0}finally{e&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}};var R=S;function S(){}O.prototype.getStrategy=function(e){return this.strategyMap[e]};var w=O;function O(){var e;this.strategyMap=((e={})[t.ChangeDetectionStrategyType.DeepValueCheck]=new R,e[t.ChangeDetectionStrategyType.IdentityCheck]=new E(function(e,t){return e===t}),e[t.ChangeDetectionStrategyType.NoCheck]=new E(function(e,t){return!1}),e)}s(M,b=c),M.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new me.AgPromise(function(e){return t.createReactComponent(e)})},M.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=fe.createElement(this.reactComponent,he(he({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},M.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},M.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},M.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},M.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===o.renderToStaticMarkup(fe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1},M.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},M.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},M.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var b,P=M;function M(e,t,n){e=b.call(this,e,t,n)||this;return e.oldPortal=null,e.key=p(),e.portalKey=p(),e}D.prototype.getPortals=function(){return this.portals},D.prototype.destroy=function(){this.destroyed=!0},D.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},D.prototype.getComponentWrappingElement=function(){return this.wrappingElement},D.prototype.mountReactPortal=function(e,t,n){this.portals=W(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},D.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},D.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},D.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},D.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var T=D;function D(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||D.MAX_COMPONENT_CREATION_TIME_IN_MS}function V(e,t,n,r){if(!(!e||e.componentFromFramework)){var o,a,i,e=e.newAgStackInstance();if(e)return i=!1,e.then(function(e){i?t.destroyBean(e):(a=(o=e).getGui(),n.appendChild(a),I(r,o))}),function(){i=!0,o&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(o),r&&I(r,void 0))}}}function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var Ce=de.createContext({}),I=function(e,t){e&&(e instanceof Function?e(t):e.current=t)},ge=(N.prototype.setClass=function(e,t){if(!!this.classesMap[e]==t)return this;var n=new N;return n.classesMap=he({},this.classesMap),n.classesMap[e]=t,n},N.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},N);function N(){this.classesMap={}}function ye(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function k(n){var r=fe.useContext(Ce).context,o=fe.useRef(null),e=fe.useRef(null),a=fe.useRef(null),i=fe.useRef(null),s=fe.useRef(null),t=(c=fe.useState())[0],l=c[1],p=(c=fe.useState())[0],f=c[1],u=(c=fe.useState())[0],m=c[1],d=(c=fe.useState(new ge))[0],h=c[1],C=(c=fe.useState(new ge))[0],g=c[1],y=(c=fe.useState(new ge))[0],E=c[1],v=(c=fe.useState(new ge))[0],R=c[1],c=(fe.useEffect(function(){return V(t,r,e.current)},[t]),fe.useEffect(function(){var e={setInnerRenderer:function(e,t){l(e),m(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return h(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return g(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){R(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new me.GroupCellRendererCtrl);return t.init(e,o.current,a.current,i.current,s.current,k,n),function(){r.destroyBean(t)}},[]),fe.useMemo(function(){return"ag-cell-wrapper "+d.toString()},[d])),S=fe.useMemo(function(){return"ag-group-expanded "+C.toString()},[C]),w=fe.useMemo(function(){return"ag-group-contracted "+y.toString()},[y]),O=fe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),b=t&&t.componentFromFramework,P=b?t.componentClass:void 0,M=null==t&&null!=u;return de.createElement("span",he({className:c,ref:o},n.colDef?{}:{role:"gridcell"}),de.createElement("span",{className:S,ref:i}),de.createElement("span",{className:w,ref:s}),de.createElement("span",{className:O,ref:a}),de.createElement("span",{className:"ag-group-value",ref:e},M&&de.createElement(de.Fragment,null,u),b&&de.createElement(P,he({},t.params))),de.createElement("span",{className:"ag-group-child-count"},p))}function L(r,o){fe.useEffect(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}},[])}var A,F=fe.memo(k),G=fe.memo(function(e){var l=fe.useContext(Ce).context,t=fe.useState(new ge),n=t[0],p=t[1],t=fe.useState(),r=t[0],f=t[1],t=fe.useState(),m=t[0],d=t[1],t=fe.useState(),h=t[0],C=t[1],t=fe.useState(),g=t[0],y=t[1],t=fe.useState(),E=t[0],v=t[1],t=fe.useState(),o=t[0],R=t[1],a=fe.useRef(null),i=fe.useRef(null),s=fe.useRef(),u=e.ctrl,t=(fe.useEffect(function(){u.setComp({setWidth:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return p(function(e){return e.setClass(t,n)})},setAriaSort:function(e){return y(e)},setColId:function(e){return C(e)},setTitle:function(e){return d(e)},setAriaDescribedBy:function(e){return v(e)},setUserCompDetails:function(e){return R(e)},getUserCompInstance:function(){return s.current||void 0}},a.current,i.current);var e=u.getSelectAllGui();i.current.insertAdjacentElement("afterend",e)},[]),fe.useEffect(function(){return V(o,l,a.current,s)},[o]),fe.useEffect(function(){var t=void 0;a.current.childNodes.forEach(function(e){null!=e&&e!==i.current&&(t=e)}),u.setDragSource(t)},[o]),fe.useMemo(function(){return{width:r}},[r])),e=fe.useMemo(function(){return"ag-header-cell "+n.toString()},[n]),c=fe.useMemo(function(){return!!(o&&o.componentFromFramework&&ye(o.componentClass))},[o]),S=o&&o.componentFromFramework,w=o&&o.componentClass;return de.createElement("div",{ref:a,className:e,style:t,title:m,"col-id":h,"aria-sort":g,role:"columnheader",tabIndex:-1,"aria-describedby":E},de.createElement("div",{ref:i,className:"ag-header-cell-resize",role:"presentation"}),S&&c&&de.createElement(w,he({},o.params)),S&&!c&&de.createElement(w,he({},o.params,{ref:s})))}),x=fe.memo(function(e){var t=fe.useContext(Ce).context,n=fe.useState(new ge),r=n[0],l=n[1],n=fe.useState(new ge),o=n[0],p=n[1],n=fe.useState(),a=n[0],f=n[1],n=fe.useState(),m=n[0],d=n[1],n=fe.useState(),h=n[0],C=n[1],n=fe.useState(),g=n[0],y=n[1],n=fe.useState(),i=n[0],E=n[1],s=fe.useRef(null),u=fe.useRef(null),c=e.ctrl,n=(fe.useEffect(function(){c.setComp({setWidth:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},setColId:function(e){return C(e)},setTitle:function(e){return d(e)},setUserCompDetails:function(e){return E(e)},addOrRemoveResizableCssClass:function(t,n){return p(function(e){return e.setClass(t,n)})},setAriaExpanded:function(e){return y(e)}},s.current,u.current)},[]),fe.useEffect(function(){return V(i,t,s.current)},[i]),fe.useEffect(function(){var t=void 0;s.current.childNodes.forEach(function(e){null!=e&&e!==u.current&&(t=e)}),t&&c.setDragSource(t)},[i]),fe.useMemo(function(){return{width:a}},[a])),e=fe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),v=fe.useMemo(function(){return"ag-header-cell-resize "+o.toString()},[o]),R=i&&i.componentFromFramework,S=i&&i.componentClass;return de.createElement("div",{ref:s,className:e,style:n,title:m,"col-id":h,role:"columnheader",tabIndex:-1,"aria-expanded":g},R&&de.createElement(S,he({},i.params)),de.createElement("div",{ref:u,className:v}))}),_=fe.memo(function(e){var l=fe.useContext(Ce).context,t=fe.useState(new ge),n=t[0],p=t[1],t=fe.useState(new ge),r=t[0],f=t[1],t=fe.useState(new ge),m=t[0],d=t[1],t=fe.useState(),o=t[0],h=t[1],t=fe.useState(),a=t[0],C=t[1],i=fe.useRef(null),s=fe.useRef(null),t=fe.useRef(null),u=fe.useRef(null),c=fe.useRef(),g=e.ctrl,e=(fe.useEffect(function(){g.setComp({addOrRemoveCssClass:function(t,n){return p(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},addOrRemoveButtonWrapperCssClass:function(t,n){return d(function(e){return e.setClass(t,n)})},setWidth:function(e){return h(e)},setCompDetails:function(e){return C(e)},getFloatingFilterComp:function(){return c.current?me.AgPromise.resolve(c.current):null},setMenuIcon:function(e){return u.current.appendChild(e)}},i.current,u.current,s.current)},[]),fe.useEffect(function(){return V(a,l,s.current,c)},[a]),fe.useMemo(function(){return{width:o}},[o])),y=fe.useMemo(function(){return"ag-header-cell ag-floating-filter "+n.toString()},[n]),E=fe.useMemo(function(){return r.toString()},[r]),v=fe.useMemo(function(){return"ag-floating-filter-button "+m.toString()},[r]),R=fe.useMemo(function(){return!!(a&&a.componentFromFramework&&ye(a.componentClass))},[a]),S=a&&a.componentFromFramework,w=a&&a.componentClass;return de.createElement("div",{ref:i,className:y,style:e,role:"gridcell",tabIndex:-1},de.createElement("div",{ref:s,className:E,role:"presentation"},S&&R&&de.createElement(w,he({},a.params)),S&&!R&&de.createElement(w,he({},a.params,{ref:c}))),de.createElement("div",{ref:t,className:v,role:"presentation"},de.createElement("button",{ref:u,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),B=fe.memo(function(e){var o=fe.useContext(Ce).gridOptionsWrapper,t=fe.useState(),n=t[0],r=t[1],t=fe.useState(),a=t[0],i=t[1],t=fe.useState(),s=t[0],l=t[1],t=fe.useState(),u=t[0],p=t[1],t=fe.useState(),f=t[0],m=t[1],t=fe.useState([]),d=t[0],h=t[1],t=fe.useRef(null),c=e.ctrl,C=c.getType()===me.HeaderRowType.COLUMN,g=c.getType()===me.HeaderRowType.COLUMN_GROUP,y=c.getType()===me.HeaderRowType.FLOATING_FILTER,E=fe.useCallback(function(e,t){if(o.isEnsureDomOrder())return t;var n=me._.mapById(e,function(e){return e.getInstanceId()}),r=me._.mapById(t,function(e){return e.getInstanceId()});return W(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())}))},[]),e=(fe.useEffect(function(){c.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return i(e)},setTop:function(e){return l(e)},setHeaderCtrls:function(t){return h(function(e){return E(e,t)})},setWidth:function(e){return p(e)},setAriaRowIndex:function(e){return m(e)}})},[]),fe.useMemo(function(){return{transform:n,height:a,top:s,width:u}},[n,a,s,u])),v=fe.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=fe.useCallback(function(e){switch(c.getType()){case me.HeaderRowType.COLUMN_GROUP:return de.createElement(x,{ctrl:e,key:e.getInstanceId()});case me.HeaderRowType.FLOATING_FILTER:return de.createElement(_,{ctrl:e,key:e.getInstanceId()});default:return de.createElement(G,{ctrl:e,key:e.getInstanceId()})}},[]);return de.createElement("div",{ref:t,className:v,role:"row",style:e,"aria-rowindex":f},d.map(R))}),j=fe.memo(function(n){function e(){return d.map(function(e){return de.createElement(B,{ctrl:e,key:e.getInstanceId()})})}var t=fe.useState(new ge),r=t[0],l=t[1],t=fe.useState(),o=t[0],p=t[1],t=fe.useState(),a=t[0],f=t[1],t=fe.useState(),i=t[0],m=t[1],t=fe.useState([]),d=t[0],h=t[1],s=fe.useContext(Ce).context,u=fe.useRef(null),t=n.pinned===me.Constants.PINNED_LEFT,C=n.pinned===me.Constants.PINNED_RIGHT,g=!t&&!C,c=(fe.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},setCtrls:function(e){return h(e)},setCenterWidth:function(e){return p(e)},setContainerTransform:function(e){return f(e)},setPinnedContainerWidth:function(e){return m(e)}},t=s.createBean(new me.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,u.current),function(){s.destroyBean(t)}},[]),fe.useMemo(function(){return r.toString()},[r])),y=fe.useMemo(function(){return{width:o,transform:a}},[o,a]),E=fe.useMemo(function(){return{width:i,minWidth:i,maxWidth:i}},[i]);return de.createElement(de.Fragment,null,t&&de.createElement("div",{ref:u,className:"ag-pinned-left-header "+c,role:"presentation",style:E},e()),C&&de.createElement("div",{ref:u,className:"ag-pinned-right-header "+c,role:"presentation",style:E},e()),g&&de.createElement("div",{ref:u,className:"ag-header-viewport "+c,role:"presentation"},de.createElement("div",{className:"ag-header-container",role:"rowgroup",style:y},e())))}),H=fe.memo(function(){var e=fe.useState(new ge),t=e[0],r=e[1],e=fe.useState(),n=e[0],o=e[1],a=fe.useContext(Ce).context,i=fe.useRef(null),e=(fe.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new me.GridHeaderCtrl);return t.setComp(e,i.current,i.current),function(){a.destroyBean(t)}},[]),fe.useMemo(function(){return"ag-header "+t.toString()},[t])),s=fe.useMemo(function(){return{height:n,minHeight:n}},[n]);return de.createElement("div",{ref:i,className:e,style:s,role:"presentation"},de.createElement(j,{pinned:me.Constants.PINNED_LEFT}),de.createElement(j,{pinned:null}),de.createElement(j,{pinned:me.Constants.PINNED_RIGHT}))}),Ee=fe.memo(function(u){var e=fe.useState(),t=e[0],c=e[1],e=fe.useContext(Ce),l=e.context,p=e.popupService,f=e.gridOptionsWrapper;return fe.useEffect(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=f.isStopEditingWhenCellsLoseFocus(),a=l.createBean(new me.PopupEditorWrapper(r.params)),r=a.getGui(),i=(!u.jsChildComp||(i=u.jsChildComp.getGui())&&r.appendChild(i),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,keepWithinBounds:!0}),e=("under"===e.popupPosition?p.positionPopupUnderComponent:p.positionPopupOverComponent).bind(p,i),i=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:i("ariaLabelCellEditor","Cell Editor")}),s=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=s&&s(),l.destroyBean(a)}},[]),de.createElement(de.Fragment,null,t&&u.wrappedContent&&a.createPortal(u.wrappedContent,t.getGui()))}),q=fe.memo(function(e){function t(){return de.createElement(de.Fragment,null,null!=E&&(a=pe,f=S,i=w,s=le,u=oe,c=(o=E).compDetails,o=o.value,m=!c,d=c&&c.componentFromFramework,h=c&&c.componentClass,C=o&&o.toString?o.toString():o,de.createElement(de.Fragment,null,i?de.createElement("span",{role:"presentation",id:"cell-"+a,className:"ag-cell-value",ref:u},g()):g())),null!=v&&(o=v,i=ue,a=se,u=R.current,e=y,t=K,n=o.compDetails,r=n.componentClass,l=n.componentFromFramework&&!o.popup,p=n.componentFromFramework&&o.popup,n=!n.componentFromFramework&&o.popup,de.createElement(de.Fragment,null,l&&de.createElement(r,he({},o.compDetails.params,{ref:i})),p&&de.createElement(Ee,{editDetails:o,cellCtrl:e,eParentCell:u,wrappedContent:de.createElement(r,he({},o.compDetails.params,{ref:a}))}),n&&t&&de.createElement(Ee,{editDetails:o,cellCtrl:e,eParentCell:u,jsChildComp:t}))));var e,t,n,r,l,p,o,a,f,i,s,u,c,m,d,h,C;function g(){return de.createElement(de.Fragment,null,m&&de.createElement(de.Fragment,null,C),d&&!s&&de.createElement(h,he({},c.params,{ref:f})),d&&s&&de.createElement(h,he({},c.params)))}}var n,a,i,r,s,u,c,l=fe.useContext(Ce).context,y=e.cellCtrl,p=e.printLayout,f=e.editingRow,e=fe.useState(),E=e[0],m=e[1],e=fe.useState(),v=e[0],d=e[1],e=fe.useState(new ge),h=e[0],C=e[1],e=fe.useState(),g=e[0],O=e[1],e=fe.useState(),b=e[0],P=e[1],e=fe.useState(),M=e[0],T=e[1],e=fe.useState(),D=e[0],I=e[1],e=fe.useState(),N=e[0],k=e[1],e=fe.useState(),A=e[0],F=e[1],e=fe.useState(),G=e[0],x=e[1],e=fe.useState(),_=e[0],B=e[1],e=fe.useState(),U=e[0],L=e[1],e=fe.useState(!1),j=e[0],H=e[1],e=fe.useState(!1),W=e[0],V=e[1],e=fe.useState(!1),q=e[0],z=e[1],e=fe.useState(),K=e[0],Y=e[1],e=fe.useMemo(function(){return y.isForceWrapper()},[]),R=fe.useRef(null),S=fe.useRef(null),$=fe.useRef(),X=fe.useRef(),o=fe.useRef(),Z=fe.useState(0),J=Z[0],Q=Z[1],Z=fe.useCallback(function(e){o.current=e,Q(function(e){return e+1})},[]),ee=fe.useRef(),te=fe.useState(0),ne=te[0],re=te[1],oe=fe.useCallback(function(e){ee.current=e,re(function(e){return e+1})},[]),w=null!=E&&(j||q||W),ae=e||w,ie=fe.useCallback(function(e,t){var n,r,o,a,i;(X.current=t)&&(e=e,n=t,i=(r=y).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",me._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",me._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout(function(){return y.stopEditing()},0))},[]),se=fe.useCallback(function(e){return ie(!0,e)},[]),ue=fe.useCallback(function(e){return ie(!1,e)},[]),ce=(n=E,a=w,i=ee.current,te=ne,r=$,s=R,e=fe.useContext(Ce),u=e.context,e.userComponentFactory,c=fe.useCallback(function(){var e,t=r.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),u.destroyBean(t),r.current=void 0)},[]),fe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(a&&null==i)){e=n.compDetails;if(r.current){var t=r.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;c()}t=e.newAgStackInstance();t&&(!(e=t.resolveNow(null,function(e){return e}))||(t=e.getGui())&&((a?i:s.current).appendChild(t),r.current=e))}else c()},[n,a,te]),fe.useEffect(function(){return c},[]),fe.useRef()),le=(fe.useEffect(function(){var e=ce.current,t=E;ce.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass&&null!=S.current&&null!=S.current.refresh&&S.current.refresh(t.params))},[E]),fe.useEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),ie(n,r),n||(R.current.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),Y(r),function(){l.destroyBean(r),ie(n,void 0),Y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),fe.useEffect(function(){var n,e;if(y&&l&&(F(o.current?"cell-"+y.getInstanceId():void 0),o.current&&w))return n=[],e=function(e){var t;return e&&(t=e.getGui(),o.current.insertAdjacentElement("afterbegin",t),n.push(function(){l.destroyBean(e),me._.removeFromParent(t)})),e},j&&e(y.createSelectionCheckbox()),q&&e(y.createDndSource()),W&&e(y.createRowDragComp()),function(){n.forEach(function(e){e()})}},[w,q,W,j,J]),fe.useEffect(function(){var e;y&&(e=o.current||void 0,y.setComp({addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setUserStyles:function(e){return O(e)},setAriaSelected:function(e){return T(e)},setAriaExpanded:function(e){return I(e)},getFocusableElement:function(){return R.current},setAriaColIndex:function(e){return k(e)},setTabIndex:function(e){return P(e)},setRole:function(e){return x(e)},setColId:function(e){return B(e)},setTitle:function(e){return L(e)},setIncludeSelection:function(e){return H(e)},setIncludeRowDrag:function(e){return V(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return X.current||null},getCellRenderer:function(){return S.current||$.current},getParentOfValue:function(){return ee.current||o.current||R.current},setRenderDetails:function(e,t,n){m({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(d({compDetails:e,popup:t,popupPosition:n}),t||m(void 0)):d(void 0)}},null,R.current,e,p,f))},[]),fe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&ye(E.compDetails.componentClass))},[E])),ne=fe.useMemo(function(){var e=h.toString();return ae||(e+=" ag-cell-value"),e},[h,w]),pe=fe.useMemo(function(){return y.getInstanceId()},[]);return de.createElement("div",{ref:R,className:ne,style:g,tabIndex:b,"aria-selected":M,"aria-colindex":N,role:G,"aria-expanded":D,"col-id":_,title:U,"aria-describedby":A},ae?de.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:Z},t()):t())}),z=fe.memo(function(e){var l=fe.useContext(Ce).context,t=e.rowCtrl,p=e.containerType,e=fe.useState(),f=e[0],m=e[1],e=fe.useState(),d=e[0],h=e[1],e=fe.useState(),n=e[0],C=e[1],e=fe.useState(),g=e[0],y=e[1],e=fe.useState(),E=e[0],v=e[1],e=fe.useState(),R=e[0],S=e[1],e=fe.useState(),w=e[0],O=e[1],e=fe.useState(),b=e[0],P=e[1],e=fe.useState(),M=e[0],T=e[1],e=fe.useState(),r=e[0],D=e[1],e=fe.useState({list:[],instanceIdMap:new Map}),o=e[0],I=e[1],e=fe.useState(),a=e[0],N=e[1],e=fe.useState(!1),k=e[0],A=e[1],e=fe.useState(t.getInitialRowTop()),i=e[0],F=e[1],e=fe.useState(t.getInitialTransform()),s=e[0],G=e[1],u=fe.useRef(null),c=fe.useRef(),x=fe.useRef(!1),e=fe.useState(0),_=e[0],B=e[1],U=(fe.useEffect(function(){var e;x.current||a&&(10<_||((e=null===(e=u.current)||void 0===e?void 0:e.firstChild)?(t.setupDetailRowAutoHeight(e),x.current=!0):B(function(e){return e+1})))},[a,_]),fe.useMemo(function(){return new me.CssClassManager(function(){return u.current})},[])),e=(fe.useEffect(function(){t.setComp({setTop:function(e){return F(e)},setTransform:function(e){return G(e)},addOrRemoveCssClass:function(e,t){return U.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return A(e)},setRowIndex:function(e){return m(e)},setAriaRowIndex:function(e){return S(e)},setAriaExpanded:function(e){return O(e)},setAriaLabel:function(e){return P(e)},setRowId:function(e){return h(e)},setRowBusinessKey:function(e){return y(e)},setTabIndex:function(e){return v(e)},setUserStyles:function(e){return D(e)},setAriaSelected:function(e){return T(e)},setRole:function(e){return C(e)},setCellCtrls:function(s){return I(function(e){var t,n=e,e=s;if(k)return t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t;var r=[],o=[],a=new Map,i=new Map;return e.forEach(function(e){return i.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();i.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:W(r,o),instanceIdMap:a}})},showFullWidth:function(e){return N(e)},getFullWidthCellRenderer:function(){return c.current}},u.current,p)},[]),fe.useEffect(function(){return V(a,l,u.current,c)},[a]),fe.useMemo(function(){var e={top:i,transform:s};return Object.assign(e,r),e},[i,s,r])),L=a&&a.componentFromFramework,j=null!=o,H=fe.useMemo(function(){return!!(a&&a.componentFromFramework&&ye(a.componentClass))},[a]);return de.createElement("div",{ref:u,role:n,style:e,"row-index":f,"aria-rowindex":R,"aria-expanded":w,"aria-label":b,"aria-selected":M,"row-id":d,"row-business-key":g,tabIndex:E},j&&o.list.map(function(e){return de.createElement(q,{cellCtrl:e,editingRow:t.isEditing(),printLayout:t.isPrintLayout(),key:e.getInstanceId()})}),L&&(n=a.componentClass,de.createElement(de.Fragment,null,H&&de.createElement(n,he({},a.params)),!H&&de.createElement(n,he({},a.params,{ref:c})))))}),K=fe.memo(function(e){function t(){return de.createElement("div",{className:v,ref:i,role:"rowgroup",style:w},m.map(function(e){return de.createElement(z,{rowCtrl:e,containerType:E,key:e.getInstanceId()})}))}var l=fe.useContext(Ce).context,n=fe.useState(""),p=n[0],f=n[1],n=fe.useState([]),m=n[0],d=n[1],n=fe.useState(!1),h=n[0],C=n[1],n=fe.useState(""),g=n[0],y=n[1],r=e.name,E=fe.useMemo(function(){return me.getRowContainerTypeForName(r)},[r]),o=fe.useRef(null),a=fe.useRef(null),i=fe.useRef(null),s=fe.useMemo(function(){return me.RowContainerCtrl.getRowContainerCssClasses(r)},[r]),n=fe.useMemo(function(){return U(s.wrapper)},[]),e=fe.useMemo(function(){return U(s.viewport)},[]),v=fe.useMemo(function(){return U(s.container)},[]),u=r===me.RowContainerName.CENTER,c=r===me.RowContainerName.TOP_CENTER||r===me.RowContainerName.BOTTOM_CENTER,R=!u&&!c,S=(L(" AG Row Container "+r+" ",u?o:c?a:i),fe.useEffect(function(){var e=[],t={setViewportHeight:f,setRowCtrls:function(n){d(function(e){if(h)return n;var t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0});return W(t,e)})},setDomOrder:function(e){return C(e)},setContainerWidth:function(e){return y(e)}},n=l.createBean(new me.RowContainerCtrl(r));return e.push(n),n.setComp(t,i.current,a.current,o.current),function(){l.destroyBeans(e)}},[]),fe.useMemo(function(){return{height:p}},[p])),w=fe.useMemo(function(){return{width:g}},[g]);return de.createElement(de.Fragment,null,u&&de.createElement("div",{className:n,ref:o,role:"presentation"},de.createElement("div",{className:e,ref:a,role:"presentation",style:S},t())),c&&de.createElement("div",{className:e,ref:a,role:"presentation",style:S},t()),R&&t())}),Y=fe.memo(function(){function l(e){return de.createElement(K,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return de.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(l))}var t=fe.useContext(Ce),o=t.context,p=t.agStackComponentsRegistry,f=t.resizeObserverService,t=fe.useState(""),m=t[0],d=t[1],t=fe.useState(0),h=t[0],C=t[1],t=fe.useState(0),g=t[0],y=t[1],t=fe.useState(0),n=t[0],E=t[1],t=fe.useState(0),r=t[0],v=t[1],t=fe.useState(""),R=t[0],S=t[1],t=fe.useState(""),w=t[0],O=t[1],t=fe.useState(null),b=t[0],P=t[1],t=fe.useState(""),a=t[0],M=t[1],t=fe.useState(null),T=t[0],D=t[1],t=fe.useState(""),i=t[0],I=t[1],t=fe.useState(null),s=t[0],N=t[1],u=fe.useRef(null),k=fe.useRef(null),c=fe.useRef(null),A=fe.useRef(null),t=(L(" AG Grid Body ",u),L(" AG Pinned Top ",k),L(" AG Middle ",c),L(" AG Pinned Bottom ",A),fe.useEffect(function(){var e,t,n=[],r=[];if(o)return e=function(e){e=p.getComponentClass(e),e=o.createBean(new e);return n.push(e),e},u.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),u.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),u.current.appendChild(document.createComment(" AG Overlay Wrapper ")),u.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),e={setRowAnimationCssOnBodyViewport:d,setColumnCount:C,setRowCount:y,setTopHeight:E,setBottomHeight:v,setTopDisplay:S,setBottomDisplay:O,setColumnMovingCss:P,updateLayoutClasses:M,setAlwaysVerticalScrollClass:D,setPinnedTopBottomOverflowY:I,setCellSelectableCss:N,registerBodyViewportResizeListener:function(e){var t=f.observeResize(c.current,e);r.push(function(){return t()})}},t=o.createBean(new me.GridBodyCtrl),n.push(t),t.setComp(e,u.current,c.current,k.current,A.current),function(){o.destroyBeans(n),r.forEach(function(e){return e()})}},[]),fe.useMemo(function(){return U("ag-root","ag-unselectable",b,a)},[b,a])),F=fe.useMemo(function(){return U("ag-body-viewport",m,a,T,s)},[m,a,T,s]),G=fe.useMemo(function(){return U("ag-floating-top",s)},[s]),x=fe.useMemo(function(){return U("ag-floating-bottom",s)},[s]),_=fe.useMemo(function(){return{height:n,minHeight:n,display:R,overflowY:i}},[n,R,i]),B=fe.useMemo(function(){return{height:r,minHeight:r,display:w,overflowY:i}},[r,w,i]);return de.createElement("div",{ref:u,className:t,role:"grid","aria-colcount":h,"aria-rowcount":g},de.createElement(H,null),e({section:k,className:G,style:_,children:[me.RowContainerName.TOP_LEFT,me.RowContainerName.TOP_CENTER,me.RowContainerName.TOP_RIGHT,me.RowContainerName.TOP_FULL_WIDTH]}),e({section:c,className:F,children:[me.RowContainerName.LEFT,me.RowContainerName.CENTER,me.RowContainerName.RIGHT,me.RowContainerName.FULL_WIDTH]}),e({section:A,className:x,style:B,children:[me.RowContainerName.BOTTOM_LEFT,me.RowContainerName.BOTTOM_CENTER,me.RowContainerName.BOTTOM_RIGHT,me.RowContainerName.BOTTOM_FULL_WIDTH]}))}),$=fe.forwardRef(function(e,t){function n(e){return de.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?s:u})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,l=e.gridCtrl,i=fe.useContext(Ce).context,s=fe.useRef(null),u=fe.useRef(null),c=fe.useRef(),e=fe.useState(),p=e[0],f=e[1];fe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){c.current.forceFocusOutOfContainer()}}}),fe.useEffect(function(){var e=s.current,t=u.current,n=c.current=i.createBean(new me.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return l.focusInnerElement(e)}}));return function(){i.destroyBean(n)}},[]);return de.createElement(de.Fragment,null,n("top"),r,n("bottom"))}),X=fe.memo($),Z=fe.memo(function(e){var p=e.context,e=fe.useState(""),t=e[0],i=e[1],e=fe.useState(""),n=e[0],s=e[1],e=fe.useState(""),r=e[0],u=e[1],e=fe.useState(null),o=e[0],c=e[1],e=fe.useState(null),a=e[0],l=e[1],e=fe.useState(!1),h=e[0],C=e[1],e=fe.useState(),g=e[0],y=e[1],f=fe.useRef(null),m=fe.useRef(null),E=fe.useRef(),d=fe.useRef(null),v=fe.useRef(function(){}),e=fe.useCallback(function(){},[]),R=fe.useMemo(function(){return p.getBean("beans")},[]),S=(L(" AG Grid ",m),fe.useEffect(function(){var e=f.current=p.createBean(new me.GridCtrl);return function(){p.destroyBean(e),f.current=null}},[]),fe.useEffect(function(){var e=f.current,t=(v.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:i,addOrRemoveKeyboardFocusClass:function(e){return s(e?me.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){E.current.forceFocusOutOfContainer()},updateLayoutClasses:u,getFocusableContainers:function(){var e=[],t=m.current.querySelector(".ag-root"),n=m.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:c,setUserSelect:l});e.setComp(t,m.current,m.current),C(!0)},[]),fe.useEffect(function(){var e,t,n,l,r,o,a,i,s,u,c;if(g)return e=f.current,t=[],r=R.agStackComponentsRegistry,u=r.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),s=r.getComponentClass("AG-SIDE-BAR"),n=r.getComponentClass("AG-STATUS-BAR"),l=r.getComponentClass("AG-WATERMARK"),r=r.getComponentClass("AG-PAGINATION"),o=[],a=m.current,i=d.current,e.showDropZones()&&u&&(c=(u=p.createBean(new u)).getGui(),a.insertAdjacentElement("afterbegin",c),o.push(c),t.push(u)),e.showSideBar()&&s&&(c=(u=p.createBean(new s)).getGui(),(s=i.querySelector(".ag-tab-guard-bottom"))&&(s.insertAdjacentElement("beforebegin",c),o.push(c)),t.push(u)),e.showStatusBar()&&n&&(c=(i=p.createBean(new n)).getGui(),a.insertAdjacentElement("beforeend",c),o.push(c),t.push(i)),r&&(c=(s=p.createBean(new r)).getGui(),a.insertAdjacentElement("beforeend",c),o.push(c),t.push(s)),e.showWatermark()&&l&&(c=(u=p.createBean(new l)).getGui(),a.insertAdjacentElement("beforeend",c),o.push(c),t.push(u)),function(){p.destroyBeans(t),o.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[g]),fe.useMemo(function(){return U("ag-root-wrapper",t,n,r)},[t,n,r])),w=fe.useMemo(function(){return U("ag-root-wrapper-body","ag-focus-managed",r)},[r]),O=fe.useMemo(function(){return{userSelect:null!=a?a:"",WebkitUserSelect:null!=a?a:"",cursor:null!=o?o:""}},[a,o]),b=d.current,P=fe.useCallback(function(e){E.current=e,y(!0)},[]);return de.createElement("div",{ref:m,className:S,style:O},de.createElement("div",{className:w,ref:d},h&&b&&de.createElement(Ce.Provider,{value:R},de.createElement(X,{ref:P,eFocusableElement:b,onTabKeyDown:e,gridCtrl:f.current},de.createElement(Y,null)))))}),J=(s(Q,A=fe.Component),Q.prototype.render=function(){return de.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&de.createElement(Z,{context:this.state.context}),this.portalManager.getPortals())},Q.prototype.createStyleForDiv=function(){return he({height:"100%"},this.props.containerStyle||{})},Q.prototype.componentDidMount=function(){var t=this,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new te(this.portalManager)},modules:e,frameworkOverrides:new ae(!0)},n=(this.gridOptions=this.props.gridOptions||{},this.props.children);C.hasChildColumns(n)&&(this.gridOptions.columnDefs=C.mapChildColumnDefs(n)),this.gridOptions=me.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new me.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(me.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(me.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e)},Q.prototype.componentWillUnmount=function(){this.destroyFuncs.forEach(function(e){return e()})},Q.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},Q.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},Q.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,C.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=C.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},Q.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){me._.includes(me.ComponentUtil.ALL_PROPERTIES,e)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])||(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]}))}),me.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},Q.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return me.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},Q.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},Q.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},Q.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},Q);function Q(e){var t=A.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.changeDetectionService=new w,t.eGui=de.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.state={context:void 0},t.portalManager=new T(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}s(ne,ee=me.BaseComponentWrapper),ne.prototype.createWrapper=function(e,t){return new P(e,this.parent,t)};var ee,te=ne;function ne(e){var t=ee.call(this)||this;return t.parent=e,t}var re,oe=fe.forwardRef(function(n,e){var t=fe.useContext(Ce),l=t.ctrlsFactory,r=t.context,p=t.gridOptionsWrapper,f=t.resizeObserverService,o=t.clientSideRowModel,a=t.serverSideRowModel,t=fe.useState(new ge),i=t[0],m=t[1],t=fe.useState(new ge),s=t[0],d=t[1],t=fe.useState(),h=t[0],C=t[1],t=fe.useState(),g=t[0],y=t[1],u=fe.useRef(),c=fe.useRef(null),t=fe.useMemo(function(){return i.toString()+" ag-details-row"},[i]),E=fe.useMemo(function(){return s.toString()+" ag-details-grid"},[s]),e=(e&&fe.useImperativeHandle(e,function(){return{refresh:function(){return u.current.refresh()}}}),fe.useEffect(function(){n.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")},[]),fe.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return m(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return d(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return C(e)},setRowData:function(e){return y(e)}},t=l.getInstance("detailCellRenderer");if(t)return r.createBean(t),t.init(e,n),u.current=t,p.isDetailRowAutoHeight()&&(f.observeResize(c.current,e=function(){var e;null==c.current||null!=(e=c.current.clientHeight)&&0<e&&setTimeout(function(){n.node.setRowHeight(e),o?o.onRowHeightChanged():a&&a.onRowHeightChanged()},0)}),e()),function(){r.destroyBean(t)}},[]),fe.useCallback(function(e,t){u.current.registerDetailWithMaster(e,t)},[]));return de.createElement("div",{className:t,ref:c},h&&de.createElement(J,he({className:E},h,{rowData:g,setGridApi:e})))}),ae=(s(ie,re=me.VanillaFrameworkOverrides),ie.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},ie.prototype.isFrameworkComponent=function(e){if(!e)return!1;e=e.prototype;return!(e&&"getGui"in e)},ie);function ie(e){var t=re.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:F,agGroupRowRenderer:F,agDetailCellRenderer:oe},t.reactUi=e,t}s(r,se=fe.Component),r.prototype.render=function(){var t=this;return de.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},r.prototype.createStyleForDiv=function(){return he({height:"100%"},this.props.containerStyle||{})},r.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new pe(this,this.portalManager)},modules:e,frameworkOverrides:new ae(!1)},t=this.props.gridOptions||{},n=this.props.children;C.hasChildColumns(n)&&(t.columnDefs=C.mapChildColumnDefs(n)),this.gridOptions=me.ComponentUtil.copyAttributesToGridOptions(t,this.props),new me.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},r.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},r.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},r.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},r.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},r.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},r.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,C.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=C.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},r.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){me._.includes(me.ComponentUtil.ALL_PROPERTIES,e)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])||(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]}))}),me.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},r.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},r.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},r.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},r.prototype.processSynchronousChanges=function(e){var t,n=he({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length&&this.api&&me.ComponentUtil.processOnChange(t,this.gridOptions,this.api,this.columnApi)),n},r.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&me.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},r.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:r.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var se,ue=r;function r(e){var t=se.call(this,e)||this;return t.props=e,t.changeDetectionService=new w,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new T(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function ce(e,t){e.forEach(function(e){ue[e]=t})}ue.propTypes={gridOptions:e.object},ce(me.ComponentUtil.getEventCallbacks(),e.func),ce(me.ComponentUtil.BOOLEAN_PROPERTIES,e.bool),ce(me.ComponentUtil.STRING_PROPERTIES,e.string),ce(me.ComponentUtil.OBJECT_PROPERTIES,e.object),ce(me.ComponentUtil.ARRAY_PROPERTIES,e.array),ce(me.ComponentUtil.NUMBER_PROPERTIES,e.number),ce(me.ComponentUtil.FUNCTION_PROPERTIES,e.func);s(ve,le=me.BaseComponentWrapper),ve.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new m(e,this.agGridReact,this.portalManager,t):new P(e,this.portalManager,t)};var le,pe=ve;function ve(e,t){var n=le.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}s(Se,Re=fe.Component),Se.prototype.render=function(){var e=this.props.suppressReactUi?ue:J;return de.createElement(e,he({},this.props,{setGridApi:this.setGridApi}))};var Re,c=Se;function Se(){var n=null!==Re&&Re.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}t.AgGridReact=c,t.AgGridReactLegacy=ue,t.AgGridReactFire=J,t.AgGridColumn=C,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(t,e,O,r,se,ue){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var ce="default"in se?se.default:se,b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function G(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}n(a,M=function(){}),a.prototype.getGui=function(){return this.eParentElement},a.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},a.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},a.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)}))},a.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},a.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},a.prototype.isStatelessComponent=function(){return this.statelessComponent},a.prototype.getReactComponentName=function(){return this.reactComponent.name},a.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},a.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},a.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},a.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},a.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});{if(o)return(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0;setTimeout(function(){return r.callMethod(e,t)})}},a.prototype.addMethod=function(e,t){this[e]=t};var M,o=a;function a(e,t,n){var r=M.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var P=0;function i(){return"agPortalKey_"+ ++P}n(s,D=o),s.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ue.AgPromise(function(e){return n.createReactComponent(t,e)})},s.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),se.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},s.prototype.fallbackMethodAvailable=function(e){return!1},s.prototype.fallbackMethod=function(e,t){},s.prototype.isSlowRenderer=function(){return this.staticRenderTime>=s.SLOW_RENDERING_THRESHOLD},s.prototype.isNullValue=function(){return""===this.staticMarkup},s.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=se.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=O.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},s.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},s.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},s.SLOW_RENDERING_THRESHOLD=3;var D,I=s;function s(e,t,n,r){e=D.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(c,N=se.Component),c.prototype.render=function(){return null},c.mapChildColumnDefs=function(e){return ce.Children.map(e,function(e){return e?c.toColDef(e.props):null})},c.toColDef=function(e){var t=e.children,e=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}(e,["children"]);return c.hasChildColumns(t)&&(e.children=c.mapChildColumnDefs(t)),e},c.hasChildColumns=function(e){return 0<ce.Children.count(e)};var N,u=c;function c(e){var t=N.call(this,e)||this;return t.props=e,t}function l(e,t){e.forEach(function(e){u[e]=t})}l(ue.ColDefUtil.BOOLEAN_PROPERTIES,e.bool),l(ue.ColDefUtil.STRING_PROPERTIES,e.string),l(ue.ColDefUtil.OBJECT_PROPERTIES,e.object),l(ue.ColDefUtil.ARRAY_PROPERTIES,e.array),l(ue.ColDefUtil.NUMBER_PROPERTIES,e.number),l(ue.ColDefUtil.FUNCTION_PROPERTIES,e.func),(C=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",C.DeepValueCheck="DeepValueCheck",C.NoCheck="NoCheck";A.prototype.areEqual=function(e,t){return this.strategy(e,t)};var k=A;function A(e){this.strategy=e}p.prototype.areEqual=function(e,t){return p.areEquivalent(p.copy(e),p.copy(t))},p.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},p.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce(function(t,n){return Object.keys(n).forEach(function(e){t[e]=n[e]}),t},{})},p.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},p.areEquivalent=function(t,n){if(t=p.unwrapStringOrNumber(t),n=p.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(p.isNaN(t)&&p.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return!1;if("object"!=typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var e=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var o=void 0;if(e)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some(function(e){return e===n}))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some(function(e){return e===t}))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var a={};for(o in t)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in n)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in a)if(!this.areEquivalent(t[o],n[o]))return!1;return!0}finally{e&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}};var F=p;function p(){}B.prototype.getStrategy=function(e){return this.strategyMap[e]};var _=B;function B(){var e;this.strategyMap=((e={})[t.ChangeDetectionStrategyType.DeepValueCheck]=new F,e[t.ChangeDetectionStrategyType.IdentityCheck]=new k(function(e,t){return e===t}),e[t.ChangeDetectionStrategyType.NoCheck]=new k(function(e,t){return!1}),e)}n(f,j=o),f.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ue.AgPromise(function(e){return t.createReactComponent(e)})},f.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=se.createElement(this.reactComponent,le(le({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},f.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},f.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},f.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},f.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===O.renderToStaticMarkup(se.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1},f.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},f.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},f.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var j,H=f;function f(e,t,n){e=j.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}m.prototype.getPortals=function(){return this.portals},m.prototype.destroy=function(){this.destroyed=!0},m.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},m.prototype.getComponentWrappingElement=function(){return this.wrappingElement},m.prototype.mountReactPortal=function(e,t,n){this.portals=G(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},m.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},m.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},m.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},m.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var W=m;function m(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||m.MAX_COMPONENT_CREATION_TIME_IN_MS}function x(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,i,s,o=e.newAgStackInstance();if(o)return s=!1,o.then(function(e){s?t.destroyBean(e):(i=(a=e).getGui(),n.appendChild(i),V(r,a))}),function(){s=!0,a&&(i&&i.parentElement&&i.parentElement.removeChild(i),t.destroyBean(a),r&&V(r,void 0))}}}function V(e,t){e&&(e instanceof Function?e(t):e.current=t)}function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var pe=ce.createContext({}),fe=(d.prototype.setClass=function(e,t){if(!!this.classesMap[e]==t)return this;var n=new d;return n.classesMap=le({},this.classesMap),n.classesMap[e]=t,n},d.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},d);function d(){this.classesMap={}}function me(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function L(r,o){se.useEffect(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}},[])}var q,T=se.forwardRef(function(n,e){var r=se.useContext(pe).context,o=se.useRef(null),t=se.useRef(null),a=se.useRef(null),i=se.useRef(null),s=se.useRef(null),u=se.useState(),c=u[0],l=u[1],u=se.useState(),p=u[0],f=u[1],u=se.useState(),m=u[0],d=u[1],u=se.useState(new fe),h=u[0],C=u[1],u=se.useState(new fe),g=u[0],y=u[1],u=se.useState(new fe),E=u[0],v=u[1],u=se.useState(new fe),R=u[0],S=u[1],u=(se.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),se.useEffect(function(){return x(c,r,t.current)},[c]),se.useEffect(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return v(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ue.GroupCellRendererCtrl);return t.init(e,o.current,a.current,i.current,s.current,T,n),function(){r.destroyBean(t)}},[]),se.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=se.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=se.useMemo(function(){return"ag-group-contracted "+E.toString()},[E]),O=se.useMemo(function(){return"ag-group-checkbox "+R.toString()},[R]),b=c&&c.componentFromFramework,M=b?c.componentClass:void 0,P=null==c&&null!=m;return ce.createElement("span",le({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),ce.createElement("span",{className:e,ref:i}),ce.createElement("span",{className:w,ref:s}),ce.createElement("span",{className:O,ref:a}),ce.createElement("span",{className:"ag-group-value",ref:t},P&&ce.createElement(ce.Fragment,null,m),b&&ce.createElement(M,le({},c.params))),ce.createElement("span",{className:"ag-group-child-count"},p))}),z=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(),r=n[0],o=n[1],n=se.useState(),a=n[0],i=n[1],n=se.useState(),s=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],h=se.useRef(null),C=se.useRef(null),g=se.useRef(),y=e.ctrl,E=se.useMemo(function(){return new ue.CssClassManager(function(){return h.current})},[]),n=(se.useEffect(function(){y.setComp({setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return E.addOrRemoveCssClass(e,t)},setAriaSort:function(e){return l(e)},setColId:function(e){return u(e)},setTitle:function(e){return i(e)},setAriaDescribedBy:function(e){return f(e)},setUserCompDetails:function(e){return d(e)},getUserCompInstance:function(){return g.current||void 0}},h.current,C.current);var e=y.getSelectAllGui();C.current.insertAdjacentElement("afterend",e)},[]),se.useEffect(function(){return x(m,t,h.current,g)},[m]),se.useEffect(function(){var t=void 0;h.current.childNodes.forEach(function(e){null!=e&&e!==C.current&&(t=e)}),y.setDragSource(t)},[m]),se.useMemo(function(){return{width:r}},[r])),e=se.useMemo(function(){var e;return!!((null==(e=m)?void 0:e.componentFromFramework)&&me(m.componentClass))},[m]),v=m&&m.componentFromFramework,R=m&&m.componentClass;return ce.createElement("div",{ref:h,className:"ag-header-cell",style:n,title:a,"col-id":s,"aria-sort":c,role:"columnheader",tabIndex:-1,"aria-describedby":p},ce.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),v&&e&&ce.createElement(R,le({},m.params)),v&&!e&&ce.createElement(R,le({},m.params,{ref:g})))}),K=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new fe),r=n[0],o=n[1],n=se.useState(new fe),a=n[0],i=n[1],n=se.useState(),s=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],n=se.useState(),h=n[0],C=n[1],g=se.useRef(null),y=se.useRef(null),E=e.ctrl,n=(se.useEffect(function(){E.setComp({setWidth:function(e){return u(e)},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},addOrRemoveResizableCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setAriaExpanded:function(e){return d(e)}},g.current,y.current)},[]),se.useEffect(function(){return x(h,t,g.current)},[h]),se.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&E.setDragSource(t)},[h]),se.useMemo(function(){return{width:s}},[s])),e=se.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),v=se.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),R=h&&h.componentFromFramework,S=h&&h.componentClass;return ce.createElement("div",{ref:g,className:e,style:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},R&&ce.createElement(S,le({},h.params)),ce.createElement("div",{ref:y,className:v}))}),Y=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new fe),r=n[0],o=n[1],n=se.useState(new fe),a=n[0],i=n[1],n=se.useState(new fe),s=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],m=se.useRef(null),d=se.useRef(null),n=se.useRef(null),h=se.useRef(null),C=se.useRef(),g=se.useMemo(function(){return new ue.AgPromise(function(e){return C.current=e})},[]),y=e.ctrl,e=(se.useEffect(function(){y.setComp({addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},addOrRemoveButtonWrapperCssClass:function(t,n){return u(function(e){return e.setClass(t,n)})},setWidth:function(e){return l(e)},setCompDetails:function(e){return f(e)},getFloatingFilterComp:function(){return g},setMenuIcon:function(e){return h.current.appendChild(e)}},m.current,h.current,d.current)},[]),se.useEffect(function(){return x(p,t,d.current,C.current)},[p]),se.useMemo(function(){return{width:c}},[c])),E=se.useMemo(function(){return"ag-header-cell ag-floating-filter "+r.toString()},[r]),v=se.useMemo(function(){return a.toString()},[a]),R=se.useMemo(function(){return"ag-floating-filter-button "+s.toString()},[a]),S=se.useMemo(function(){return!!(p&&p.componentFromFramework&&me(p.componentClass))},[p]),w=p&&p.componentFromFramework,O=p&&p.componentClass;return ce.createElement("div",{ref:m,className:E,style:e,role:"gridcell",tabIndex:-1},ce.createElement("div",{ref:d,className:v,role:"presentation"},w&&S&&ce.createElement(O,le({},p.params)),w&&!S&&ce.createElement(O,le({},p.params,{ref:C.current}))),ce.createElement("div",{ref:n,className:R,role:"presentation"},ce.createElement("button",{ref:h,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),$=se.memo(function(e){var o=se.useContext(pe).gridOptionsWrapper,t=se.useState(),n=t[0],r=t[1],t=se.useState(),a=t[0],i=t[1],t=se.useState(),s=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],t=se.useRef(null),h=e.ctrl,C=h.getType()===ue.HeaderRowType.COLUMN,g=h.getType()===ue.HeaderRowType.COLUMN_GROUP,y=h.getType()===ue.HeaderRowType.FLOATING_FILTER,E=se.useCallback(function(e,t){if(o.isEnsureDomOrder())return t;var n=ue._.mapById(e,function(e){return e.getInstanceId()}),r=ue._.mapById(t,function(e){return e.getInstanceId()});return G(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())}))},[]),e=(se.useEffect(function(){h.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return i(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return d(function(e){return E(e,t)})},setWidth:function(e){return l(e)},setAriaRowIndex:function(e){return f(e)}})},[]),se.useMemo(function(){return{transform:n,height:a,top:s,width:c}},[n,a,s,c])),v=se.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=se.useCallback(function(e){switch(h.getType()){case ue.HeaderRowType.COLUMN_GROUP:return ce.createElement(K,{ctrl:e,key:e.getInstanceId()});case ue.HeaderRowType.FLOATING_FILTER:return ce.createElement(Y,{ctrl:e,key:e.getInstanceId()});default:return ce.createElement(z,{ctrl:e,key:e.getInstanceId()})}},[]);return ce.createElement("div",{ref:t,className:v,role:"row",style:e,"aria-rowindex":p},m.map(R))}),h=se.memo(function(n){function e(){return p.map(function(e){return ce.createElement($,{ctrl:e,key:e.getInstanceId()})})}var t=se.useState(new fe),r=t[0],o=t[1],t=se.useState(),a=t[0],i=t[1],t=se.useState(),s=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState([]),p=t[0],f=t[1],m=se.useContext(pe).context,d=se.useRef(null),t=n.pinned===ue.Constants.PINNED_LEFT,h=n.pinned===ue.Constants.PINNED_RIGHT,C=!t&&!h,g=(se.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setCtrls:function(e){return f(e)},setCenterWidth:function(e){return i(e)},setContainerTransform:function(e){return u(e)},setPinnedContainerWidth:function(e){return l(e)}},t=m.createBean(new ue.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,d.current),function(){m.destroyBean(t)}},[]),se.useMemo(function(){return r.toString()},[r])),y=se.useMemo(function(){return{width:a,transform:s}},[a,s]),E=se.useMemo(function(){return{width:c,minWidth:c,maxWidth:c}},[c]);return ce.createElement(ce.Fragment,null,t&&ce.createElement("div",{ref:d,className:"ag-pinned-left-header "+g,role:"presentation",style:E},e()),h&&ce.createElement("div",{ref:d,className:"ag-pinned-right-header "+g,role:"presentation",style:E},e()),C&&ce.createElement("div",{ref:d,className:"ag-header-viewport "+g,role:"presentation"},ce.createElement("div",{className:"ag-header-container",role:"rowgroup",style:y},e())))}),X=se.memo(function(){var e=se.useState(new fe),t=e[0],r=e[1],e=se.useState(),n=e[0],o=e[1],a=se.useContext(pe).context,i=se.useRef(null),e=(se.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ue.GridHeaderCtrl);return t.setComp(e,i.current,i.current),function(){a.destroyBean(t)}},[]),se.useMemo(function(){return"ag-header "+t.toString()},[t])),s=se.useMemo(function(){return{height:n,minHeight:n}},[n]);return ce.createElement("div",{ref:i,className:e,style:s,role:"presentation"},ce.createElement(h,{pinned:ue.Constants.PINNED_LEFT}),ce.createElement(h,{pinned:null}),ce.createElement(h,{pinned:ue.Constants.PINNED_RIGHT}))}),de=se.memo(function(u){var e=se.useState(),t=e[0],c=e[1],e=se.useContext(pe),l=e.context,p=e.popupService,f=e.gridOptionsWrapper;return se.useEffect(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=f.isStopEditingWhenCellsLoseFocus(),a=l.createBean(new ue.PopupEditorWrapper(r.params)),r=a.getGui(),i=(!u.jsChildComp||(i=u.jsChildComp.getGui())&&r.appendChild(i),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,keepWithinBounds:!0}),e=("under"===e.popupPosition?p.positionPopupUnderComponent:p.positionPopupOverComponent).bind(p,i),i=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:i("ariaLabelCellEditor","Cell Editor")}),s=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=s&&s(),l.destroyBean(a)}},[]),ce.createElement(ce.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),Z=se.memo(function(e){function t(){return ce.createElement(ce.Fragment,null,null!=v&&(s=S,u=ie,c=b,l=A,p=ae,f=ne,m=(i=v).compDetails,i=i.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=i&&i.toString?i.toString():i,ce.createElement(ce.Fragment,null,l?ce.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=R&&(i=R,l=oe,u=re,f=O.current,e=E,t=J,n=i.compDetails,r=n.componentClass,o=n.componentFromFramework&&!i.popup,a=n.componentFromFramework&&i.popup,n=!n.componentFromFramework&&i.popup,ce.createElement(ce.Fragment,null,o&&ce.createElement(r,le({},i.compDetails.params,{ref:l})),a&&ce.createElement(de,{editDetails:i,cellCtrl:e,eParentCell:f,wrappedContent:ce.createElement(r,le({},i.compDetails.params,{ref:u}))}),n&&t&&ce.createElement(de,{editDetails:i,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,i,s,u,c,l,p,f,m,d,h,C,g;function y(){return ce.createElement(ce.Fragment,null,d&&ce.createElement(ce.Fragment,null,g),h&&!p&&ce.createElement(C,le({},m.params,{key:s,ref:c})),h&&p&&ce.createElement(C,le({},m.params,{key:s})))}}var n,r,o,a,i,s,u,c=se.useContext(pe).context,E=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=se.useState(),v=e[0],f=e[1],e=se.useState(),R=e[0],m=e[1],e=se.useState(1),S=e[0],d=e[1],e=se.useState(new fe),h=e[0],x=e[1],e=se.useState(),_=e[0],B=e[1],e=se.useState(),U=e[0],L=e[1],e=se.useState(),j=e[0],H=e[1],e=se.useState(),W=e[0],V=e[1],e=se.useState(),q=e[0],z=e[1],e=se.useState(),K=e[0],Y=e[1],e=se.useState(!1),C=e[0],$=e[1],e=se.useState(!1),g=e[0],X=e[1],e=se.useState(!1),y=e[0],Z=e[1],e=se.useState(),J=e[0],w=e[1],e=se.useMemo(function(){return E.isForceWrapper()},[]),O=se.useRef(null),b=se.useRef(null),M=se.useRef(),P=se.useRef(),T=se.useRef(),D=se.useState(0),Q=D[0],ee=D[1],D=se.useCallback(function(e){T.current=e,ee(function(e){return e+1})},[]),I=se.useRef(),N=se.useState(0),k=N[0],te=N[1],ne=se.useCallback(function(e){I.current=e,te(function(e){return e+1})},[]),N=null!=v&&(C||y||g),A=e||N,F=se.useCallback(function(e,t){var n,r,o,a,i;(P.current=t)&&(e=e,n=t,i=(r=E).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ue._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ue._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout(function(){return E.stopEditing()},0))},[]),re=se.useCallback(function(e){return F(!0,e)},[]),oe=se.useCallback(function(e){return F(!1,e)},[]),G=(n=v,r=A,o=I.current,e=k,a=M,i=O,k=se.useContext(pe),s=k.context,k.userComponentFactory,u=se.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),s.destroyBean(t),a.current=void 0)},[]),se.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:i.current).appendChild(t),a.current=e)}else u()},[n,r,e]),se.useEffect(function(){return u},[]),se.useRef()),ae=(se.useEffect(function(){var e=G.current,t=v;G.current=v,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass&&null!=b.current&&null!=b.current.refresh&&1!=b.current.refresh(t.params)&&d(function(e){return e+1}))},[v]),se.useEffect(function(){if(R&&!R.compDetails.componentFromFramework){var e,t=R.compDetails,n=!0===R.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),F(n,r),n||(O.current.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),w(r),function(){c.destroyBean(r),F(n,void 0),w(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[R]),se.useEffect(function(){var n,e;if(E&&c&&(H(T.current?"cell-"+E.getInstanceId():void 0),T.current&&A))return n=[],e=function(e){var t;return e&&(t=e.getGui(),T.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ue._.removeFromParent(t)})),e},C&&e(E.createSelectionCheckbox()),y&&e(E.createDndSource()),g&&e(E.createRowDragComp()),function(){n.forEach(function(e){e()})}},[A,y,g,C,Q]),se.useEffect(function(){var e;E&&(e=T.current||void 0,E.setComp({addOrRemoveCssClass:function(t,n){return x(function(e){return e.setClass(t,n)})},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return O.current},setTabIndex:function(e){return L(e)},setRole:function(e){return V(e)},setColId:function(e){return z(e)},setTitle:function(e){return Y(e)},setIncludeSelection:function(e){return $(e)},setIncludeRowDrag:function(e){return X(e)},setIncludeDndSource:function(e){return Z(e)},getCellEditor:function(){return P.current||null},getCellRenderer:function(){return b.current||M.current},getParentOfValue:function(){return I.current||T.current||O.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},null,O.current,e,l,p))},[]),se.useMemo(function(){return!!(v&&v.compDetails&&v.compDetails.componentFromFramework&&me(v.compDetails.componentClass))},[v])),k=se.useMemo(function(){var e=h.toString();return A||(e+=" ag-cell-value"),e},[h,N]),ie=se.useMemo(function(){return E.getInstanceId()},[]);return ce.createElement("div",{ref:O,className:k,style:_,tabIndex:U,role:W,"col-id":q,title:K,"aria-describedby":j},A?ce.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:D},t()):t())}),J=se.memo(function(e){var t=se.useContext(pe).context,n=e.rowCtrl,r=e.containerType,e=se.useState(),o=e[0],a=e[1],e=se.useState(),i=e[0],s=e[1],e=se.useState(),u=e[0],c=e[1],e=se.useState(),l=e[0],p=e[1],e=se.useState(),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],e=se.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=se.useState(),y=e[0],E=e[1],e=se.useState(!1),v=e[0],R=e[1],e=se.useState(n.getInitialRowTop()),S=e[0],w=e[1],e=se.useState(n.getInitialTransform()),O=e[0],b=e[1],M=se.useRef(null),P=se.useRef(),T=se.useRef(!1),e=se.useState(0),D=e[0],I=e[1],N=(se.useEffect(function(){var e;T.current||!y||10<D||((e=null==(e=M.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),T.current=!0):I(function(e){return e+1}))},[y,D]),se.useMemo(function(){return new ue.CssClassManager(function(){return M.current})},[])),e=(se.useEffect(function(){n.isAlive()&&n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return b(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return R(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return s(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(s){return g(function(e){var t,n=e,e=s;if(v)return t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t;var r=[],o=[],a=new Map,i=new Map;return e.forEach(function(e){return i.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();i.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:G(r,o),instanceIdMap:a}})},showFullWidth:function(e){return E(e)},getFullWidthCellRenderer:function(){return P.current}},M.current,r)},[]),se.useEffect(function(){return x(y,t,M.current,P)},[y]),se.useMemo(function(){var e={top:S,transform:O};return Object.assign(e,d),e},[S,O,d])),k=y&&y.componentFromFramework,A=null!=C,F=se.useMemo(function(){var e;return!!((null==(e=y)?void 0:e.componentFromFramework)&&me(y.componentClass))},[y]);return ce.createElement("div",{ref:M,role:u,style:e,"row-index":o,"row-id":i,"row-business-key":l,tabIndex:f},A&&C.list.map(function(e){return ce.createElement(Z,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,ce.createElement(ce.Fragment,null,F&&ce.createElement(u,le({},y.params)),!F&&ce.createElement(u,le({},y.params,{ref:P})))))}),Q=se.memo(function(e){function t(){return ce.createElement("div",{className:v,ref:y,role:"rowgroup",style:b},i.map(function(e){return ce.createElement(J,{rowCtrl:e,containerType:h,key:e.getInstanceId()})}))}var r=se.useContext(pe).context,n=se.useState(""),o=n[0],a=n[1],n=se.useState([]),i=n[0],s=n[1],n=se.useState([]),u=n[0],c=n[1],n=se.useState(!1),l=n[0],p=n[1],n=se.useState(""),f=n[0],m=n[1],d=e.name,h=se.useMemo(function(){return ue.getRowContainerTypeForName(d)},[d]),C=se.useRef(null),g=se.useRef(null),y=se.useRef(null),E=se.useMemo(function(){return ue.RowContainerCtrl.getRowContainerCssClasses(d)},[d]),n=se.useMemo(function(){return U(E.wrapper)},[]),e=se.useMemo(function(){return U(E.viewport)},[]),v=se.useMemo(function(){return U(E.container)},[]),R=d===ue.RowContainerName.CENTER,S=d===ue.RowContainerName.TOP_CENTER||d===ue.RowContainerName.BOTTOM_CENTER,w=!R&&!S,O=(L(" AG Row Container "+d+" ",R?C:S?g:y),se.useEffect(function(){s(function(e){if(l)return u;var t=e.filter(function(e){return 0<=u.indexOf(e)}),e=u.filter(function(e){return t.indexOf(e)<0});return G(t,e)})},[l,u]),se.useEffect(function(){var e=[],t={setViewportHeight:a,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return p(e)},setContainerWidth:function(e){return m(e)}},n=r.createBean(new ue.RowContainerCtrl(d));return e.push(n),n.setComp(t,y.current,g.current,C.current),function(){r.destroyBeans(e)}},[]),se.useMemo(function(){return{height:o}},[o])),b=se.useMemo(function(){return{width:f}},[f]);return ce.createElement(ce.Fragment,null,R&&ce.createElement("div",{className:n,ref:C,role:"presentation"},ce.createElement("div",{className:e,ref:g,role:"presentation",style:O},t())),S&&ce.createElement("div",{className:e,ref:g,role:"presentation",style:O},t()),w&&t())}),ee=se.memo(function(){function o(e){return ce.createElement(Q,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return ce.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=se.useContext(pe),a=t.context,i=t.agStackComponentsRegistry,s=t.resizeObserverService,t=se.useState(""),n=t[0],u=t[1],t=se.useState(0),r=t[0],c=t[1],t=se.useState(0),l=t[0],p=t[1],t=se.useState(0),f=t[0],m=t[1],t=se.useState(0),d=t[0],h=t[1],t=se.useState(""),C=t[0],g=t[1],t=se.useState(""),y=t[0],E=t[1],t=se.useState(null),v=t[0],R=t[1],t=se.useState(""),S=t[0],w=t[1],t=se.useState(null),O=t[0],b=t[1],t=se.useState(""),M=t[0],P=t[1],t=se.useState(null),T=t[0],D=t[1],I=se.useRef(null),N=se.useRef(null),k=se.useRef(null),A=se.useRef(null),t=(L(" AG Grid Body ",I),L(" AG Pinned Top ",N),L(" AG Middle ",k),L(" AG Pinned Bottom ",A),se.useEffect(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=i.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},I.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),I.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),I.current.appendChild(document.createComment(" AG Overlay Wrapper ")),I.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:c,setRowCount:p,setTopHeight:m,setBottomHeight:h,setTopDisplay:g,setBottomDisplay:E,setColumnMovingCss:R,updateLayoutClasses:w,setAlwaysVerticalScrollClass:b,setPinnedTopBottomOverflowY:P,setCellSelectableCss:D,registerBodyViewportResizeListener:function(e){var t=s.observeResize(k.current,e);r.push(function(){return t()})}},t=a.createBean(new ue.GridBodyCtrl),n.push(t),t.setComp(e,I.current,k.current,N.current,A.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}},[]),se.useMemo(function(){return U("ag-root","ag-unselectable",v,S)},[v,S])),F=se.useMemo(function(){return U("ag-body-viewport",n,S,O,T)},[n,S,O,T]),G=se.useMemo(function(){return U("ag-floating-top",T)},[T]),x=se.useMemo(function(){return U("ag-floating-bottom",T)},[T]),_=se.useMemo(function(){return{height:f,minHeight:f,display:C,overflowY:M}},[f,C,M]),B=se.useMemo(function(){return{height:d,minHeight:d,display:y,overflowY:M}},[d,y,M]);return ce.createElement("div",{ref:I,className:t,role:"grid","aria-colcount":r,"aria-rowcount":l},ce.createElement(X,null),e({section:N,className:G,style:_,children:[ue.RowContainerName.TOP_LEFT,ue.RowContainerName.TOP_CENTER,ue.RowContainerName.TOP_RIGHT,ue.RowContainerName.TOP_FULL_WIDTH]}),e({section:k,className:F,children:[ue.RowContainerName.LEFT,ue.RowContainerName.CENTER,ue.RowContainerName.RIGHT,ue.RowContainerName.FULL_WIDTH]}),e({section:A,className:x,style:B,children:[ue.RowContainerName.BOTTOM_LEFT,ue.RowContainerName.BOTTOM_CENTER,ue.RowContainerName.BOTTOM_RIGHT,ue.RowContainerName.BOTTOM_FULL_WIDTH]}))}),C=se.forwardRef(function(e,t){function n(e){return ce.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,i=e.gridCtrl,s=se.useContext(pe).context,u=se.useRef(null),c=se.useRef(null),l=se.useRef(),e=se.useState(),p=e[0],f=e[1];se.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),se.useEffect(function(){var e=u.current,t=c.current,n=l.current=s.createBean(new ue.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return i.focusInnerElement(e)}}));return function(){s.destroyBean(n)}},[]);return ce.createElement(ce.Fragment,null,n("top"),r,n("bottom"))}),te=se.memo(C),ne=se.memo(function(e){var p=e.context,e=se.useState(""),t=e[0],n=e[1],e=se.useState(""),r=e[0],o=e[1],e=se.useState(""),a=e[0],i=e[1],e=se.useState(null),s=e[0],u=e[1],e=se.useState(null),c=e[0],l=e[1],e=se.useState(!1),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],C=se.useRef(null),g=se.useRef(null),y=se.useRef(),E=se.useRef(null),v=se.useRef(function(){}),e=se.useCallback(function(){},[]),R=se.useMemo(function(){return p.getBean("beans")},[]),S=(L(" AG Grid ",g),se.useEffect(function(){var e=C.current=p.createBean(new ue.GridCtrl);return function(){p.destroyBean(e),C.current=null}},[]),se.useEffect(function(){var e=C.current,t=(v.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ue.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:i,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)},[]),se.useEffect(function(){var e,t,n,r,o,a,i,s,u,c,l;if(d)return e=C.current,t=[],o=R.agStackComponentsRegistry,c=o.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],i=g.current,s=E.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),i.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=s.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(s=p.createBean(new n)).getGui(),i.insertAdjacentElement("beforeend",l),a.push(l),t.push(s)),o&&(l=(u=p.createBean(new o)).getGui(),i.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),i.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),se.useMemo(function(){return U("ag-root-wrapper",t,r,a)},[t,r,a])),w=se.useMemo(function(){return U("ag-root-wrapper-body","ag-focus-managed",a)},[a]),O=se.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=s?s:""}},[c,s]),b=E.current,M=se.useCallback(function(e){y.current=e,h(!0)},[]);return ce.createElement("div",{ref:g,className:S,style:O},ce.createElement("div",{className:w,ref:E},f&&b&&ce.createElement(pe.Provider,{value:R},ce.createElement(te,{ref:M,eFocusableElement:b,onTabKeyDown:e,gridCtrl:C.current},ce.createElement(ee,null)))))}),v=(n(g,q=se.Component),g.prototype.render=function(){return ce.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&ce.createElement(ne,{context:this.state.context}),this.portalManager.getPortals())},g.prototype.createStyleForDiv=function(){return le({height:"100%"},this.props.containerStyle||{})},g.prototype.componentDidMount=function(){var t=this,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new oe(this.portalManager)},modules:e,frameworkOverrides:new he(!0)},n=(this.gridOptions=this.props.gridOptions||{},this.props.children);u.hasChildColumns(n)&&(this.gridOptions.columnDefs=u.mapChildColumnDefs(n)),this.gridOptions=ue.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new ue.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ue.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ue.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e)},g.prototype.componentWillUnmount=function(){this.destroyFuncs.forEach(function(e){return e()})},g.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},g.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},g.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,u.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=u.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},g.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){ue._.includes(ue.ComponentUtil.ALL_PROPERTIES,e)&&!o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])&&(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ue.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},g.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ue.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},g.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},g.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},g.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},g);function g(e){var t=q.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.changeDetectionService=new _,t.eGui=ce.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.state={context:void 0},t.portalManager=new W(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}n(y,re=ue.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return new H(e,this.parent,t)};var re,oe=y;function y(e){var t=re.call(this)||this;return t.parent=e,t}var ae,ie=se.forwardRef(function(n,e){var t=se.useContext(pe),r=t.ctrlsFactory,o=t.context,a=t.gridOptionsWrapper,i=t.resizeObserverService,s=t.clientSideRowModel,u=t.serverSideRowModel,t=se.useState(new fe),c=t[0],l=t[1],t=se.useState(new fe),p=t[0],f=t[1],t=se.useState(),m=t[0],d=t[1],t=se.useState(),h=t[0],C=t[1],g=se.useRef(),y=se.useRef(null),t=se.useMemo(function(){return c.toString()+" ag-details-row"},[c]),E=se.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&se.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),se.useEffect(function(){n.template&&"string"==typeof n.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")},[]),se.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)}},t=r.getInstance("detailCellRenderer");if(t)return o.createBean(t),t.init(e,n),g.current=t,a.isDetailRowAutoHeight()&&(i.observeResize(y.current,e=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){n.node.setRowHeight(e),s?s.onRowHeightChanged():u&&u.onRowHeightChanged()},0)}),e()),function(){o.destroyBean(t)}},[]),se.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return ce.createElement("div",{className:t,ref:y},m&&ce.createElement(v,le({className:E},m,{rowData:h,setGridApi:e})))}),he=(n(E,ae=ue.VanillaFrameworkOverrides),E.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},E.prototype.isFrameworkComponent=function(e){if(!e)return!1;e=e.prototype;return!(e&&"getGui"in e)},E);function E(e){var t=ae.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:T,agGroupRowRenderer:T,agDetailCellRenderer:ie},t.reactUi=e,t}n(S,Ce=se.Component),S.prototype.render=function(){var t=this;return ce.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},S.prototype.createStyleForDiv=function(){return le({height:"100%"},this.props.containerStyle||{})},S.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new ye(this,this.portalManager)},modules:e,frameworkOverrides:new he(!1)},t=this.props.gridOptions||{},n=this.props.children;u.hasChildColumns(n)&&(t.columnDefs=u.mapChildColumnDefs(n)),this.gridOptions=ue.ComponentUtil.copyAttributesToGridOptions(t,this.props),new ue.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},S.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},S.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||this.props.gridOptions.getRowId)},S.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},S.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},S.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},S.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,u.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=u.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},S.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){ue._.includes(ue.ComponentUtil.ALL_PROPERTIES,e)&&!o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])&&(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ue.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},S.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},S.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},S.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},S.prototype.processSynchronousChanges=function(e){var t,n=le({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length&&this.api&&ue.ComponentUtil.processOnChange(t,this.gridOptions,this.api,this.columnApi)),n},S.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ue.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},S.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:S.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var Ce,R=S;function S(e){var t=Ce.call(this,e)||this;return t.props=e,t.changeDetectionService=new _,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new W(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function w(e,t){e.forEach(function(e){R[e]=t})}R.propTypes={gridOptions:e.object},w(ue.ComponentUtil.getEventCallbacks(),e.func),w(ue.ComponentUtil.BOOLEAN_PROPERTIES,e.bool),w(ue.ComponentUtil.STRING_PROPERTIES,e.string),w(ue.ComponentUtil.OBJECT_PROPERTIES,e.object),w(ue.ComponentUtil.ARRAY_PROPERTIES,e.array),w(ue.ComponentUtil.NUMBER_PROPERTIES,e.number),w(ue.ComponentUtil.FUNCTION_PROPERTIES,e.func);n(Ee,ge=ue.BaseComponentWrapper),Ee.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new H(e,this.portalManager,t)};var ge,ye=Ee;function Ee(e,t){var n=ge.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(Re,ve=se.Component),Re.prototype.render=function(){var e=this.props.suppressReactUi?R:v;return ce.createElement(e,le({},this.props,{setGridApi:this.setGridApi}))};var ve,o=Re;function Re(){var n=null!==ve&&ve.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}t.AgGridReact=o,t.AgGridReactLegacy=R,t.AgGridReactFire=v,t.AgGridColumn=u,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(t,e,o,a,fe,me){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var de="default"in fe?fe.default:fe,i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var he=function(){return(he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function W(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}s(n,u=function(){}),n.prototype.getGui=function(){return this.eParentElement},n.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},n.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},n.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)}))},n.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},n.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},n.prototype.isStatelessComponent=function(){return this.statelessComponent},n.prototype.getReactComponentName=function(){return this.reactComponent.name},n.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},n.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},n.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},n.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},n.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});{if(o)return(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0;setTimeout(function(){return r.callMethod(e,t)})}},n.prototype.addMethod=function(e,t){this[e]=t};var u,c=n;function n(e,t,n){var r=u.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var l=0;function p(){return"agPortalKey_"+ ++l}s(d,f=c),d.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new me.AgPromise(function(e){return n.createReactComponent(t,e)})},d.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),fe.createElement(this.reactComponent,e)),e=a.createPortal(e,this.eParentElement,p());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},d.prototype.fallbackMethodAvailable=function(e){return!1},d.prototype.fallbackMethod=function(e,t){},d.prototype.isSlowRenderer=function(){return this.staticRenderTime>=d.SLOW_RENDERING_THRESHOLD},d.prototype.isNullValue=function(){return""===this.staticMarkup},d.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=fe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=o.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},d.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},d.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},d.SLOW_RENDERING_THRESHOLD=3;var f,m=d;function d(e,t,n,r){e=f.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}s(g,h=fe.Component),g.prototype.render=function(){return null},g.mapChildColumnDefs=function(e){return de.Children.map(e,function(e){return e?g.toColDef(e.props):null})},g.toColDef=function(e){var t=e.children,e=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}(e,["children"]);return g.hasChildColumns(t)&&(e.children=g.mapChildColumnDefs(t)),e},g.hasChildColumns=function(e){return 0<de.Children.count(e)};var h,C=g;function g(e){var t=h.call(this,e)||this;return t.props=e,t}function y(e,t){e.forEach(function(e){C[e]=t})}y(me.ColDefUtil.BOOLEAN_PROPERTIES,e.bool),y(me.ColDefUtil.STRING_PROPERTIES,e.string),y(me.ColDefUtil.OBJECT_PROPERTIES,e.object),y(me.ColDefUtil.ARRAY_PROPERTIES,e.array),y(me.ColDefUtil.NUMBER_PROPERTIES,e.number),y(me.ColDefUtil.FUNCTION_PROPERTIES,e.func),($=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",$.DeepValueCheck="DeepValueCheck",$.NoCheck="NoCheck";v.prototype.areEqual=function(e,t){return this.strategy(e,t)};var E=v;function v(e){this.strategy=e}S.prototype.areEqual=function(e,t){return S.areEquivalent(S.copy(e),S.copy(t))},S.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},S.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce(function(t,n){return Object.keys(n).forEach(function(e){t[e]=n[e]}),t},{})},S.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},S.areEquivalent=function(t,n){if(t=S.unwrapStringOrNumber(t),n=S.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(S.isNaN(t)&&S.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return!1;if("object"!=typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var e=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var o=void 0;if(e)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some(function(e){return e===n}))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some(function(e){return e===t}))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var a={};for(o in t)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in n)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in a)if(!this.areEquivalent(t[o],n[o]))return!1;return!0}finally{e&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}};var R=S;function S(){}O.prototype.getStrategy=function(e){return this.strategyMap[e]};var w=O;function O(){var e;this.strategyMap=((e={})[t.ChangeDetectionStrategyType.DeepValueCheck]=new R,e[t.ChangeDetectionStrategyType.IdentityCheck]=new E(function(e,t){return e===t}),e[t.ChangeDetectionStrategyType.NoCheck]=new E(function(e,t){return!1}),e)}s(M,b=c),M.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new me.AgPromise(function(e){return t.createReactComponent(e)})},M.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=fe.createElement(this.reactComponent,he(he({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},M.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},M.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},M.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},M.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===o.renderToStaticMarkup(fe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1},M.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},M.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},M.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var b,P=M;function M(e,t,n){e=b.call(this,e,t,n)||this;return e.oldPortal=null,e.key=p(),e.portalKey=p(),e}T.prototype.getPortals=function(){return this.portals},T.prototype.destroy=function(){this.destroyed=!0},T.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},T.prototype.getComponentWrappingElement=function(){return this.wrappingElement},T.prototype.mountReactPortal=function(e,t,n){this.portals=W(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},T.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},T.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},T.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},T.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var D=T;function T(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||T.MAX_COMPONENT_CREATION_TIME_IN_MS}function V(e,t,n,r){if(!(!e||e.componentFromFramework)){var o,a,i,e=e.newAgStackInstance();if(e)return i=!1,e.then(function(e){i?t.destroyBean(e):(a=(o=e).getGui(),n.appendChild(a),I(r,o))}),function(){i=!0,o&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(o),r&&I(r,void 0))}}}function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var Ce=de.createContext({}),I=function(e,t){e&&(e instanceof Function?e(t):e.current=t)},ge=(N.prototype.setClass=function(e,t){if(!!this.classesMap[e]==t)return this;var n=new N;return n.classesMap=he({},this.classesMap),n.classesMap[e]=t,n},N.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},N);function N(){this.classesMap={}}function ye(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function k(n){var r=fe.useContext(Ce).context,o=fe.useRef(null),e=fe.useRef(null),a=fe.useRef(null),i=fe.useRef(null),s=fe.useRef(null),t=(c=fe.useState())[0],l=c[1],p=(c=fe.useState())[0],f=c[1],u=(c=fe.useState())[0],m=c[1],d=(c=fe.useState(new ge))[0],h=c[1],C=(c=fe.useState(new ge))[0],g=c[1],y=(c=fe.useState(new ge))[0],E=c[1],v=(c=fe.useState(new ge))[0],R=c[1],c=(fe.useEffect(function(){return V(t,r,e.current)},[t]),fe.useEffect(function(){var e={setInnerRenderer:function(e,t){l(e),m(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return h(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return g(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){R(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new me.GroupCellRendererCtrl);return t.init(e,o.current,a.current,i.current,s.current,k,n),function(){r.destroyBean(t)}},[]),fe.useMemo(function(){return"ag-cell-wrapper "+d.toString()},[d])),S=fe.useMemo(function(){return"ag-group-expanded "+C.toString()},[C]),w=fe.useMemo(function(){return"ag-group-contracted "+y.toString()},[y]),O=fe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),b=t&&t.componentFromFramework,P=b?t.componentClass:void 0,M=null==t&&null!=u;return de.createElement("span",he({className:c,ref:o},n.colDef?{}:{role:"gridcell"}),de.createElement("span",{className:S,ref:i}),de.createElement("span",{className:w,ref:s}),de.createElement("span",{className:O,ref:a}),de.createElement("span",{className:"ag-group-value",ref:e},M&&de.createElement(de.Fragment,null,u),b&&de.createElement(P,he({},t.params))),de.createElement("span",{className:"ag-group-child-count"},p))}function L(r,o){fe.useEffect(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}},[])}var A,F=fe.memo(k),G=fe.memo(function(e){var l=fe.useContext(Ce).context,t=fe.useState(new ge),n=t[0],p=t[1],t=fe.useState(),r=t[0],f=t[1],t=fe.useState(),m=t[0],d=t[1],t=fe.useState(),h=t[0],C=t[1],t=fe.useState(),g=t[0],y=t[1],t=fe.useState(),E=t[0],v=t[1],t=fe.useState(),o=t[0],R=t[1],a=fe.useRef(null),i=fe.useRef(null),s=fe.useRef(),u=e.ctrl,t=(fe.useEffect(function(){u.setComp({setWidth:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return p(function(e){return e.setClass(t,n)})},setAriaSort:function(e){return y(e)},setColId:function(e){return C(e)},setTitle:function(e){return d(e)},setAriaDescribedBy:function(e){return v(e)},setUserCompDetails:function(e){return R(e)},getUserCompInstance:function(){return s.current||void 0}},a.current,i.current);var e=u.getSelectAllGui();i.current.insertAdjacentElement("afterend",e)},[]),fe.useEffect(function(){return V(o,l,a.current,s)},[o]),fe.useEffect(function(){var t=void 0;a.current.childNodes.forEach(function(e){null!=e&&e!==i.current&&(t=e)}),u.setDragSource(t)},[o]),fe.useMemo(function(){return{width:r}},[r])),e=fe.useMemo(function(){return"ag-header-cell "+n.toString()},[n]),c=fe.useMemo(function(){return!!(o&&o.componentFromFramework&&ye(o.componentClass))},[o]),S=o&&o.componentFromFramework,w=o&&o.componentClass;return de.createElement("div",{ref:a,className:e,style:t,title:m,"col-id":h,"aria-sort":g,role:"columnheader",tabIndex:-1,"aria-describedby":E},de.createElement("div",{ref:i,className:"ag-header-cell-resize",role:"presentation"}),S&&c&&de.createElement(w,he({},o.params)),S&&!c&&de.createElement(w,he({},o.params,{ref:s})))}),x=fe.memo(function(e){var t=fe.useContext(Ce).context,n=fe.useState(new ge),r=n[0],l=n[1],n=fe.useState(new ge),o=n[0],p=n[1],n=fe.useState(),a=n[0],f=n[1],n=fe.useState(),m=n[0],d=n[1],n=fe.useState(),h=n[0],C=n[1],n=fe.useState(),g=n[0],y=n[1],n=fe.useState(),i=n[0],E=n[1],s=fe.useRef(null),u=fe.useRef(null),c=e.ctrl,n=(fe.useEffect(function(){c.setComp({setWidth:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},setColId:function(e){return C(e)},setTitle:function(e){return d(e)},setUserCompDetails:function(e){return E(e)},addOrRemoveResizableCssClass:function(t,n){return p(function(e){return e.setClass(t,n)})},setAriaExpanded:function(e){return y(e)}},s.current,u.current)},[]),fe.useEffect(function(){return V(i,t,s.current)},[i]),fe.useEffect(function(){var t=void 0;s.current.childNodes.forEach(function(e){null!=e&&e!==u.current&&(t=e)}),t&&c.setDragSource(t)},[i]),fe.useMemo(function(){return{width:a}},[a])),e=fe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),v=fe.useMemo(function(){return"ag-header-cell-resize "+o.toString()},[o]),R=i&&i.componentFromFramework,S=i&&i.componentClass;return de.createElement("div",{ref:s,className:e,style:n,title:m,"col-id":h,role:"columnheader",tabIndex:-1,"aria-expanded":g},R&&de.createElement(S,he({},i.params)),de.createElement("div",{ref:u,className:v}))}),_=fe.memo(function(e){var l=fe.useContext(Ce).context,t=fe.useState(new ge),n=t[0],p=t[1],t=fe.useState(new ge),r=t[0],f=t[1],t=fe.useState(new ge),m=t[0],d=t[1],t=fe.useState(),o=t[0],h=t[1],t=fe.useState(),a=t[0],C=t[1],i=fe.useRef(null),s=fe.useRef(null),t=fe.useRef(null),u=fe.useRef(null),c=fe.useRef(),g=e.ctrl,e=(fe.useEffect(function(){g.setComp({addOrRemoveCssClass:function(t,n){return p(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},addOrRemoveButtonWrapperCssClass:function(t,n){return d(function(e){return e.setClass(t,n)})},setWidth:function(e){return h(e)},setCompDetails:function(e){return C(e)},getFloatingFilterComp:function(){return c.current?me.AgPromise.resolve(c.current):null},setMenuIcon:function(e){return u.current.appendChild(e)}},i.current,u.current,s.current)},[]),fe.useEffect(function(){return V(a,l,s.current,c)},[a]),fe.useMemo(function(){return{width:o}},[o])),y=fe.useMemo(function(){return"ag-header-cell ag-floating-filter "+n.toString()},[n]),E=fe.useMemo(function(){return r.toString()},[r]),v=fe.useMemo(function(){return"ag-floating-filter-button "+m.toString()},[r]),R=fe.useMemo(function(){return!!(a&&a.componentFromFramework&&ye(a.componentClass))},[a]),S=a&&a.componentFromFramework,w=a&&a.componentClass;return de.createElement("div",{ref:i,className:y,style:e,role:"gridcell",tabIndex:-1},de.createElement("div",{ref:s,className:E,role:"presentation"},S&&R&&de.createElement(w,he({},a.params)),S&&!R&&de.createElement(w,he({},a.params,{ref:c}))),de.createElement("div",{ref:t,className:v,role:"presentation"},de.createElement("button",{ref:u,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),B=fe.memo(function(e){var o=fe.useContext(Ce).gridOptionsWrapper,t=fe.useState(),n=t[0],r=t[1],t=fe.useState(),a=t[0],i=t[1],t=fe.useState(),s=t[0],l=t[1],t=fe.useState(),u=t[0],p=t[1],t=fe.useState(),f=t[0],m=t[1],t=fe.useState([]),d=t[0],h=t[1],t=fe.useRef(null),c=e.ctrl,C=c.getType()===me.HeaderRowType.COLUMN,g=c.getType()===me.HeaderRowType.COLUMN_GROUP,y=c.getType()===me.HeaderRowType.FLOATING_FILTER,E=fe.useCallback(function(e,t){if(o.isEnsureDomOrder())return t;var n=me._.mapById(e,function(e){return e.getInstanceId()}),r=me._.mapById(t,function(e){return e.getInstanceId()});return W(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())}))},[]),e=(fe.useEffect(function(){c.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return i(e)},setTop:function(e){return l(e)},setHeaderCtrls:function(t){return h(function(e){return E(e,t)})},setWidth:function(e){return p(e)},setAriaRowIndex:function(e){return m(e)}})},[]),fe.useMemo(function(){return{transform:n,height:a,top:s,width:u}},[n,a,s,u])),v=fe.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=fe.useCallback(function(e){switch(c.getType()){case me.HeaderRowType.COLUMN_GROUP:return de.createElement(x,{ctrl:e,key:e.getInstanceId()});case me.HeaderRowType.FLOATING_FILTER:return de.createElement(_,{ctrl:e,key:e.getInstanceId()});default:return de.createElement(G,{ctrl:e,key:e.getInstanceId()})}},[]);return de.createElement("div",{ref:t,className:v,role:"row",style:e,"aria-rowindex":f},d.map(R))}),j=fe.memo(function(n){function e(){return d.map(function(e){return de.createElement(B,{ctrl:e,key:e.getInstanceId()})})}var t=fe.useState(new ge),r=t[0],l=t[1],t=fe.useState(),o=t[0],p=t[1],t=fe.useState(),a=t[0],f=t[1],t=fe.useState(),i=t[0],m=t[1],t=fe.useState([]),d=t[0],h=t[1],s=fe.useContext(Ce).context,u=fe.useRef(null),t=n.pinned===me.Constants.PINNED_LEFT,C=n.pinned===me.Constants.PINNED_RIGHT,g=!t&&!C,c=(fe.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},setCtrls:function(e){return h(e)},setCenterWidth:function(e){return p(e)},setContainerTransform:function(e){return f(e)},setPinnedContainerWidth:function(e){return m(e)}},t=s.createBean(new me.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,u.current),function(){s.destroyBean(t)}},[]),fe.useMemo(function(){return r.toString()},[r])),y=fe.useMemo(function(){return{width:o,transform:a}},[o,a]),E=fe.useMemo(function(){return{width:i,minWidth:i,maxWidth:i}},[i]);return de.createElement(de.Fragment,null,t&&de.createElement("div",{ref:u,className:"ag-pinned-left-header "+c,role:"presentation",style:E},e()),C&&de.createElement("div",{ref:u,className:"ag-pinned-right-header "+c,role:"presentation",style:E},e()),g&&de.createElement("div",{ref:u,className:"ag-header-viewport "+c,role:"presentation"},de.createElement("div",{className:"ag-header-container",role:"rowgroup",style:y},e())))}),H=fe.memo(function(){var e=fe.useState(new ge),t=e[0],r=e[1],e=fe.useState(),n=e[0],o=e[1],a=fe.useContext(Ce).context,i=fe.useRef(null),e=(fe.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new me.GridHeaderCtrl);return t.setComp(e,i.current,i.current),function(){a.destroyBean(t)}},[]),fe.useMemo(function(){return"ag-header "+t.toString()},[t])),s=fe.useMemo(function(){return{height:n,minHeight:n}},[n]);return de.createElement("div",{ref:i,className:e,style:s,role:"presentation"},de.createElement(j,{pinned:me.Constants.PINNED_LEFT}),de.createElement(j,{pinned:null}),de.createElement(j,{pinned:me.Constants.PINNED_RIGHT}))}),Ee=fe.memo(function(u){var e=fe.useState(),t=e[0],c=e[1],e=fe.useContext(Ce),l=e.context,p=e.popupService,f=e.gridOptionsWrapper;return fe.useEffect(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=f.isStopEditingWhenCellsLoseFocus(),a=l.createBean(new me.PopupEditorWrapper(r.params)),r=a.getGui(),i=(!u.jsChildComp||(i=u.jsChildComp.getGui())&&r.appendChild(i),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,keepWithinBounds:!0}),e=("under"===e.popupPosition?p.positionPopupUnderComponent:p.positionPopupOverComponent).bind(p,i),i=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:i("ariaLabelCellEditor","Cell Editor")}),s=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=s&&s(),l.destroyBean(a)}},[]),de.createElement(de.Fragment,null,t&&u.wrappedContent&&a.createPortal(u.wrappedContent,t.getGui()))}),q=fe.memo(function(e){function t(){return de.createElement(de.Fragment,null,null!=E&&(a=pe,f=S,i=w,s=le,u=oe,c=(o=E).compDetails,o=o.value,m=!c,d=c&&c.componentFromFramework,h=c&&c.componentClass,C=o&&o.toString?o.toString():o,de.createElement(de.Fragment,null,i?de.createElement("span",{role:"presentation",id:"cell-"+a,className:"ag-cell-value",ref:u},g()):g())),null!=v&&(o=v,i=ue,a=se,u=R.current,e=y,t=K,n=o.compDetails,r=n.componentClass,l=n.componentFromFramework&&!o.popup,p=n.componentFromFramework&&o.popup,n=!n.componentFromFramework&&o.popup,de.createElement(de.Fragment,null,l&&de.createElement(r,he({},o.compDetails.params,{ref:i})),p&&de.createElement(Ee,{editDetails:o,cellCtrl:e,eParentCell:u,wrappedContent:de.createElement(r,he({},o.compDetails.params,{ref:a}))}),n&&t&&de.createElement(Ee,{editDetails:o,cellCtrl:e,eParentCell:u,jsChildComp:t}))));var e,t,n,r,l,p,o,a,f,i,s,u,c,m,d,h,C;function g(){return de.createElement(de.Fragment,null,m&&de.createElement(de.Fragment,null,C),d&&!s&&de.createElement(h,he({},c.params,{ref:f})),d&&s&&de.createElement(h,he({},c.params)))}}var n,a,i,r,s,u,c,l=fe.useContext(Ce).context,y=e.cellCtrl,p=e.printLayout,f=e.editingRow,e=fe.useState(),E=e[0],m=e[1],e=fe.useState(),v=e[0],d=e[1],e=fe.useState(new ge),h=e[0],C=e[1],e=fe.useState(),g=e[0],O=e[1],e=fe.useState(),b=e[0],P=e[1],e=fe.useState(),M=e[0],D=e[1],e=fe.useState(),T=e[0],I=e[1],e=fe.useState(),N=e[0],k=e[1],e=fe.useState(),A=e[0],F=e[1],e=fe.useState(),G=e[0],x=e[1],e=fe.useState(),_=e[0],B=e[1],e=fe.useState(),U=e[0],L=e[1],e=fe.useState(!1),j=e[0],H=e[1],e=fe.useState(!1),W=e[0],V=e[1],e=fe.useState(!1),q=e[0],z=e[1],e=fe.useState(),K=e[0],Y=e[1],e=fe.useMemo(function(){return y.isForceWrapper()},[]),R=fe.useRef(null),S=fe.useRef(null),$=fe.useRef(),X=fe.useRef(),o=fe.useRef(),Z=fe.useState(0),J=Z[0],Q=Z[1],Z=fe.useCallback(function(e){o.current=e,Q(function(e){return e+1})},[]),ee=fe.useRef(),te=fe.useState(0),ne=te[0],re=te[1],oe=fe.useCallback(function(e){ee.current=e,re(function(e){return e+1})},[]),w=null!=E&&(j||q||W),ae=e||w,ie=fe.useCallback(function(e,t){var n,r,o,a,i;(X.current=t)&&(e=e,n=t,i=(r=y).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",me._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",me._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout(function(){return y.stopEditing()},0))},[]),se=fe.useCallback(function(e){return ie(!0,e)},[]),ue=fe.useCallback(function(e){return ie(!1,e)},[]),ce=(n=E,a=w,i=ee.current,te=ne,r=$,s=R,e=fe.useContext(Ce),u=e.context,e.userComponentFactory,c=fe.useCallback(function(){var e,t=r.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),u.destroyBean(t),r.current=void 0)},[]),fe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(a&&null==i)){e=n.compDetails;if(r.current){var t=r.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;c()}t=e.newAgStackInstance();t&&(!(e=t.resolveNow(null,function(e){return e}))||(t=e.getGui())&&((a?i:s.current).appendChild(t),r.current=e))}else c()},[n,a,te]),fe.useEffect(function(){return c},[]),fe.useRef()),le=(fe.useEffect(function(){var e=ce.current,t=E;ce.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass&&null!=S.current&&null!=S.current.refresh&&S.current.refresh(t.params))},[E]),fe.useEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),ie(n,r),n||(R.current.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),Y(r),function(){l.destroyBean(r),ie(n,void 0),Y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),fe.useEffect(function(){var n,e;if(y&&l&&(F(o.current?"cell-"+y.getInstanceId():void 0),o.current&&w))return n=[],e=function(e){var t;return e&&(t=e.getGui(),o.current.insertAdjacentElement("afterbegin",t),n.push(function(){l.destroyBean(e),me._.removeFromParent(t)})),e},j&&e(y.createSelectionCheckbox()),q&&e(y.createDndSource()),W&&e(y.createRowDragComp()),function(){n.forEach(function(e){e()})}},[w,q,W,j,J]),fe.useEffect(function(){var e;y&&(e=o.current||void 0,y.setComp({addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setUserStyles:function(e){return O(e)},setAriaSelected:function(e){return D(e)},setAriaExpanded:function(e){return I(e)},getFocusableElement:function(){return R.current},setAriaColIndex:function(e){return k(e)},setTabIndex:function(e){return P(e)},setRole:function(e){return x(e)},setColId:function(e){return B(e)},setTitle:function(e){return L(e)},setIncludeSelection:function(e){return H(e)},setIncludeRowDrag:function(e){return V(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return X.current||null},getCellRenderer:function(){return S.current||$.current},getParentOfValue:function(){return ee.current||o.current||R.current},setRenderDetails:function(e,t,n){m({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(d({compDetails:e,popup:t,popupPosition:n}),t||m(void 0)):d(void 0)}},null,R.current,e,p,f))},[]),fe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&ye(E.compDetails.componentClass))},[E])),ne=fe.useMemo(function(){var e=h.toString();return ae||(e+=" ag-cell-value"),e},[h,w]),pe=fe.useMemo(function(){return y.getInstanceId()},[]);return de.createElement("div",{ref:R,className:ne,style:g,tabIndex:b,"aria-selected":M,"aria-colindex":N,role:G,"aria-expanded":T,"col-id":_,title:U,"aria-describedby":A},ae?de.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:Z},t()):t())}),z=fe.memo(function(e){var l=fe.useContext(Ce).context,t=e.rowCtrl,p=e.containerType,e=fe.useState(),f=e[0],m=e[1],e=fe.useState(),d=e[0],h=e[1],e=fe.useState(),n=e[0],C=e[1],e=fe.useState(),g=e[0],y=e[1],e=fe.useState(),E=e[0],v=e[1],e=fe.useState(),R=e[0],S=e[1],e=fe.useState(),w=e[0],O=e[1],e=fe.useState(),b=e[0],P=e[1],e=fe.useState(),M=e[0],D=e[1],e=fe.useState(),r=e[0],T=e[1],e=fe.useState({list:[],instanceIdMap:new Map}),o=e[0],I=e[1],e=fe.useState(),a=e[0],N=e[1],e=fe.useState(!1),k=e[0],A=e[1],e=fe.useState(t.getInitialRowTop()),i=e[0],F=e[1],e=fe.useState(t.getInitialTransform()),s=e[0],G=e[1],u=fe.useRef(null),c=fe.useRef(),x=fe.useRef(!1),e=fe.useState(0),_=e[0],B=e[1],U=(fe.useEffect(function(){var e;x.current||a&&(10<_||((e=null===(e=u.current)||void 0===e?void 0:e.firstChild)?(t.setupDetailRowAutoHeight(e),x.current=!0):B(function(e){return e+1})))},[a,_]),fe.useMemo(function(){return new me.CssClassManager(function(){return u.current})},[])),e=(fe.useEffect(function(){t.setComp({setTop:function(e){return F(e)},setTransform:function(e){return G(e)},addOrRemoveCssClass:function(e,t){return U.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return A(e)},setRowIndex:function(e){return m(e)},setAriaRowIndex:function(e){return S(e)},setAriaExpanded:function(e){return O(e)},setAriaLabel:function(e){return P(e)},setRowId:function(e){return h(e)},setRowBusinessKey:function(e){return y(e)},setTabIndex:function(e){return v(e)},setUserStyles:function(e){return T(e)},setAriaSelected:function(e){return D(e)},setRole:function(e){return C(e)},setCellCtrls:function(s){return I(function(e){var t,n=e,e=s;if(k)return t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t;var r=[],o=[],a=new Map,i=new Map;return e.forEach(function(e){return i.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();i.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:W(r,o),instanceIdMap:a}})},showFullWidth:function(e){return N(e)},getFullWidthCellRenderer:function(){return c.current}},u.current,p)},[]),fe.useEffect(function(){return V(a,l,u.current,c)},[a]),fe.useMemo(function(){var e={top:i,transform:s};return Object.assign(e,r),e},[i,s,r])),L=a&&a.componentFromFramework,j=null!=o,H=fe.useMemo(function(){return!!(a&&a.componentFromFramework&&ye(a.componentClass))},[a]);return de.createElement("div",{ref:u,role:n,style:e,"row-index":f,"aria-rowindex":R,"aria-expanded":w,"aria-label":b,"aria-selected":M,"row-id":d,"row-business-key":g,tabIndex:E},j&&o.list.map(function(e){return de.createElement(q,{cellCtrl:e,editingRow:t.isEditing(),printLayout:t.isPrintLayout(),key:e.getInstanceId()})}),L&&(n=a.componentClass,de.createElement(de.Fragment,null,H&&de.createElement(n,he({},a.params)),!H&&de.createElement(n,he({},a.params,{ref:c})))))}),K=fe.memo(function(e){function t(){return de.createElement("div",{className:v,ref:i,role:"rowgroup",style:w},m.map(function(e){return de.createElement(z,{rowCtrl:e,containerType:E,key:e.getInstanceId()})}))}var l=fe.useContext(Ce).context,n=fe.useState(""),p=n[0],f=n[1],n=fe.useState([]),m=n[0],d=n[1],n=fe.useState(!1),h=n[0],C=n[1],n=fe.useState(""),g=n[0],y=n[1],r=e.name,E=fe.useMemo(function(){return me.getRowContainerTypeForName(r)},[r]),o=fe.useRef(null),a=fe.useRef(null),i=fe.useRef(null),s=fe.useMemo(function(){return me.RowContainerCtrl.getRowContainerCssClasses(r)},[r]),n=fe.useMemo(function(){return U(s.wrapper)},[]),e=fe.useMemo(function(){return U(s.viewport)},[]),v=fe.useMemo(function(){return U(s.container)},[]),u=r===me.RowContainerName.CENTER,c=r===me.RowContainerName.TOP_CENTER||r===me.RowContainerName.BOTTOM_CENTER,R=!u&&!c,S=(L(" AG Row Container "+r+" ",u?o:c?a:i),fe.useEffect(function(){var e=[],t={setViewportHeight:f,setRowCtrls:function(n){d(function(e){if(h)return n;var t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0});return W(t,e)})},setDomOrder:function(e){return C(e)},setContainerWidth:function(e){return y(e)}},n=l.createBean(new me.RowContainerCtrl(r));return e.push(n),n.setComp(t,i.current,a.current,o.current),function(){l.destroyBeans(e)}},[]),fe.useMemo(function(){return{height:p}},[p])),w=fe.useMemo(function(){return{width:g}},[g]);return de.createElement(de.Fragment,null,u&&de.createElement("div",{className:n,ref:o,role:"presentation"},de.createElement("div",{className:e,ref:a,role:"presentation",style:S},t())),c&&de.createElement("div",{className:e,ref:a,role:"presentation",style:S},t()),R&&t())}),Y=fe.memo(function(){function l(e){return de.createElement(K,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return de.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(l))}var t=fe.useContext(Ce),o=t.context,p=t.agStackComponentsRegistry,f=t.resizeObserverService,t=fe.useState(""),m=t[0],d=t[1],t=fe.useState(0),h=t[0],C=t[1],t=fe.useState(0),g=t[0],y=t[1],t=fe.useState(0),n=t[0],E=t[1],t=fe.useState(0),r=t[0],v=t[1],t=fe.useState(""),R=t[0],S=t[1],t=fe.useState(""),w=t[0],O=t[1],t=fe.useState(null),b=t[0],P=t[1],t=fe.useState(""),a=t[0],M=t[1],t=fe.useState(null),D=t[0],T=t[1],t=fe.useState(""),i=t[0],I=t[1],t=fe.useState(null),s=t[0],N=t[1],u=fe.useRef(null),k=fe.useRef(null),c=fe.useRef(null),A=fe.useRef(null),t=(L(" AG Grid Body ",u),L(" AG Pinned Top ",k),L(" AG Middle ",c),L(" AG Pinned Bottom ",A),fe.useEffect(function(){var e,t,n=[],r=[];if(o)return e=function(e){e=p.getComponentClass(e),e=o.createBean(new e);return n.push(e),e},u.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),u.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),u.current.appendChild(document.createComment(" AG Overlay Wrapper ")),u.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),e={setRowAnimationCssOnBodyViewport:d,setColumnCount:C,setRowCount:y,setTopHeight:E,setBottomHeight:v,setTopDisplay:S,setBottomDisplay:O,setColumnMovingCss:P,updateLayoutClasses:M,setAlwaysVerticalScrollClass:T,setPinnedTopBottomOverflowY:I,setCellSelectableCss:N,registerBodyViewportResizeListener:function(e){var t=f.observeResize(c.current,e);r.push(function(){return t()})}},t=o.createBean(new me.GridBodyCtrl),n.push(t),t.setComp(e,u.current,c.current,k.current,A.current),function(){o.destroyBeans(n),r.forEach(function(e){return e()})}},[]),fe.useMemo(function(){return U("ag-root","ag-unselectable",b,a)},[b,a])),F=fe.useMemo(function(){return U("ag-body-viewport",m,a,D,s)},[m,a,D,s]),G=fe.useMemo(function(){return U("ag-floating-top",s)},[s]),x=fe.useMemo(function(){return U("ag-floating-bottom",s)},[s]),_=fe.useMemo(function(){return{height:n,minHeight:n,display:R,overflowY:i}},[n,R,i]),B=fe.useMemo(function(){return{height:r,minHeight:r,display:w,overflowY:i}},[r,w,i]);return de.createElement("div",{ref:u,className:t,role:"grid","aria-colcount":h,"aria-rowcount":g},de.createElement(H,null),e({section:k,className:G,style:_,children:[me.RowContainerName.TOP_LEFT,me.RowContainerName.TOP_CENTER,me.RowContainerName.TOP_RIGHT,me.RowContainerName.TOP_FULL_WIDTH]}),e({section:c,className:F,children:[me.RowContainerName.LEFT,me.RowContainerName.CENTER,me.RowContainerName.RIGHT,me.RowContainerName.FULL_WIDTH]}),e({section:A,className:x,style:B,children:[me.RowContainerName.BOTTOM_LEFT,me.RowContainerName.BOTTOM_CENTER,me.RowContainerName.BOTTOM_RIGHT,me.RowContainerName.BOTTOM_FULL_WIDTH]}))}),$=fe.forwardRef(function(e,t){function n(e){return de.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?s:u})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,l=e.gridCtrl,i=fe.useContext(Ce).context,s=fe.useRef(null),u=fe.useRef(null),c=fe.useRef(),e=fe.useState(),p=e[0],f=e[1];fe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){c.current.forceFocusOutOfContainer()}}}),fe.useEffect(function(){var e=s.current,t=u.current,n=c.current=i.createBean(new me.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return l.focusInnerElement(e)}}));return function(){i.destroyBean(n)}},[]);return de.createElement(de.Fragment,null,n("top"),r,n("bottom"))}),X=fe.memo($),Z=fe.memo(function(e){var p=e.context,e=fe.useState(""),t=e[0],i=e[1],e=fe.useState(""),n=e[0],s=e[1],e=fe.useState(""),r=e[0],u=e[1],e=fe.useState(null),o=e[0],c=e[1],e=fe.useState(null),a=e[0],l=e[1],e=fe.useState(!1),h=e[0],C=e[1],e=fe.useState(),g=e[0],y=e[1],f=fe.useRef(null),m=fe.useRef(null),E=fe.useRef(),d=fe.useRef(null),v=fe.useRef(function(){}),e=fe.useCallback(function(){},[]),R=fe.useMemo(function(){return p.getBean("beans")},[]),S=(L(" AG Grid ",m),fe.useEffect(function(){var e=f.current=p.createBean(new me.GridCtrl);return function(){p.destroyBean(e),f.current=null}},[]),fe.useEffect(function(){var e=f.current,t=(v.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:i,addOrRemoveKeyboardFocusClass:function(e){return s(e?me.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){E.current.forceFocusOutOfContainer()},updateLayoutClasses:u,getFocusableContainers:function(){var e=[],t=m.current.querySelector(".ag-root"),n=m.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:c,setUserSelect:l});e.setComp(t,m.current,m.current),C(!0)},[]),fe.useEffect(function(){var e,t,n,l,r,o,a,i,s,u,c;if(g)return e=f.current,t=[],r=R.agStackComponentsRegistry,u=r.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),s=r.getComponentClass("AG-SIDE-BAR"),n=r.getComponentClass("AG-STATUS-BAR"),l=r.getComponentClass("AG-WATERMARK"),r=r.getComponentClass("AG-PAGINATION"),o=[],a=m.current,i=d.current,e.showDropZones()&&u&&(c=(u=p.createBean(new u)).getGui(),a.insertAdjacentElement("afterbegin",c),o.push(c),t.push(u)),e.showSideBar()&&s&&(c=(u=p.createBean(new s)).getGui(),(s=i.querySelector(".ag-tab-guard-bottom"))&&(s.insertAdjacentElement("beforebegin",c),o.push(c)),t.push(u)),e.showStatusBar()&&n&&(c=(i=p.createBean(new n)).getGui(),a.insertAdjacentElement("beforeend",c),o.push(c),t.push(i)),r&&(c=(s=p.createBean(new r)).getGui(),a.insertAdjacentElement("beforeend",c),o.push(c),t.push(s)),e.showWatermark()&&l&&(c=(u=p.createBean(new l)).getGui(),a.insertAdjacentElement("beforeend",c),o.push(c),t.push(u)),function(){p.destroyBeans(t),o.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[g]),fe.useMemo(function(){return U("ag-root-wrapper",t,n,r)},[t,n,r])),w=fe.useMemo(function(){return U("ag-root-wrapper-body","ag-focus-managed",r)},[r]),O=fe.useMemo(function(){return{userSelect:null!=a?a:"",WebkitUserSelect:null!=a?a:"",cursor:null!=o?o:""}},[a,o]),b=d.current,P=fe.useCallback(function(e){E.current=e,y(!0)},[]);return de.createElement("div",{ref:m,className:S,style:O},de.createElement("div",{className:w,ref:d},h&&b&&de.createElement(Ce.Provider,{value:R},de.createElement(X,{ref:P,eFocusableElement:b,onTabKeyDown:e,gridCtrl:f.current},de.createElement(Y,null)))))}),J=(s(Q,A=fe.Component),Q.prototype.render=function(){return de.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&de.createElement(Z,{context:this.state.context}),this.portalManager.getPortals())},Q.prototype.createStyleForDiv=function(){return he({height:"100%"},this.props.containerStyle||{})},Q.prototype.componentDidMount=function(){var t=this,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new te(this.portalManager)},modules:e,frameworkOverrides:new ae(!0)},n=(this.gridOptions=this.props.gridOptions||{},this.props.children);C.hasChildColumns(n)&&(this.gridOptions.columnDefs=C.mapChildColumnDefs(n)),this.gridOptions=me.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new me.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(me.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(me.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e)},Q.prototype.componentWillUnmount=function(){this.destroyFuncs.forEach(function(e){return e()})},Q.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},Q.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},Q.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,C.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=C.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},Q.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){me._.includes(me.ComponentUtil.ALL_PROPERTIES,e)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])||(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]}))}),me.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},Q.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return me.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},Q.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},Q.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},Q.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},Q);function Q(e){var t=A.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.changeDetectionService=new w,t.eGui=de.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.state={context:void 0},t.portalManager=new D(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}s(ne,ee=me.BaseComponentWrapper),ne.prototype.createWrapper=function(e,t){return new P(e,this.parent,t)};var ee,te=ne;function ne(e){var t=ee.call(this)||this;return t.parent=e,t}var re,oe=fe.forwardRef(function(n,e){var t=fe.useContext(Ce),l=t.ctrlsFactory,r=t.context,p=t.gridOptionsWrapper,f=t.resizeObserverService,o=t.clientSideRowModel,a=t.serverSideRowModel,t=fe.useState(new ge),i=t[0],m=t[1],t=fe.useState(new ge),s=t[0],d=t[1],t=fe.useState(),h=t[0],C=t[1],t=fe.useState(),g=t[0],y=t[1],u=fe.useRef(),c=fe.useRef(null),t=fe.useMemo(function(){return i.toString()+" ag-details-row"},[i]),E=fe.useMemo(function(){return s.toString()+" ag-details-grid"},[s]),e=(e&&fe.useImperativeHandle(e,function(){return{refresh:function(){return u.current.refresh()}}}),fe.useEffect(function(){n.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")},[]),fe.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return m(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return d(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return C(e)},setRowData:function(e){return y(e)}},t=l.getInstance("detailCellRenderer");if(t)return r.createBean(t),t.init(e,n),u.current=t,p.isDetailRowAutoHeight()&&(f.observeResize(c.current,e=function(){var e;null==c.current||null!=(e=c.current.clientHeight)&&0<e&&setTimeout(function(){n.node.setRowHeight(e),o?o.onRowHeightChanged():a&&a.onRowHeightChanged()},0)}),e()),function(){r.destroyBean(t)}},[]),fe.useCallback(function(e,t){u.current.registerDetailWithMaster(e,t)},[]));return de.createElement("div",{className:t,ref:c},h&&de.createElement(J,he({className:E},h,{rowData:g,setGridApi:e})))}),ae=(s(ie,re=me.VanillaFrameworkOverrides),ie.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},ie.prototype.isFrameworkComponent=function(e){if(!e)return!1;e=e.prototype;return!(e&&"getGui"in e)},ie);function ie(e){var t=re.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:F,agGroupRowRenderer:F,agDetailCellRenderer:oe},t.reactUi=e,t}s(r,se=fe.Component),r.prototype.render=function(){var t=this;return de.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},r.prototype.createStyleForDiv=function(){return he({height:"100%"},this.props.containerStyle||{})},r.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new pe(this,this.portalManager)},modules:e,frameworkOverrides:new ae(!1)},t=this.props.gridOptions||{},n=this.props.children;C.hasChildColumns(n)&&(t.columnDefs=C.mapChildColumnDefs(n)),this.gridOptions=me.ComponentUtil.copyAttributesToGridOptions(t,this.props),new me.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},r.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},r.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},r.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},r.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},r.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},r.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,C.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=C.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},r.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){me._.includes(me.ComponentUtil.ALL_PROPERTIES,e)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])||(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]}))}),me.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},r.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},r.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},r.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},r.prototype.processSynchronousChanges=function(e){var t,n=he({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length&&this.api&&me.ComponentUtil.processOnChange(t,this.gridOptions,this.api,this.columnApi)),n},r.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&me.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},r.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:r.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var se,ue=r;function r(e){var t=se.call(this,e)||this;return t.props=e,t.changeDetectionService=new w,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new D(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function ce(e,t){e.forEach(function(e){ue[e]=t})}ue.propTypes={gridOptions:e.object},ce(me.ComponentUtil.getEventCallbacks(),e.func),ce(me.ComponentUtil.BOOLEAN_PROPERTIES,e.bool),ce(me.ComponentUtil.STRING_PROPERTIES,e.string),ce(me.ComponentUtil.OBJECT_PROPERTIES,e.object),ce(me.ComponentUtil.ARRAY_PROPERTIES,e.array),ce(me.ComponentUtil.NUMBER_PROPERTIES,e.number),ce(me.ComponentUtil.FUNCTION_PROPERTIES,e.func);s(ve,le=me.BaseComponentWrapper),ve.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new m(e,this.agGridReact,this.portalManager,t):new P(e,this.portalManager,t)};var le,pe=ve;function ve(e,t){var n=le.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}s(Se,Re=fe.Component),Se.prototype.render=function(){var e=this.props.suppressReactUi?ue:J;return de.createElement(e,he({},this.props,{setGridApi:this.setGridApi}))};var Re,c=Se;function Se(){var n=null!==Re&&Re.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}t.AgGridReact=c,t.AgGridReactLegacy=ue,t.AgGridReactFire=J,t.AgGridColumn=C,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(t,e,O,r,se,ue){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var ce="default"in se?se.default:se,M=function(e,t){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var le=function(){return(le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function G(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}n(a,b=function(){}),a.prototype.getGui=function(){return this.eParentElement},a.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},a.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},a.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)}))},a.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},a.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},a.prototype.isStatelessComponent=function(){return this.statelessComponent},a.prototype.getReactComponentName=function(){return this.reactComponent.name},a.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},a.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},a.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},a.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},a.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});{if(o)return(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0;setTimeout(function(){return r.callMethod(e,t)})}},a.prototype.addMethod=function(e,t){this[e]=t};var b,o=a;function a(e,t,n){var r=b.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var P=0;function i(){return"agPortalKey_"+ ++P}n(s,T=o),s.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ue.AgPromise(function(e){return n.createReactComponent(t,e)})},s.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),se.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},s.prototype.fallbackMethodAvailable=function(e){return!1},s.prototype.fallbackMethod=function(e,t){},s.prototype.isSlowRenderer=function(){return this.staticRenderTime>=s.SLOW_RENDERING_THRESHOLD},s.prototype.isNullValue=function(){return""===this.staticMarkup},s.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=se.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=O.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},s.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},s.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},s.SLOW_RENDERING_THRESHOLD=3;var T,I=s;function s(e,t,n,r){e=T.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}n(c,N=se.Component),c.prototype.render=function(){return null},c.mapChildColumnDefs=function(e){return ce.Children.map(e,function(e){return e?c.toColDef(e.props):null})},c.toColDef=function(e){var t=e.children,e=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}(e,["children"]);return c.hasChildColumns(t)&&(e.children=c.mapChildColumnDefs(t)),e},c.hasChildColumns=function(e){return 0<ce.Children.count(e)};var N,u=c;function c(e){var t=N.call(this,e)||this;return t.props=e,t}function l(e,t){e.forEach(function(e){u[e]=t})}l(ue.ColDefUtil.BOOLEAN_PROPERTIES,e.bool),l(ue.ColDefUtil.STRING_PROPERTIES,e.string),l(ue.ColDefUtil.OBJECT_PROPERTIES,e.object),l(ue.ColDefUtil.ARRAY_PROPERTIES,e.array),l(ue.ColDefUtil.NUMBER_PROPERTIES,e.number),l(ue.ColDefUtil.FUNCTION_PROPERTIES,e.func),(C=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",C.DeepValueCheck="DeepValueCheck",C.NoCheck="NoCheck";A.prototype.areEqual=function(e,t){return this.strategy(e,t)};var k=A;function A(e){this.strategy=e}p.prototype.areEqual=function(e,t){return p.areEquivalent(p.copy(e),p.copy(t))},p.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},p.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce(function(t,n){return Object.keys(n).forEach(function(e){t[e]=n[e]}),t},{})},p.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},p.areEquivalent=function(t,n){if(t=p.unwrapStringOrNumber(t),n=p.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(p.isNaN(t)&&p.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return!1;if("object"!=typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var e=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var o=void 0;if(e)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some(function(e){return e===n}))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some(function(e){return e===t}))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var a={};for(o in t)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in n)"areEquivPropertyTracking"!=o&&(a[o]=null);for(o in a)if(!this.areEquivalent(t[o],n[o]))return!1;return!0}finally{e&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}};var F=p;function p(){}B.prototype.getStrategy=function(e){return this.strategyMap[e]};var _=B;function B(){var e;this.strategyMap=((e={})[t.ChangeDetectionStrategyType.DeepValueCheck]=new F,e[t.ChangeDetectionStrategyType.IdentityCheck]=new k(function(e,t){return e===t}),e[t.ChangeDetectionStrategyType.NoCheck]=new k(function(e,t){return!1}),e)}n(f,j=o),f.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ue.AgPromise(function(e){return t.createReactComponent(e)})},f.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=se.createElement(this.reactComponent,le(le({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},f.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},f.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},f.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},f.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===O.renderToStaticMarkup(se.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1},f.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},f.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},f.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var j,H=f;function f(e,t,n){e=j.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}m.prototype.getPortals=function(){return this.portals},m.prototype.destroy=function(){this.destroyed=!0},m.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},m.prototype.getComponentWrappingElement=function(){return this.wrappingElement},m.prototype.mountReactPortal=function(e,t,n){this.portals=G(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},m.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},m.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},m.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},m.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var W=m;function m(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||m.MAX_COMPONENT_CREATION_TIME_IN_MS}function x(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,i,s,o=e.newAgStackInstance();if(o)return s=!1,o.then(function(e){s?t.destroyBean(e):(i=(a=e).getGui(),n.appendChild(i),V(r,a))}),function(){s=!0,a&&(i&&i.parentElement&&i.parentElement.removeChild(i),t.destroyBean(a),r&&V(r,void 0))}}}function V(e,t){e&&(e instanceof Function?e(t):e.current=t)}function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var pe=ce.createContext({}),fe=(d.prototype.setClass=function(e,t){if(!!this.classesMap[e]==t)return this;var n=new d;return n.classesMap=le({},this.classesMap),n.classesMap[e]=t,n},d.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},d);function d(){this.classesMap={}}function me(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function L(r,o){se.useEffect(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}},[])}var q,D=se.forwardRef(function(n,e){var r=se.useContext(pe).context,o=se.useRef(null),t=se.useRef(null),a=se.useRef(null),i=se.useRef(null),s=se.useRef(null),u=se.useState(),c=u[0],l=u[1],u=se.useState(),p=u[0],f=u[1],u=se.useState(),m=u[0],d=u[1],u=se.useState(new fe),h=u[0],C=u[1],u=se.useState(new fe),g=u[0],y=u[1],u=se.useState(new fe),E=u[0],v=u[1],u=se.useState(new fe),R=u[0],S=u[1],u=(se.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),se.useEffect(function(){return x(c,r,t.current)},[c]),se.useEffect(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return v(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ue.GroupCellRendererCtrl);return t.init(e,o.current,a.current,i.current,s.current,D,n),function(){r.destroyBean(t)}},[]),se.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=se.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=se.useMemo(function(){return"ag-group-contracted "+E.toString()},[E]),O=se.useMemo(function(){return"ag-group-checkbox "+R.toString()},[R]),M=c&&c.componentFromFramework,b=M?c.componentClass:void 0,P=null==c&&null!=m;return ce.createElement("span",le({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),ce.createElement("span",{className:e,ref:i}),ce.createElement("span",{className:w,ref:s}),ce.createElement("span",{className:O,ref:a}),ce.createElement("span",{className:"ag-group-value",ref:t},P&&ce.createElement(ce.Fragment,null,m),M&&ce.createElement(b,le({},c.params))),ce.createElement("span",{className:"ag-group-child-count"},p))}),z=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(),r=n[0],o=n[1],n=se.useState(),a=n[0],i=n[1],n=se.useState(),s=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],h=se.useRef(null),C=se.useRef(null),g=se.useRef(),y=e.ctrl,E=se.useMemo(function(){return new ue.CssClassManager(function(){return h.current})},[]),n=(se.useEffect(function(){y.setComp({setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return E.addOrRemoveCssClass(e,t)},setAriaSort:function(e){return l(e)},setColId:function(e){return u(e)},setTitle:function(e){return i(e)},setAriaDescribedBy:function(e){return f(e)},setUserCompDetails:function(e){return d(e)},getUserCompInstance:function(){return g.current||void 0}},h.current,C.current);var e=y.getSelectAllGui();C.current.insertAdjacentElement("afterend",e)},[]),se.useEffect(function(){return x(m,t,h.current,g)},[m]),se.useEffect(function(){var t=void 0;h.current.childNodes.forEach(function(e){null!=e&&e!==C.current&&(t=e)}),y.setDragSource(t)},[m]),se.useMemo(function(){return{width:r}},[r])),e=se.useMemo(function(){var e;return!!((null==(e=m)?void 0:e.componentFromFramework)&&me(m.componentClass))},[m]),v=m&&m.componentFromFramework,R=m&&m.componentClass;return ce.createElement("div",{ref:h,className:"ag-header-cell",style:n,title:a,"col-id":s,"aria-sort":c,role:"columnheader",tabIndex:-1,"aria-describedby":p},ce.createElement("div",{ref:C,className:"ag-header-cell-resize",role:"presentation"}),v&&e&&ce.createElement(R,le({},m.params)),v&&!e&&ce.createElement(R,le({},m.params,{ref:g})))}),K=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new fe),r=n[0],o=n[1],n=se.useState(new fe),a=n[0],i=n[1],n=se.useState(),s=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],n=se.useState(),m=n[0],d=n[1],n=se.useState(),h=n[0],C=n[1],g=se.useRef(null),y=se.useRef(null),E=e.ctrl,n=(se.useEffect(function(){E.setComp({setWidth:function(e){return u(e)},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},addOrRemoveResizableCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setAriaExpanded:function(e){return d(e)}},g.current,y.current)},[]),se.useEffect(function(){return x(h,t,g.current)},[h]),se.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&E.setDragSource(t)},[h]),se.useMemo(function(){return{width:s}},[s])),e=se.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r]),v=se.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),R=h&&h.componentFromFramework,S=h&&h.componentClass;return ce.createElement("div",{ref:g,className:e,style:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},R&&ce.createElement(S,le({},h.params)),ce.createElement("div",{ref:y,className:v}))}),Y=se.memo(function(e){var t=se.useContext(pe).context,n=se.useState(new fe),r=n[0],o=n[1],n=se.useState(new fe),a=n[0],i=n[1],n=se.useState(new fe),s=n[0],u=n[1],n=se.useState(),c=n[0],l=n[1],n=se.useState(),p=n[0],f=n[1],m=se.useRef(null),d=se.useRef(null),n=se.useRef(null),h=se.useRef(null),C=se.useRef(),g=se.useMemo(function(){return new ue.AgPromise(function(e){return C.current=e})},[]),y=e.ctrl,e=(se.useEffect(function(){y.setComp({addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},addOrRemoveButtonWrapperCssClass:function(t,n){return u(function(e){return e.setClass(t,n)})},setWidth:function(e){return l(e)},setCompDetails:function(e){return f(e)},getFloatingFilterComp:function(){return g},setMenuIcon:function(e){return h.current.appendChild(e)}},m.current,h.current,d.current)},[]),se.useEffect(function(){return x(p,t,d.current,C.current)},[p]),se.useMemo(function(){return{width:c}},[c])),E=se.useMemo(function(){return"ag-header-cell ag-floating-filter "+r.toString()},[r]),v=se.useMemo(function(){return a.toString()},[a]),R=se.useMemo(function(){return"ag-floating-filter-button "+s.toString()},[a]),S=se.useMemo(function(){return!!(p&&p.componentFromFramework&&me(p.componentClass))},[p]),w=p&&p.componentFromFramework,O=p&&p.componentClass;return ce.createElement("div",{ref:m,className:E,style:e,role:"gridcell",tabIndex:-1},ce.createElement("div",{ref:d,className:v,role:"presentation"},w&&S&&ce.createElement(O,le({},p.params)),w&&!S&&ce.createElement(O,le({},p.params,{ref:C.current}))),ce.createElement("div",{ref:n,className:R,role:"presentation"},ce.createElement("button",{ref:h,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),$=se.memo(function(e){var o=se.useContext(pe).gridOptionsWrapper,t=se.useState(),n=t[0],r=t[1],t=se.useState(),a=t[0],i=t[1],t=se.useState(),s=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState(),p=t[0],f=t[1],t=se.useState([]),m=t[0],d=t[1],t=se.useRef(null),h=e.ctrl,C=h.getType()===ue.HeaderRowType.COLUMN,g=h.getType()===ue.HeaderRowType.COLUMN_GROUP,y=h.getType()===ue.HeaderRowType.FLOATING_FILTER,E=se.useCallback(function(e,t){if(o.isEnsureDomOrder())return t;var n=ue._.mapById(e,function(e){return e.getInstanceId()}),r=ue._.mapById(t,function(e){return e.getInstanceId()});return G(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())}))},[]),e=(se.useEffect(function(){h.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return i(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return d(function(e){return E(e,t)})},setWidth:function(e){return l(e)},setAriaRowIndex:function(e){return f(e)}})},[]),se.useMemo(function(){return{transform:n,height:a,top:s,width:c}},[n,a,s,c])),v=se.useMemo(function(){var e=["ag-header-row"];return C&&e.push("ag-header-row-column"),g&&e.push("ag-header-row-column-group"),y&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=se.useCallback(function(e){switch(h.getType()){case ue.HeaderRowType.COLUMN_GROUP:return ce.createElement(K,{ctrl:e,key:e.getInstanceId()});case ue.HeaderRowType.FLOATING_FILTER:return ce.createElement(Y,{ctrl:e,key:e.getInstanceId()});default:return ce.createElement(z,{ctrl:e,key:e.getInstanceId()})}},[]);return ce.createElement("div",{ref:t,className:v,role:"row",style:e,"aria-rowindex":p},m.map(R))}),h=se.memo(function(n){function e(){return p.map(function(e){return ce.createElement($,{ctrl:e,key:e.getInstanceId()})})}var t=se.useState(new fe),r=t[0],o=t[1],t=se.useState(),a=t[0],i=t[1],t=se.useState(),s=t[0],u=t[1],t=se.useState(),c=t[0],l=t[1],t=se.useState([]),p=t[0],f=t[1],m=se.useContext(pe).context,d=se.useRef(null),t=n.pinned===ue.Constants.PINNED_LEFT,h=n.pinned===ue.Constants.PINNED_RIGHT,C=!t&&!h,g=(se.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setCtrls:function(e){return f(e)},setCenterWidth:function(e){return i(e)},setContainerTransform:function(e){return u(e)},setPinnedContainerWidth:function(e){return l(e)}},t=m.createBean(new ue.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,d.current),function(){m.destroyBean(t)}},[]),se.useMemo(function(){return r.toString()},[r])),y=se.useMemo(function(){return{width:a,transform:s}},[a,s]),E=se.useMemo(function(){return{width:c,minWidth:c,maxWidth:c}},[c]);return ce.createElement(ce.Fragment,null,t&&ce.createElement("div",{ref:d,className:"ag-pinned-left-header "+g,role:"presentation",style:E},e()),h&&ce.createElement("div",{ref:d,className:"ag-pinned-right-header "+g,role:"presentation",style:E},e()),C&&ce.createElement("div",{ref:d,className:"ag-header-viewport "+g,role:"presentation"},ce.createElement("div",{className:"ag-header-container",role:"rowgroup",style:y},e())))}),X=se.memo(function(){var e=se.useState(new fe),t=e[0],r=e[1],e=se.useState(),n=e[0],o=e[1],a=se.useContext(pe).context,i=se.useRef(null),e=(se.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ue.GridHeaderCtrl);return t.setComp(e,i.current,i.current),function(){a.destroyBean(t)}},[]),se.useMemo(function(){return"ag-header "+t.toString()},[t])),s=se.useMemo(function(){return{height:n,minHeight:n}},[n]);return ce.createElement("div",{ref:i,className:e,style:s,role:"presentation"},ce.createElement(h,{pinned:ue.Constants.PINNED_LEFT}),ce.createElement(h,{pinned:null}),ce.createElement(h,{pinned:ue.Constants.PINNED_RIGHT}))}),de=se.memo(function(u){var e=se.useState(),t=e[0],c=e[1],e=se.useContext(pe),l=e.context,p=e.popupService,f=e.gridOptionsWrapper;return se.useEffect(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=f.isStopEditingWhenCellsLoseFocus(),a=l.createBean(new ue.PopupEditorWrapper(r.params)),r=a.getGui(),i=(!u.jsChildComp||(i=u.jsChildComp.getGui())&&r.appendChild(i),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,keepWithinBounds:!0}),e=("under"===e.popupPosition?p.positionPopupUnderComponent:p.positionPopupOverComponent).bind(p,i),i=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:i("ariaLabelCellEditor","Cell Editor")}),s=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=s&&s(),l.destroyBean(a)}},[]),ce.createElement(ce.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),Z=se.memo(function(e){function t(){return ce.createElement(ce.Fragment,null,null!=v&&(s=S,u=ie,c=M,l=A,p=ae,f=ne,m=(i=v).compDetails,i=i.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=i&&i.toString?i.toString():i,ce.createElement(ce.Fragment,null,l?ce.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=R&&(i=R,l=oe,u=re,f=O.current,e=E,t=J,n=i.compDetails,r=n.componentClass,o=n.componentFromFramework&&!i.popup,a=n.componentFromFramework&&i.popup,n=!n.componentFromFramework&&i.popup,ce.createElement(ce.Fragment,null,o&&ce.createElement(r,le({},i.compDetails.params,{ref:l})),a&&ce.createElement(de,{editDetails:i,cellCtrl:e,eParentCell:f,wrappedContent:ce.createElement(r,le({},i.compDetails.params,{ref:u}))}),n&&t&&ce.createElement(de,{editDetails:i,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,i,s,u,c,l,p,f,m,d,h,C,g;function y(){return ce.createElement(ce.Fragment,null,d&&ce.createElement(ce.Fragment,null,g),h&&!p&&ce.createElement(C,le({},m.params,{key:s,ref:c})),h&&p&&ce.createElement(C,le({},m.params,{key:s})))}}var n,r,o,a,i,s,u,c=se.useContext(pe).context,E=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=se.useState(),v=e[0],f=e[1],e=se.useState(),R=e[0],m=e[1],e=se.useState(1),S=e[0],d=e[1],e=se.useState(new fe),h=e[0],x=e[1],e=se.useState(),_=e[0],B=e[1],e=se.useState(),U=e[0],L=e[1],e=se.useState(),j=e[0],H=e[1],e=se.useState(),W=e[0],V=e[1],e=se.useState(),q=e[0],z=e[1],e=se.useState(),K=e[0],Y=e[1],e=se.useState(!1),C=e[0],$=e[1],e=se.useState(!1),g=e[0],X=e[1],e=se.useState(!1),y=e[0],Z=e[1],e=se.useState(),J=e[0],w=e[1],e=se.useMemo(function(){return E.isForceWrapper()},[]),O=se.useRef(null),M=se.useRef(null),b=se.useRef(),P=se.useRef(),D=se.useRef(),T=se.useState(0),Q=T[0],ee=T[1],T=se.useCallback(function(e){D.current=e,ee(function(e){return e+1})},[]),I=se.useRef(),N=se.useState(0),k=N[0],te=N[1],ne=se.useCallback(function(e){I.current=e,te(function(e){return e+1})},[]),N=null!=v&&(C||y||g),A=e||N,F=se.useCallback(function(e,t){var n,r,o,a,i;(P.current=t)&&(e=e,n=t,i=(r=E).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ue._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+i.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ue._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout(function(){return E.stopEditing()},0))},[]),re=se.useCallback(function(e){return F(!0,e)},[]),oe=se.useCallback(function(e){return F(!1,e)},[]),G=(n=v,r=A,o=I.current,e=k,a=b,i=O,k=se.useContext(pe),s=k.context,k.userComponentFactory,u=se.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),s.destroyBean(t),a.current=void 0)},[]),se.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:i.current).appendChild(t),a.current=e)}else u()},[n,r,e]),se.useEffect(function(){return u},[]),se.useRef()),ae=(se.useEffect(function(){var e=G.current,t=v;G.current=v,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass&&null!=M.current&&null!=M.current.refresh&&1!=M.current.refresh(t.params)&&d(function(e){return e+1}))},[v]),se.useEffect(function(){if(R&&!R.compDetails.componentFromFramework){var e,t=R.compDetails,n=!0===R.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),F(n,r),n||(O.current.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),w(r),function(){c.destroyBean(r),F(n,void 0),w(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[R]),se.useEffect(function(){var n,e;if(E&&c&&(H(D.current?"cell-"+E.getInstanceId():void 0),D.current&&A))return n=[],e=function(e){var t;return e&&(t=e.getGui(),D.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ue._.removeFromParent(t)})),e},C&&e(E.createSelectionCheckbox()),y&&e(E.createDndSource()),g&&e(E.createRowDragComp()),function(){n.forEach(function(e){e()})}},[A,y,g,C,Q]),se.useEffect(function(){var e;E&&(e=D.current||void 0,E.setComp({addOrRemoveCssClass:function(t,n){return x(function(e){return e.setClass(t,n)})},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return O.current},setTabIndex:function(e){return L(e)},setRole:function(e){return V(e)},setColId:function(e){return z(e)},setTitle:function(e){return Y(e)},setIncludeSelection:function(e){return $(e)},setIncludeRowDrag:function(e){return X(e)},setIncludeDndSource:function(e){return Z(e)},getCellEditor:function(){return P.current||null},getCellRenderer:function(){return M.current||b.current},getParentOfValue:function(){return I.current||D.current||O.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},null,O.current,e,l,p))},[]),se.useMemo(function(){return!!(v&&v.compDetails&&v.compDetails.componentFromFramework&&me(v.compDetails.componentClass))},[v])),k=se.useMemo(function(){var e=h.toString();return A||(e+=" ag-cell-value"),e},[h,N]),ie=se.useMemo(function(){return E.getInstanceId()},[]);return ce.createElement("div",{ref:O,className:k,style:_,tabIndex:U,role:W,"col-id":q,title:K,"aria-describedby":j},A?ce.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:T},t()):t())}),J=se.memo(function(e){var t=se.useContext(pe).context,n=e.rowCtrl,r=e.containerType,e=se.useState(),o=e[0],a=e[1],e=se.useState(),i=e[0],s=e[1],e=se.useState(),u=e[0],c=e[1],e=se.useState(),l=e[0],p=e[1],e=se.useState(),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],e=se.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=se.useState(),y=e[0],E=e[1],e=se.useState(!1),v=e[0],R=e[1],e=se.useState(n.getInitialRowTop()),S=e[0],w=e[1],e=se.useState(n.getInitialTransform()),O=e[0],M=e[1],b=se.useRef(null),P=se.useRef(),D=se.useRef(!1),e=se.useState(0),T=e[0],I=e[1],N=(se.useEffect(function(){var e;D.current||!y||10<T||((e=null==(e=b.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),D.current=!0):I(function(e){return e+1}))},[y,T]),se.useMemo(function(){return new ue.CssClassManager(function(){return b.current})},[])),e=(se.useEffect(function(){n.isAlive()&&n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return M(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return R(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return s(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(s){return g(function(e){var t,n=e,e=s;if(v)return t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t;var r=[],o=[],a=new Map,i=new Map;return e.forEach(function(e){return i.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();i.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:G(r,o),instanceIdMap:a}})},showFullWidth:function(e){return E(e)},getFullWidthCellRenderer:function(){return P.current}},b.current,r)},[]),se.useEffect(function(){return x(y,t,b.current,P)},[y]),se.useMemo(function(){var e={top:S,transform:O};return Object.assign(e,d),e},[S,O,d])),k=y&&y.componentFromFramework,A=null!=C,F=se.useMemo(function(){var e;return!!((null==(e=y)?void 0:e.componentFromFramework)&&me(y.componentClass))},[y]);return ce.createElement("div",{ref:b,role:u,style:e,"row-index":o,"row-id":i,"row-business-key":l,tabIndex:f},A&&C.list.map(function(e){return ce.createElement(Z,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,ce.createElement(ce.Fragment,null,F&&ce.createElement(u,le({},y.params)),!F&&ce.createElement(u,le({},y.params,{ref:P})))))}),Q=se.memo(function(e){function t(){return ce.createElement("div",{className:v,ref:y,role:"rowgroup",style:M},i.map(function(e){return ce.createElement(J,{rowCtrl:e,containerType:h,key:e.getInstanceId()})}))}var r=se.useContext(pe).context,n=se.useState(""),o=n[0],a=n[1],n=se.useState([]),i=n[0],s=n[1],n=se.useState([]),u=n[0],c=n[1],n=se.useState(!1),l=n[0],p=n[1],n=se.useState(""),f=n[0],m=n[1],d=e.name,h=se.useMemo(function(){return ue.getRowContainerTypeForName(d)},[d]),C=se.useRef(null),g=se.useRef(null),y=se.useRef(null),E=se.useMemo(function(){return ue.RowContainerCtrl.getRowContainerCssClasses(d)},[d]),n=se.useMemo(function(){return U(E.wrapper)},[]),e=se.useMemo(function(){return U(E.viewport)},[]),v=se.useMemo(function(){return U(E.container)},[]),R=d===ue.RowContainerName.CENTER,S=d===ue.RowContainerName.TOP_CENTER||d===ue.RowContainerName.BOTTOM_CENTER,w=!R&&!S,O=(L(" AG Row Container "+d+" ",R?C:S?g:y),se.useEffect(function(){s(function(e){if(l)return u;var t=e.filter(function(e){return 0<=u.indexOf(e)}),e=u.filter(function(e){return t.indexOf(e)<0});return G(t,e)})},[l,u]),se.useEffect(function(){var e=[],t={setViewportHeight:a,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return p(e)},setContainerWidth:function(e){return m(e)}},n=r.createBean(new ue.RowContainerCtrl(d));return e.push(n),n.setComp(t,y.current,g.current,C.current),function(){r.destroyBeans(e)}},[]),se.useMemo(function(){return{height:o}},[o])),M=se.useMemo(function(){return{width:f}},[f]);return ce.createElement(ce.Fragment,null,R&&ce.createElement("div",{className:n,ref:C,role:"presentation"},ce.createElement("div",{className:e,ref:g,role:"presentation",style:O},t())),S&&ce.createElement("div",{className:e,ref:g,role:"presentation",style:O},t()),w&&t())}),ee=se.memo(function(){function o(e){return ce.createElement(Q,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return ce.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=se.useContext(pe),a=t.context,i=t.agStackComponentsRegistry,s=t.resizeObserverService,t=se.useState(""),n=t[0],u=t[1],t=se.useState(0),r=t[0],c=t[1],t=se.useState(0),l=t[0],p=t[1],t=se.useState(0),f=t[0],m=t[1],t=se.useState(0),d=t[0],h=t[1],t=se.useState(""),C=t[0],g=t[1],t=se.useState(""),y=t[0],E=t[1],t=se.useState(null),v=t[0],R=t[1],t=se.useState(""),S=t[0],w=t[1],t=se.useState(null),O=t[0],M=t[1],t=se.useState(""),b=t[0],P=t[1],t=se.useState(null),D=t[0],T=t[1],I=se.useRef(null),N=se.useRef(null),k=se.useRef(null),A=se.useRef(null),t=(L(" AG Grid Body ",I),L(" AG Pinned Top ",N),L(" AG Middle ",k),L(" AG Pinned Bottom ",A),se.useEffect(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=i.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},I.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),I.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),I.current.appendChild(document.createComment(" AG Overlay Wrapper ")),I.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:c,setRowCount:p,setTopHeight:m,setBottomHeight:h,setTopDisplay:g,setBottomDisplay:E,setColumnMovingCss:R,updateLayoutClasses:w,setAlwaysVerticalScrollClass:M,setPinnedTopBottomOverflowY:P,setCellSelectableCss:T,registerBodyViewportResizeListener:function(e){var t=s.observeResize(k.current,e);r.push(function(){return t()})}},t=a.createBean(new ue.GridBodyCtrl),n.push(t),t.setComp(e,I.current,k.current,N.current,A.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}},[]),se.useMemo(function(){return U("ag-root","ag-unselectable",v,S)},[v,S])),F=se.useMemo(function(){return U("ag-body-viewport",n,S,O,D)},[n,S,O,D]),G=se.useMemo(function(){return U("ag-floating-top",D)},[D]),x=se.useMemo(function(){return U("ag-floating-bottom",D)},[D]),_=se.useMemo(function(){return{height:f,minHeight:f,display:C,overflowY:b}},[f,C,b]),B=se.useMemo(function(){return{height:d,minHeight:d,display:y,overflowY:b}},[d,y,b]);return ce.createElement("div",{ref:I,className:t,role:"grid","aria-colcount":r,"aria-rowcount":l},ce.createElement(X,null),e({section:N,className:G,style:_,children:[ue.RowContainerName.TOP_LEFT,ue.RowContainerName.TOP_CENTER,ue.RowContainerName.TOP_RIGHT,ue.RowContainerName.TOP_FULL_WIDTH]}),e({section:k,className:F,children:[ue.RowContainerName.LEFT,ue.RowContainerName.CENTER,ue.RowContainerName.RIGHT,ue.RowContainerName.FULL_WIDTH]}),e({section:A,className:x,style:B,children:[ue.RowContainerName.BOTTOM_LEFT,ue.RowContainerName.BOTTOM_CENTER,ue.RowContainerName.BOTTOM_RIGHT,ue.RowContainerName.BOTTOM_FULL_WIDTH]}))}),C=se.forwardRef(function(e,t){function n(e){return ce.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,i=e.gridCtrl,s=se.useContext(pe).context,u=se.useRef(null),c=se.useRef(null),l=se.useRef(),e=se.useState(),p=e[0],f=e[1];se.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),se.useEffect(function(){var e=u.current,t=c.current,n=l.current=s.createBean(new ue.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return i.focusInnerElement(e)}}));return function(){s.destroyBean(n)}},[]);return ce.createElement(ce.Fragment,null,n("top"),r,n("bottom"))}),te=se.memo(C),ne=se.memo(function(e){var p=e.context,e=se.useState(""),t=e[0],n=e[1],e=se.useState(""),r=e[0],o=e[1],e=se.useState(""),a=e[0],i=e[1],e=se.useState(null),s=e[0],u=e[1],e=se.useState(null),c=e[0],l=e[1],e=se.useState(!1),f=e[0],m=e[1],e=se.useState(),d=e[0],h=e[1],C=se.useRef(null),g=se.useRef(null),y=se.useRef(),E=se.useRef(null),v=se.useRef(function(){}),e=se.useCallback(function(){},[]),R=se.useMemo(function(){return p.getBean("beans")},[]),S=(L(" AG Grid ",g),se.useEffect(function(){var e=C.current=p.createBean(new ue.GridCtrl);return function(){p.destroyBean(e),C.current=null}},[]),se.useEffect(function(){var e=C.current,t=(v.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ue.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:i,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)},[]),se.useEffect(function(){var e,t,n,r,o,a,i,s,u,c,l;if(d)return e=C.current,t=[],o=R.agStackComponentsRegistry,c=o.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],i=g.current,s=E.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),i.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=s.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(s=p.createBean(new n)).getGui(),i.insertAdjacentElement("beforeend",l),a.push(l),t.push(s)),o&&(l=(u=p.createBean(new o)).getGui(),i.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),i.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),se.useMemo(function(){return U("ag-root-wrapper",t,r,a)},[t,r,a])),w=se.useMemo(function(){return U("ag-root-wrapper-body","ag-focus-managed",a)},[a]),O=se.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=s?s:""}},[c,s]),M=E.current,b=se.useCallback(function(e){y.current=e,h(!0)},[]);return ce.createElement("div",{ref:g,className:S,style:O},ce.createElement("div",{className:w,ref:E},f&&M&&ce.createElement(pe.Provider,{value:R},ce.createElement(te,{ref:b,eFocusableElement:M,onTabKeyDown:e,gridCtrl:C.current},ce.createElement(ee,null)))))}),v=(n(g,q=se.Component),g.prototype.render=function(){return ce.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&ce.createElement(ne,{context:this.state.context}),this.portalManager.getPortals())},g.prototype.createStyleForDiv=function(){return le({height:"100%"},this.props.containerStyle||{})},g.prototype.componentDidMount=function(){var t=this,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new oe(this.portalManager)},modules:e,frameworkOverrides:new he(!0)},n=(this.gridOptions=this.props.gridOptions||{},this.props.children);u.hasChildColumns(n)&&(this.gridOptions.columnDefs=u.mapChildColumnDefs(n)),this.gridOptions=ue.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new ue.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ue.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ue.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e)},g.prototype.componentWillUnmount=function(){this.destroyFuncs.forEach(function(e){return e()})},g.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},g.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},g.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,u.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=u.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},g.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){ue._.includes(ue.ComponentUtil.ALL_PROPERTIES,e)&&!o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])&&(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ue.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},g.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ue.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},g.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},g.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},g.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},g);function g(e){var t=q.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.changeDetectionService=new _,t.eGui=ce.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.state={context:void 0},t.portalManager=new W(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}n(y,re=ue.BaseComponentWrapper),y.prototype.createWrapper=function(e,t){return new H(e,this.parent,t)};var re,oe=y;function y(e){var t=re.call(this)||this;return t.parent=e,t}var ae,ie=se.forwardRef(function(n,e){var t=se.useContext(pe),r=t.ctrlsFactory,o=t.context,a=t.gridOptionsWrapper,i=t.resizeObserverService,s=t.clientSideRowModel,u=t.serverSideRowModel,t=se.useState(new fe),c=t[0],l=t[1],t=se.useState(new fe),p=t[0],f=t[1],t=se.useState(),m=t[0],d=t[1],t=se.useState(),h=t[0],C=t[1],g=se.useRef(),y=se.useRef(null),t=se.useMemo(function(){return c.toString()+" ag-details-row"},[c]),E=se.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&se.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),se.useEffect(function(){n.template&&"string"==typeof n.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")},[]),se.useEffect(function(){var e={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)}},t=r.getInstance("detailCellRenderer");if(t)return o.createBean(t),t.init(e,n),g.current=t,a.isDetailRowAutoHeight()&&(i.observeResize(y.current,e=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){n.node.setRowHeight(e),s?s.onRowHeightChanged():u&&u.onRowHeightChanged()},0)}),e()),function(){o.destroyBean(t)}},[]),se.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return ce.createElement("div",{className:t,ref:y},m&&ce.createElement(v,le({className:E},m,{rowData:h,setGridApi:e})))}),he=(n(E,ae=ue.VanillaFrameworkOverrides),E.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},E.prototype.isFrameworkComponent=function(e){if(!e)return!1;e=e.prototype;return!(e&&"getGui"in e)},E);function E(e){var t=ae.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:D,agGroupRowRenderer:D,agDetailCellRenderer:ie},t.reactUi=e,t}n(S,Ce=se.Component),S.prototype.render=function(){var t=this;return ce.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},S.prototype.createStyleForDiv=function(){return le({height:"100%"},this.props.containerStyle||{})},S.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new ye(this,this.portalManager)},modules:e,frameworkOverrides:new he(!1)},t=this.props.gridOptions||{},n=this.props.children;u.hasChildColumns(n)&&(t.columnDefs=u.mapChildColumnDefs(n)),this.gridOptions=ue.ComponentUtil.copyAttributesToGridOptions(t,this.props),new ue.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},S.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return t.ChangeDetectionStrategyType.IdentityCheck}return t.ChangeDetectionStrategyType.DeepValueCheck},S.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||this.props.gridOptions.getRowId)},S.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},S.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},S.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},S.prototype.extractDeclarativeColDefChanges=function(e,t){var n,r,o,a;this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs||(n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs,u.hasChildColumns(e.children)?(a=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),e=u.mapChildColumnDefs(e.children),a.areEqual(o,e)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:e})):o&&0<o.length&&(t[r]={previousValue:o,currentValue:[]}))},S.prototype.extractGridPropertyChanges=function(t,n,r){var o=this,a=!!n.debug;Object.keys(n).forEach(function(e){ue._.includes(ue.ComponentUtil.ALL_PROPERTIES,e)&&!o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(e)).areEqual(t[e],n[e])&&(a&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ue.ComponentUtil.getEventCallbacks().forEach(function(e){t[e]!==n[e]&&(a&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},S.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},S.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},S.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},S.prototype.processSynchronousChanges=function(e){var t,n=le({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length&&this.api&&ue.ComponentUtil.processOnChange(t,this.gridOptions,this.api,this.columnApi)),n},S.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ue.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)})},S.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:S.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var Ce,R=S;function S(e){var t=Ce.call(this,e)||this;return t.props=e,t.changeDetectionService=new _,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new W(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function w(e,t){e.forEach(function(e){R[e]=t})}R.propTypes={gridOptions:e.object},w(ue.ComponentUtil.getEventCallbacks(),e.func),w(ue.ComponentUtil.BOOLEAN_PROPERTIES,e.bool),w(ue.ComponentUtil.STRING_PROPERTIES,e.string),w(ue.ComponentUtil.OBJECT_PROPERTIES,e.object),w(ue.ComponentUtil.ARRAY_PROPERTIES,e.array),w(ue.ComponentUtil.NUMBER_PROPERTIES,e.number),w(ue.ComponentUtil.FUNCTION_PROPERTIES,e.func);n(Ee,ge=ue.BaseComponentWrapper),Ee.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new I(e,this.agGridReact,this.portalManager,t):new H(e,this.portalManager,t)};var ge,ye=Ee;function Ee(e,t){var n=ge.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}n(Re,ve=se.Component),Re.prototype.render=function(){var e=this.props.suppressReactUi?R:v;return ce.createElement(e,le({},this.props,{setGridApi:this.setGridApi}))};var ve,o=Re;function Re(){var n=null!==ve&&ve.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}t.AgGridReact=o,t.AgGridReactLegacy=R,t.AgGridReactFire=v,t.AgGridColumn=u,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { Component } from 'react'; | ||
@@ -3,0 +3,0 @@ import { AgGridReactProps, AgReactUiProps } from './shared/interfaces'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,3 +0,3 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import 'ag-grid-community/dist/styles/ag-grid.css'; | ||
import 'ag-grid-community/dist/styles/ag-theme-alpine.css'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { ColumnApi, GridApi, GridOptions } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React, { Component } from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -108,3 +108,3 @@ var __extends = (this && this.__extends) || (function () { | ||
return (this.props.deltaRowDataMode || this.props.immutableData) || | ||
(this.props.gridOptions && (this.props.gridOptions.deltaRowDataMode || this.props.gridOptions.immutableData)); | ||
(this.props.gridOptions && (this.props.gridOptions.deltaRowDataMode || this.props.gridOptions.immutableData || this.props.gridOptions.getRowId)); | ||
}; | ||
@@ -111,0 +111,0 @@ AgGridReactLegacy.prototype.shouldComponentUpdate = function (nextProps) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { AgPromise, ComponentType } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { ReactComponent } from '../shared/reactComponent'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
export { AgGridReact } from './agGridReact'; | ||
@@ -3,0 +3,0 @@ export { AgGridReactLegacy } from './legacy/agGridReactLegacy'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { ColumnApi, Context, GridApi } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { Component } from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
import { Beans } from 'ag-grid-community'; | ||
export declare const BeansContext: React.Context<Beans>; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importDefault = (this && this.__importDefault) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from "react"; | ||
@@ -3,0 +3,0 @@ import { IDetailCellRendererParams } from "ag-grid-community"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -42,3 +42,3 @@ var __assign = (this && this.__assign) || function () { | ||
react_1.useEffect(function () { | ||
if (props.template) { | ||
if (props.template && typeof props.template === 'string') { | ||
console.warn('AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.'); | ||
@@ -45,0 +45,0 @@ } |
@@ -1,5 +0,5 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { GroupCellRendererParams } from "ag-grid-community"; | ||
import React from 'react'; | ||
declare const _default: React.MemoExoticComponent<(props: GroupCellRendererParams) => JSX.Element>; | ||
export default _default; | ||
declare const GroupCellRenderer: React.ForwardRefExoticComponent<GroupCellRendererParams & React.RefAttributes<unknown>>; | ||
export default GroupCellRenderer; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
var utils_1 = require("../utils"); | ||
var GroupCellRenderer = function (props) { | ||
var GroupCellRenderer = react_1.forwardRef(function (props, ref) { | ||
var context = react_1.useContext(beansContext_1.BeansContext).context; | ||
@@ -42,2 +42,8 @@ var eGui = react_1.useRef(null); | ||
var _g = react_1.useState(new utils_1.CssClasses()), checkboxCssClasses = _g[0], setCheckboxCssClasses = _g[1]; | ||
react_1.useImperativeHandle(ref, function () { | ||
return { | ||
// force new instance when grid tries to refresh | ||
refresh: function () { return false; } | ||
}; | ||
}); | ||
react_1.useEffect(function () { | ||
@@ -81,3 +87,4 @@ return jsComp_1.showJsComp(innerCompDetails, context, eValueRef.current); | ||
react_1.default.createElement("span", { className: "ag-group-child-count" }, childCount))); | ||
}; | ||
exports.default = react_1.memo(GroupCellRenderer); | ||
}); | ||
// we do not memo() here, as it would stop the forwardRef working | ||
exports.default = GroupCellRenderer; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { CellCtrl, UserCompDetails } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -63,3 +63,3 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
var jsxShowValue = function (showDetails, parentId, cellRendererRef, showTools, reactCellRendererStateless, setECellValue) { | ||
var jsxShowValue = function (showDetails, key, parentId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setECellValue) { | ||
var compDetails = showDetails.compDetails, value = showDetails.value; | ||
@@ -75,5 +75,5 @@ var noCellRenderer = !compDetails; | ||
noCellRenderer && react_1.default.createElement(react_1.default.Fragment, null, valueForNoCellRenderer), | ||
reactCellRenderer && !reactCellRendererStateless && react_1.default.createElement(CellRendererClass, __assign({}, compDetails.params, { ref: cellRendererRef })), | ||
reactCellRenderer && reactCellRendererStateless && react_1.default.createElement(CellRendererClass, __assign({}, compDetails.params)))); }; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, showTools ? | ||
reactCellRenderer && !reactCellRendererStateless && react_1.default.createElement(CellRendererClass, __assign({}, compDetails.params, { key: key, ref: cellRendererRef })), | ||
reactCellRenderer && reactCellRendererStateless && react_1.default.createElement(CellRendererClass, __assign({}, compDetails.params, { key: key })))); }; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, showCellWrapper ? | ||
react_1.default.createElement("span", { role: "presentation", id: "cell-" + parentId, className: "ag-cell-value", ref: setECellValue }, bodyJsxFunc()) | ||
@@ -88,16 +88,14 @@ : | ||
var _b = react_1.useState(), editDetails = _b[0], setEditDetails = _b[1]; | ||
var _c = react_1.useState(new utils_1.CssClasses()), cssClasses = _c[0], setCssClasses = _c[1]; | ||
var _d = react_1.useState(), userStyles = _d[0], setUserStyles = _d[1]; | ||
var _e = react_1.useState(), tabIndex = _e[0], setTabIndex = _e[1]; | ||
var _f = react_1.useState(), ariaSelected = _f[0], setAriaSelected = _f[1]; | ||
var _g = react_1.useState(), ariaExpanded = _g[0], setAriaExpanded = _g[1]; | ||
var _h = react_1.useState(), ariaColIndex = _h[0], setAriaColIndex = _h[1]; | ||
var _j = react_1.useState(), ariaDescribedBy = _j[0], setAriaDescribedBy = _j[1]; | ||
var _k = react_1.useState(), role = _k[0], setRole = _k[1]; | ||
var _l = react_1.useState(), colId = _l[0], setColId = _l[1]; | ||
var _m = react_1.useState(), title = _m[0], setTitle = _m[1]; | ||
var _o = react_1.useState(false), includeSelection = _o[0], setIncludeSelection = _o[1]; | ||
var _p = react_1.useState(false), includeRowDrag = _p[0], setIncludeRowDrag = _p[1]; | ||
var _q = react_1.useState(false), includeDndSource = _q[0], setIncludeDndSource = _q[1]; | ||
var _r = react_1.useState(), jsEditorComp = _r[0], setJsEditorComp = _r[1]; | ||
var _c = react_1.useState(1), renderKey = _c[0], setRenderKey = _c[1]; | ||
var _d = react_1.useState(new utils_1.CssClasses()), cssClasses = _d[0], setCssClasses = _d[1]; | ||
var _e = react_1.useState(), userStyles = _e[0], setUserStyles = _e[1]; | ||
var _f = react_1.useState(), tabIndex = _f[0], setTabIndex = _f[1]; | ||
var _g = react_1.useState(), ariaDescribedBy = _g[0], setAriaDescribedBy = _g[1]; | ||
var _h = react_1.useState(), role = _h[0], setRole = _h[1]; | ||
var _j = react_1.useState(), colId = _j[0], setColId = _j[1]; | ||
var _k = react_1.useState(), title = _k[0], setTitle = _k[1]; | ||
var _l = react_1.useState(false), includeSelection = _l[0], setIncludeSelection = _l[1]; | ||
var _m = react_1.useState(false), includeRowDrag = _m[0], setIncludeRowDrag = _m[1]; | ||
var _o = react_1.useState(false), includeDndSource = _o[0], setIncludeDndSource = _o[1]; | ||
var _p = react_1.useState(), jsEditorComp = _p[0], setJsEditorComp = _p[1]; | ||
var forceWrapper = react_1.useMemo(function () { return cellCtrl.isForceWrapper(); }, []); | ||
@@ -110,3 +108,3 @@ var eGui = react_1.useRef(null); | ||
var eCellWrapper = react_1.useRef(); | ||
var _s = react_1.useState(0), cellWrapperVersion = _s[0], setCellWrapperVersion = _s[1]; | ||
var _q = react_1.useState(0), cellWrapperVersion = _q[0], setCellWrapperVersion = _q[1]; | ||
var setCellWrapperRef = react_1.useCallback(function (ref) { | ||
@@ -118,3 +116,3 @@ eCellWrapper.current = ref; | ||
var eCellValue = react_1.useRef(); | ||
var _t = react_1.useState(0), cellValueVersion = _t[0], setCellValueVersion = _t[1]; | ||
var _r = react_1.useState(0), cellValueVersion = _r[0], setCellValueVersion = _r[1]; | ||
var setCellValueRef = react_1.useCallback(function (ref) { | ||
@@ -139,3 +137,3 @@ eCellValue.current = ref; | ||
var setInlineCellEditorRef = react_1.useCallback(function (cellRenderer) { return setCellEditorRef(false, cellRenderer); }, []); | ||
showJsRenderer_1.default(renderDetails, showTools, eCellValue.current, cellValueVersion, jsCellRendererRef, eGui); | ||
showJsRenderer_1.default(renderDetails, showCellWrapper, eCellValue.current, cellValueVersion, jsCellRendererRef, eGui); | ||
// if RenderDetails changed, need to call refresh. This is not our preferred way (the preferred | ||
@@ -164,3 +162,11 @@ // way for React is just allow the new props to propagate down to the React Cell Renderer) | ||
} | ||
cellRendererRef.current.refresh(newCompDetails.params); | ||
var result = cellRendererRef.current.refresh(newCompDetails.params); | ||
if (result != true) { | ||
// increasing the render key forces the refresh. this is undocumented (for React users, | ||
// we don't document the refresh method, instead we tell them to act on new params). | ||
// however the GroupCellRenderer has this logic in it and would need a small refactor | ||
// to get it working without using refresh() returning false. so this hack staying in, | ||
// in React if refresh() is implemented and returns false (or undefined), we force a refresh | ||
setRenderKey(function (prev) { return prev + 1; }); | ||
} | ||
}, [renderDetails]); | ||
@@ -200,3 +206,3 @@ react_1.useEffect(function () { | ||
setAriaDescribedBy(!!eCellWrapper.current ? "cell-" + cellCtrl.getInstanceId() : undefined); | ||
if (!eCellWrapper.current || !showTools) { | ||
if (!eCellWrapper.current || !showCellWrapper) { | ||
return; | ||
@@ -230,3 +236,3 @@ } | ||
}; | ||
}, [showTools, includeDndSource, includeRowDrag, includeSelection, cellWrapperVersion]); | ||
}, [showCellWrapper, includeDndSource, includeRowDrag, includeSelection, cellWrapperVersion]); | ||
react_1.useEffect(function () { | ||
@@ -239,6 +245,3 @@ if (!cellCtrl) { | ||
setUserStyles: function (styles) { return setUserStyles(styles); }, | ||
setAriaSelected: function (value) { return setAriaSelected(value); }, | ||
setAriaExpanded: function (value) { return setAriaExpanded(value); }, | ||
getFocusableElement: function () { return eGui.current; }, | ||
setAriaColIndex: function (index) { return setAriaColIndex(index); }, | ||
setTabIndex: function (tabIndex) { return setTabIndex(tabIndex); }, | ||
@@ -297,5 +300,5 @@ setRole: function (role) { return setRole(role); }, | ||
var showContents = function () { return react_1.default.createElement(react_1.default.Fragment, null, | ||
renderDetails != null && jsxShowValue(renderDetails, cellInstanceId, cellRendererRef, showTools, reactCellRendererStateless, setCellValueRef), | ||
renderDetails != null && jsxShowValue(renderDetails, renderKey, cellInstanceId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setCellValueRef), | ||
editDetails != null && jsxEditValue(editDetails, setInlineCellEditorRef, setPopupCellEditorRef, eGui.current, cellCtrl, jsEditorComp)); }; | ||
return (react_1.default.createElement("div", { ref: eGui, className: className, style: userStyles, tabIndex: tabIndex, "aria-selected": ariaSelected, "aria-colindex": ariaColIndex, role: role, "aria-expanded": ariaExpanded, "col-id": colId, title: title, "aria-describedby": ariaDescribedBy }, showCellWrapper ? | ||
return (react_1.default.createElement("div", { ref: eGui, className: className, style: userStyles, tabIndex: tabIndex, role: role, "col-id": colId, title: title, "aria-describedby": ariaDescribedBy }, showCellWrapper ? | ||
react_1.default.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: setCellWrapperRef }, showContents()) | ||
@@ -302,0 +305,0 @@ : |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { CellCtrl } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { ICellRendererComp } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
declare const _default: React.MemoExoticComponent<() => JSX.Element>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { Context } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
declare const _default: React.MemoExoticComponent<() => JSX.Element>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { HeaderCellCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -24,2 +24,3 @@ var __assign = (this && this.__assign) || function () { | ||
var beansContext_1 = require("../beansContext"); | ||
var ag_grid_community_1 = require("ag-grid-community"); | ||
var utils_1 = require("../utils"); | ||
@@ -29,9 +30,8 @@ var jsComp_1 = require("../jsComp"); | ||
var context = react_1.useContext(beansContext_1.BeansContext).context; | ||
var _a = react_1.useState(new utils_1.CssClasses()), cssClasses = _a[0], setCssClasses = _a[1]; | ||
var _b = react_1.useState(), width = _b[0], setWidth = _b[1]; | ||
var _c = react_1.useState(), title = _c[0], setTitle = _c[1]; | ||
var _d = react_1.useState(), colId = _d[0], setColId = _d[1]; | ||
var _e = react_1.useState(), ariaSort = _e[0], setAriaSort = _e[1]; | ||
var _f = react_1.useState(), ariaDescribedBy = _f[0], setAriaDescribedBy = _f[1]; | ||
var _g = react_1.useState(), userCompDetails = _g[0], setUserCompDetails = _g[1]; | ||
var _a = react_1.useState(), width = _a[0], setWidth = _a[1]; | ||
var _b = react_1.useState(), title = _b[0], setTitle = _b[1]; | ||
var _c = react_1.useState(), colId = _c[0], setColId = _c[1]; | ||
var _d = react_1.useState(), ariaSort = _d[0], setAriaSort = _d[1]; | ||
var _e = react_1.useState(), ariaDescribedBy = _e[0], setAriaDescribedBy = _e[1]; | ||
var _f = react_1.useState(), userCompDetails = _f[0], setUserCompDetails = _f[1]; | ||
var eGui = react_1.useRef(null); | ||
@@ -41,6 +41,7 @@ var eResize = react_1.useRef(null); | ||
var ctrl = props.ctrl; | ||
var cssClassManager = react_1.useMemo(function () { return new ag_grid_community_1.CssClassManager(function () { return eGui.current; }); }, []); | ||
react_1.useEffect(function () { | ||
var compProxy = { | ||
setWidth: function (width) { return setWidth(width); }, | ||
addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); }, | ||
addOrRemoveCssClass: function (name, on) { return cssClassManager.addOrRemoveCssClass(name, on); }, | ||
setAriaSort: function (sort) { return setAriaSort(sort); }, | ||
@@ -58,5 +59,3 @@ setColId: function (id) { return setColId(id); }, | ||
// js comps | ||
react_1.useEffect(function () { | ||
return jsComp_1.showJsComp(userCompDetails, context, eGui.current, userCompRef); | ||
}, [userCompDetails]); | ||
react_1.useEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eGui.current, userCompRef); }, [userCompDetails]); | ||
// add drag handling, must be done after component is added to the dom | ||
@@ -72,10 +71,6 @@ react_1.useEffect(function () { | ||
}, [userCompDetails]); | ||
var style = react_1.useMemo(function () { return ({ | ||
width: width | ||
}); }, [width]); | ||
var className = react_1.useMemo(function () { return 'ag-header-cell ' + cssClasses.toString(); }, [cssClasses]); | ||
var style = react_1.useMemo(function () { return ({ width: width }); }, [width]); | ||
var userCompStateless = react_1.useMemo(function () { | ||
var res = userCompDetails | ||
&& userCompDetails.componentFromFramework | ||
&& utils_1.isComponentStateless(userCompDetails.componentClass); | ||
var _a; | ||
var res = ((_a = userCompDetails) === null || _a === void 0 ? void 0 : _a.componentFromFramework) && utils_1.isComponentStateless(userCompDetails.componentClass); | ||
return !!res; | ||
@@ -85,3 +80,3 @@ }, [userCompDetails]); | ||
var UserCompClass = userCompDetails && userCompDetails.componentClass; | ||
return (react_1.default.createElement("div", { ref: eGui, className: className, style: style, title: title, "col-id": colId, "aria-sort": ariaSort, role: "columnheader", tabIndex: -1, "aria-describedby": ariaDescribedBy }, | ||
return (react_1.default.createElement("div", { ref: eGui, className: "ag-header-cell", style: style, title: title, "col-id": colId, "aria-sort": ariaSort, role: "columnheader", tabIndex: -1, "aria-describedby": ariaDescribedBy }, | ||
react_1.default.createElement("div", { ref: eResize, className: "ag-header-cell-resize", role: "presentation" }), | ||
@@ -88,0 +83,0 @@ reactUserComp && userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)), |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { HeaderFilterCellCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -38,3 +38,4 @@ var __assign = (this && this.__assign) || function () { | ||
var eButtonShowMainFilter = react_1.useRef(null); | ||
var userCompRef = react_1.useRef(); | ||
var userCompResolve = react_1.useRef(); | ||
var userCompPromise = react_1.useMemo(function () { return new ag_grid_community_1.AgPromise(function (resolve) { return userCompResolve.current = resolve; }); }, []); | ||
var ctrl = props.ctrl; | ||
@@ -48,3 +49,3 @@ react_1.useEffect(function () { | ||
setCompDetails: function (compDetails) { return setUserCompDetails(compDetails); }, | ||
getFloatingFilterComp: function () { return userCompRef.current ? ag_grid_community_1.AgPromise.resolve(userCompRef.current) : null; }, | ||
getFloatingFilterComp: function () { return userCompPromise; }, | ||
setMenuIcon: function (eIcon) { return eButtonShowMainFilter.current.appendChild(eIcon); } | ||
@@ -56,3 +57,3 @@ }; | ||
react_1.useEffect(function () { | ||
return jsComp_1.showJsComp(userCompDetails, context, eFloatingFilterBody.current, userCompRef); | ||
return jsComp_1.showJsComp(userCompDetails, context, eFloatingFilterBody.current, userCompResolve.current); | ||
}, [userCompDetails]); | ||
@@ -76,3 +77,3 @@ var style = react_1.useMemo(function () { return ({ | ||
reactUserComp && userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)), | ||
reactUserComp && !userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params, { ref: userCompRef }))), | ||
reactUserComp && !userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params, { ref: userCompResolve.current }))), | ||
react_1.default.createElement("div", { ref: eButtonWrapper, className: buttonWrapperClassName, role: "presentation" }, | ||
@@ -79,0 +80,0 @@ react_1.default.createElement("button", { ref: eButtonShowMainFilter, type: "button", "aria-label": "Open Filter Menu", className: "ag-floating-filter-button-button", tabIndex: -1 })))); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { HeaderGroupCellCtrl } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { HeaderRowCtrl } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ declare const _default: React.MemoExoticComponent<(props: { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { Context, UserCompDetails } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,4 +0,4 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { RefObject } from 'react'; | ||
declare const useReactCommentEffect: (comment: string, eForCommentRef: RefObject<HTMLElement>) => void; | ||
export default useReactCommentEffect; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { VanillaFrameworkOverrides } from "ag-grid-community"; | ||
@@ -3,0 +3,0 @@ export declare class ReactFrameworkOverrides extends VanillaFrameworkOverrides { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { RowContainerType, RowCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -79,18 +79,14 @@ var __assign = (this && this.__assign) || function () { | ||
var _e = react_1.useState(), tabIndex = _e[0], setTabIndex = _e[1]; | ||
var _f = react_1.useState(), ariaRowIndex = _f[0], setAriaRowIndex = _f[1]; | ||
var _g = react_1.useState(), ariaExpanded = _g[0], setAriaExpanded = _g[1]; | ||
var _h = react_1.useState(), ariaLabel = _h[0], setAriaLabel = _h[1]; | ||
var _j = react_1.useState(), ariaSelected = _j[0], setAriaSelected = _j[1]; | ||
var _k = react_1.useState(), userStyles = _k[0], setUserStyles = _k[1]; | ||
var _l = react_1.useState({ list: [], instanceIdMap: new Map() }), cellCtrls = _l[0], setCellCtrls = _l[1]; | ||
var _m = react_1.useState(), fullWidthCompDetails = _m[0], setFullWidthCompDetails = _m[1]; | ||
var _o = react_1.useState(false), domOrder = _o[0], setDomOrder = _o[1]; | ||
var _f = react_1.useState(), userStyles = _f[0], setUserStyles = _f[1]; | ||
var _g = react_1.useState({ list: [], instanceIdMap: new Map() }), cellCtrls = _g[0], setCellCtrls = _g[1]; | ||
var _h = react_1.useState(), fullWidthCompDetails = _h[0], setFullWidthCompDetails = _h[1]; | ||
var _j = react_1.useState(false), domOrder = _j[0], setDomOrder = _j[1]; | ||
// these styles have initial values, so element is placed into the DOM with them, | ||
// rather than an transition getting applied. | ||
var _p = react_1.useState(rowCtrl.getInitialRowTop()), top = _p[0], setTop = _p[1]; | ||
var _q = react_1.useState(rowCtrl.getInitialTransform()), transform = _q[0], setTransform = _q[1]; | ||
var _k = react_1.useState(rowCtrl.getInitialRowTop()), top = _k[0], setTop = _k[1]; | ||
var _l = react_1.useState(rowCtrl.getInitialTransform()), transform = _l[0], setTransform = _l[1]; | ||
var eGui = react_1.useRef(null); | ||
var fullWidthCompRef = react_1.useRef(); | ||
var autoHeightSetup = react_1.useRef(false); | ||
var _r = react_1.useState(0), autoHeightSetupAttempt = _r[0], setAutoHeightSetupAttempt = _r[1]; | ||
var _m = react_1.useState(0), autoHeightSetupAttempt = _m[0], setAutoHeightSetupAttempt = _m[1]; | ||
// puts autoHeight onto full with detail rows. this needs trickery, as we need | ||
@@ -123,2 +119,8 @@ // the HTMLElement for the provided Detail Cell Renderer, however the Detail Cell Renderer | ||
react_1.useEffect(function () { | ||
// because React is asychronous, it's possible the RowCtrl is no longer a valid RowCtrl. This can | ||
// happen if user calls two API methods one after the other, with the second API invalidating the rows | ||
// the first call created. Thus the rows for the first call could still get created even though no longer needed. | ||
if (!rowCtrl.isAlive()) { | ||
return; | ||
} | ||
var compProxy = { | ||
@@ -134,5 +136,2 @@ // the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles) | ||
setRowIndex: function (value) { return setRowIndex(value); }, | ||
setAriaRowIndex: function (value) { return setAriaRowIndex(value); }, | ||
setAriaExpanded: function (value) { return setAriaExpanded(value); }, | ||
setAriaLabel: function (value) { return setAriaLabel(value); }, | ||
setRowId: function (value) { return setRowId(value); }, | ||
@@ -142,3 +141,2 @@ setRowBusinessKey: function (value) { return setRowBusinessKey(value); }, | ||
setUserStyles: function (styles) { return setUserStyles(styles); }, | ||
setAriaSelected: function (value) { return setAriaSelected(value); }, | ||
setRole: function (value) { return setRole(value); }, | ||
@@ -153,10 +151,5 @@ // if we don't maintain the order, then cols will be ripped out and into the dom | ||
}, []); | ||
react_1.useEffect(function () { | ||
return jsComp_1.showJsComp(fullWidthCompDetails, context, eGui.current, fullWidthCompRef); | ||
}, [fullWidthCompDetails]); | ||
react_1.useEffect(function () { return jsComp_1.showJsComp(fullWidthCompDetails, context, eGui.current, fullWidthCompRef); }, [fullWidthCompDetails]); | ||
var rowStyles = react_1.useMemo(function () { | ||
var res = { | ||
top: top, | ||
transform: transform | ||
}; | ||
var res = { top: top, transform: transform }; | ||
Object.assign(res, userStyles); | ||
@@ -168,10 +161,7 @@ return res; | ||
var reactFullWidthCellRendererStateless = react_1.useMemo(function () { | ||
var res = fullWidthCompDetails | ||
&& fullWidthCompDetails.componentFromFramework | ||
&& utils_1.isComponentStateless(fullWidthCompDetails.componentClass); | ||
var _a; | ||
var res = ((_a = fullWidthCompDetails) === null || _a === void 0 ? void 0 : _a.componentFromFramework) && utils_1.isComponentStateless(fullWidthCompDetails.componentClass); | ||
return !!res; | ||
}, [fullWidthCompDetails]); | ||
var showCellsJsx = function () { return cellCtrls.list.map(function (cellCtrl) { | ||
return (react_1.default.createElement(cellComp_1.default, { cellCtrl: cellCtrl, editingRow: rowCtrl.isEditing(), printLayout: rowCtrl.isPrintLayout(), key: cellCtrl.getInstanceId() })); | ||
}); }; | ||
var showCellsJsx = function () { return cellCtrls.list.map(function (cellCtrl) { return (react_1.default.createElement(cellComp_1.default, { cellCtrl: cellCtrl, editingRow: rowCtrl.isEditing(), printLayout: rowCtrl.isPrintLayout(), key: cellCtrl.getInstanceId() })); }); }; | ||
var showFullWidthFrameworkJsx = function () { | ||
@@ -185,3 +175,3 @@ var FullWidthComp = fullWidthCompDetails.componentClass; | ||
}; | ||
return (react_1.default.createElement("div", { ref: eGui, role: role, style: rowStyles, "row-index": rowIndex, "aria-rowindex": ariaRowIndex, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, "aria-selected": ariaSelected, "row-id": rowId, "row-business-key": rowBusinessKey, tabIndex: tabIndex }, | ||
return (react_1.default.createElement("div", { ref: eGui, role: role, style: rowStyles, "row-index": rowIndex, "row-id": rowId, "row-business-key": rowBusinessKey, tabIndex: tabIndex }, | ||
showCells && showCellsJsx(), | ||
@@ -188,0 +178,0 @@ showFullWidthFramework && showFullWidthFrameworkJsx())); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { RowContainerName } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -30,5 +30,6 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
var _a = react_1.useState(''), viewportHeight = _a[0], setViewportHeight = _a[1]; | ||
var _b = react_1.useState([]), rowCtrls = _b[0], setRowCtrls = _b[1]; | ||
var _c = react_1.useState(false), domOrder = _c[0], setDomOrder = _c[1]; | ||
var _d = react_1.useState(''), containerWidth = _d[0], setContainerWidth = _d[1]; | ||
var _b = react_1.useState([]), rowCtrlsOrdered = _b[0], setRowCtrlsOrdered = _b[1]; | ||
var _c = react_1.useState([]), rowCtrls = _c[0], setRowCtrls = _c[1]; | ||
var _d = react_1.useState(false), domOrder = _d[0], setDomOrder = _d[1]; | ||
var _e = react_1.useState(''), containerWidth = _e[0], setContainerWidth = _e[1]; | ||
var name = params.name; | ||
@@ -49,19 +50,22 @@ var containerType = react_1.useMemo(function () { return ag_grid_community_1.getRowContainerTypeForName(name); }, [name]); | ||
reactComment_1.default(' AG Row Container ' + name + ' ', topLevelRef); | ||
// if domOrder=true, then we just copy rowCtrls into rowCtrlsOrdered observing order, | ||
// however if false, then we need to keep the order as they are in the dom, otherwise rowAnimation breaks | ||
react_1.useEffect(function () { | ||
setRowCtrlsOrdered(function (prev) { | ||
if (domOrder) { | ||
return rowCtrls; | ||
} | ||
// if dom order not important, we don't want to change the order | ||
// of the elements in the dom, as this would break transition styles | ||
var oldRows = prev.filter(function (r) { return rowCtrls.indexOf(r) >= 0; }); | ||
var newRows = rowCtrls.filter(function (r) { return oldRows.indexOf(r) < 0; }); | ||
var next = __spreadArrays(oldRows, newRows); | ||
return next; | ||
}); | ||
}, [domOrder, rowCtrls]); | ||
react_1.useEffect(function () { | ||
var beansToDestroy = []; | ||
var compProxy = { | ||
setViewportHeight: setViewportHeight, | ||
setRowCtrls: function (rowCtrls) { | ||
setRowCtrls(function (prev) { | ||
if (domOrder) { | ||
return rowCtrls; | ||
} | ||
// if dom order not important, we don't want to change the order | ||
// of the elements in the dom, as this would break transition styles | ||
var oldRows = prev.filter(function (r) { return rowCtrls.indexOf(r) >= 0; }); | ||
var newRows = rowCtrls.filter(function (r) { return oldRows.indexOf(r) < 0; }); | ||
var next = __spreadArrays(oldRows, newRows); | ||
return next; | ||
}); | ||
}, | ||
setRowCtrls: function (rowCtrls) { return setRowCtrls(rowCtrls); }, | ||
setDomOrder: function (domOrder) { return setDomOrder(domOrder); }, | ||
@@ -83,3 +87,3 @@ setContainerWidth: function (width) { return setContainerWidth(width); } | ||
}); }, [containerWidth]); | ||
var buildContainer = function () { return (react_1.default.createElement("div", { className: containerClasses, ref: eContainer, role: "rowgroup", style: containerStyle }, rowCtrls.map(function (rowCtrl) { return react_1.default.createElement(rowComp_1.default, { rowCtrl: rowCtrl, containerType: containerType, key: rowCtrl.getInstanceId() }); }))); }; | ||
var buildContainer = function () { return (react_1.default.createElement("div", { className: containerClasses, ref: eContainer, role: "rowgroup", style: containerStyle }, rowCtrlsOrdered.map(function (rowCtrl) { return react_1.default.createElement(rowComp_1.default, { rowCtrl: rowCtrl, containerType: containerType, key: rowCtrl.getInstanceId() }); }))); }; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -86,0 +90,0 @@ template1 && |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import React from 'react'; | ||
@@ -3,0 +3,0 @@ import { GridCtrl } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
export declare const classesList: (...list: string[]) => string; | ||
@@ -3,0 +3,0 @@ export declare class CssClasses { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { Component } from 'react'; | ||
@@ -3,0 +3,0 @@ import { ColDef, ColGroupDef } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
export declare enum ChangeDetectionStrategyType { | ||
@@ -3,0 +3,0 @@ IdentityCheck = "IdentityCheck", |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,3 +0,3 @@ | ||
// ag-grid-react v27.0.1 | ||
import { ColumnApi, GridApi, GridOptions, ICellEditor, ICellRenderer, IDate, IFilter, IHeader, IHeaderGroup, IStatusPanel, IToolPanel, Module } from 'ag-grid-community'; | ||
// ag-grid-react v27.1.0 | ||
import { ColumnApi, GridApi, GridOptions, ICellEditor, ICellRenderer, IDate, IFilter, IFloatingFilter, IHeader, IHeaderGroup, IStatusPanel, IToolPanel, Module } from 'ag-grid-community'; | ||
import { ChangeDetectionStrategyType } from './changeDetectionService'; | ||
@@ -33,2 +33,4 @@ export interface SharedProps extends GridOptions { | ||
} | ||
export interface IFloatingFilterReactComp extends IFloatingFilter, AgReactComponent { | ||
} | ||
export interface ICellRendererReactComp extends ICellRenderer, AgReactComponent { | ||
@@ -35,0 +37,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
export default function generateNewKey(): string; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { ComponentType, AgPromise } from 'ag-grid-community'; | ||
@@ -3,0 +3,0 @@ import { ReactComponent } from './reactComponent'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { Component, ReactPortal } from "react"; | ||
@@ -3,0 +3,0 @@ import { ReactComponent } from "./reactComponent"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { ReactPortal } from 'react'; | ||
@@ -3,0 +3,0 @@ import { ComponentType, IComponent, WrappableInterface } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { VanillaFrameworkOverrides } from "ag-grid-community"; | ||
@@ -3,0 +3,0 @@ export declare class ReactFrameworkOverrides extends VanillaFrameworkOverrides { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
import { RefObject } from 'react'; | ||
@@ -3,0 +3,0 @@ import { ColumnApi, GridApi } from 'ag-grid-community'; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-react v27.0.1 | ||
// ag-grid-react v27.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "ag-grid-react", | ||
"version": "27.0.1", | ||
"version": "27.1.0", | ||
"description": "AG Grid React Component", | ||
@@ -39,6 +39,6 @@ "main": "main.js", | ||
"prop-types": "^15.6.2", | ||
"ag-grid-community": "~27.0.1", | ||
"@ag-grid-community/react": "~27.0.0", | ||
"@ag-grid-community/client-side-row-model": "~27.0.0", | ||
"@ag-grid-community/core": "~27.0.0", | ||
"ag-grid-community": "~27.1.0", | ||
"@ag-grid-community/react": "~27.1.0", | ||
"@ag-grid-community/client-side-row-model": "~27.1.0", | ||
"@ag-grid-community/core": "~27.1.0", | ||
"gulp": "^4.0.0", | ||
@@ -80,3 +80,3 @@ "gulp-clean": "^0.4.0", | ||
"peerDependencies": { | ||
"ag-grid-community": "~27.0.1", | ||
"ag-grid-community": "~27.1.0", | ||
"react": "^16.3.0 || ^17.0.0", | ||
@@ -165,2 +165,2 @@ "react-dom": "^16.3.0 || ^17.0.0" | ||
} | ||
} | ||
} |
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
307490
4182