dfs-page-config 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/dfs-page-config.js +35650 -0
- package/dist/dfs-page-config.umd.cjs +1497 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,1497 @@
|
|
|
1
|
+
(function(d,Qo){typeof exports=="object"&&typeof module<"u"?module.exports=Qo(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Qo):(d=typeof globalThis<"u"?globalThis:d||self,d["dfs-page-config"]=Qo(d.Vue))})(this,function(d){"use strict";const Qo=d.defineComponent({name:"Card",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Pe=(l,c)=>{const h=l.__vccOpts||l;for(const[f,v]of c)h[f]=v;return h},Dh={class:"clearfix"};function Ah(l,c,h,f,v,w){const R=d.resolveComponent("el-card");return d.openBlock(),d.createBlock(R,{class:"components-card",style:d.normalizeStyle(l.componentOption.style)},{header:d.withCtx(()=>[d.createElementVNode("div",Dh,[d.createElementVNode("span",null,d.toDisplayString(l.componentOption.label),1)])]),default:d.withCtx(()=>[d.renderSlot(l.$slots,"default")]),_:3},8,["style"])}const Th=Pe(Qo,[["render",Ah]]);function bh(){return Ya().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ya(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Nh=typeof Proxy=="function",Fh="devtools-plugin:setup",Ih="plugin:settings:set";let mo,ii;function Lh(){var l;return mo!==void 0||(typeof window<"u"&&window.performance?(mo=!0,ii=window.performance):typeof global<"u"&&(!((l=global.perf_hooks)===null||l===void 0)&&l.performance)?(mo=!0,ii=global.perf_hooks.performance):mo=!1),mo}function Mh(){return Lh()?ii.now():Date.now()}class Gh{constructor(c,h){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=c,this.hook=h;const f={};if(c.settings)for(const R in c.settings){const O=c.settings[R];f[R]=O.defaultValue}const v=`__vue-devtools-plugin-settings__${c.id}`;let w=Object.assign({},f);try{const R=localStorage.getItem(v),O=JSON.parse(R);Object.assign(w,O)}catch{}this.fallbacks={getSettings(){return w},setSettings(R){try{localStorage.setItem(v,JSON.stringify(R))}catch{}w=R},now(){return Mh()}},h&&h.on(Ih,(R,O)=>{R===this.plugin.id&&this.fallbacks.setSettings(O)}),this.proxiedOn=new Proxy({},{get:(R,O)=>this.target?this.target.on[O]:(...P)=>{this.onQueue.push({method:O,args:P})}}),this.proxiedTarget=new Proxy({},{get:(R,O)=>this.target?this.target[O]:O==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(O)?(...P)=>(this.targetQueue.push({method:O,args:P,resolve:()=>{}}),this.fallbacks[O](...P)):(...P)=>new Promise(T=>{this.targetQueue.push({method:O,args:P,resolve:T})})})}async setRealTarget(c){this.target=c;for(const h of this.onQueue)this.target.on[h.method](...h.args);for(const h of this.targetQueue)h.resolve(await this.target[h.method](...h.args))}}function xh(l,c){const h=l,f=Ya(),v=bh(),w=Nh&&h.enableEarlyProxy;if(v&&(f.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!w))v.emit(Fh,l,c);else{const R=w?new Gh(h,v):null;(f.__VUE_DEVTOOLS_PLUGINS__=f.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:h,setupFn:c,proxy:R}),R&&c(R.proxiedTarget)}}/*!
|
|
2
|
+
* vuex v4.1.0
|
|
3
|
+
* (c) 2022 Evan You
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/var qa="store";function eo(l){return l===void 0&&(l=null),d.inject(l!==null?l:qa)}function to(l,c){Object.keys(l).forEach(function(h){return c(l[h],h)})}function Vh(l){return l!==null&&typeof l=="object"}function Hh(l){return l&&typeof l.then=="function"}function ct(l,c){if(!l)throw new Error("[vuex] "+c)}function Wh(l,c){return function(){return l(c)}}function Xa(l,c,h){return c.indexOf(l)<0&&(h&&h.prepend?c.unshift(l):c.push(l)),function(){var f=c.indexOf(l);f>-1&&c.splice(f,1)}}function Qa(l,c){l._actions=Object.create(null),l._mutations=Object.create(null),l._wrappedGetters=Object.create(null),l._modulesNamespaceMap=Object.create(null);var h=l.state;Hr(l,h,[],l._modules.root,!0),si(l,h,c)}function si(l,c,h){var f=l._state,v=l._scope;l.getters={},l._makeLocalGettersCache=Object.create(null);var w=l._wrappedGetters,R={},O={},P=d.effectScope(!0);P.run(function(){to(w,function(T,N){R[N]=Wh(T,l),O[N]=d.computed(function(){return R[N]()}),Object.defineProperty(l.getters,N,{get:function(){return O[N].value},enumerable:!0})})}),l._state=d.reactive({data:c}),l._scope=P,l.strict&&zh(l),f&&h&&l._withCommit(function(){f.data=null}),v&&v.stop()}function Hr(l,c,h,f,v){var w=!h.length,R=l._modules.getNamespace(h);if(f.namespaced&&(l._modulesNamespaceMap[R]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+R+" for the namespaced module "+h.join("/")),l._modulesNamespaceMap[R]=f),!w&&!v){var O=ai(c,h.slice(0,-1)),P=h[h.length-1];l._withCommit(function(){process.env.NODE_ENV!=="production"&&P in O&&console.warn('[vuex] state field "'+P+'" was overridden by a module with the same name at "'+h.join(".")+'"'),O[P]=f.state})}var T=f.context=Bh(l,R,h);f.forEachMutation(function(N,G){var H=R+G;kh(l,H,N,T)}),f.forEachAction(function(N,G){var H=N.root?G:R+G,U=N.handler||N;Uh(l,H,U,T)}),f.forEachGetter(function(N,G){var H=R+G;jh(l,H,N,T)}),f.forEachChild(function(N,G){Hr(l,c,h.concat(G),N,v)})}function Bh(l,c,h){var f=c==="",v={dispatch:f?l.dispatch:function(w,R,O){var P=Wr(w,R,O),T=P.payload,N=P.options,G=P.type;if((!N||!N.root)&&(G=c+G,process.env.NODE_ENV!=="production"&&!l._actions[G])){console.error("[vuex] unknown local action type: "+P.type+", global type: "+G);return}return l.dispatch(G,T)},commit:f?l.commit:function(w,R,O){var P=Wr(w,R,O),T=P.payload,N=P.options,G=P.type;if((!N||!N.root)&&(G=c+G,process.env.NODE_ENV!=="production"&&!l._mutations[G])){console.error("[vuex] unknown local mutation type: "+P.type+", global type: "+G);return}l.commit(G,T,N)}};return Object.defineProperties(v,{getters:{get:f?function(){return l.getters}:function(){return Ja(l,c)}},state:{get:function(){return ai(l.state,h)}}}),v}function Ja(l,c){if(!l._makeLocalGettersCache[c]){var h={},f=c.length;Object.keys(l.getters).forEach(function(v){if(v.slice(0,f)===c){var w=v.slice(f);Object.defineProperty(h,w,{get:function(){return l.getters[v]},enumerable:!0})}}),l._makeLocalGettersCache[c]=h}return l._makeLocalGettersCache[c]}function kh(l,c,h,f){var v=l._mutations[c]||(l._mutations[c]=[]);v.push(function(R){h.call(l,f.state,R)})}function Uh(l,c,h,f){var v=l._actions[c]||(l._actions[c]=[]);v.push(function(R){var O=h.call(l,{dispatch:f.dispatch,commit:f.commit,getters:f.getters,state:f.state,rootGetters:l.getters,rootState:l.state},R);return Hh(O)||(O=Promise.resolve(O)),l._devtoolHook?O.catch(function(P){throw l._devtoolHook.emit("vuex:error",P),P}):O})}function jh(l,c,h,f){if(l._wrappedGetters[c]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+c);return}l._wrappedGetters[c]=function(w){return h(f.state,f.getters,w.state,w.getters)}}function zh(l){d.watch(function(){return l._state.data},function(){process.env.NODE_ENV!=="production"&&ct(l._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function ai(l,c){return c.reduce(function(h,f){return h[f]},l)}function Wr(l,c,h){return Vh(l)&&l.type&&(h=c,c=l,l=l.type),process.env.NODE_ENV!=="production"&&ct(typeof l=="string","expects string as the type, but found "+typeof l+"."),{type:l,payload:c,options:h}}var $h="vuex bindings",Za="vuex:mutations",li="vuex:actions",Co="vuex",Kh=0;function Yh(l,c){xh({id:"org.vuejs.vuex",app:l,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[$h]},function(h){h.addTimelineLayer({id:Za,label:"Vuex Mutations",color:el}),h.addTimelineLayer({id:li,label:"Vuex Actions",color:el}),h.addInspector({id:Co,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),h.on.getInspectorTree(function(f){if(f.app===l&&f.inspectorId===Co)if(f.filter){var v=[];nl(v,c._modules.root,f.filter,""),f.rootNodes=v}else f.rootNodes=[rl(c._modules.root,"")]}),h.on.getInspectorState(function(f){if(f.app===l&&f.inspectorId===Co){var v=f.nodeId;Ja(c,v),f.state=Qh(Zh(c._modules,v),v==="root"?c.getters:c._makeLocalGettersCache,v)}}),h.on.editInspectorState(function(f){if(f.app===l&&f.inspectorId===Co){var v=f.nodeId,w=f.path;v!=="root"&&(w=v.split("/").filter(Boolean).concat(w)),c._withCommit(function(){f.set(c._state.data,w,f.state.value)})}}),c.subscribe(function(f,v){var w={};f.payload&&(w.payload=f.payload),w.state=v,h.notifyComponentUpdate(),h.sendInspectorTree(Co),h.sendInspectorState(Co),h.addTimelineEvent({layerId:Za,event:{time:Date.now(),title:f.type,data:w}})}),c.subscribeAction({before:function(f,v){var w={};f.payload&&(w.payload=f.payload),f._id=Kh++,f._time=Date.now(),w.state=v,h.addTimelineEvent({layerId:li,event:{time:f._time,title:f.type,groupId:f._id,subtitle:"start",data:w}})},after:function(f,v){var w={},R=Date.now()-f._time;w.duration={_custom:{type:"duration",display:R+"ms",tooltip:"Action duration",value:R}},f.payload&&(w.payload=f.payload),w.state=v,h.addTimelineEvent({layerId:li,event:{time:Date.now(),title:f.type,groupId:f._id,subtitle:"end",data:w}})}})})}var el=8702998,qh=6710886,Xh=16777215,tl={label:"namespaced",textColor:Xh,backgroundColor:qh};function ol(l){return l&&l!=="root"?l.split("/").slice(-2,-1)[0]:"Root"}function rl(l,c){return{id:c||"root",label:ol(c),tags:l.namespaced?[tl]:[],children:Object.keys(l._children).map(function(h){return rl(l._children[h],c+h+"/")})}}function nl(l,c,h,f){f.includes(h)&&l.push({id:f||"root",label:f.endsWith("/")?f.slice(0,f.length-1):f||"Root",tags:c.namespaced?[tl]:[]}),Object.keys(c._children).forEach(function(v){nl(l,c._children[v],h,f+v+"/")})}function Qh(l,c,h){c=h==="root"?c:c[h];var f=Object.keys(c),v={state:Object.keys(l.state).map(function(R){return{key:R,editable:!0,value:l.state[R]}})};if(f.length){var w=Jh(c);v.getters=Object.keys(w).map(function(R){return{key:R.endsWith("/")?ol(R):R,editable:!1,value:ui(function(){return w[R]})}})}return v}function Jh(l){var c={};return Object.keys(l).forEach(function(h){var f=h.split("/");if(f.length>1){var v=c,w=f.pop();f.forEach(function(R){v[R]||(v[R]={_custom:{value:{},display:R,tooltip:"Module",abstract:!0}}),v=v[R]._custom.value}),v[w]=ui(function(){return l[h]})}else c[h]=ui(function(){return l[h]})}),c}function Zh(l,c){var h=c.split("/").filter(function(f){return f});return h.reduce(function(f,v,w){var R=f[v];if(!R)throw new Error('Missing module "'+v+'" for path "'+c+'".');return w===h.length-1?R:R._children},c==="root"?l:l.root._children)}function ui(l){try{return l()}catch(c){return c}}var dt=function(c,h){this.runtime=h,this._children=Object.create(null),this._rawModule=c;var f=c.state;this.state=(typeof f=="function"?f():f)||{}},il={namespaced:{configurable:!0}};il.namespaced.get=function(){return!!this._rawModule.namespaced},dt.prototype.addChild=function(c,h){this._children[c]=h},dt.prototype.removeChild=function(c){delete this._children[c]},dt.prototype.getChild=function(c){return this._children[c]},dt.prototype.hasChild=function(c){return c in this._children},dt.prototype.update=function(c){this._rawModule.namespaced=c.namespaced,c.actions&&(this._rawModule.actions=c.actions),c.mutations&&(this._rawModule.mutations=c.mutations),c.getters&&(this._rawModule.getters=c.getters)},dt.prototype.forEachChild=function(c){to(this._children,c)},dt.prototype.forEachGetter=function(c){this._rawModule.getters&&to(this._rawModule.getters,c)},dt.prototype.forEachAction=function(c){this._rawModule.actions&&to(this._rawModule.actions,c)},dt.prototype.forEachMutation=function(c){this._rawModule.mutations&&to(this._rawModule.mutations,c)},Object.defineProperties(dt.prototype,il);var oo=function(c){this.register([],c,!1)};oo.prototype.get=function(c){return c.reduce(function(h,f){return h.getChild(f)},this.root)},oo.prototype.getNamespace=function(c){var h=this.root;return c.reduce(function(f,v){return h=h.getChild(v),f+(h.namespaced?v+"/":"")},"")},oo.prototype.update=function(c){sl([],this.root,c)},oo.prototype.register=function(c,h,f){var v=this;f===void 0&&(f=!0),process.env.NODE_ENV!=="production"&&ul(c,h);var w=new dt(h,f);if(c.length===0)this.root=w;else{var R=this.get(c.slice(0,-1));R.addChild(c[c.length-1],w)}h.modules&&to(h.modules,function(O,P){v.register(c.concat(P),O,f)})},oo.prototype.unregister=function(c){var h=this.get(c.slice(0,-1)),f=c[c.length-1],v=h.getChild(f);if(!v){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+f+"', which is not registered");return}v.runtime&&h.removeChild(f)},oo.prototype.isRegistered=function(c){var h=this.get(c.slice(0,-1)),f=c[c.length-1];return h?h.hasChild(f):!1};function sl(l,c,h){if(process.env.NODE_ENV!=="production"&&ul(l,h),c.update(h),h.modules)for(var f in h.modules){if(!c.getChild(f)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+f+"' on hot reloading, manual reload is needed");return}sl(l.concat(f),c.getChild(f),h.modules[f])}}var al={assert:function(l){return typeof l=="function"},expected:"function"},ef={assert:function(l){return typeof l=="function"||typeof l=="object"&&typeof l.handler=="function"},expected:'function or object with "handler" function'},ll={getters:al,mutations:al,actions:ef};function ul(l,c){Object.keys(ll).forEach(function(h){if(c[h]){var f=ll[h];to(c[h],function(v,w){ct(f.assert(v),tf(l,h,w,v,f.expected))})}})}function tf(l,c,h,f,v){var w=c+" should be "+v+' but "'+c+"."+h+'"';return l.length>0&&(w+=' in module "'+l.join(".")+'"'),w+=" is "+JSON.stringify(f)+".",w}var qe=function l(c){var h=this;c===void 0&&(c={}),process.env.NODE_ENV!=="production"&&(ct(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),ct(this instanceof l,"store must be called with the new operator."));var f=c.plugins;f===void 0&&(f=[]);var v=c.strict;v===void 0&&(v=!1);var w=c.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new oo(c),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=w;var R=this,O=this,P=O.dispatch,T=O.commit;this.dispatch=function(H,U){return P.call(R,H,U)},this.commit=function(H,U,Z){return T.call(R,H,U,Z)},this.strict=v;var N=this._modules.root.state;Hr(this,N,[],this._modules.root),si(this,N),f.forEach(function(G){return G(h)})},pi={state:{configurable:!0}};qe.prototype.install=function(c,h){c.provide(h||qa,this),c.config.globalProperties.$store=this;var f=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;f&&Yh(c,this)},pi.state.get=function(){return this._state.data},pi.state.set=function(l){process.env.NODE_ENV!=="production"&&ct(!1,"use store.replaceState() to explicit replace store state.")},qe.prototype.commit=function(c,h,f){var v=this,w=Wr(c,h,f),R=w.type,O=w.payload,P=w.options,T={type:R,payload:O},N=this._mutations[R];if(!N){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+R);return}this._withCommit(function(){N.forEach(function(H){H(O)})}),this._subscribers.slice().forEach(function(G){return G(T,v.state)}),process.env.NODE_ENV!=="production"&&P&&P.silent&&console.warn("[vuex] mutation type: "+R+". Silent option has been removed. Use the filter functionality in the vue-devtools")},qe.prototype.dispatch=function(c,h){var f=this,v=Wr(c,h),w=v.type,R=v.payload,O={type:w,payload:R},P=this._actions[w];if(!P){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+w);return}try{this._actionSubscribers.slice().filter(function(N){return N.before}).forEach(function(N){return N.before(O,f.state)})}catch(N){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(N))}var T=P.length>1?Promise.all(P.map(function(N){return N(R)})):P[0](R);return new Promise(function(N,G){T.then(function(H){try{f._actionSubscribers.filter(function(U){return U.after}).forEach(function(U){return U.after(O,f.state)})}catch(U){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(U))}N(H)},function(H){try{f._actionSubscribers.filter(function(U){return U.error}).forEach(function(U){return U.error(O,f.state,H)})}catch(U){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(U))}G(H)})})},qe.prototype.subscribe=function(c,h){return Xa(c,this._subscribers,h)},qe.prototype.subscribeAction=function(c,h){var f=typeof c=="function"?{before:c}:c;return Xa(f,this._actionSubscribers,h)},qe.prototype.watch=function(c,h,f){var v=this;return process.env.NODE_ENV!=="production"&&ct(typeof c=="function","store.watch only accepts a function."),d.watch(function(){return c(v.state,v.getters)},h,Object.assign({},f))},qe.prototype.replaceState=function(c){var h=this;this._withCommit(function(){h._state.data=c})},qe.prototype.registerModule=function(c,h,f){f===void 0&&(f={}),typeof c=="string"&&(c=[c]),process.env.NODE_ENV!=="production"&&(ct(Array.isArray(c),"module path must be a string or an Array."),ct(c.length>0,"cannot register the root module by using registerModule.")),this._modules.register(c,h),Hr(this,this.state,c,this._modules.get(c),f.preserveState),si(this,this.state)},qe.prototype.unregisterModule=function(c){var h=this;typeof c=="string"&&(c=[c]),process.env.NODE_ENV!=="production"&&ct(Array.isArray(c),"module path must be a string or an Array."),this._modules.unregister(c),this._withCommit(function(){var f=ai(h.state,c.slice(0,-1));delete f[c[c.length-1]]}),Qa(this)},qe.prototype.hasModule=function(c){return typeof c=="string"&&(c=[c]),process.env.NODE_ENV!=="production"&&ct(Array.isArray(c),"module path must be a string or an Array."),this._modules.isRegistered(c)},qe.prototype.hotUpdate=function(c){this._modules.update(c),Qa(this,!0)},qe.prototype._withCommit=function(c){var h=this._committing;this._committing=!0,c(),this._committing=h},Object.defineProperties(qe.prototype,pi);var pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function of(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function rf(l){if(l.__esModule)return l;var c=l.default;if(typeof c=="function"){var h=function f(){if(this instanceof f){var v=[null];v.push.apply(v,arguments);var w=Function.bind.apply(c,v);return new w}return c.apply(this,arguments)};h.prototype=c.prototype}else h={};return Object.defineProperty(h,"__esModule",{value:!0}),Object.keys(l).forEach(function(f){var v=Object.getOwnPropertyDescriptor(l,f);Object.defineProperty(h,f,v.get?v:{enumerable:!0,get:function(){return l[f]}})}),h}var ci={},nf={get exports(){return ci},set exports(l){ci=l}},Br={},sf={get exports(){return Br},set exports(l){Br=l}},cl=function(c,h){return function(){for(var v=new Array(arguments.length),w=0;w<v.length;w++)v[w]=arguments[w];return c.apply(h,v)}},af=cl,ro=Object.prototype.toString;function di(l){return ro.call(l)==="[object Array]"}function hi(l){return typeof l>"u"}function lf(l){return l!==null&&!hi(l)&&l.constructor!==null&&!hi(l.constructor)&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function uf(l){return ro.call(l)==="[object ArrayBuffer]"}function pf(l){return typeof FormData<"u"&&l instanceof FormData}function cf(l){var c;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?c=ArrayBuffer.isView(l):c=l&&l.buffer&&l.buffer instanceof ArrayBuffer,c}function df(l){return typeof l=="string"}function hf(l){return typeof l=="number"}function dl(l){return l!==null&&typeof l=="object"}function kr(l){if(ro.call(l)!=="[object Object]")return!1;var c=Object.getPrototypeOf(l);return c===null||c===Object.prototype}function ff(l){return ro.call(l)==="[object Date]"}function gf(l){return ro.call(l)==="[object File]"}function vf(l){return ro.call(l)==="[object Blob]"}function hl(l){return ro.call(l)==="[object Function]"}function yf(l){return dl(l)&&hl(l.pipe)}function mf(l){return typeof URLSearchParams<"u"&&l instanceof URLSearchParams}function Cf(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function wf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function fi(l,c){if(!(l===null||typeof l>"u"))if(typeof l!="object"&&(l=[l]),di(l))for(var h=0,f=l.length;h<f;h++)c.call(null,l[h],h,l);else for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&c.call(null,l[v],v,l)}function gi(){var l={};function c(v,w){kr(l[w])&&kr(v)?l[w]=gi(l[w],v):kr(v)?l[w]=gi({},v):di(v)?l[w]=v.slice():l[w]=v}for(var h=0,f=arguments.length;h<f;h++)fi(arguments[h],c);return l}function _f(l,c,h){return fi(c,function(v,w){h&&typeof v=="function"?l[w]=af(v,h):l[w]=v}),l}function Ef(l){return l.charCodeAt(0)===65279&&(l=l.slice(1)),l}var Xe={isArray:di,isArrayBuffer:uf,isBuffer:lf,isFormData:pf,isArrayBufferView:cf,isString:df,isNumber:hf,isObject:dl,isPlainObject:kr,isUndefined:hi,isDate:ff,isFile:gf,isBlob:vf,isFunction:hl,isStream:yf,isURLSearchParams:mf,isStandardBrowserEnv:wf,forEach:fi,merge:gi,extend:_f,trim:Cf,stripBOM:Ef},wo=Xe;function fl(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var gl=function(c,h,f){if(!h)return c;var v;if(f)v=f(h);else if(wo.isURLSearchParams(h))v=h.toString();else{var w=[];wo.forEach(h,function(P,T){P===null||typeof P>"u"||(wo.isArray(P)?T=T+"[]":P=[P],wo.forEach(P,function(G){wo.isDate(G)?G=G.toISOString():wo.isObject(G)&&(G=JSON.stringify(G)),w.push(fl(T)+"="+fl(G))}))}),v=w.join("&")}if(v){var R=c.indexOf("#");R!==-1&&(c=c.slice(0,R)),c+=(c.indexOf("?")===-1?"?":"&")+v}return c},Rf=Xe;function Ur(){this.handlers=[]}Ur.prototype.use=function(c,h,f){return this.handlers.push({fulfilled:c,rejected:h,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1},Ur.prototype.eject=function(c){this.handlers[c]&&(this.handlers[c]=null)},Ur.prototype.forEach=function(c){Rf.forEach(this.handlers,function(f){f!==null&&c(f)})};var Sf=Ur,Of=Xe,Pf=function(c,h){Of.forEach(c,function(v,w){w!==h&&w.toUpperCase()===h.toUpperCase()&&(c[h]=v,delete c[w])})},vl=function(c,h,f,v,w){return c.config=h,f&&(c.code=f),c.request=v,c.response=w,c.isAxiosError=!0,c.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},c},vi,yl;function ml(){if(yl)return vi;yl=1;var l=vl;return vi=function(h,f,v,w,R){var O=new Error(h);return l(O,f,v,w,R)},vi}var yi,Cl;function Df(){if(Cl)return yi;Cl=1;var l=ml();return yi=function(h,f,v){var w=v.config.validateStatus;!v.status||!w||w(v.status)?h(v):f(l("Request failed with status code "+v.status,v.config,null,v.request,v))},yi}var mi,wl;function Af(){if(wl)return mi;wl=1;var l=Xe;return mi=l.isStandardBrowserEnv()?function(){return{write:function(f,v,w,R,O,P){var T=[];T.push(f+"="+encodeURIComponent(v)),l.isNumber(w)&&T.push("expires="+new Date(w).toGMTString()),l.isString(R)&&T.push("path="+R),l.isString(O)&&T.push("domain="+O),P===!0&&T.push("secure"),document.cookie=T.join("; ")},read:function(f){var v=document.cookie.match(new RegExp("(^|;\\s*)("+f+")=([^;]*)"));return v?decodeURIComponent(v[3]):null},remove:function(f){this.write(f,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),mi}var Ci,_l;function Tf(){return _l||(_l=1,Ci=function(c){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(c)}),Ci}var wi,El;function bf(){return El||(El=1,wi=function(c,h){return h?c.replace(/\/+$/,"")+"/"+h.replace(/^\/+/,""):c}),wi}var _i,Rl;function Nf(){if(Rl)return _i;Rl=1;var l=Tf(),c=bf();return _i=function(f,v){return f&&!l(v)?c(f,v):v},_i}var Ei,Sl;function Ff(){if(Sl)return Ei;Sl=1;var l=Xe,c=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ei=function(f){var v={},w,R,O;return f&&l.forEach(f.split(`
|
|
6
|
+
`),function(T){if(O=T.indexOf(":"),w=l.trim(T.substr(0,O)).toLowerCase(),R=l.trim(T.substr(O+1)),w){if(v[w]&&c.indexOf(w)>=0)return;w==="set-cookie"?v[w]=(v[w]?v[w]:[]).concat([R]):v[w]=v[w]?v[w]+", "+R:R}}),v},Ei}var Ri,Ol;function If(){if(Ol)return Ri;Ol=1;var l=Xe;return Ri=l.isStandardBrowserEnv()?function(){var h=/(msie|trident)/i.test(navigator.userAgent),f=document.createElement("a"),v;function w(R){var O=R;return h&&(f.setAttribute("href",O),O=f.href),f.setAttribute("href",O),{href:f.href,protocol:f.protocol?f.protocol.replace(/:$/,""):"",host:f.host,search:f.search?f.search.replace(/^\?/,""):"",hash:f.hash?f.hash.replace(/^#/,""):"",hostname:f.hostname,port:f.port,pathname:f.pathname.charAt(0)==="/"?f.pathname:"/"+f.pathname}}return v=w(window.location.href),function(O){var P=l.isString(O)?w(O):O;return P.protocol===v.protocol&&P.host===v.host}}():function(){return function(){return!0}}(),Ri}var Si,Pl;function Dl(){if(Pl)return Si;Pl=1;var l=Xe,c=Df(),h=Af(),f=gl,v=Nf(),w=Ff(),R=If(),O=ml();return Si=function(T){return new Promise(function(G,H){var U=T.data,Z=T.headers,re=T.responseType;l.isFormData(U)&&delete Z["Content-Type"];var K=new XMLHttpRequest;if(T.auth){var me=T.auth.username||"",De=T.auth.password?unescape(encodeURIComponent(T.auth.password)):"";Z.Authorization="Basic "+btoa(me+":"+De)}var le=v(T.baseURL,T.url);K.open(T.method.toUpperCase(),f(le,T.params,T.paramsSerializer),!0),K.timeout=T.timeout;function ce(){if(K){var z="getAllResponseHeaders"in K?w(K.getAllResponseHeaders()):null,A=!re||re==="text"||re==="json"?K.responseText:K.response,ie={data:A,status:K.status,statusText:K.statusText,headers:z,config:T,request:K};c(G,H,ie),K=null}}if("onloadend"in K?K.onloadend=ce:K.onreadystatechange=function(){!K||K.readyState!==4||K.status===0&&!(K.responseURL&&K.responseURL.indexOf("file:")===0)||setTimeout(ce)},K.onabort=function(){K&&(H(O("Request aborted",T,"ECONNABORTED",K)),K=null)},K.onerror=function(){H(O("Network Error",T,null,K)),K=null},K.ontimeout=function(){var A="timeout of "+T.timeout+"ms exceeded";T.timeoutErrorMessage&&(A=T.timeoutErrorMessage),H(O(A,T,T.transitional&&T.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",K)),K=null},l.isStandardBrowserEnv()){var Be=(T.withCredentials||R(le))&&T.xsrfCookieName?h.read(T.xsrfCookieName):void 0;Be&&(Z[T.xsrfHeaderName]=Be)}"setRequestHeader"in K&&l.forEach(Z,function(A,ie){typeof U>"u"&&ie.toLowerCase()==="content-type"?delete Z[ie]:K.setRequestHeader(ie,A)}),l.isUndefined(T.withCredentials)||(K.withCredentials=!!T.withCredentials),re&&re!=="json"&&(K.responseType=T.responseType),typeof T.onDownloadProgress=="function"&&K.addEventListener("progress",T.onDownloadProgress),typeof T.onUploadProgress=="function"&&K.upload&&K.upload.addEventListener("progress",T.onUploadProgress),T.cancelToken&&T.cancelToken.promise.then(function(A){K&&(K.abort(),H(A),K=null)}),U||(U=null),K.send(U)})},Si}var be=Xe,Al=Pf,Lf=vl,Mf={"Content-Type":"application/x-www-form-urlencoded"};function Tl(l,c){!be.isUndefined(l)&&be.isUndefined(l["Content-Type"])&&(l["Content-Type"]=c)}function Gf(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=Dl()),l}function xf(l,c,h){if(be.isString(l))try{return(c||JSON.parse)(l),be.trim(l)}catch(f){if(f.name!=="SyntaxError")throw f}return(h||JSON.stringify)(l)}var jr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Gf(),transformRequest:[function(c,h){return Al(h,"Accept"),Al(h,"Content-Type"),be.isFormData(c)||be.isArrayBuffer(c)||be.isBuffer(c)||be.isStream(c)||be.isFile(c)||be.isBlob(c)?c:be.isArrayBufferView(c)?c.buffer:be.isURLSearchParams(c)?(Tl(h,"application/x-www-form-urlencoded;charset=utf-8"),c.toString()):be.isObject(c)||h&&h["Content-Type"]==="application/json"?(Tl(h,"application/json"),xf(c)):c}],transformResponse:[function(c){var h=this.transitional,f=h&&h.silentJSONParsing,v=h&&h.forcedJSONParsing,w=!f&&this.responseType==="json";if(w||v&&be.isString(c)&&c.length)try{return JSON.parse(c)}catch(R){if(w)throw R.name==="SyntaxError"?Lf(R,this,"E_JSON_PARSE"):R}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(c){return c>=200&&c<300}};jr.headers={common:{Accept:"application/json, text/plain, */*"}},be.forEach(["delete","get","head"],function(c){jr.headers[c]={}}),be.forEach(["post","put","patch"],function(c){jr.headers[c]=be.merge(Mf)});var Oi=jr,Vf=Xe,Hf=Oi,Wf=function(c,h,f){var v=this||Hf;return Vf.forEach(f,function(R){c=R.call(v,c,h)}),c},Pi,bl;function Nl(){return bl||(bl=1,Pi=function(c){return!!(c&&c.__CANCEL__)}),Pi}var Fl=Xe,Di=Wf,Bf=Nl(),kf=Oi;function Ai(l){l.cancelToken&&l.cancelToken.throwIfRequested()}var Uf=function(c){Ai(c),c.headers=c.headers||{},c.data=Di.call(c,c.data,c.headers,c.transformRequest),c.headers=Fl.merge(c.headers.common||{},c.headers[c.method]||{},c.headers),Fl.forEach(["delete","get","head","post","put","patch","common"],function(v){delete c.headers[v]});var h=c.adapter||kf.adapter;return h(c).then(function(v){return Ai(c),v.data=Di.call(c,v.data,v.headers,c.transformResponse),v},function(v){return Bf(v)||(Ai(c),v&&v.response&&(v.response.data=Di.call(c,v.response.data,v.response.headers,c.transformResponse))),Promise.reject(v)})},Ge=Xe,Il=function(c,h){h=h||{};var f={},v=["url","method","data"],w=["headers","auth","proxy","params"],R=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],O=["validateStatus"];function P(H,U){return Ge.isPlainObject(H)&&Ge.isPlainObject(U)?Ge.merge(H,U):Ge.isPlainObject(U)?Ge.merge({},U):Ge.isArray(U)?U.slice():U}function T(H){Ge.isUndefined(h[H])?Ge.isUndefined(c[H])||(f[H]=P(void 0,c[H])):f[H]=P(c[H],h[H])}Ge.forEach(v,function(U){Ge.isUndefined(h[U])||(f[U]=P(void 0,h[U]))}),Ge.forEach(w,T),Ge.forEach(R,function(U){Ge.isUndefined(h[U])?Ge.isUndefined(c[U])||(f[U]=P(void 0,c[U])):f[U]=P(void 0,h[U])}),Ge.forEach(O,function(U){U in h?f[U]=P(c[U],h[U]):U in c&&(f[U]=P(void 0,c[U]))});var N=v.concat(w).concat(R).concat(O),G=Object.keys(c).concat(Object.keys(h)).filter(function(U){return N.indexOf(U)===-1});return Ge.forEach(G,T),f},Ll={_from:"axios@^0.21.1",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.1",_where:"/Users/zhaoyongfei/work/Project/dfs-page-config",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"},Ti={};["object","boolean","number","function","string","symbol"].forEach(function(l,c){Ti[l]=function(f){return typeof f===l||"a"+(c<1?"n ":" ")+l}});var Ml={},jf=Ll.version.split(".");function Gl(l,c){for(var h=c?c.split("."):jf,f=l.split("."),v=0;v<3;v++){if(h[v]>f[v])return!0;if(h[v]<f[v])return!1}return!1}Ti.transitional=function(c,h,f){var v=h&&Gl(h);function w(R,O){return"[Axios v"+Ll.version+"] Transitional option '"+R+"'"+O+(f?". "+f:"")}return function(R,O,P){if(c===!1)throw new Error(w(O," has been removed in "+h));return v&&!Ml[O]&&(Ml[O]=!0,console.warn(w(O," has been deprecated since v"+h+" and will be removed in the near future"))),c?c(R,O,P):!0}};function zf(l,c,h){if(typeof l!="object")throw new TypeError("options must be an object");for(var f=Object.keys(l),v=f.length;v-- >0;){var w=f[v],R=c[w];if(R){var O=l[w],P=O===void 0||R(O,w,l);if(P!==!0)throw new TypeError("option "+w+" must be "+P);continue}if(h!==!0)throw Error("Unknown option "+w)}}var $f={isOlderVersion:Gl,assertOptions:zf,validators:Ti},xl=Xe,Kf=gl,Vl=Sf,Hl=Uf,zr=Il,Wl=$f,_o=Wl.validators;function Jo(l){this.defaults=l,this.interceptors={request:new Vl,response:new Vl}}Jo.prototype.request=function(c){typeof c=="string"?(c=arguments[1]||{},c.url=arguments[0]):c=c||{},c=zr(this.defaults,c),c.method?c.method=c.method.toLowerCase():this.defaults.method?c.method=this.defaults.method.toLowerCase():c.method="get";var h=c.transitional;h!==void 0&&Wl.assertOptions(h,{silentJSONParsing:_o.transitional(_o.boolean,"1.0.0"),forcedJSONParsing:_o.transitional(_o.boolean,"1.0.0"),clarifyTimeoutError:_o.transitional(_o.boolean,"1.0.0")},!1);var f=[],v=!0;this.interceptors.request.forEach(function(H){typeof H.runWhen=="function"&&H.runWhen(c)===!1||(v=v&&H.synchronous,f.unshift(H.fulfilled,H.rejected))});var w=[];this.interceptors.response.forEach(function(H){w.push(H.fulfilled,H.rejected)});var R;if(!v){var O=[Hl,void 0];for(Array.prototype.unshift.apply(O,f),O=O.concat(w),R=Promise.resolve(c);O.length;)R=R.then(O.shift(),O.shift());return R}for(var P=c;f.length;){var T=f.shift(),N=f.shift();try{P=T(P)}catch(G){N(G);break}}try{R=Hl(P)}catch(G){return Promise.reject(G)}for(;w.length;)R=R.then(w.shift(),w.shift());return R},Jo.prototype.getUri=function(c){return c=zr(this.defaults,c),Kf(c.url,c.params,c.paramsSerializer).replace(/^\?/,"")},xl.forEach(["delete","get","head","options"],function(c){Jo.prototype[c]=function(h,f){return this.request(zr(f||{},{method:c,url:h,data:(f||{}).data}))}}),xl.forEach(["post","put","patch"],function(c){Jo.prototype[c]=function(h,f,v){return this.request(zr(v||{},{method:c,url:h,data:f}))}});var Yf=Jo,bi,Bl;function kl(){if(Bl)return bi;Bl=1;function l(c){this.message=c}return l.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},l.prototype.__CANCEL__=!0,bi=l,bi}var Ni,Ul;function qf(){if(Ul)return Ni;Ul=1;var l=kl();function c(h){if(typeof h!="function")throw new TypeError("executor must be a function.");var f;this.promise=new Promise(function(R){f=R});var v=this;h(function(R){v.reason||(v.reason=new l(R),f(v.reason))})}return c.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},c.source=function(){var f,v=new c(function(R){f=R});return{token:v,cancel:f}},Ni=c,Ni}var Fi,jl;function Xf(){return jl||(jl=1,Fi=function(c){return function(f){return c.apply(null,f)}}),Fi}var Ii,zl;function Qf(){return zl||(zl=1,Ii=function(c){return typeof c=="object"&&c.isAxiosError===!0}),Ii}var $l=Xe,Jf=cl,$r=Yf,Zf=Il,eg=Oi;function Kl(l){var c=new $r(l),h=Jf($r.prototype.request,c);return $l.extend(h,$r.prototype,c),$l.extend(h,c),h}var ht=Kl(eg);ht.Axios=$r,ht.create=function(c){return Kl(Zf(ht.defaults,c))},ht.Cancel=kl(),ht.CancelToken=qf(),ht.isCancel=Nl(),ht.all=function(c){return Promise.all(c)},ht.spread=Xf(),ht.isAxiosError=Qf(),sf.exports=ht,Br.default=ht,function(l){l.exports=Br}(nf);const tg=of(ci);function og(l){for(var c=-1,h=l==null?0:l.length,f={};++c<h;){var v=l[c];f[v[0]]=v[1]}return f}var Yl;const Zo=typeof window<"u",Kr=l=>typeof l=="number",rg=l=>typeof l=="string",ng=()=>{};Zo&&((Yl=window==null?void 0:window.navigator)!=null&&Yl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ql(l){return typeof l=="function"?l():d.unref(l)}function ig(l){return l}function Li(l){return d.getCurrentScope()?(d.onScopeDispose(l),!0):!1}function sg(l,c=!0){d.getCurrentInstance()?d.onMounted(l):c?l():d.nextTick(l)}function ag(l,c,h={}){const{immediate:f=!0}=h,v=d.ref(!1);let w=null;function R(){w&&(clearTimeout(w),w=null)}function O(){v.value=!1,R()}function P(...T){R(),v.value=!0,w=setTimeout(()=>{v.value=!1,w=null,l(...T)},ql(c))}return f&&(v.value=!0,Zo&&P()),Li(O),{isPending:v,start:P,stop:O}}function Xl(l){var c;const h=ql(l);return(c=h==null?void 0:h.$el)!=null?c:h}const Ql=Zo?window:void 0;function lg(...l){let c,h,f,v;if(rg(l[0])||Array.isArray(l[0])?([h,f,v]=l,c=Ql):[c,h,f,v]=l,!c)return ng;Array.isArray(h)||(h=[h]),Array.isArray(f)||(f=[f]);const w=[],R=()=>{w.forEach(N=>N()),w.length=0},O=(N,G,H)=>(N.addEventListener(G,H,v),()=>N.removeEventListener(G,H,v)),P=d.watch(()=>Xl(c),N=>{R(),N&&w.push(...h.flatMap(G=>f.map(H=>O(N,G,H))))},{immediate:!0,flush:"post"}),T=()=>{P(),R()};return Li(T),T}function ug(l,c=!1){const h=d.ref(),f=()=>h.value=Boolean(l());return f(),sg(f,c),h}const Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gi="__vueuse_ssr_handlers__";Mi[Gi]=Mi[Gi]||{},Mi[Gi];var Jl=Object.getOwnPropertySymbols,pg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable,dg=(l,c)=>{var h={};for(var f in l)pg.call(l,f)&&c.indexOf(f)<0&&(h[f]=l[f]);if(l!=null&&Jl)for(var f of Jl(l))c.indexOf(f)<0&&cg.call(l,f)&&(h[f]=l[f]);return h};function hg(l,c,h={}){const f=h,{window:v=Ql}=f,w=dg(f,["window"]);let R;const O=ug(()=>v&&"ResizeObserver"in v),P=()=>{R&&(R.disconnect(),R=void 0)},T=d.watch(()=>Xl(l),G=>{P(),O.value&&v&&G&&(R=new ResizeObserver(c),R.observe(G,w))},{immediate:!0,flush:"post"}),N=()=>{P(),T()};return Li(N),{isSupported:O,stop:N}}var Zl;(function(l){l.UP="UP",l.RIGHT="RIGHT",l.DOWN="DOWN",l.LEFT="LEFT",l.NONE="NONE"})(Zl||(Zl={}));var fg=Object.defineProperty,eu=Object.getOwnPropertySymbols,gg=Object.prototype.hasOwnProperty,vg=Object.prototype.propertyIsEnumerable,tu=(l,c,h)=>c in l?fg(l,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):l[c]=h,yg=(l,c)=>{for(var h in c||(c={}))gg.call(c,h)&&tu(l,h,c[h]);if(eu)for(var h of eu(c))vg.call(c,h)&&tu(l,h,c[h]);return l};yg({linear:ig},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]}),process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const mg=()=>{},Cg=Object.assign,wg=Object.prototype.hasOwnProperty,ou=(l,c)=>wg.call(l,c),_g=Array.isArray,Yr=l=>typeof l=="function",er=l=>typeof l=="string",Eg=l=>typeof l=="symbol",ru=l=>l!==null&&typeof l=="object",Rg=(l,c,h)=>{Object.defineProperty(l,c,{configurable:!0,enumerable:!1,value:h})},Sg=l=>l===void 0,Og=l=>typeof Element>"u"?!1:l instanceof Element,Pg=l=>er(l)?!Number.isNaN(Number(l)):!1,nu=l=>Object.keys(l);class Dg extends Error{constructor(c){super(c),this.name="ElementPlusError"}}function xi(l,c){if(process.env.NODE_ENV!=="production"){const h=er(l)?new Dg(`[${l}] ${c}`):l;console.warn(h)}}const Ag="utils/dom/style";function Tg(l,c="px"){if(!l)return"";if(Kr(l)||Pg(l))return`${l}${c}`;if(er(l))return l;xi(Ag,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.0.10 */var Bt=(l,c)=>{let h=l.__vccOpts||l;for(let[f,v]of c)h[f]=v;return h},bg={name:"CircleCloseFilled"},Ng={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Fg=d.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),Ig=[Fg];function Lg(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",Ng,Ig)}var iu=Bt(bg,[["render",Lg],["__file","circle-close-filled.vue"]]),Mg={name:"Close"},Gg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xg=d.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Vg=[xg];function Hg(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",Gg,Vg)}var Wg=Bt(Mg,[["render",Hg],["__file","close.vue"]]),Bg={name:"Delete"},kg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ug=d.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),jg=[Ug];function zg(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",kg,jg)}var $g=Bt(Bg,[["render",zg],["__file","delete.vue"]]),Kg={name:"InfoFilled"},Yg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qg=d.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),Xg=[qg];function Qg(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",Yg,Xg)}var su=Bt(Kg,[["render",Qg],["__file","info-filled.vue"]]),Jg={name:"Plus"},Zg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ev=d.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),tv=[ev];function ov(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",Zg,tv)}var rv=Bt(Jg,[["render",ov],["__file","plus.vue"]]),nv={name:"SuccessFilled"},iv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sv=d.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),av=[sv];function lv(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",iv,av)}var au=Bt(nv,[["render",lv],["__file","success-filled.vue"]]),uv={name:"WarningFilled"},pv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},cv=d.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),dv=[cv];function hv(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",pv,dv)}var lu=Bt(uv,[["render",hv],["__file","warning-filled.vue"]]),fv={name:"ZoomIn"},gv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vv=d.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),yv=[vv];function mv(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("svg",gv,yv)}var Cv=Bt(fv,[["render",mv],["__file","zoom-in.vue"]]);const uu="__epPropKey",kt=l=>l,wv=l=>ru(l)&&!!l[uu],pu=(l,c)=>{if(!ru(l)||wv(l))return l;const{values:h,required:f,default:v,type:w,validator:R}=l,P={type:w,required:!!f,validator:h||R?T=>{let N=!1,G=[];if(h&&(G=Array.from(h),ou(l,"default")&&G.push(v),N||(N=G.includes(T))),R&&(N||(N=R(T))),!N&&G.length>0){const H=[...new Set(G)].map(U=>JSON.stringify(U)).join(", ");d.warn(`Invalid prop: validation failed${c?` for prop "${c}"`:""}. Expected one of [${H}], got value ${JSON.stringify(T)}.`)}return N}:void 0,[uu]:!0};return ou(l,"default")&&(P.default=v),P},qr=l=>og(Object.entries(l).map(([c,h])=>[c,pu(h,c)])),_v=kt([String,Object,Function]),Ev={Close:Wg,SuccessFilled:au,InfoFilled:su,WarningFilled:lu,CircleCloseFilled:iu},cu={success:au,warning:lu,error:iu,info:su},du=(l,c)=>{if(l.install=h=>{for(const f of[l,...Object.values(c??{})])h.component(f.name,f)},c)for(const[h,f]of Object.entries(c))l[h]=f;return l},Rv=(l,c)=>(l.install=h=>{l._context=h._context,h.config.globalProperties[c]=l},l),Sv={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Ov=["","default","small","large"],Pv=l=>l,hu=Symbol(),Xr=d.ref();function Vi(l,c=void 0){const h=d.getCurrentInstance()?d.inject(hu,Xr):Xr;return l?d.computed(()=>{var f,v;return(v=(f=h.value)==null?void 0:f[l])!=null?v:c}):h}const Dv=(l,c,h=!1)=>{var f;const v=!!d.getCurrentInstance(),w=v?Vi():void 0,R=(f=c==null?void 0:c.provide)!=null?f:v?d.provide:void 0;if(!R){xi("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const O=d.computed(()=>{const P=d.unref(l);return w!=null&&w.value?Av(w.value,P):P});return R(hu,O),(h||!Xr.value)&&(Xr.value=O.value),O},Av=(l,c)=>{var h;const f=[...new Set([...nu(l),...nu(c)])],v={};for(const w of f)v[w]=(h=c[w])!=null?h:l[w];return v},Tv=pu({type:String,values:Ov,required:!1}),bv="el",Nv="is-",no=(l,c,h,f,v)=>{let w=`${l}-${c}`;return h&&(w+=`-${h}`),f&&(w+=`__${f}`),v&&(w+=`--${v}`),w},Hi=l=>{const c=Vi("namespace",bv);return{namespace:c,b:(Z="")=>no(c.value,l,Z,"",""),e:Z=>Z?no(c.value,l,"",Z,""):"",m:Z=>Z?no(c.value,l,"","",Z):"",be:(Z,re)=>Z&&re?no(c.value,l,Z,re,""):"",em:(Z,re)=>Z&&re?no(c.value,l,"",Z,re):"",bm:(Z,re)=>Z&&re?no(c.value,l,Z,"",re):"",bem:(Z,re,K)=>Z&&re&&K?no(c.value,l,Z,re,K):"",is:(Z,...re)=>{const K=re.length>=1?re[0]:!0;return Z&&K?`${Nv}${Z}`:""},cssVar:Z=>{const re={};for(const K in Z)Z[K]&&(re[`--${c.value}-${K}`]=Z[K]);return re},cssVarName:Z=>`--${c.value}-${Z}`,cssVarBlock:Z=>{const re={};for(const K in Z)Z[K]&&(re[`--${c.value}-${l}-${K}`]=Z[K]);return re},cssVarBlockName:Z=>`--${c.value}-${l}-${Z}`}};let Fv;function Iv(l,c=Fv){c&&c.active&&c.effects.push(l)}const fu=l=>{const c=new Set(l);return c.w=0,c.n=0,c},gu=l=>(l.w&Ut)>0,vu=l=>(l.n&Ut)>0,Lv=({deps:l})=>{if(l.length)for(let c=0;c<l.length;c++)l[c].w|=Ut},Mv=l=>{const{deps:c}=l;if(c.length){let h=0;for(let f=0;f<c.length;f++){const v=c[f];gu(v)&&!vu(v)?v.delete(l):c[h++]=v,v.w&=~Ut,v.n&=~Ut}c.length=h}};let tr=0,Ut=1;const Wi=30;let Qe;Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class Gv{constructor(c,h=null,f){this.fn=c,this.scheduler=h,this.active=!0,this.deps=[],this.parent=void 0,Iv(this,f)}run(){if(!this.active)return this.fn();let c=Qe,h=Qr;for(;c;){if(c===this)return;c=c.parent}try{return this.parent=Qe,Qe=this,Qr=!0,Ut=1<<++tr,tr<=Wi?Lv(this):yu(this),this.fn()}finally{tr<=Wi&&Mv(this),Ut=1<<--tr,Qe=this.parent,Qr=h,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qe===this?this.deferStop=!0:this.active&&(yu(this),this.onStop&&this.onStop(),this.active=!1)}}function yu(l){const{deps:c}=l;if(c.length){for(let h=0;h<c.length;h++)c[h].delete(l);c.length=0}}let Qr=!0;function mu(l,c){let h=!1;tr<=Wi?vu(l)||(l.n|=Ut,h=!gu(l)):h=!l.has(Qe),h&&(l.add(Qe),Qe.deps.push(l),process.env.NODE_ENV!=="production"&&Qe.onTrack&&Qe.onTrack(Object.assign({effect:Qe},c)))}function Cu(l,c){const h=_g(l)?l:[...l];for(const f of h)f.computed&&wu(f,c);for(const f of h)f.computed||wu(f,c)}function wu(l,c){(l!==Qe||l.allowRecurse)&&(process.env.NODE_ENV!=="production"&&l.onTrigger&&l.onTrigger(Cg({effect:l},c)),l.scheduler?l.scheduler():l.run())}new Set(Object.getOwnPropertyNames(Symbol).filter(l=>l!=="arguments"&&l!=="caller").map(l=>Symbol[l]).filter(Eg));function or(l){const c=l&&l.__v_raw;return c?or(c):l}function xv(l){return Rg(l,"__v_skip",!0),l}function Vv(l){Qr&&Qe&&(l=or(l),process.env.NODE_ENV!=="production"?mu(l.dep||(l.dep=fu()),{target:l,type:"get",key:"value"}):mu(l.dep||(l.dep=fu())))}function Hv(l,c){l=or(l),l.dep&&(process.env.NODE_ENV!=="production"?Cu(l.dep,{target:l,type:"set",key:"value",newValue:c}):Cu(l.dep))}var _u;class Wv{constructor(c,h,f,v){this._setter=h,this.dep=void 0,this.__v_isRef=!0,this[_u]=!1,this._dirty=!0,this.effect=new Gv(c,()=>{this._dirty||(this._dirty=!0,Hv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!v,this.__v_isReadonly=f}get value(){const c=or(this);return Vv(c),(c._dirty||!c._cacheable)&&(c._dirty=!1,c._value=c.effect.run()),c._value}set value(c){this._setter(c)}}_u="__v_isReadonly";function Bv(l,c,h=!1){let f,v;const w=Yr(l);w?(f=l,v=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:mg):(f=l.get,v=l.set);const R=new Wv(f,v,w||!v,h);return process.env.NODE_ENV!=="production"&&c&&!h&&(R.effect.onTrack=c.onTrack,R.effect.onTrigger=c.onTrigger),R}const Eu=d.ref(0),kv=()=>{const l=Vi("zIndex",2e3),c=d.computed(()=>l.value+Eu.value);return{initialZIndex:l,currentZIndex:c,nextZIndex:()=>(Eu.value++,c.value)}};var Bi=(l,c)=>{const h=l.__vccOpts||l;for(const[f,v]of c)h[f]=v;return h};const Uv=qr({size:{type:kt([Number,String])},color:{type:String}}),jv=d.defineComponent({name:"ElIcon",inheritAttrs:!1}),zv=d.defineComponent({...jv,props:Uv,setup(l){const c=l,h=Hi("icon"),f=d.computed(()=>{const{size:v,color:w}=c;return!v&&!w?{}:{fontSize:Sg(v)?void 0:Tg(v),"--color":w}});return(v,w)=>(d.openBlock(),d.createElementBlock("i",d.mergeProps({class:d.unref(h).b(),style:d.unref(f)},v.$attrs),[d.renderSlot(v.$slots,"default")],16))}});var $v=Bi(zv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ru=du($v),Kv=qr({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Yv=["textContent"],qv=d.defineComponent({name:"ElBadge"}),Xv=d.defineComponent({...qv,props:Kv,setup(l,{expose:c}){const h=l,f=Hi("badge"),v=d.computed(()=>h.isDot?"":Kr(h.value)&&Kr(h.max)?h.max<h.value?`${h.max}+`:`${h.value}`:`${h.value}`);return c({content:v}),(w,R)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(d.unref(f).b())},[d.renderSlot(w.$slots,"default"),d.createVNode(d.Transition,{name:`${d.unref(f).namespace.value}-zoom-in-center`,persisted:""},{default:d.withCtx(()=>[d.withDirectives(d.createElementVNode("sup",{class:d.normalizeClass([d.unref(f).e("content"),d.unref(f).em("content",w.type),d.unref(f).is("fixed",!!w.$slots.default),d.unref(f).is("dot",w.isDot)]),textContent:d.toDisplayString(d.unref(v))},null,10,Yv),[[d.vShow,!w.hidden&&(d.unref(v)||w.isDot)]])]),_:1},8,["name"])],2))}});var Qv=Bi(Xv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Jv=du(Qv),ki={},Zv=qr({a11y:{type:Boolean,default:!0},locale:{type:kt(Object)},size:Tv,button:{type:kt(Object)},experimentalFeatures:{type:kt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:kt(Object)},zIndex:Number,namespace:{type:String,default:"el"}});d.defineComponent({name:"ElConfigProvider",props:Zv,setup(l,{slots:c}){d.watch(()=>l.message,f=>{Object.assign(ki,f??{})},{immediate:!0,deep:!0});const h=Dv(l);return()=>d.renderSlot(c,"default",{config:h==null?void 0:h.value})}});const Su=["success","info","warning","error"],$e=Pv({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Zo?document.body:void 0}),ey=qr({customClass:{type:String,default:$e.customClass},center:{type:Boolean,default:$e.center},dangerouslyUseHTMLString:{type:Boolean,default:$e.dangerouslyUseHTMLString},duration:{type:Number,default:$e.duration},icon:{type:_v,default:$e.icon},id:{type:String,default:$e.id},message:{type:kt([String,Object,Function]),default:$e.message},onClose:{type:kt(Function),required:!1},showClose:{type:Boolean,default:$e.showClose},type:{type:String,values:Su,default:$e.type},offset:{type:Number,default:$e.offset},zIndex:{type:Number,default:$e.zIndex},grouping:{type:Boolean,default:$e.grouping},repeatNum:{type:Number,default:$e.repeatNum}}),ty={destroy:()=>!0},Ct=d.shallowReactive([]),oy=l=>{const c=Ct.findIndex(v=>v.id===l),h=Ct[c];let f;return c>0&&(f=Ct[c-1]),{current:h,prev:f}},ry=l=>{const{prev:c}=oy(l);return c?c.vm.exposed.bottom.value:0},ny=["id"],iy=["innerHTML"],sy=d.defineComponent({name:"ElMessage"}),ay=d.defineComponent({...sy,props:ey,emits:ty,setup(l,{expose:c}){const h=l,{Close:f}=Ev,v=Hi("message"),w=d.ref(),R=d.ref(!1),O=d.ref(0);let P;const T=d.computed(()=>h.type?h.type==="error"?"danger":h.type:"info"),N=d.computed(()=>{const ce=h.type;return{[v.bm("icon",ce)]:ce&&cu[ce]}}),G=d.computed(()=>h.icon||cu[h.type]||""),H=d.computed(()=>ry(h.id)),U=d.computed(()=>h.offset+H.value),Z=d.computed(()=>O.value+U.value),re=d.computed(()=>({top:`${U.value}px`,zIndex:h.zIndex}));function K(){h.duration!==0&&({stop:P}=ag(()=>{De()},h.duration))}function me(){P==null||P()}function De(){R.value=!1}function le({code:ce}){ce===Sv.esc&&De()}return d.onMounted(()=>{K(),R.value=!0}),d.watch(()=>h.repeatNum,()=>{me(),K()}),lg(document,"keydown",le),hg(w,()=>{O.value=w.value.getBoundingClientRect().height}),c({visible:R,bottom:Z,close:De}),(ce,Be)=>(d.openBlock(),d.createBlock(d.Transition,{name:d.unref(v).b("fade"),onBeforeLeave:ce.onClose,onAfterLeave:Be[0]||(Be[0]=z=>ce.$emit("destroy")),persisted:""},{default:d.withCtx(()=>[d.withDirectives(d.createElementVNode("div",{id:ce.id,ref_key:"messageRef",ref:w,class:d.normalizeClass([d.unref(v).b(),{[d.unref(v).m(ce.type)]:ce.type&&!ce.icon},d.unref(v).is("center",ce.center),d.unref(v).is("closable",ce.showClose),ce.customClass]),style:d.normalizeStyle(d.unref(re)),role:"alert",onMouseenter:me,onMouseleave:K},[ce.repeatNum>1?(d.openBlock(),d.createBlock(d.unref(Jv),{key:0,value:ce.repeatNum,type:d.unref(T),class:d.normalizeClass(d.unref(v).e("badge"))},null,8,["value","type","class"])):d.createCommentVNode("v-if",!0),d.unref(G)?(d.openBlock(),d.createBlock(d.unref(Ru),{key:1,class:d.normalizeClass([d.unref(v).e("icon"),d.unref(N)])},{default:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(d.unref(G))))]),_:1},8,["class"])):d.createCommentVNode("v-if",!0),d.renderSlot(ce.$slots,"default",{},()=>[ce.dangerouslyUseHTMLString?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),d.createElementVNode("p",{class:d.normalizeClass(d.unref(v).e("content")),innerHTML:ce.message},null,10,iy)],2112)):(d.openBlock(),d.createElementBlock("p",{key:0,class:d.normalizeClass(d.unref(v).e("content"))},d.toDisplayString(ce.message),3))]),ce.showClose?(d.openBlock(),d.createBlock(d.unref(Ru),{key:2,class:d.normalizeClass(d.unref(v).e("closeBtn")),onClick:d.withModifiers(De,["stop"])},{default:d.withCtx(()=>[d.createVNode(d.unref(f))]),_:1},8,["class","onClick"])):d.createCommentVNode("v-if",!0)],46,ny),[[d.vShow,R.value]])]),_:3},8,["name","onBeforeLeave"]))}});var ly=Bi(ay,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let uy=1;const Ou=l=>{const c=!l||er(l)||d.isVNode(l)||Yr(l)?{message:l}:l,h={...$e,...c};if(!h.appendTo)h.appendTo=document.body;else if(er(h.appendTo)){let f=document.querySelector(h.appendTo);Og(f)||(xi("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),f=document.body),h.appendTo=f}return h},py=l=>{const c=Ct.indexOf(l);if(c===-1)return;Ct.splice(c,1);const{handler:h}=l;h.close()},cy=({appendTo:l,...c},h)=>{const{nextZIndex:f}=kv(),v=`message_${uy++}`,w=c.onClose,R=document.createElement("div"),O={...c,zIndex:f()+c.zIndex,id:v,onClose:()=>{w==null||w(),py(G)},onDestroy:()=>{d.render(null,R)}},P=d.createVNode(ly,O,Yr(O.message)||d.isVNode(O.message)?{default:Yr(O.message)?O.message:()=>O.message}:null);P.appContext=h||Eo._context,d.render(P,R),l.appendChild(R.firstElementChild);const T=P.component,G={id:v,vnode:P,vm:T,handler:{close:()=>{T.exposed.visible.value=!1}},props:P.component.props};return G},Eo=(l={},c)=>{if(!Zo)return{close:()=>{}};if(Kr(ki.max)&&Ct.length>=ki.max)return{close:()=>{}};const h=Ou(l);if(h.grouping&&Ct.length){const v=Ct.find(({vnode:w})=>{var R;return((R=w.props)==null?void 0:R.message)===h.message});if(v)return v.props.repeatNum+=1,v.props.type=h.type,v.handler}const f=cy(h,c);return Ct.push(f),f.handler};Su.forEach(l=>{Eo[l]=(c={},h)=>{const f=Ou(c);return Eo({...f,type:l},h)}});function dy(l){for(const c of Ct)(!l||l===c.props.type)&&c.handler.close()}Eo.closeAll=dy,Eo._context=null;const Lt=Rv(Eo,"$message");function rr(l,c,h){var v,w;let f=((v=l==null?void 0:l.data)==null?void 0:v.message)||((w=l==null?void 0:l.data)==null?void 0:w.msg);Lt({type:"error",message:f,duration:h||2e3,onClose:()=>{c&&c()}})}const hy={"Content-Type":"application/json;charset=UTF-8","system-source":"SLT",system:"supplier",currency:"USD",lang:navigator.language,"app-id":"0"},nr=tg.create({timeout:1e3*30,withCredentials:!0,headers:hy});nr.interceptors.request.use(l=>{var h,f,v;let c=localStorage.getItem("userInfo");return c&&(c=JSON.parse(c),l.headers["x-user-slt-mobile"]=c.mobile,l.headers["x-user-slt-login-id"]=(h=c.supplierUserVo)==null?void 0:h.userLoginId,l.headers["x-user-slt-user-name"]=(f=c.supplierUserVo)!=null&&f.userName?encodeURIComponent((v=c.supplierUserVo)==null?void 0:v.userName):c==null?void 0:c.mobile),location.pathname==="/quotationManagement/bomInfo"&&(l.headers["system-source"]="WEB"),l},l=>Promise.reject(l.data)),nr.interceptors.response.use(l=>{if(l.data.code==1304||l.data.code===20007)window.location.href=l.data.data;else{if(l.data.code===401||l.data.code===10001)return rr(l),window.location.href=window.location.origin,Promise.reject(l.data.message);if(l.data.code===204)return rr(l.data.msg,()=>window.location.href="/"),Promise.reject(l);if(l.data.code!==0)return rr(l),Promise.reject(l.data);if(Object.prototype.toString.call(l.data.data).toLowerCase()=="[object object]")return l.data.data;if(typeof l.data.data=="string"&&l.data.data!=""){let c={};try{c=JSON.parse(l.data.data)}catch{c=l.data.data}return c}else return l.data.data}},l=>{var h,f;rr(l.response);let c=JSON.parse((f=(h=l==null?void 0:l.response)==null?void 0:h.data)==null?void 0:f.msg);return l.response.status===401&&c.code==1304&&(l.response.data.msg="登录超时,请重新登录",rr(l.response,()=>{},2e3)),Promise.reject(l)});function fy({getters:l},c,h){const f=l.getPageConfigData||l.getPageConfigData;if(!f(c))return{};const v=f(c).components;for(let w=0;w<v.length;w++)if(v[w].key===h)return v[w];return{}}function gy(l,c){if(l[c.url])c.options=l[c.url];else{let h=c.method=="POST"?"data":"params";nr({url:l.baseUrl+c.url,[h]:c.params||{},method:c.method||"GET"}).then(f=>{const v=f.items||f.list||f.detail||f;c.options=v,c.noCache||(l[c.url]=v)})}}const vy=d.defineComponent({props:{option:Object,formComp:Object,pageKey:String},setup(l){const c=eo(),h=l.pageKey,f=l.option,v=l.formComp,w=d.reactive({curIndex:0,statusList:[],size:f.size||"small"});f.url?R():w.statusList=f.options;function R(){let P=f.method=="POST"?"data":"params";nr({url:c.state.baseUrl+f.url,[P]:f.params||{},method:f.method||"GET"}).then(T=>{w.statusList=T[f.resDataKey]||T.items||T})}function O(P,T){w.curIndex!==P&&(w.curIndex=P,v.searchData[f.prop]=T,f.effects&&f.effects.forEach(N=>{N.targets.forEach(G=>{const H=fy(c,h,G);N.event==="updateColumns"?c.dispatch("dbsPageConfig/updateColumns",{pageKey:h,tableComp:H,status:T}):N.event==="clearTableData"&&(H.data.result=[])})}),c.dispatch("dbsPageConfig/queryList",{formComp:v,pageKey:h}))}return{...d.toRefs(w),changeTab:O}}}),eA="",yy={class:"header-btns"},my={key:0,class:"dfs-step-btn header-btns"},Cy=["onClick"],wy={key:0,class:"number"};function _y(l,c,h,f,v,w){const R=d.resolveComponent("el-button"),O=d.resolveComponent("el-badge");return d.openBlock(),d.createElementBlock("div",yy,[l.option.type=="TabStep"?(d.openBlock(),d.createElementBlock("ul",my,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.statusList,(P,T)=>(d.openBlock(),d.createElementBlock("li",{key:P[l.option.itemValue],class:d.normalizeClass(["li"+T,l.curIndex==T?"active":""]),style:d.normalizeStyle({"z-index":l.statusList.length-T}),onClick:N=>l.changeTab(T,P[l.option.itemValue])},[d.createTextVNode(d.toDisplayString(P[l.option.itemName])+" ",1),l.option.itemData?(d.openBlock(),d.createElementBlock("span",wy,d.toDisplayString(P[l.option.itemData]||0),1)):d.createCommentVNode("",!0)],14,Cy))),128))])):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(l.statusList,(P,T)=>(d.openBlock(),d.createElementBlock("div",{key:P[l.option.itemValue]},[l.option.itemData?(d.openBlock(),d.createBlock(O,{key:0,value:P[l.option.itemData]||0,max:99999,class:"item"},{default:d.withCtx(()=>[d.createVNode(R,{type:l.curIndex===T?"primary":"info",onClick:N=>l.changeTab(T,P[l.option.itemValue]),size:l.size},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(P[l.option.itemName]),1)]),_:2},1032,["type","onClick","size"])]),_:2},1032,["value"])):(d.openBlock(),d.createBlock(R,{key:1,type:l.curIndex===T?"primary":"info",onClick:N=>l.changeTab(T,P[l.option.itemValue]),size:l.size},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(P[l.option.itemName]),1)]),_:2},1032,["type","onClick","size"]))]))),128))])}const Ey=Pe(vy,[["render",_y],["__scopeId","data-v-4f29067d"]]),Ry=d.defineComponent({components:{Plus:rv,ZoomIn:Cv,Delete:$g},props:{uploadObj:{type:Object,default:()=>({defaultfilelist:[]})},imgLength:{type:Number,default:5},fileUrl:{type:[Function,String]},maxSize:{type:Number,default:5},format:{type:Array,default:()=>["image/jpg","image/jpeg","image/png"]},extraData:{type:Object,default:function(){return{region:"cn"}}}},setup(l,c){var Be;const h=eo(),f=(Be=d.getCurrentInstance())==null?void 0:Be.appContext.config.globalProperties.eventBus,v=d.ref(""),w=d.ref(!1),R=d.ref(null),{fileUrl:O,imgLength:P,format:T,maxSize:N,extraData:G}=d.toRefs(l),H=d.ref(!0),U=d.ref([]),Z=d.reactive({fileList:[]});d.watch(()=>l.uploadObj.defaultfilelist,z=>{U.value=Z.fileList=z},{immediate:!0});const re=z=>{var $;let A=(($=z==null?void 0:z.response)==null?void 0:$.url)||(z==null?void 0:z.url),ie=d.toRaw(U.value).filter(Mt=>Mt.url!=A);R.value.handleRemove(z),c.emit("fileUrlInfo",ie)},K=z=>{v.value=d.unref(z).url,w.value=!0},me=(z,A)=>{z.code?(Lt.error("上传失败"),f.$emit("uploadEnd",!1)):(v.value=URL.createObjectURL(A.raw),U.value.push(z),c.emit("fileUrlInfo",U.value),Lt.success("上传成功"),f.$emit("uploadEnd",!0)),h.commit("setLoading",!1)},De=z=>{console.log("beforeAvatarUpload:",z,z.type,T.value),h.commit("setLoading",!0);const A=T.value.includes(z.type),ie=z.size/1024/1024<N.value;if(!A)return Lt.error("上传图片格式错误!");if(!ie)return Lt.error(`上传头像图片大小不能超过 ${N.value}MB!`);f.$emit("uploadIng")},le=()=>{console.log("DownLoad")},ce=()=>Lt.warning(` 文件数量不得超过 ${P.value} 个`);return{...d.toRefs(Z),dialogImageUrl:v,dialogVisible:w,uploadRef:R,handleRemove:re,handlePictureCardPreview:K,handleAvatarSuccess:me,beforeAvatarUpload:De,handleDownload:le,format:T,fileUrl:O,imgLength:P,bol:H,handleExceed:ce,extraData:G}}}),tA="",Sy={class:"upload"},Oy=["src"],Py={class:"el-upload-list__item-actions"},Dy=["onClick"],Ay=["onClick"],Ty=["src"];function by(l,c,h,f,v,w){const R=d.resolveComponent("Plus"),O=d.resolveComponent("el-icon"),P=d.resolveComponent("ZoomIn"),T=d.resolveComponent("Delete"),N=d.resolveComponent("el-upload"),G=d.resolveComponent("el-dialog");return d.openBlock(),d.createElementBlock("div",Sy,[d.createVNode(N,{name:"upload","list-type":"picture-card",ref:"uploadRef",data:l.extraData,action:l.fileUrl,"show-file-list":!0,"file-list":l.fileList,limit:l.imgLength,accept:l.format.toString(),"auto-upload":!0,"on-exceed":l.handleExceed,"on-success":l.handleAvatarSuccess,"before-upload":l.beforeAvatarUpload,"with-credentials":!0},{default:d.withCtx(()=>[d.createVNode(O,null,{default:d.withCtx(()=>[d.createVNode(R)]),_:1})]),file:d.withCtx(({file:H})=>[d.createElementVNode("img",{class:"el-upload-list__item-thumbnail",src:H.url,alt:""},null,8,Oy),d.createElementVNode("span",Py,[d.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:U=>l.handlePictureCardPreview(H,H.url)},[d.createVNode(O,null,{default:d.withCtx(()=>[d.createVNode(P)]),_:1})],8,Dy),d.createElementVNode("span",{class:"el-upload-list__item-delete",onClick:U=>l.handleRemove(H)},[d.createVNode(O,null,{default:d.withCtx(()=>[d.createVNode(T)]),_:1})],8,Ay)])]),_:1},8,["data","action","file-list","limit","accept","on-exceed","on-success","before-upload"]),d.createVNode(G,{modelValue:l.dialogVisible,"onUpdate:modelValue":c[0]||(c[0]=H=>l.dialogVisible=H),title:"预览",center:""},{default:d.withCtx(()=>[d.createElementVNode("img",{width:"100%",src:l.dialogImageUrl,style:{width:"100%"}},null,8,Ty)]),_:1},8,["modelValue"])])}const Ny=Pe(Ry,[["render",by]]),Fy=d.defineComponent({components:{SearchTab:Ey,uploadComp:Ny},props:{componentOption:{type:Object,default:()=>{}},pageKey:{type:String,default:""}},setup(l){const c=eo(),h=d.ref(),f=d.reactive({open:!0,fileUrlUploadImg:c.state.baseUrl+"/media-management-service/v2/image/upload/",labelWidth:"110px",formItemWidth:"280px",size:"small",showCloseButton:!1,formGroup:[],inline:!0,allDisabled:!1,...l.componentOption,formData:{...l.componentOption.value}});f.formGroup=Bv(()=>l.componentOption.formGroup.filter(R=>R.isShow===void 0||typeof R.isShow=="function"&&R.isShow(f.formData)));function v(){f.formGroup.forEach(R=>{(R.type==="Select"||R.type==="Cascader")&&R.url&&gy(c.state,R)})}function w(){f.open=!f.open}return v(),{...d.toRefs(f),formRef:h,isOpen:w,getSelectData:v}}}),oA="",Iy={key:0,class:"mask"};function Ly(l,c,h,f,v,w){const R=d.resolveComponent("SearchTab"),O=d.resolveComponent("el-input"),P=d.resolveComponent("el-input-number"),T=d.resolveComponent("el-option"),N=d.resolveComponent("el-select"),G=d.resolveComponent("el-cascader"),H=d.resolveComponent("el-radio"),U=d.resolveComponent("el-radio-group"),Z=d.resolveComponent("el-radio-button"),re=d.resolveComponent("el-checkbox"),K=d.resolveComponent("el-checkbox-group"),me=d.resolveComponent("el-date-picker"),De=d.resolveComponent("el-time-select"),le=d.resolveComponent("el-switch"),ce=d.resolveComponent("uploadComp"),Be=d.resolveComponent("el-form-item"),z=d.resolveComponent("el-form");return d.openBlock(),d.createBlock(z,{ref:"formRef",model:l.formData,size:l.size,inline:l.inline,"label-width":l.labelWidth},{default:d.withCtx(()=>[l.allDisabled?(d.openBlock(),d.createElementBlock("div",Iy)):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.formGroup,(A,ie)=>(d.openBlock(),d.createBlock(Be,{key:A.prop,label:A.label,prop:A.prop||"",rules:typeof A.rules=="function"?A.rules(l.formData):A.rules,class:d.normalizeClass([A.className,!l.open&&ie>4?"hide-item":""]),style:d.normalizeStyle({width:A.width?A.width:l.formItemWidth,display:A.type==="Tab"||A.type==="TabStep"?"block":"",...A.style})},{default:d.withCtx(()=>[A.type==="Tab"||A.type==="TabStep"?(d.openBlock(),d.createBlock(R,{key:0,option:A,formComp:l.componentOption,pageKey:l.pageKey},null,8,["option","formComp","pageKey"])):d.createCommentVNode("",!0),A.type==="Input"?(d.openBlock(),d.createBlock(O,{key:1,clearable:"",disabled:A.disable,"show-password":A.inputType==="password",type:A.inputType||"text",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,modelModifiers:{trim:!0},maxlength:A.maxlength,min:A.min,max:A.max,placeholder:A.placeholder,"prefix-Icon":A.prefixIcon||"",onKeyup:$=>A.keyup&&A.keyup(l.formData[A.prop]),onClear:$=>A.clear&&A.clear(l.formData[A.prop])},null,8,["disabled","show-password","type","modelValue","onUpdate:modelValue","maxlength","min","max","placeholder","prefix-Icon","onKeyup","onClear"])):d.createCommentVNode("",!0),A.type==="InputNumber"?(d.openBlock(),d.createBlock(P,{key:2,clearable:"",disabled:A.disable,modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,"controls-position":"right",min:A.min,max:A.max,placeholder:A.placeholder,"prefix-Icon":A.prefixIcon||"",onKeyup:$=>A.keyup&&A.keyup(l.formData[A.prop]),onClear:$=>A.clear&&A.clear(l.formData[A.prop])},null,8,["disabled","modelValue","onUpdate:modelValue","min","max","placeholder","prefix-Icon","onKeyup","onClear"])):d.createCommentVNode("",!0),A.type==="Textarea"?(d.openBlock(),d.createBlock(O,{key:3,clearable:"",type:"textarea",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,placeholder:A.placeholder,rows:A.rows||1,"show-word-limit":A.showWordLimit,maxlength:A.maxlength},null,8,["modelValue","onUpdate:modelValue","placeholder","rows","show-word-limit","maxlength"])):d.createCommentVNode("",!0),A.type==="Select"?(d.openBlock(),d.createBlock(N,{key:4,clearable:A.clearable!==!1,filterable:A.filterable,placeholder:A.placeholder,multiple:A.multiple===!0,modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,onChange:$=>A.change&&A.change(l.formData[A.prop],A),disabled:A.disabled},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(A.options,$=>(d.openBlock(),d.createBlock(T,{label:$[A.itemName||"label"],value:$[A.itemValue||"value"],key:$.value,disabled:$.disabled},null,8,["label","value","disabled"]))),128))]),_:2},1032,["clearable","filterable","placeholder","multiple","modelValue","onUpdate:modelValue","onChange","disabled"])):d.createCommentVNode("",!0),A.type==="Cascader"?(d.openBlock(),d.createBlock(G,{key:5,clearable:"",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,options:A.options,props:A.props,onChange:$=>A.change&&A.change(l.formData[A.prop]),placeholder:A.placeholder},null,8,["modelValue","onUpdate:modelValue","options","props","onChange","placeholder"])):d.createCommentVNode("",!0),A.type==="radioGroup"?(d.openBlock(),d.createBlock(U,{key:6,modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(A.options,$=>(d.openBlock(),d.createBlock(H,{key:$.value,label:$.value},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString($.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):d.createCommentVNode("",!0),A.type==="RadioButton"?(d.openBlock(),d.createBlock(U,{key:7,modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,onChange:$=>A.change&&A.change(l.formData[A.prop])},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(A.radios,$=>(d.openBlock(),d.createBlock(Z,{label:$.value,key:$.value},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString($.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):d.createCommentVNode("",!0),A.type==="Checkbox"?(d.openBlock(),d.createBlock(K,{key:8,class:d.normalizeClass(A.className),modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(A.checkboxs,$=>(d.openBlock(),d.createBlock(re,{label:$.value,key:$.value},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString($.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["class","modelValue","onUpdate:modelValue"])):d.createCommentVNode("",!0),A.type==="Date"?(d.openBlock(),d.createBlock(me,{key:9,type:"date",placeholder:A.placeholder||"选择日期",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,clearable:A.clearable!==!1,disabled:A.disabled},null,8,["placeholder","modelValue","onUpdate:modelValue","clearable","disabled"])):d.createCommentVNode("",!0),A.type==="Daterange"?(d.openBlock(),d.createBlock(me,{key:10,type:"daterange","start-placeholder":A.startPlaceholder||"开始日期","end-placeholder":A.endPlaceholder||"结束日期","range-separator":" - ",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,"disabled-date":A.disabledDate,shortcuts:A.shortcuts},null,8,["start-placeholder","end-placeholder","modelValue","onUpdate:modelValue","disabled-date","shortcuts"])):d.createCommentVNode("",!0),A.type==="Time"?(d.openBlock(),d.createBlock(De,{key:11,placeholder:A.placeholder||"选择时间",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,type:""},null,8,["placeholder","modelValue","onUpdate:modelValue"])):d.createCommentVNode("",!0),A.type==="DateTime"?(d.openBlock(),d.createBlock(me,{key:12,placeholder:A.placeholder||"选择日期",type:"datetime",modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$,disabled:A.disable,"disabled-date":A.disabledDate},null,8,["placeholder","modelValue","onUpdate:modelValue","disabled","disabled-date"])):d.createCommentVNode("",!0),A.type==="Switch"?(d.openBlock(),d.createBlock(le,{key:13,modelValue:l.formData[A.prop],"onUpdate:modelValue":$=>l.formData[A.prop]=$},null,8,["modelValue","onUpdate:modelValue"])):d.createCommentVNode("",!0),A.type==="upload"?(d.openBlock(),d.createBlock(ce,{key:14,style:d.normalizeStyle({"text-align":A.textAlign||"center"}),revisionImg:!0,name:"upload",uploadObj:{defaultfilelist:l.formData[A.prop]},ref_for:!0,ref:"uploadComp",fileUrl:l.fileUrlUploadImg,imgLength:100,maxSize:5},null,8,["style","uploadObj","fileUrl"])):d.createCommentVNode("",!0),A.slot?d.renderSlot(l.$slots,A.slot,{key:15},void 0,!0):d.createCommentVNode("",!0)]),_:2},1032,["label","prop","rules","class","style"]))),128)),l.formGroup.length>4&&l.showCloseButton?(d.openBlock(),d.createElementBlock("span",{key:1,onClick:c[0]||(c[0]=(...A)=>l.isOpen&&l.isOpen(...A)),class:"form-move-search"},[d.createElementVNode("em",{class:d.normalizeClass(l.open?"el-icon-top":"el-icon-bottom")},null,2),d.createTextVNode(" "+d.toDisplayString(l.open?"收起筛选项":"展开筛选项"),1)])):d.createCommentVNode("",!0)]),_:3},8,["model","size","inline","label-width"])}const My=Pe(Fy,[["render",Ly],["__scopeId","data-v-ed72d202"]]),Gy=(l,c)=>{let h,f,v;try{h=l.toString().split(".")[1].length}catch{h=0}try{f=c.toString().split(".")[1].length}catch{f=0}return v=Math.pow(10,Math.max(h,f)),(Pu(l,v)+Pu(c,v))/v},Pu=(l,c)=>{let h=0,f=l.toString(),v=c.toString();try{h+=f.split(".")[1].length}catch{}try{h+=v.split(".")[1].length}catch{}return Number(f.replace(".",""))*Number(v.replace(".",""))/Math.pow(10,h)},xy=d.defineComponent({props:{url:String,text:{type:String,default:"导入"},buttonType:{type:String,default:"success"},params:{type:Object,default:{}}},emits:["onSuccess"],setup(l,c){const h=eo(),f=d.reactive({uploadUrl:d.computed(()=>h.state.baseUrl+l.url)}),v=d.ref(!1),w={"system-source":"WEB",currency:"USD",lang:navigator.language,"app-id":"0"};function R(){v.value=!0}function O(T){T.code==0?Lt.success(T.msg||"上传成功"):Lt.error(T.msg),v.value=!1,c.emit("onSuccess",T)}function P(){console.log(1111)}return{...d.toRefs(f),headers:w,uploading:v,beforeUpload:R,uploadSuccess:O,uploadError:P}}});function Vy(l,c,h,f,v,w){const R=d.resolveComponent("el-button"),O=d.resolveComponent("el-upload");return d.openBlock(),d.createBlock(O,{style:{display:"inline-block"},class:"upload-demo",action:l.uploadUrl,accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel","with-credentials":!0,multiple:"","show-file-list":!1,"before-upload":l.beforeUpload,"on-success":l.uploadSuccess,"on-error":l.uploadError,disabled:l.uploading,headers:l.headers,data:l.params},{default:d.withCtx(()=>[d.createVNode(R,{size:"mini",type:l.buttonType,disabled:l.uploading},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(l.text),1)]),_:1},8,["type","disabled"])]),_:1},8,["action","before-upload","on-success","on-error","disabled","headers","data"])}const Hy=Pe(xy,[["render",Vy]]),Wy=d.defineComponent({name:"ButtonGroup",components:{fileUpload:Hy},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:()=>{}}},setup(l){eo();const c={},h=d.reactive({buttonGroup:[],size:"default",style:"",...l.componentOption});return h.buttonGroup=d.computed(()=>l.componentOption.buttonGroup.filter(f=>f.isShow===void 0||typeof f.isShow=="function"&&f.isShow(c))),{...d.toRefs(h)}}}),rA="";function By(l,c,h,f,v,w){const R=d.resolveComponent("el-button"),O=d.resolveComponent("fileUpload"),P=d.resolveComponent("el-form-item"),T=d.resolveComponent("el-form");return d.openBlock(),d.createBlock(T,{class:d.normalizeClass(["search-form-box"]),style:d.normalizeStyle(l.componentOption.style),size:l.componentOption.size,inline:""},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.buttonGroup,N=>(d.openBlock(),d.createBlock(P,{key:N.text,style:d.normalizeStyle(N.style||"")},{default:d.withCtx(()=>[N.slot?d.renderSlot(l.$slots,N.slot+"_",{key:1}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[N.event==="query"?(d.openBlock(),d.createBlock(R,{key:0,type:N.buttonType||"primary",size:N.size||"small",onClick:c[0]||(c[0]=G=>l.queryData())},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(N.text),1)]),_:2},1032,["type","size"])):N.event==="reset"?(d.openBlock(),d.createBlock(R,{key:1,type:N.buttonType||"primary",size:N.size||"small",onClick:c[1]||(c[1]=G=>l.reset())},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(N.text),1)]),_:2},1032,["type","size"])):N.event==="download"?(d.openBlock(),d.createBlock(R,{key:2,type:N.buttonType||"primary",size:N.size||"small",onClick:G=>l.download(N)},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(N.text),1)]),_:2},1032,["type","size","onClick"])):N.event==="export"?(d.openBlock(),d.createBlock(R,{key:3,type:N.buttonType||"primary",size:N.size||"small",onClick:G=>l.exportData(N)},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(N.text),1)]),_:2},1032,["type","size","onClick"])):N.event==="upload"?(d.openBlock(),d.createBlock(O,{key:4,url:N.url,text:N.text,onOnSuccess:l.queryData,buttonType:N.buttonType},null,8,["url","text","onOnSuccess","buttonType"])):(d.openBlock(),d.createBlock(R,{key:5,type:N.buttonType||"primary",size:N.size||"small",onClick:G=>N.handle({option:N,pageKey:l.pageKey}),disabled:N.disabled&&N.disabled()},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(N.text),1)]),_:2},1032,["type","size","onClick","disabled"]))],64))]),_:2},1032,["style"]))),128))]),_:3},8,["style","size"])}const ky=Pe(Wy,[["render",By]]);var Du={};/**
|
|
7
|
+
* vue-class-component v8.0.0-rc.1
|
|
8
|
+
* (c) 2015-present Evan You
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/function Au(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function Tu(l,c){for(var h=0;h<c.length;h++){var f=c[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}function Uy(l,c,h){return c&&Tu(l.prototype,c),h&&Tu(l,h),l}function jy(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function bu(l,c){var h=Object.keys(l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);c&&(f=f.filter(function(v){return Object.getOwnPropertyDescriptor(l,v).enumerable})),h.push.apply(h,f)}return h}function Ui(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?bu(Object(h),!0).forEach(function(f){jy(l,f,h[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(h)):bu(Object(h)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(h,f))})}return l}function zy(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),c&&ji(l,c)}function Jr(l){return Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},Jr(l)}function ji(l,c){return ji=Object.setPrototypeOf||function(f,v){return f.__proto__=v,f},ji(l,c)}function $y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ky(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Yy(l,c){return c&&(typeof c=="object"||typeof c=="function")?c:Ky(l)}function qy(l){var c=$y();return function(){var f=Jr(l),v;if(c){var w=Jr(this).constructor;v=Reflect.construct(f,arguments,w)}else v=f.apply(this,arguments);return Yy(this,v)}}function Xy(l){return Qy(l)||Jy(l)||Zy(l)||em()}function Qy(l){if(Array.isArray(l))return zi(l)}function Jy(l){if(typeof Symbol<"u"&&Symbol.iterator in Object(l))return Array.from(l)}function Zy(l,c){if(l){if(typeof l=="string")return zi(l,c);var h=Object.prototype.toString.call(l).slice(8,-1);if(h==="Object"&&l.constructor&&(h=l.constructor.name),h==="Map"||h==="Set")return Array.from(l);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return zi(l,c)}}function zi(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,f=new Array(c);h<c;h++)f[h]=l[h];return f}function em(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zr(l,c,h){Object.defineProperty(l,c,{get:h,enumerable:!1,configurable:!0})}function tm(l,c,h){Object.defineProperty(l,c,{get:function(){return h[c].value},set:function(v){h[c].value=v},enumerable:!0,configurable:!0})}function om(l){var c=Object.getPrototypeOf(l.prototype);if(c)return c.constructor}function en(l,c){return l.hasOwnProperty(c)?l[c]:void 0}var Nu=function(){function l(c,h){var f=this;Au(this,l),Zr(this,"$props",function(){return c}),Zr(this,"$attrs",function(){return h.attrs}),Zr(this,"$slots",function(){return h.slots}),Zr(this,"$emit",function(){return h.emit}),Object.keys(c).forEach(function(v){Object.defineProperty(f,v,{enumerable:!1,configurable:!0,writable:!0,value:c[v]})})}return Uy(l,null,[{key:"registerHooks",value:function(h){var f;(f=this.__h).push.apply(f,Xy(h))}},{key:"with",value:function(h){var f=new h,v={};Object.keys(f).forEach(function(R){var O=f[R];v[R]=O??null});var w=function(R){zy(P,R);var O=qy(P);function P(){return Au(this,P),O.apply(this,arguments)}return P}(this);return w.__b={props:v},w}},{key:"__vccOpts",get:function(){if(this===Fu)return{};var h=this,f=en(h,"__c");if(f)return f;var v=Ui({},en(h,"__o"));h.__c=v;var w=om(h);w&&(v.extends=w.__vccOpts);var R=en(h,"__b");R&&(v.mixins=v.mixins||[],v.mixins.unshift(R)),v.methods=Ui({},v.methods),v.computed=Ui({},v.computed);var O=h.prototype;Object.getOwnPropertyNames(O).forEach(function(N){if(N!=="constructor"){if(h.__h.indexOf(N)>-1){v[N]=O[N];return}var G=Object.getOwnPropertyDescriptor(O,N);if(typeof G.value=="function"){v.methods[N]=G.value;return}if(G.get||G.set){v.computed[N]={get:G.get,set:G.set};return}}}),v.setup=function(N,G){var H,U=new h(N,G),Z=Object.keys(U),re={},K=null;return Z.forEach(function(me){U[me]===void 0||U[me]&&U[me].__s||(re[me]=d.ref(U[me]),tm(U,me,re))}),Z.forEach(function(me){if(U[me]&&U[me].__s){var De=U[me].__s();De instanceof Promise?(K||(K=Promise.resolve(re)),K=K.then(function(){return De.then(function(le){return re[me]=d.proxyRefs(le),re})})):re[me]=d.proxyRefs(De)}}),(H=K)!==null&&H!==void 0?H:re};var P=en(h,"__d");P&&P.forEach(function(N){return N(v)});var T=["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"];return T.forEach(function(N){h[N]&&(v[N]=h[N])}),v}}]),l}();Nu.__h=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var Fu=Nu;function rm(l){return function(c){return c.__o=l,c}}var wt={};/**
|
|
12
|
+
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.2.1
|
|
13
|
+
* @link http://www.ag-grid.com/
|
|
14
|
+
' * @license MIT
|
|
15
|
+
*/(function(l){Object.defineProperty(l,"__esModule",{value:!0});/**
|
|
16
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
17
|
+
* @version v26.2.1
|
|
18
|
+
* @link http://www.ag-grid.com/
|
|
19
|
+
* @license MIT
|
|
20
|
+
*/function c(i){return i==null||i===""?null:i}function h(i,t){return t===void 0&&(t=!1),i!=null&&(i!==""||t)}function f(i){return!h(i)}function v(i){return i==null||i.length===0}function w(i){return i!=null&&typeof i.toString=="function"?i.toString():null}function R(i){if(i!==void 0){if(i===null||i==="")return null;if(typeof i=="number")return isNaN(i)?void 0:i;var t=parseInt(i,10);return isNaN(t)?void 0:t}}function O(i){if(i!==void 0)return i===null||i===""?!1:typeof i=="boolean"?i:/true/i.test(i)}function P(i){if(!(i==null||i===""))return i}function T(i,t){return i==null&&t==null?!0:i==null&&t!=null||i!=null&&t==null?!1:i===t}function N(i,t){var e=i?JSON.stringify(i):null,o=t?JSON.stringify(t):null;return e===o}function G(i,t,e){e===void 0&&(e=!1);var o=i==null,r=t==null;if(i&&i.toNumber&&(i=i.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function n(s,a){return s>a?1:s<a?-1:0}if(typeof i!="string"||!e)return n(i,t);try{return i.localeCompare(t)}catch{return n(i,t)}}function H(i,t,e){if(i==null)return null;if(!Array.isArray(i)){var o=U(i);return H(o,t,e)}for(var r=i,n=null,s=0;s<r.length;s++){var a=r[s];if(typeof t=="string"){if(a[t]===e){n=a;break}}else{var u=t;if(u(a)){n=a;break}}}return n}function U(i){if(i instanceof Set||i instanceof Map){var t=[];return i.forEach(function(e){return t.push(e)}),t}return Object.keys(i).map(function(e){return i[e]})}var Z=Object.freeze({__proto__:null,makeNull:c,exists:h,missing:f,missingOrEmpty:v,toStringOrNull:w,attrToNumber:R,attrToBoolean:O,attrToString:P,referenceCompare:T,jsonEquals:N,defaultComparator:G,find:H,values:U});/**
|
|
21
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
22
|
+
* @version v26.2.1
|
|
23
|
+
* @link http://www.ag-grid.com/
|
|
24
|
+
* @license MIT
|
|
25
|
+
*/var re=function(){function i(){this.existingKeys={}}return i.prototype.addExistingKeys=function(t){for(var e=0;e<t.length;e++)this.existingKeys[t[e]]=!0},i.prototype.getUniqueKey=function(t,e){t=w(t);for(var o=0;;){var r=void 0;if(t?(r=t,o!==0&&(r+="_"+o)):e?(r=e,o!==0&&(r+="_"+o)):r=""+o,!this.existingKeys[r])return this.existingKeys[r]=!0,r;o++}},i}();/**
|
|
26
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
27
|
+
* @version v26.2.1
|
|
28
|
+
* @link http://www.ag-grid.com/
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/function K(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];for(var e=0;e<i.length;e++){var o=i[e];if(h(o))return o}return null}function me(i){return i&&K(i)!=null}function De(i){return i!=null&&i.length>0}function le(i){if(!(!i||!i.length))return i[i.length-1]}function ce(i,t,e){return i==null&&t==null?!0:i!=null&&t!=null&&i.length===t.length&&ir(i,function(o,r){return e?e(o,t[r]):t[r]===o})}function Be(i,t){return ce(i,t)}function z(i,t){return ce(i,t)}function A(i){return i.sort(function(t,e){return t-e})}function ie(i,t){if(i)for(var e=i.length-2;e>=0;e--){var o=i[e]===t,r=i[e+1]===t;o&&r&&i.splice(e+1,1)}}function $(i,t){var e=i.indexOf(t);e>=0&&i.splice(e,1)}function Mt(i,t){Ee(t,function(e){return $(i,e)})}function Ro(i,t,e){i.splice(e,0,t)}function io(i,t,e){if(!(i==null||t==null))for(var o=t.length-1;o>=0;o--){var r=t[o];Ro(i,r,e)}}function Ki(i,t,e){Mt(i,t),Ee(t.slice().reverse(),function(o){return Ro(i,o,e)})}function ot(i,t){return i.indexOf(t)>-1}function _C(i){return[].concat.apply([],i)}function Yi(i,t){t==null||i==null||Ee(t,function(e){return i.push(e)})}function EC(i){return xu(i,w)}function so(i,t){for(var e=0;e<i.length;e++)if(t(i[e],e,i))return e;return-1}function RC(i,t,e,o){t===void 0&&(t=null),e===void 0&&(e=0),o===void 0&&(o=i.length);for(var r=e;r<o;r++)i[r]=t;return i}function ir(i,t){if(i==null)return!0;for(var e=0;e<i.length;e++)if(!t(i[e],e))return!1;return!0}function So(i,t){if(i==null)return!1;for(var e=0;e<i.length;e++)if(t(i[e],e))return!0;return!1}function Ee(i,t){if(i!=null)for(var e=0;e<i.length;e++)t(i[e],e)}function SC(i,t){if(i!=null)for(var e=i.length-1;e>=0;e--)t(i[e],e)}function xu(i,t){if(i==null)return null;for(var e=[],o=0;o<i.length;o++)e.push(t(i[o],o));return e}function qi(i,t){if(i==null)return null;for(var e=[],o=0;o<i.length;o++)t(i[o],o)&&e.push(i[o]);return e}function OC(i,t,e){if(i==null||e==null)return null;for(var o=e,r=0;r<i.length;r++)o=t(o,i[r],r);return o}function PC(i,t){if(i){var e=i.slice(0);e.forEach(t)}}var DC=Object.freeze({__proto__:null,firstExistingValue:K,anyExists:me,existsAndNotEmpty:De,last:le,areEqual:ce,compareArrays:Be,shallowCompare:z,sortNumerically:A,removeRepeatsFromArray:ie,removeFromArray:$,removeAllFromArray:Mt,insertIntoArray:Ro,insertArrayIntoArray:io,moveInArray:Ki,includes:ot,flatten:_C,pushAll:Yi,toStrings:EC,findIndex:so,fill:RC,every:ir,some:So,forEach:Ee,forEachReverse:SC,map:xu,filter:qi,reduce:OC,forEachSnapshotFirst:PC});/**
|
|
31
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
32
|
+
* @version v26.2.1
|
|
33
|
+
* @link http://www.ag-grid.com/
|
|
34
|
+
* @license MIT
|
|
35
|
+
*/function ve(i,t){i!=null&&(Array.isArray(i)?Ee(i,function(e,o){return t(""+o,e)}):Ee(Object.keys(i),function(e){return t(e,i[e])}))}function Xi(i){for(var t={},e=Object.keys(i),o=0;o<e.length;o++){var r=e[o],n=i[r];t[r]=n}return t}function AC(i){return JSON.parse(JSON.stringify(i))}function tn(i,t){if(i){var e=i,o={};return Object.keys(e).forEach(function(r){if(!(t&&t.indexOf(r)>=0)){var n=e[r],s=Oo(n)&&n.constructor===Object;s?o[r]=tn(n):o[r]=n}}),o}}function Vu(i,t){return i[t]}function Hu(i,t,e){i[t]=e}function TC(i,t){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];Ee(e,function(r){return Wu(i,t,r)})}function Wu(i,t,e,o){var r=Vu(i,e);r!==void 0&&Hu(t,e,o?o(r):r)}function Bu(i){var t={};return i.filter(function(e){return e!=null}).forEach(function(e){Ee(Object.keys(e),function(o){return t[o]=null})}),Object.keys(t)}function _t(i){if(!i)return[];var t=Object;if(typeof t.values=="function")return t.values(i);var e=[];for(var o in i)i.hasOwnProperty(o)&&i.propertyIsEnumerable(o)&&e.push(i[o]);return e}function rt(i,t,e,o){e===void 0&&(e=!0),o===void 0&&(o=!1),h(t)&&ve(t,function(r,n){var s=i[r];if(s!==n){if(o){var a=s==null&&n!=null;if(a){var u=typeof n=="object"&&n.constructor===Object,p=u;p&&(s={},i[r]=s)}}Oo(n)&&Oo(s)&&!Array.isArray(s)?rt(s,n,e,o):(e||n!==void 0)&&(i[r]=n)}})}function nt(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Ee(t,function(o){return ve(o,function(r,n){return i[r]=n})}),i}function bC(i){return f(i)||Object.keys(i).length===0}function NC(i,t,e){if(i==null)return e;for(var o=t.split("."),r=i;o.length>1;)if(r=r[o.shift()],r==null)return e;var n=r[o[0]];return n??e}function FC(i,t,e){if(i!=null){for(var o=t.split("."),r=i;o.length>1;)if(r=r[o.shift()],r==null)return;r[o[0]]=e}}function ku(i){return Object.freeze(i),Ee(U(i),function(t){(Oo(t)||typeof t=="function")&&ku(t)}),i}function on(i,t,e){if(!(!t||!i)){if(!e)return i[t];for(var o=t.split("."),r=i,n=0;n<o.length;n++){if(r==null)return;r=r[o[n]]}return r}}function Uu(i,t){Object.keys(i).forEach(function(r){var n=i[r];typeof n=="object"&&(i[r]=void 0)});var e=Object.getPrototypeOf(i),o={};Object.keys(e).forEach(function(r){var n=e[r];if(typeof n=="function"){var s=function(){console.warn("AG Grid: "+t+" function "+r+`() cannot be called as the grid has been destroyed.
|
|
36
|
+
Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't
|
|
37
|
+
be keeping the API reference, your application has a memory leak! Remove the API reference
|
|
38
|
+
when the grid is destroyed.`)};o[r]={value:s,writable:!0}}}),Object.defineProperties(i,o)}function Oo(i){return typeof i=="object"&&i!==null}var IC=Object.freeze({__proto__:null,iterateObject:ve,cloneObject:Xi,deepCloneObject:AC,deepCloneDefinition:tn,getProperty:Vu,setProperty:Hu,copyPropertiesIfPresent:TC,copyPropertyIfPresent:Wu,getAllKeysInObjects:Bu,getAllValuesInObject:_t,mergeDeep:rt,assign:nt,missingOrEmptyObject:bC,get:NC,set:FC,deepFreeze:ku,getValueUsingField:on,removeAllReferences:Uu,isNonNullObject:Oo});/**
|
|
39
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
40
|
+
* @version v26.2.1
|
|
41
|
+
* @link http://www.ag-grid.com/
|
|
42
|
+
* @license MIT
|
|
43
|
+
*/var LC=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,MC=/([^\s,]+)/g,ju={};function we(i,t){ju[t]||(i(),ju[t]=!0)}function rn(i){if(i.name)return i.name;var t=/function\s+([^\(]+)/.exec(i.toString());return t&&t.length===2?t[1].trim():null}function GC(i){var t=i.toString().replace(LC,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(MC)||[]}function Qi(i){return!!(i&&i.constructor&&i.call&&i.apply)}function zu(i){$u(i,400)}var Ji=[],Zi=!1;function es(i){Ji.push(i),!Zi&&(Zi=!0,window.setTimeout(function(){var t=Ji.slice();Ji.length=0,Zi=!1,t.forEach(function(e){return e()})},0))}function $u(i,t){t===void 0&&(t=0),i.length>0&&window.setTimeout(function(){return i.forEach(function(e){return e()})},t)}function zt(i,t,e){e===void 0&&(e=!1);var o;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=this,a=e&&!o;window.clearTimeout(o),o=window.setTimeout(function(){o=null,e||i.apply(s,r)},t),a&&i.apply(s,r)}}function Ku(i,t,e,o){e===void 0&&(e=100);var r=new Date().getTime(),n=null,s=!1,a=function(){var u=new Date().getTime()-r>e;(i()||u)&&(t(),s=!0,n!=null&&(window.clearInterval(n),n=null),u&&o&&console.warn(o))};a(),s||(n=window.setInterval(a,10))}function xC(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return function(e){return i.reduce(function(o,r){return r(o)},e)}}function Yu(i){i&&i()}var VC=Object.freeze({__proto__:null,doOnce:we,getFunctionName:rn,getFunctionParameters:GC,isFunction:Qi,executeInAWhile:zu,executeNextVMTurn:es,executeAfter:$u,debounce:zt,waitUntil:Ku,compose:xC,callIfPresent:Yu});/**
|
|
44
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
45
|
+
* @version v26.2.1
|
|
46
|
+
* @link http://www.ag-grid.com/
|
|
47
|
+
* @license MIT
|
|
48
|
+
*/var qu=function(){function i(t,e){if(this.beanWrappers={},this.destroyed=!1,!(!t||!t.beanClasses)){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return i.prototype.getBeanInstances=function(){return U(this.beanWrappers).map(function(t){return t.beanInstance})},i.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},i.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),h(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},i.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),ve(this.beanWrappers,function(o,r){var n;r.bean.__agBeanMetaData&&r.bean.__agBeanMetaData.autowireMethods&&r.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=r.bean.__agBeanMetaData.autowireMethods.agConstructor);var s=t.getBeansForParameters(n,r.bean.name),a=HC(r.bean,s);r.beanInstance=a});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},i.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var o=void 0;t.prototype.constructor?o=rn(t.prototype.constructor):o=""+t,console.error("Context item "+o+" is not a bean");return}var r={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=r},i.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(o){e.forEachMetaDataInHierarchy(o,function(r,n){var s=r.agClassAttributes;s&&s.forEach(function(a){var u=e.lookupBeanInstance(n,a.beanName,a.optional);o[a.attributeName]=u})})})},i.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(o){e.forEachMetaDataInHierarchy(o,function(r,n){ve(r.autowireMethods,function(s,a){if(s!=="agConstructor"){var u=e.getBeansForParameters(a,n);o[s].apply(o,u)}})})})},i.prototype.forEachMetaDataInHierarchy=function(t,e){for(var o=Object.getPrototypeOf(t);o!=null;){var r=o.constructor;if(r.hasOwnProperty("__agBeanMetaData")){var n=r.__agBeanMetaData,s=this.getBeanName(r);e(n,s)}o=Object.getPrototypeOf(o)}},i.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),o=e.substring(9,e.indexOf("("));return o},i.prototype.getBeansForParameters=function(t,e){var o=this,r=[];return t&&ve(t,function(n,s){var a=o.lookupBeanInstance(e,s);r[Number(n)]=a}),r},i.prototype.lookupBeanInstance=function(t,e,o){if(o===void 0&&(o=!1),e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var r=this.beanWrappers[e];return r?r.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},i.prototype.callLifeCycleMethods=function(t,e){var o=this;t.forEach(function(r){return o.callLifeCycleMethodsOnBean(r,e)})},i.prototype.callLifeCycleMethodsOnBean=function(t,e,o){var r={};this.forEachMetaDataInHierarchy(t,function(s){var a=s[e];a&&a.forEach(function(u){u!=o&&(r[u]=!0)})});var n=Object.keys(r);n.forEach(function(s){return t[s]()})},i.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},i.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},i.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},i.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(o){e.callLifeCycleMethodsOnBean(o,"preDestroyMethods","destroy");var r=o;typeof r.destroy=="function"&&r.destroy()}),[]):[]},i}();function HC(i,t){var e=[null].concat(t),o=i.bind.apply(i,e);return new o}function ts(i,t,e){var o=ao(i.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function k(i,t,e){var o=ao(i.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function Ne(i,t,e){var o=ao(i.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function Y(i){return function(t){var e=ao(t);e.beanName=i}}function m(i){return function(t,e,o){Xu(t,i,!1,t,e,null)}}function he(i){return function(t,e,o){Xu(t,i,!0,t,e,null)}}function Xu(i,t,e,o,r,n){if(t===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof n=="number"){console.error("AG Grid: Autowired should be on an attribute");return}var s=ao(i.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:e})}function xe(i){return function(t,e,o){var r=typeof t=="function"?t:t.constructor,n;if(typeof o=="number"){var s=void 0;e?(n=ao(r),s=e):(n=ao(r),s="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[s]||(n.autowireMethods[s]={}),n.autowireMethods[s][o]=i}}}function ao(i){return i.hasOwnProperty("__agBeanMetaData")||(i.__agBeanMetaData={}),i.__agBeanMetaData}/**
|
|
49
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
50
|
+
* @version v26.2.1
|
|
51
|
+
* @link http://www.ag-grid.com/
|
|
52
|
+
* @license MIT
|
|
53
|
+
*/var Qu=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},nn=function(i,t){return function(e,o){t(e,o,i)}},Gt=function(){function i(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return i.prototype.setBeans=function(t,e,o,r){if(r===void 0&&(r=null),this.frameworkOverrides=o,r){var n=e.useAsyncEvents();this.addGlobalListener(r,n)}},i.prototype.getListeners=function(t,e,o){var r=e?this.allAsyncListeners:this.allSyncListeners,n=r.get(t);return!n&&o&&(n=new Set,r.set(t,n)),n},i.prototype.noRegisteredListenersExist=function(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0},i.prototype.addEventListener=function(t,e,o){o===void 0&&(o=!1),this.getListeners(t,o,!0).add(e)},i.prototype.removeEventListener=function(t,e,o){o===void 0&&(o=!1);var r=this.getListeners(t,o,!1);if(r&&(r.delete(e),r.size===0)){var n=o?this.allAsyncListeners:this.allSyncListeners;n.delete(t)}},i.prototype.addGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},i.prototype.removeGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},i.prototype.dispatchEvent=function(t){this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},i.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},i.prototype.dispatchToListeners=function(t,e){var o=this,r=t.type,n=function(u){return u.forEach(function(p){e?o.dispatchAsync(function(){return p(t)}):p(t)})},s=this.getListeners(r,e,!1);s&&n(s);var a=e?this.globalAsyncListeners:this.globalSyncListeners;a.forEach(function(u){e?o.dispatchAsync(function(){return o.frameworkOverrides.dispatchEvent(r,function(){return u(r,t)},!0)}):o.frameworkOverrides.dispatchEvent(r,function(){return u(r,t)},!0)})},i.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},i.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach(function(e){return e()})},Qu([nn(0,xe("loggerFactory")),nn(1,xe("gridOptionsWrapper")),nn(2,xe("frameworkOverrides")),nn(3,xe("globalEventListener"))],i.prototype,"setBeans",null),i=Qu([Y("eventService")],i),i}();/**
|
|
54
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
55
|
+
* @version v26.2.1
|
|
56
|
+
* @link http://www.ag-grid.com/
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var D=function(){function i(){}return i.ROW_BUFFER_SIZE=10,i.LAYOUT_INTERVAL=500,i.BATCH_WAIT_MILLIS=50,i.EXPORT_TYPE_DRAG_COPY="dragCopy",i.EXPORT_TYPE_CLIPBOARD="clipboard",i.EXPORT_TYPE_EXCEL="excel",i.EXPORT_TYPE_CSV="csv",i.ROW_MODEL_TYPE_INFINITE="infinite",i.ROW_MODEL_TYPE_VIEWPORT="viewport",i.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",i.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",i.ALWAYS="always",i.ONLY_WHEN_GROUPING="onlyWhenGrouping",i.PINNED_TOP="top",i.PINNED_BOTTOM="bottom",i.DOM_LAYOUT_NORMAL="normal",i.DOM_LAYOUT_PRINT="print",i.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",i.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",i.SOURCE_PASTE="paste",i.PINNED_RIGHT="right",i.PINNED_LEFT="left",i.SORT_ASC="asc",i.SORT_DESC="desc",i.INPUT_SELECTOR="input, select, button, textarea",i.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",i.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",i}();/**
|
|
59
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
60
|
+
* @version v26.2.1
|
|
61
|
+
* @link http://www.ag-grid.com/
|
|
62
|
+
* @license MIT
|
|
63
|
+
*/(function(i){i.CommunityCoreModule="@ag-grid-community/core",i.CommunityAllModules="@ag-grid-community/all",i.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",i.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",i.CsvExportModule="@ag-grid-community/csv-export",i.EnterpriseCoreModule="@ag-grid-enterprise/core",i.EnterpriseAllModules="@ag-grid-enterprise/all",i.RowGroupingModule="@ag-grid-enterprise/row-grouping",i.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",i.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",i.MenuModule="@ag-grid-enterprise/menu",i.SetFilterModule="@ag-grid-enterprise/set-filter",i.MultiFilterModule="@ag-grid-enterprise/multi-filter",i.StatusBarModule="@ag-grid-enterprise/status-bar",i.SideBarModule="@ag-grid-enterprise/side-bar",i.RangeSelectionModule="@ag-grid-enterprise/range-selection",i.MasterDetailModule="@ag-grid-enterprise/master-detail",i.RichSelectModule="@ag-grid-enterprise/rich-select",i.GridChartsModule="@ag-grid-enterprise/charts",i.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",i.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",i.ExcelExportModule="@ag-grid-enterprise/excel-export",i.ClipboardModule="@ag-grid-enterprise/clipboard",i.SparklinesModule="@ag-grid-enterprise/sparklines",i.AngularModule="@ag-grid-community/angular",i.ReactModule="@ag-grid-community/react",i.VueModule="@ag-grid-community/vue",i.PolymerModule="@ag-grid-community/polymer"})(l.ModuleNames||(l.ModuleNames={}));/**
|
|
64
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
65
|
+
* @version v26.2.1
|
|
66
|
+
* @link http://www.ag-grid.com/
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/var oe=function(){function i(){}return i.register=function(t,e){e===void 0&&(e=!0),i.modulesMap[t.moduleName]=t,i.moduleBased===void 0?i.moduleBased=e:i.moduleBased!==e&&we(function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")},i.registerModules=function(t,e){e===void 0&&(e=!0),t&&t.forEach(function(o){return i.register(o,e)})},i.assertRegistered=function(t,e){if(this.isRegistered(t))return!0;var o=e+t,r="AG Grid: unable to use "+e+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";return we(function(){console.warn(r)},o),!1},i.isRegistered=function(t){return!!i.modulesMap[t]},i.getRegisteredModules=function(){return U(i.modulesMap)},i.isPackageBased=function(){return!i.moduleBased},i.modulesMap={},i}();/**
|
|
69
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
70
|
+
* @version v26.2.1
|
|
71
|
+
* @link http://www.ag-grid.com/
|
|
72
|
+
* @license MIT
|
|
73
|
+
*/var Po=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WC=0,fe=function(){function i(t,e,o,r){this.instanceId=WC++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Gt,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=o,this.primary=r,this.setState(t)}return i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setState=function(t){t.sort!==void 0?(t.sort===D.SORT_ASC||t.sort===D.SORT_DESC)&&(this.sort=t.sort):(t.initialSort===D.SORT_ASC||t.initialSort===D.SORT_DESC)&&(this.sort=t.initialSort);var e=R(t.sortIndex),o=R(t.initialSortIndex);e!==void 0?e!==null&&(this.sortIndex=e):o!==null&&(this.sortIndex=o);var r=O(t.hide),n=O(t.initialHide);r!==void 0?this.visible=!r:this.visible=!n,t.pinned!==void 0?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var s=R(t.flex),a=R(t.initialFlex);s!==void 0?this.flex=s:a!==void 0&&(this.flex=a)},i.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation()},i.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},i.prototype.setParent=function(t){this.parent=t},i.prototype.getParent=function(){return this.parent},i.prototype.setOriginalParent=function(t){this.originalParent=t},i.prototype.getOriginalParent=function(){return this.originalParent},i.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},i.prototype.initDotNotation=function(){var t=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=h(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=h(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},i.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},i.prototype.resetActualWidth=function(t){t===void 0&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},i.prototype.isEmptyGroup=function(){return!1},i.prototype.isRowGroupDisplayed=function(t){if(f(this.colDef)||f(this.colDef.showRowGroup))return!1;var e=this.colDef.showRowGroup===!0,o=this.colDef.showRowGroup===t;return e||o},i.prototype.isPrimary=function(){return this.primary},i.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&t},i.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},i.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},i.prototype.validate=function(){var t=this.colDef;function e(s,a,u){we(function(){u?console.warn(s,u):we(function(){return console.warn(s)},a)},a)}var o=this.gridOptionsWrapper.isRowModelDefault();if(o&&!oe.isRegistered(l.ModuleNames.RowGroupingModule)){var r=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"];r.forEach(function(s){h(t[s])&&(oe.isPackageBased()?e("AG Grid: "+s+" is only valid in ag-grid-enterprise, your column definition should not have "+s,"ColumnRowGroupingMissing"+s):e("AG Grid: "+s+" is only valid with AG Grid Enterprise Module "+l.ModuleNames.RowGroupingModule+" - your column definition should not have "+s,"ColumnRowGroupingMissing"+s))})}if(oe.isRegistered(l.ModuleNames.RichSelectModule)||this.colDef.cellEditor==="agRichSelect"&&(oe.isPackageBased()?e("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):e("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+l.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){var n=["rowGroup","rowGroupIndex","pivot","pivotIndex"];n.forEach(function(s){h(t[s])&&e("AG Grid: "+s+" is not possible when doing tree data, your column definition should not have "+s,"TreeDataCannotRowGroup")})}h(this.colDef.width)&&typeof this.colDef.width!="number"&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererParams&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererFramework&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowValueGetter&&e("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},i.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},i.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},i.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},i.prototype.isSuppressNavigable=function(t){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){var e=this.createColumnFunctionCallbackParams(t),o=this.colDef.suppressNavigable;return o(e)}return!1},i.prototype.isCellEditable=function(t){return t.group&&!this.gridOptionsWrapper.isEnableGroupEdit()?!1:this.isColumnFunc(t,this.colDef.editable)},i.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},i.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},i.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},i.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},i.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},i.prototype.isResizable=function(){return this.colDef.resizable===!0},i.prototype.isColumnFunc=function(t,e){if(typeof e=="boolean")return e;if(typeof e=="function"){var o=this.createColumnFunctionCallbackParams(t),r=e;return r(o)}return!1},i.prototype.setMoving=function(t,e){e===void 0&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_MOVING_CHANGED,e))},i.prototype.createColumnEvent=function(t,e){return{api:this.gridApi,columnApi:this.columnApi,type:t,column:this,columns:[this],source:e}},i.prototype.isMoving=function(){return this.moving},i.prototype.getSort=function(){return this.sort},i.prototype.setSort=function(t,e){e===void 0&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_SORT_CHANGED,e)))},i.prototype.setMenuVisible=function(t,e){e===void 0&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_MENU_VISIBLE_CHANGED,e)))},i.prototype.isMenuVisible=function(){return this.menuVisible},i.prototype.isSortAscending=function(){return this.sort===D.SORT_ASC},i.prototype.isSortDescending=function(){return this.sort===D.SORT_DESC},i.prototype.isSortNone=function(){return f(this.sort)},i.prototype.isSorting=function(){return h(this.sort)},i.prototype.getSortIndex=function(){return this.sortIndex},i.prototype.setSortIndex=function(t){this.sortIndex=t},i.prototype.setAggFunc=function(t){this.aggFunc=t},i.prototype.getAggFunc=function(){return this.aggFunc},i.prototype.getLeft=function(){return this.left},i.prototype.getOldLeft=function(){return this.oldLeft},i.prototype.getRight=function(){return this.left+this.actualWidth},i.prototype.setLeft=function(t,e){e===void 0&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_LEFT_CHANGED,e)))},i.prototype.isFilterActive=function(){return this.filterActive},i.prototype.setFilterActive=function(t,e,o){e===void 0&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_FILTER_ACTIVE_CHANGED,e)));var r=this.createColumnEvent(i.EVENT_FILTER_CHANGED,e);o&&rt(r,o),this.eventService.dispatchEvent(r)},i.prototype.setPinned=function(t){t===!0||t===D.PINNED_LEFT?this.pinned=D.PINNED_LEFT:t===D.PINNED_RIGHT?this.pinned=D.PINNED_RIGHT:this.pinned=null},i.prototype.setFirstRightPinned=function(t,e){e===void 0&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_FIRST_RIGHT_PINNED_CHANGED,e)))},i.prototype.setLastLeftPinned=function(t,e){e===void 0&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_LAST_LEFT_PINNED_CHANGED,e)))},i.prototype.isFirstRightPinned=function(){return this.firstRightPinned},i.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},i.prototype.isPinned=function(){return this.pinned===D.PINNED_LEFT||this.pinned===D.PINNED_RIGHT},i.prototype.isPinnedLeft=function(){return this.pinned===D.PINNED_LEFT},i.prototype.isPinnedRight=function(){return this.pinned===D.PINNED_RIGHT},i.prototype.getPinned=function(){return this.pinned},i.prototype.setVisible=function(t,e){e===void 0&&(e="api");var o=t===!0;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_VISIBLE_CHANGED,e)))},i.prototype.isVisible=function(){return this.visible},i.prototype.getColDef=function(){return this.colDef},i.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},i.prototype.getColId=function(){return this.colId},i.prototype.getId=function(){return this.getColId()},i.prototype.getUniqueId=function(){return this.getId()},i.prototype.getDefinition=function(){return this.colDef},i.prototype.getActualWidth=function(){return this.actualWidth},i.prototype.createBaseColDefParams=function(t){var e={node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return e},i.prototype.getColSpan=function(t){if(f(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),o=this.colDef.colSpan(e);return Math.max(o,1)},i.prototype.getRowSpan=function(t){if(f(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),o=this.colDef.rowSpan(e);return Math.max(o,1)},i.prototype.setActualWidth=function(t,e,o){e===void 0&&(e="api"),o===void 0&&(o=!1),this.minWidth!=null&&(t=Math.max(t,this.minWidth)),this.maxWidth!=null&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&e!=="flex"&&e!=="gridInitializing"&&(this.flex=null),o||this.fireColumnWidthChangedEvent(e))},i.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_WIDTH_CHANGED,t))},i.prototype.isGreaterThanMax=function(t){return this.maxWidth!=null?t>this.maxWidth:!1},i.prototype.getMinWidth=function(){return this.minWidth},i.prototype.getMaxWidth=function(){return this.maxWidth},i.prototype.getFlex=function(){return this.flex||0},i.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},i.prototype.setMinimum=function(t){t===void 0&&(t="api"),h(this.minWidth)&&this.setActualWidth(this.minWidth,t)},i.prototype.setRowGroupActive=function(t,e){e===void 0&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_ROW_GROUP_CHANGED,e)))},i.prototype.isRowGroupActive=function(){return this.rowGroupActive},i.prototype.setPivotActive=function(t,e){e===void 0&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_PIVOT_CHANGED,e)))},i.prototype.isPivotActive=function(){return this.pivotActive},i.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},i.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},i.prototype.setValueActive=function(t,e){e===void 0&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(i.EVENT_VALUE_CHANGED,e)))},i.prototype.isValueActive=function(){return this.aggregationActive},i.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},i.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},i.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},i.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return e==null&&(e=t),e},i.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),this.colDef?!!this.colDef.lockPosition:!1},i.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),this.colDef?!!this.colDef.lockVisible:!1},i.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),this.colDef?!!this.colDef.lockPinned:!1},i.EVENT_MOVING_CHANGED="movingChanged",i.EVENT_LEFT_CHANGED="leftChanged",i.EVENT_WIDTH_CHANGED="widthChanged",i.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",i.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",i.EVENT_VISIBLE_CHANGED="visibleChanged",i.EVENT_FILTER_CHANGED="filterChanged",i.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",i.EVENT_SORT_CHANGED="sortChanged",i.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",i.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",i.EVENT_PIVOT_CHANGED="columnPivotChanged",i.EVENT_VALUE_CHANGED="columnValueChanged",Po([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),Po([m("columnUtils")],i.prototype,"columnUtils",void 0),Po([m("columnApi")],i.prototype,"columnApi",void 0),Po([m("gridApi")],i.prototype,"gridApi",void 0),Po([m("context")],i.prototype,"context",void 0),Po([k],i.prototype,"initialise",null),i}();/**
|
|
74
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
75
|
+
* @version v26.2.1
|
|
76
|
+
* @link http://www.ag-grid.com/
|
|
77
|
+
* @license MIT
|
|
78
|
+
*/var BC=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Fe=function(){function i(t,e,o,r){this.displayedChildren=[],this.localEventService=new Gt,this.groupId=e,this.instanceId=o,this.originalColumnGroup=t,this.pinned=r}return i.createUniqueId=function(t,e){return t+"_"+e},i.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},i.prototype.getParent=function(){return this.parent},i.prototype.setParent=function(t){this.parent=t},i.prototype.getUniqueId=function(){return i.createUniqueId(this.groupId,this.instanceId)},i.prototype.isEmptyGroup=function(){return this.displayedChildren.length===0},i.prototype.isMoving=function(){var t=this.getOriginalColumnGroup().getLeafColumns();return!t||t.length===0?!1:t.every(function(e){return e.isMoving()})},i.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(r){r instanceof i&&r.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=le(this.displayedChildren),e=t.getLeft();this.setLeft(e)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},i.prototype.getLeft=function(){return this.left},i.prototype.getOldLeft=function(){return this.oldLeft},i.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(i.EVENT_LEFT_CHANGED)))},i.prototype.getPinned=function(){return this.pinned},i.prototype.createAgEvent=function(t){return{type:t}},i.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},i.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},i.prototype.getGroupId=function(){return this.groupId},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(o){t===o&&(e=!0),o instanceof i&&o.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},i.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},i.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},i.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},i.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},i.prototype.getDisplayedChildren=function(){return this.displayedChildren},i.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},i.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},i.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},i.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},i.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},i.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},i.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},i.prototype.setExpanded=function(t){this.originalColumnGroup.setExpanded(t)},i.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(e){e instanceof fe?t.push(e):e instanceof i&&e.addDisplayedLeafColumns(t)})},i.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof fe?t.push(e):e instanceof i&&e.addLeafColumns(t)})},i.prototype.getChildren=function(){return this.children},i.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},i.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},i.prototype.getPaddingLevel=function(){var t=this.getParent();return!this.isPadding()||!t||!t.isPadding()?0:1+t.getPaddingLevel()},i.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;e!=null&&e.isPadding();)e=e.getParent();var o=e?e.originalColumnGroup.isExpandable():!1;if(!o){this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(i.EVENT_DISPLAYED_CHILDREN_CHANGED));return}this.children.forEach(function(r){var n=r instanceof i&&(!r.displayedChildren||!r.displayedChildren.length);if(!n){var s=r.getColumnGroupShow();switch(s){case i.HEADER_GROUP_SHOW_OPEN:e.originalColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case i.HEADER_GROUP_SHOW_CLOSED:e.originalColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r);break}}}),this.localEventService.dispatchEvent(this.createAgEvent(i.EVENT_DISPLAYED_CHILDREN_CHANGED))},i.HEADER_GROUP_SHOW_OPEN="open",i.HEADER_GROUP_SHOW_CLOSED="closed",i.EVENT_LEFT_CHANGED="leftChanged",i.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",BC([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),i}();/**
|
|
79
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
80
|
+
* @version v26.2.1
|
|
81
|
+
* @link http://www.ag-grid.com/
|
|
82
|
+
* @license MIT
|
|
83
|
+
*/var Re=function(){function i(t,e,o,r){this.localEventService=new Gt,this.expandable=!1,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=o,this.level=r}return i.prototype.setOriginalParent=function(t){this.originalParent=t},i.prototype.getOriginalParent=function(){return this.originalParent},i.prototype.getLevel=function(){return this.level},i.prototype.isVisible=function(){return this.children?this.children.some(function(t){return t.isVisible()}):!1},i.prototype.isPadding=function(){return this.padding},i.prototype.setExpanded=function(t){this.expanded=t===void 0?!1:t;var e={type:i.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(e)},i.prototype.isExpandable=function(){return this.expandable},i.prototype.isExpanded=function(){return this.expanded},i.prototype.getGroupId=function(){return this.groupId},i.prototype.getId=function(){return this.getGroupId()},i.prototype.setChildren=function(t){this.children=t},i.prototype.getChildren=function(){return this.children},i.prototype.getColGroupDef=function(){return this.colGroupDef},i.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},i.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(e){e instanceof fe?t.push(e):e instanceof i&&e.addLeafColumns(t)})},i.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},i.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach(function(e){return e.addEventListener(fe.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))})},i.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,o=!1,r=this.findChildrenRemovingPadding(),n=0,s=r.length;n<s;n++){var a=r[n];if(a.isVisible()){var u=a.getColumnGroupShow();u===Fe.HEADER_GROUP_SHOW_OPEN?(t=!0,o=!0):u===Fe.HEADER_GROUP_SHOW_CLOSED?(e=!0,o=!0):(t=!0,e=!0)}}var p=t&&e&&o;if(this.expandable!==p){this.expandable=p;var g={type:i.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(g)}}},i.prototype.findChildrenRemovingPadding=function(){var t=[],e=function(o){o.forEach(function(r){var n=r instanceof i&&r.isPadding();n?e(r.children):t.push(r)})};return e(this.children),t},i.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},i.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},i.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},i.EVENT_EXPANDED_CHANGED="expandedChanged",i.EVENT_EXPANDABLE_CHANGED="expandableChanged",i}();/**
|
|
84
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
85
|
+
* @version v26.2.1
|
|
86
|
+
* @link http://www.ag-grid.com/
|
|
87
|
+
* @license MIT
|
|
88
|
+
*/var kC={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};/**
|
|
89
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
90
|
+
* @version v26.2.1
|
|
91
|
+
* @link http://www.ag-grid.com/
|
|
92
|
+
* @license MIT
|
|
93
|
+
*/var Ju="__ag_Grid_Stop_Propagation",UC=["touchstart","touchend","touchmove","touchcancel"],os={};function Do(i){i[Ju]=!0}function Et(i){return i[Ju]===!0}var rs=function(){var i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=function(e){if(typeof os[e]=="boolean")return os[e];var o=document.createElement(i[e]||"div");e="on"+e;var r=e in o;return r||(o.setAttribute(e,"return;"),r=typeof o[e]=="function"),os[e]=r};return t}();function sn(i,t,e){for(var o=Ao(t);o;){var r=i.getDomData(o,e);if(r)return r;o=o.parentElement}return null}function jC(i,t){i.addEventListener("changed",t),i.addEventListener("paste",t),i.addEventListener("input",t),i.addEventListener("keydown",t),i.addEventListener("keyup",t)}function Ao(i){var t=i;return t.target||t.srcElement}function an(i,t){return!t||!i?!1:ns(t).indexOf(i)>=0}function Zu(i){for(var t=[],e=Ao(i);e;)t.push(e),e=e.parentElement;return t}function zC(i){i.__agGridEventPath=ns(i)}function ns(i){var t=i;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Zu(i)}function ep(i,t,e,o){var r=ot(UC,e),n=r?{passive:!0}:void 0;i&&i.addEventListener&&i.addEventListener(t,e,o,n)}var $C=Object.freeze({__proto__:null,stopPropagationForAgGrid:Do,isStopPropagationForAgGrid:Et,isEventSupported:rs,getCtrlForEvent:sn,addChangeListener:jC,getTarget:Ao,isElementInEventPath:an,createEventPath:Zu,addAgGridEventPath:zC,getEventPath:ns,addSafePassiveEventListener:ep});/**
|
|
94
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
95
|
+
* @version v26.2.1
|
|
96
|
+
* @link http://www.ag-grid.com/
|
|
97
|
+
* @license MIT
|
|
98
|
+
*/var sr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},V=function(){function i(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return i.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},i.prototype.getContext=function(){return this.context},i.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:i.EVENT_DESTROYED})},i.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new Gt),this.localEventService.addEventListener(t,e)},i.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},i.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout(function(){return e.dispatchEvent(t)},0)},i.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},i.prototype.addManagedListener=function(t,e,o){var r=this;if(!this.destroyed){t instanceof HTMLElement?ep(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var n=function(){return t.removeEventListener(e,o),r.destroyFunctions=r.destroyFunctions.filter(function(s){return s!==n}),null};return this.destroyFunctions.push(n),n}},i.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},i.prototype.createManagedBean=function(t,e){var o=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),o},i.prototype.createBean=function(t,e,o){return(e||this.getContext()).createBean(t,o)},i.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},i.prototype.destroyBeans=function(t,e){var o=this;return t&&Ee(t,function(r){return o.destroyBean(r,e)}),[]},i.EVENT_DESTROYED="destroyed",sr([m("frameworkOverrides")],i.prototype,"frameworkOverrides",void 0),sr([m("context")],i.prototype,"context",void 0),sr([m("eventService")],i.prototype,"eventService",void 0),sr([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),sr([Ne],i.prototype,"destroy",null),i}();/**
|
|
99
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
100
|
+
* @version v26.2.1
|
|
101
|
+
* @link http://www.ag-grid.com/
|
|
102
|
+
* @license MIT
|
|
103
|
+
*/var KC=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),is=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},YC=function(i,t){return function(e,o){t(e,o,i)}},tp=function(i){KC(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,o,r){var n=new re,s=this.extractExistingTreeData(r),a=s.existingCols,u=s.existingGroups,p=s.existingColKeys;n.addExistingKeys(p);var g=this.recursivelyCreateColumns(e,0,o,a,n,u),y=this.findMaxDept(g,0);this.logger.log("Number of levels for grouped columns is "+y);var C=this.balanceColumnTree(g,0,y,n),E=function(S,b){S instanceof Re&&S.setupExpandable(),S.setOriginalParent(b)};return this.columnUtils.depthFirstOriginalTreeSearch(null,C,E),{columnTree:C,treeDept:y}},t.prototype.extractExistingTreeData=function(e){var o=[],r=[],n=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){if(s instanceof Re){var a=s;r.push(a)}else{var u=s;n.push(u.getId()),o.push(u)}}),{existingCols:o,existingGroups:r,existingColKeys:n}},t.prototype.createForAutoGroups=function(e,o){var r=this,n=[];return e.forEach(function(s){var a=r.createAutoGroupTreeItem(o,s);n.push(a)}),n},t.prototype.createAutoGroupTreeItem=function(e,o){for(var r=this.findDepth(e),n=o,s=r-1;s>=0;s--){var a=new Re(null,"FAKE_PATH_"+o.getId()+"}_"+s,!0,s);this.context.createBean(a),a.setChildren([n]),n.setOriginalParent(a),n=a}return n},t.prototype.findDepth=function(e){for(var o=0,r=e;r&&r[0]&&r[0]instanceof Re;)o++,r=r[0].getChildren();return o},t.prototype.balanceColumnTree=function(e,o,r,n){for(var s=[],a=0;a<e.length;a++){var u=e[a];if(u instanceof Re){var p=u,g=this.balanceColumnTree(p.getChildren(),o+1,r,n);p.setChildren(g),s.push(p)}else{for(var y=void 0,C=void 0,E=r-1;E>=o;E--){var S=n.getUniqueKey(null,null),b=this.createMergedColGroupDef(null),F=new Re(b,S,!0,o);this.context.createBean(F),C&&C.setChildren([F]),C=F,y||(y=C)}if(y&&C){s.push(y);var B=e.some(function(M){return M instanceof Re});if(B){C.setChildren([u]);continue}else{C.setChildren(e);break}}s.push(u)}}return s},t.prototype.findMaxDept=function(e,o){for(var r=o,n=0;n<e.length;n++){var s=e[n];if(s instanceof Re){var a=s,u=this.findMaxDept(a.getChildren(),o+1);r<u&&(r=u)}}return r},t.prototype.recursivelyCreateColumns=function(e,o,r,n,s,a){var u=this,p=[];return e&&e.forEach(function(g){var y;u.isColumnGroup(g)?y=u.createColumnGroup(r,g,o,n,s,a):y=u.createColumn(r,g,n,s),p.push(y)}),p},t.prototype.createColumnGroup=function(e,o,r,n,s,a){var u=this.createMergedColGroupDef(o),p=s.getUniqueKey(u.groupId||null,null),g=new Re(u,p,!1,r);this.context.createBean(g);var y=this.findExistingGroup(o,a);y&&y.isExpanded()&&g.setExpanded(!0);var C=this.recursivelyCreateColumns(u.children,r+1,e,n,s,a);return g.setChildren(C),g},t.prototype.createMergedColGroupDef=function(e){var o={};return nt(o,this.gridOptionsWrapper.getDefaultColGroupDef()),nt(o,e),this.checkForDeprecatedItems(o),o},t.prototype.createColumn=function(e,o,r,n){var s=this.mergeColDefs(o);this.checkForDeprecatedItems(s);var a=this.findExistingColumn(o,r);if(a)a.setColDef(s,o),this.applyColumnState(a,s);else{var u=n.getUniqueKey(s.colId,s.field);a=new fe(s,o,u,e),this.context.createBean(a)}return a},t.prototype.applyColumnState=function(e,o){var r=R(o.flex);r!==void 0&&e.setFlex(r);var n=e.getFlex()<=0;if(n){var s=R(o.width);if(s!=null)e.setActualWidth(s);else{var a=e.getActualWidth();e.setActualWidth(a)}}o.sort!==void 0&&(o.sort==D.SORT_ASC||o.sort==D.SORT_DESC?e.setSort(o.sort):e.setSort(void 0));var u=R(o.sortIndex);u!==void 0&&e.setSortIndex(u);var p=O(o.hide);p!==void 0&&e.setVisible(!p),o.pinned!==void 0&&e.setPinned(o.pinned)},t.prototype.findExistingColumn=function(e,o){var r=H(o,function(n){var s=n.getUserProvidedColDef();if(!s)return!1;var a=e.colId!=null,u=e.field!=null;return a?n.getId()===e.colId:u?s.field===e.field:s===e});return o&&r&&$(o,r),r},t.prototype.findExistingGroup=function(e,o){var r=H(o,function(n){var s=n.getColGroupDef();if(!s)return!1;var a=e.groupId!=null;return a?n.getId()===e.groupId:!1});return r&&$(o,r),r},t.prototype.mergeColDefs=function(e){var o={},r=this.gridOptionsWrapper.getDefaultColDef();rt(o,r,!1,!0);var n=e.type;return n||(n=r&&r.type),n&&this.assignColumnTypes(n,o),rt(o,e,!1,!0),o},t.prototype.assignColumnTypes=function(e,o){var r=[];if(e instanceof Array){var n=e.some(function(u){return typeof u!="string"});n?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):r=e}else if(typeof e=="string")r=e.split(",");else{console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");return}var s=nt({},kC),a=this.gridOptionsWrapper.getColumnTypes()||{};ve(a,function(u,p){u in s?console.warn("AG Grid: the column type '"+u+"' is a default column type and cannot be overridden."):s[u]=p}),r.forEach(function(u){var p=s[u.trim()];p?rt(o,p,!1,!0):console.warn("ag-grid: colDef.type '"+u+"' does not correspond to defined gridOptions.columnTypes")})},t.prototype.checkForDeprecatedItems=function(e){if(e){var o=e;o.group!==void 0&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),o.headerGroup!==void 0&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),o.headerGroupShow!==void 0&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),o.suppressRowGroup!==void 0&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),o.suppressAggregation!==void 0&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(o.suppressRowGroup||o.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),o.displayName&&(console.warn("ag-grid: Found displayName "+o.displayName+", please use headerName instead, displayName is deprecated."),o.headerName=o.displayName)}},t.prototype.isColumnGroup=function(e){return e.children!==void 0},is([m("columnUtils")],t.prototype,"columnUtils",void 0),is([YC(0,xe("loggerFactory"))],t.prototype,"setBeans",null),t=is([Y("columnFactory")],t),t}(V);/**
|
|
104
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
105
|
+
* @version v26.2.1
|
|
106
|
+
* @link http://www.ag-grid.com/
|
|
107
|
+
* @license MIT
|
|
108
|
+
*/var _=function(){function i(){}return i.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",i.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",i.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",i.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",i.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",i.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",i.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",i.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",i.EVENT_COLUMN_MOVED="columnMoved",i.EVENT_COLUMN_VISIBLE="columnVisible",i.EVENT_COLUMN_PINNED="columnPinned",i.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",i.EVENT_COLUMN_RESIZED="columnResized",i.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",i.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",i.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",i.EVENT_ROW_GROUP_OPENED="rowGroupOpened",i.EVENT_ROW_DATA_CHANGED="rowDataChanged",i.EVENT_ROW_DATA_UPDATED="rowDataUpdated",i.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",i.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",i.EVENT_CHART_CREATED="chartCreated",i.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",i.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",i.EVENT_CHART_DESTROYED="chartDestroyed",i.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",i.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",i.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",i.EVENT_MODEL_UPDATED="modelUpdated",i.EVENT_PASTE_START="pasteStart",i.EVENT_PASTE_END="pasteEnd",i.EVENT_FILL_START="fillStart",i.EVENT_FILL_END="fillEnd",i.EVENT_CELL_CLICKED="cellClicked",i.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",i.EVENT_CELL_MOUSE_DOWN="cellMouseDown",i.EVENT_CELL_CONTEXT_MENU="cellContextMenu",i.EVENT_CELL_VALUE_CHANGED="cellValueChanged",i.EVENT_ROW_VALUE_CHANGED="rowValueChanged",i.EVENT_CELL_FOCUSED="cellFocused",i.EVENT_ROW_SELECTED="rowSelected",i.EVENT_SELECTION_CHANGED="selectionChanged",i.EVENT_CELL_KEY_DOWN="cellKeyDown",i.EVENT_CELL_KEY_PRESS="cellKeyPress",i.EVENT_CELL_MOUSE_OVER="cellMouseOver",i.EVENT_CELL_MOUSE_OUT="cellMouseOut",i.EVENT_FILTER_CHANGED="filterChanged",i.EVENT_FILTER_MODIFIED="filterModified",i.EVENT_FILTER_OPENED="filterOpened",i.EVENT_SORT_CHANGED="sortChanged",i.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",i.EVENT_ROW_CLICKED="rowClicked",i.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",i.EVENT_GRID_READY="gridReady",i.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",i.EVENT_VIEWPORT_CHANGED="viewportChanged",i.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",i.EVENT_FIRST_DATA_RENDERED="firstDataRendered",i.EVENT_DRAG_STARTED="dragStarted",i.EVENT_DRAG_STOPPED="dragStopped",i.EVENT_CHECKBOX_CHANGED="checkboxChanged",i.EVENT_ROW_EDITING_STARTED="rowEditingStarted",i.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",i.EVENT_CELL_EDITING_STARTED="cellEditingStarted",i.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",i.EVENT_BODY_SCROLL="bodyScroll",i.EVENT_BODY_SCROLL_END="bodyScrollEnd",i.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",i.EVENT_PAGINATION_CHANGED="paginationChanged",i.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",i.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",i.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",i.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",i.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",i.EVENT_FLASH_CELLS="flashCells",i.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",i.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",i.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",i.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",i.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",i.EVENT_ROW_DRAG_ENTER="rowDragEnter",i.EVENT_ROW_DRAG_MOVE="rowDragMove",i.EVENT_ROW_DRAG_LEAVE="rowDragLeave",i.EVENT_ROW_DRAG_END="rowDragEnd",i.EVENT_POPUP_TO_FRONT="popupToFront",i.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",i.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",i.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",i.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",i.EVENT_KEYBOARD_FOCUS="keyboardFocus",i.EVENT_MOUSE_FOCUS="mouseFocus",i.EVENT_STORE_UPDATED="storeUpdated",i}();/**
|
|
109
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
110
|
+
* @version v26.2.1
|
|
111
|
+
* @link http://www.ag-grid.com/
|
|
112
|
+
* @license MIT
|
|
113
|
+
*/var ss=function(){function i(){this.existingIds={}}return i.prototype.getInstanceIdForKey=function(t){var e=this.existingIds[t],o;return typeof e!="number"?o=0:o=e+1,this.existingIds[t]=o,o},i}();/**
|
|
114
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
115
|
+
* @version v26.2.1
|
|
116
|
+
* @link http://www.ag-grid.com/
|
|
117
|
+
* @license MIT
|
|
118
|
+
*/var qC=/[&<>"']/g,XC={"&":"&","<":"<",">":">",'"':""","'":"'"};function QC(i){var t=String.fromCharCode;function e(y){var C=[];if(!y)return[];for(var E=y.length,S=0,b,F;S<E;)b=y.charCodeAt(S++),b>=55296&&b<=56319&&S<E?(F=y.charCodeAt(S++),(F&64512)==56320?C.push(((b&1023)<<10)+(F&1023)+65536):(C.push(b),S--)):C.push(b);return C}function o(y){if(y>=55296&&y<=57343)throw Error("Lone surrogate U+"+y.toString(16).toUpperCase()+" is not a scalar value")}function r(y,C){return t(y>>C&63|128)}function n(y){if(y>=0&&y<=31&&y!==10){var C=y.toString(16).toUpperCase(),E=as(C,4,"0");return"_x"+E+"_"}if(!(y&4294967168))return t(y);var S="";return y&4294965248?y&4294901760?y&4292870144||(S=t(y>>18&7|240),S+=r(y,12),S+=r(y,6)):(o(y),S=t(y>>12&15|224),S+=r(y,6)):S=t(y>>6&31|192),S+=t(y&63|128),S}for(var s=e(i),a=s.length,u=-1,p,g="";++u<a;)p=s[u],g+=n(p);return g}function op(i,t){if(t=Math.floor(t),i.length===0||t===0)return"";var e=i.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)i+=i,t--;return i+=i.substring(0,e-i.length),i}function as(i,t,e){return i.length>t?i:(t-=i.length,t>e.length&&(e+=op(e,t/e.length)),e.slice(0,t)+i)}function rp(i){return i==null?null:i.replace(/([A-Z])/g,function(t){return"-"+t[0].toLowerCase()})}function np(i){return i==null?null:i.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function ip(i){return i[0].toUpperCase()+i.substr(1).toLowerCase()}function ft(i){return i==null?null:i.toString().toString().replace(qC,function(t){return XC[t]})}function ls(i){if(!i||i==null)return null;var t=/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,e=i.replace(t,"$1$4 $2$3$5").replace("."," ").split(" ");return e.map(function(o){return o.substring(0,1).toUpperCase()+(o.length>1?o.substring(1,o.length):"")}).join(" ")}function us(i,t){return i===t?!0:i!=null&&i.slice(0,t.length)===t}var JC=Object.freeze({__proto__:null,utf8_encode:QC,stringRepeat:op,padStart:as,camelCaseToHyphen:rp,hyphenToCamelCase:np,capitalise:ip,escapeString:ft,camelCaseToHumanText:ls,startsWith:us});/**
|
|
119
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
120
|
+
* @version v26.2.1
|
|
121
|
+
* @link http://www.ag-grid.com/
|
|
122
|
+
* @license MIT
|
|
123
|
+
*/function Rt(i){var t=new Map;return i.forEach(function(e){return t.set(e[0],e[1])}),t}function ZC(i,t){var e=new Map;return i.forEach(function(o){return e.set(t(o),o)}),e}function ew(i){var t=[];return i.forEach(function(e,o){return t.push(o)}),t}var tw=Object.freeze({__proto__:null,convertToMap:Rt,mapById:ZC,keys:ew});/**
|
|
124
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
125
|
+
* @version v26.2.1
|
|
126
|
+
* @link http://www.ag-grid.com/
|
|
127
|
+
* @license MIT
|
|
128
|
+
*/var ow=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ae=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rw=function(i,t){return function(e,o){t(e,o,i)}},nw=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},sp=function(i){ow(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.secondaryColumnsPresent=!1,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.colDefVersion=0,e.flexColsCalculatedAtLestOnce=!1,e}return t.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",this.onAutoGroupColumnDefChanged.bind(this))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,o){var r=this;o===void 0&&(o="api");var n=!!this.columnDefs;this.colDefVersion++;var s=this.compareColumnStatesAndRaiseEvents(o);this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var a=this.primaryColumns,u=this.primaryColumnTree,p=this.columnFactory.createColumnTree(e,!0,u);this.primaryColumnTree=p.columnTree,this.primaryHeaderRowCount=p.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(g){return r.primaryColumnsMap[g.getId()]=g}),this.extractRowGroupColumns(o,a),this.extractPivotColumns(o,a),this.extractValueColumns(o,a),this.ready=!0,this.updateGridColumns(),n&&this.gridColsArePrimary&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(o),this.checkViewportColumns(),this.dispatchEverythingChanged(o),s(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:_.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){e===void 0&&(e="api");var o={type:_.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(o)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,o=this.primaryColumns;o&&this.gridColumns.sort(function(r,n){var s=o.indexOf(r),a=o.indexOf(n),u=s>=0,p=a>=0;if(u&&p)return s-a;if(u)return 1;if(p)return-1;var g=e.gridColumns.indexOf(r),y=e.gridColumns.indexOf(n);return g-y})},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var o=e,r=[];o!=null;)r.push(o),o=this.getDisplayedColAfter(o);return r},t.prototype.checkViewportColumns=function(){if(this.displayedColumnsCenter!=null){var e=this.viewportColumns.map(function(n){return n.getId()}).join("#");this.extractViewport();var o=this.viewportColumns.map(function(n){return n.getId()}).join("#");if(e!==o){var r={type:_.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}}},t.prototype.setViewportPosition=function(e,o){(e!==this.scrollWidth||o!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=o,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return e&&this.gridOptionsWrapper.isTreeData()?(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1):!0},t.prototype.setPivotMode=function(e,o){if(o===void 0&&(o="api"),!(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(o);var r={type:_.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}},t.prototype.getSecondaryPivotColumn=function(e,o){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var r=this.getPrimaryColumn(o),n=null;return this.secondaryColumns.forEach(function(s){var a=s.getColDef().pivotKeys,u=s.getColDef().pivotValueColumn,p=ce(a,e),g=u===r;p&&g&&(n=s)}),n},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var o,r;this.gridOptionsWrapper.isEnableRtl()?(o=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,r=this.displayedColumnsRight?le(this.displayedColumnsRight):null):(o=this.displayedColumnsLeft?le(this.displayedColumnsLeft):null,r=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(n){n.setLastLeftPinned(n===o,e),n.setFirstRightPinned(n===r,e)})},t.prototype.autoSizeColumns=function(e,o,r){var n=this;r===void 0&&(r="api"),this.animationFrameService.flushAllFrames();var s=[],a=-1;for(o==null&&(o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());a!==0;)a=0,this.actionOnGridColumns(e,function(u){if(s.indexOf(u)>=0)return!1;var p=n.autoWidthCalculator.getPreferredWidthForColumn(u,o);if(p>0){var g=n.normaliseColumnWidth(u,p);u.setActualWidth(g,r),s.push(u),a++}return!0},r);this.fireColumnResizedEvent(s,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,o,r,n){if(n===void 0&&(n=null),e&&e.length){var s={type:_.EVENT_COLUMN_RESIZED,columns:e,column:e.length===1?e[0]:null,flexColumns:n,finished:o,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)}},t.prototype.autoSizeColumn=function(e,o,r){r===void 0&&(r="api"),e&&this.autoSizeColumns([e],o,r)},t.prototype.autoSizeAllColumns=function(e,o){o===void 0&&(o="api");var r=this.getAllDisplayedColumns();this.autoSizeColumns(r,e,o)},t.prototype.getColumnsFromTree=function(e){var o=[],r=function(n){for(var s=0;s<n.length;s++){var a=n[s];a instanceof fe?o.push(a):a instanceof Re&&r(a.getChildren())}};return r(e),o},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,o,r,n){for(var s=[],a=null,u=function(y){var C=o[y],E=o.length-y,S=Math.min(C.getColSpan(e),E),b=[C];if(S>1){for(var F=S-1,B=1;B<=F;B++)b.push(o[y+B]);y+=F}var M;if(r?(M=!1,b.forEach(function(j){r(j)&&(M=!0)})):M=!0,M){if(s.length===0&&a){var L=n?n(C):!1;L&&s.push(a)}s.push(C)}a=C,p=y},p,g=0;g<o.length;g++)u(g),g=p;return s},t.prototype.getViewportCenterColumnsForRow=function(e){var o=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var r=function(s){var a=s.getLeft();return h(a)&&a>o.viewportLeft},n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,r)},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.getColDef().autoHeight)return!0;var o=e.getLeft()||0,r=o+e.getActualWidth(),n=this.viewportLeft-200,s=this.viewportRight+200,a=o<n&&r<n,u=o>s&&r>s;return!a&&!u},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,o,r,n,s,a){var u=this;if(a===void 0&&(a="api"),!(!e||v(e))){var p=!1;if(e.forEach(function(y){var C=u.getPrimaryColumn(y);if(C){if(r){if(o.indexOf(C)>=0)return;o.push(C)}else{if(o.indexOf(C)<0)return;$(o,C)}n(C),p=!0}}),!!p){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var g={type:s,columns:o,column:o.length===1?o[0]:null,api:this.gridApi,columnApi:this.columnApi,source:a};this.eventService.dispatchEvent(g)}}},t.prototype.setRowGroupColumns=function(e,o){o===void 0&&(o="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),o)},t.prototype.setRowGroupActive=function(e,o,r){e!==o.isRowGroupActive()&&(o.setRowGroupActive(e,r),!e&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&o.setVisible(!0,r))},t.prototype.addRowGroupColumn=function(e,o){o===void 0&&(o="api"),e&&this.addRowGroupColumns([e],o)},t.prototype.addRowGroupColumns=function(e,o){o===void 0&&(o="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),_.EVENT_COLUMN_ROW_GROUP_CHANGED,o)},t.prototype.removeRowGroupColumns=function(e,o){o===void 0&&(o="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),_.EVENT_COLUMN_ROW_GROUP_CHANGED,o)},t.prototype.removeRowGroupColumn=function(e,o){o===void 0&&(o="api"),e&&this.removeRowGroupColumns([e],o)},t.prototype.addPivotColumns=function(e,o){o===void 0&&(o="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(r){return r.setPivotActive(!0,o)},_.EVENT_COLUMN_PIVOT_CHANGED,o)},t.prototype.setPivotColumns=function(e,o){o===void 0&&(o="api"),this.setPrimaryColumnList(e,this.pivotColumns,_.EVENT_COLUMN_PIVOT_CHANGED,function(r,n){n.setPivotActive(r,o)},o)},t.prototype.addPivotColumn=function(e,o){o===void 0&&(o="api"),this.addPivotColumns([e],o)},t.prototype.removePivotColumns=function(e,o){o===void 0&&(o="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(r){return r.setPivotActive(!1,o)},_.EVENT_COLUMN_PIVOT_CHANGED,o)},t.prototype.removePivotColumn=function(e,o){o===void 0&&(o="api"),this.removePivotColumns([e],o)},t.prototype.setPrimaryColumnList=function(e,o,r,n,s){var a=this;o.length=0,h(e)&&e.forEach(function(u){var p=a.getPrimaryColumn(u);p&&o.push(p)}),(this.primaryColumns||[]).forEach(function(u){var p=o.indexOf(u)>=0;n(p,u)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.fireColumnEvent(r,o,s)},t.prototype.setValueColumns=function(e,o){o===void 0&&(o="api"),this.setPrimaryColumnList(e,this.valueColumns,_.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),o)},t.prototype.setValueActive=function(e,o,r){if(e!==o.isValueActive()&&(o.setValueActive(e,r),e&&!o.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(o);o.setAggFunc(n)}},t.prototype.addValueColumns=function(e,o){o===void 0&&(o="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),_.EVENT_COLUMN_VALUE_CHANGED,o)},t.prototype.addValueColumn=function(e,o){o===void 0&&(o="api"),e&&this.addValueColumns([e],o)},t.prototype.removeValueColumn=function(e,o){o===void 0&&(o="api"),this.removeValueColumns([e],o)},t.prototype.removeValueColumns=function(e,o){o===void 0&&(o="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),_.EVENT_COLUMN_VALUE_CHANGED,o)},t.prototype.normaliseColumnWidth=function(e,o){var r=e.getMinWidth();h(r)&&o<r&&(o=r);var n=e.getMaxWidth();return h(n)&&e.isGreaterThanMax(o)&&(o=n),o},t.prototype.getPrimaryOrGridColumn=function(e){var o=this.getPrimaryColumn(e);return o||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,o,r,n){var s=this;n===void 0&&(n="api");var a=[];e.forEach(function(u){var p=s.getPrimaryOrGridColumn(u.key);if(p){a.push({width:u.newWidth,ratios:[1],columns:[p]});var g=s.gridOptionsWrapper.getColResizeDefault()==="shift";if(g&&(o=!o),o){var y=s.getDisplayedColAfter(p);if(!y)return;var C=p.getActualWidth()-u.newWidth,E=y.getActualWidth()+C;a.push({width:E,ratios:[1],columns:[y]})}}}),a.length!==0&&this.resizeColumnSets(a,r,n)},t.prototype.checkMinAndMaxWidthsForSet=function(e){var o=e.columns,r=e.width,n=0,s=0,a=!0;o.forEach(function(g){var y=g.getMinWidth();n+=y||0;var C=g.getMaxWidth();h(C)&&C>0?s+=C:a=!1});var u=r>=n,p=!a||r<=s;return u&&p},t.prototype.resizeColumnSets=function(e,o,r){var n=this,s=!e||e.every(function(E){return n.checkMinAndMaxWidthsForSet(E)});if(!s){if(o){var a=e&&e.length>0?e[0].columns:null;this.fireColumnResizedEvent(a,o,r)}return}var u=[],p=[];e.forEach(function(E){var S=E.width,b=E.columns,F=E.ratios,B={},M={};b.forEach(function(te){return p.push(te)});for(var L=!0,j=0,J=function(){if(j++,j>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";L=!1;var te=[],pe=0,ye=S;b.forEach(function(_e,We){var mt=M[_e.getId()];if(mt)ye-=B[_e.getId()];else{te.push(_e);var Oe=F[We];pe+=Oe}});var ge=1/pe;te.forEach(function(_e,We){var mt=We===te.length-1,Oe;mt?Oe=ye:(Oe=Math.round(F[We]*S*ge),ye-=Oe);var Ka=_e.getMinWidth(),ni=_e.getMaxWidth();h(Ka)&&Oe<Ka?(Oe=Ka,M[_e.getId()]=!0,L=!0):h(ni)&&ni>0&&Oe>ni&&(Oe=ni,M[_e.getId()]=!0,L=!0),B[_e.getId()]=Oe})};L;){var ue=J();if(ue==="break")break}b.forEach(function(te){var pe=B[te.getId()];te.getActualWidth()!==pe&&(te.setActualWidth(pe,r),u.push(te))})});var g=u.length>0,y=this.refreshFlexedColumns({resizingCols:p,skipSetLeft:!0});g&&(this.setLeftValues(r),this.updateBodyWidths(),this.checkViewportColumns());var C=p.concat(y);(g||o)&&this.fireColumnResizedEvent(C,o,r,y)},t.prototype.setColumnAggFunc=function(e,o,r){if(r===void 0&&(r="api"),!!e){var n=this.getPrimaryColumn(e);n&&(n.setAggFunc(o),this.fireColumnEvent(_.EVENT_COLUMN_VALUE_CHANGED,[n],r))}},t.prototype.fireColumnEvent=function(e,o,r){var n={type:e,columns:o,column:o&&o.length==1?o[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(n)},t.prototype.moveRowGroupColumn=function(e,o,r){r===void 0&&(r="api");var n=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(o,0,n);var s={type:_.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:this.rowGroupColumns.length===1?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},t.prototype.moveColumns=function(e,o,r){if(r===void 0&&(r="api"),this.columnAnimationService.start(),o>this.gridColumns.length-e.length){console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+o),console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");return}var n=this.getGridColumns(e),s=!this.doesMovePassRules(n,o);if(!s){Ki(this.gridColumns,n,o),this.updateDisplayedColumns(r);var a={type:_.EVENT_COLUMN_MOVED,columns:n,column:n.length===1?n[0]:null,toIndex:o,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(a),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,o){var r=this.gridColumns.slice();return Ki(r,e,o),!(!this.doesMovePassMarryChildren(r)||!this.doesMovePassLockedPositions(r))},t.prototype.sortColumnsLikeGridColumns=function(e){var o=this;if(!(!e||e.length<=1)){var r=e.filter(function(n){return o.gridColumns.indexOf(n)<0}).length>0;r||e.sort(function(n,s){var a=o.gridColumns.indexOf(n),u=o.gridColumns.indexOf(s);return a-u})}},t.prototype.doesMovePassLockedPositions=function(e){var o=!1,r=!0;return e.forEach(function(n){n.getColDef().lockPosition?o&&(r=!1):o=!0}),r},t.prototype.doesMovePassMarryChildren=function(e){var o=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){if(r instanceof Re){var n=r,s=n.getColGroupDef(),a=s&&s.marryChildren;if(a){var u=[];n.getLeafColumns().forEach(function(E){var S=e.indexOf(E);u.push(S)});var p=Math.max.apply(Math,u),g=Math.min.apply(Math,u),y=p-g,C=n.getLeafColumns().length-1;y>C&&(o=!1)}}}),o},t.prototype.moveColumn=function(e,o,r){r===void 0&&(r="api"),this.moveColumns([e],o,r)},t.prototype.moveColumnByIndex=function(e,o,r){r===void 0&&(r="api");var n=this.gridColumns[e];this.moveColumn(n,o,r)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var o=this.primaryColumns.slice();return this.gridColsArePrimary?o.sort(function(r,n){return e.gridColumns.indexOf(r)-e.gridColumns.indexOf(n)}):this.lastPrimaryOrder&&o.sort(function(r,n){return e.lastPrimaryOrder.indexOf(r)-e.lastPrimaryOrder.indexOf(n)}),this.columnDefFactory.buildColumnDefs(o,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case D.PINNED_LEFT:return this.leftWidth;case D.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),o=this.getWidthOfColsInList(this.displayedColumnsLeft),r=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var n=this.bodyWidth!==e||this.leftWidth!==o||this.rightWidth!==r;if(n){this.bodyWidth=e,this.leftWidth=o,this.rightWidth=r;var s={type:_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case D.PINNED_LEFT:return this.getDisplayedLeftColumns();case D.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return v(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return v(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,o,r){r===void 0&&(r="api"),this.setColumnsVisible([e],o,r)},t.prototype.setColumnsVisible=function(e,o,r){var n=this;o===void 0&&(o=!1),r===void 0&&(r="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,function(s){return s.isVisible()!==o?(s.setVisible(o,r),!0):!1},r,function(){var s={type:_.EVENT_COLUMN_VISIBLE,visible:o,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:r};return s}),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,o,r){r===void 0&&(r="api"),e&&this.setColumnsPinned([e],o,r)},t.prototype.setColumnsPinned=function(e,o,r){var n=this;if(r===void 0&&(r="api"),this.gridOptionsWrapper.getDomLayout()==="print"){console.warn("Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();var s;o===!0||o===D.PINNED_LEFT?s=D.PINNED_LEFT:o===D.PINNED_RIGHT?s=D.PINNED_RIGHT:s=null,this.actionOnGridColumns(e,function(a){return a.getPinned()!==s?(a.setPinned(s),!0):!1},r,function(){var a={type:_.EVENT_COLUMN_PINNED,pinned:s,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:r};return a}),this.columnAnimationService.finish()},t.prototype.actionOnGridColumns=function(e,o,r,n){var s=this;if(!v(e)){var a=[];if(e.forEach(function(p){var g=s.getGridColumn(p);if(g){var y=o(g);y!==!1&&a.push(g)}}),!!a.length&&(this.updateDisplayedColumns(r),h(n)&&n)){var u=n();u.columns=a,u.column=a.length===1?a[0]:null,this.eventService.dispatchEvent(u)}}},t.prototype.getDisplayedColBefore=function(e){var o=this.getAllDisplayedColumns(),r=o.indexOf(e);return r>0?o[r-1]:null},t.prototype.getDisplayedColAfter=function(e){var o=this.getAllDisplayedColumns(),r=o.indexOf(e);return r<o.length-1?o[r+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,o){for(var r=e.getOriginalColumnGroup().getLevel()+e.getPaddingLevel(),n=e.getDisplayedLeafColumns(),s=o==="After"?le(n):n[0],a="getDisplayedCol"+o;;){var u=this[a](s);if(!u)return null;var p=this.getColumnGroupAtLevel(u,r);if(p!==e)return p}},t.prototype.getColumnGroupAtLevel=function(e,o){for(var r=e.getParent(),n,s;;){var a=r.getOriginalColumnGroup();if(n=a.getLevel(),s=r.getPaddingLevel(),n+s<=o)break;r=r.getParent()}return r},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&h(this.groupAutoColumns)&&this.groupAutoColumns.forEach(function(o){return e.push(o)}),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach(function(o){return e.push(o)}),e},t.prototype.createStateItemFromColumn=function(e){var o=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,r=e.isPivotActive()?this.pivotColumns.indexOf(e):null,n=e.isValueActive()?e.getAggFunc():null,s=e.getSort()!=null?e.getSort():null,a=e.getSortIndex()!=null?e.getSortIndex():null,u=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null,p={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:n,rowGroup:e.isRowGroupActive(),rowGroupIndex:o,pivot:e.isPivotActive(),pivotIndex:r,flex:u};return p},t.prototype.getColumnState=function(){if(f(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),o=e.map(this.createStateItemFromColumn.bind(this));return this.pivotMode||this.orderColumnStateList(o),o},t.prototype.getPrimaryAndAutoGroupCols=function(){return this.groupAutoColumns?nw(this.primaryColumns||[],this.groupAutoColumns):this.primaryColumns},t.prototype.orderColumnStateList=function(e){var o=Rt(this.gridColumns.map(function(r,n){return[r.getColId(),n]}));e.sort(function(r,n){var s=o.has(r.colId)?o.get(r.colId):-1,a=o.has(n.colId)?o.get(n.colId):-1;return s-a})},t.prototype.resetColumnState=function(e){e===void 0&&(e="api");var o=this.getColumnsFromTree(this.primaryColumnTree),r=[],n=1e3,s=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),o&&(a=a.concat(o)),a.forEach(function(u){var p=function(te,pe){return te??pe??null},g=u.getColDef(),y=p(g.sort,g.initialSort),C=p(g.sortIndex,g.initialSortIndex),E=p(g.hide,g.initialHide),S=p(g.pinned,g.initialPinned),b=p(g.width,g.initialWidth),F=p(g.flex,g.initialFlex),B=p(g.rowGroupIndex,g.initialRowGroupIndex),M=p(g.rowGroup,g.initialRowGroup);B==null&&(M==null||M==!1)&&(B=null,M=null);var L=p(g.pivotIndex,g.initialPivotIndex),j=p(g.pivot,g.initialPivot);L==null&&(j==null||j==!1)&&(L=null,j=null);var J=p(g.aggFunc,g.initialAggFunc),ue={colId:u.getColId(),sort:y,sortIndex:C,hide:E,pinned:S,width:b,flex:F,rowGroup:M,rowGroupIndex:B,pivot:j,pivotIndex:L,aggFunc:J};f(B)&&M&&(ue.rowGroupIndex=n++),f(L)&&j&&(ue.pivotIndex=s++),r.push(ue)}),this.applyColumnState({state:r,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,o){var r=this;if(o===void 0&&(o="api"),v(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;this.columnAnimationService.start();var n=this.compareColumnStatesAndRaiseEvents(o);this.autoGroupsNeedBuilding=!0;var s=this.primaryColumns.slice(),a=!0,u={},p={},g=[],y=this.rowGroupColumns.slice(),C=this.pivotColumns.slice();e.state&&e.state.forEach(function(F){var B=D.GROUP_AUTO_COLUMN_ID,M=F.colId||"",L=us(M,B);if(L){g.push(F);return}var j=r.getPrimaryColumn(M);j?(r.syncColumnWithStateItem(j,F,e.defaultState,u,p,!1,o),$(s,j)):a=!1});var E=function(F){return r.syncColumnWithStateItem(F,null,e.defaultState,u,p,!1,o)};s.forEach(E);var S=function(F,B,M,L){var j=F[M.getId()],J=F[L.getId()],ue=j!=null,te=J!=null;if(ue&&te)return j-J;if(ue)return-1;if(te)return 1;var pe=B.indexOf(M),ye=B.indexOf(L),ge=pe>=0,_e=ye>=0;return ge&&_e?pe-ye:ge?-1:1};this.rowGroupColumns.sort(S.bind(this,u,y)),this.pivotColumns.sort(S.bind(this,p,C)),this.updateGridColumns();var b=this.groupAutoColumns?this.groupAutoColumns.slice():[];return g.forEach(function(F){var B=r.getAutoColumn(F.colId);$(b,B),r.syncColumnWithStateItem(B,F,e.defaultState,null,null,!0,o)}),b.forEach(E),this.applyOrderAfterApplyState(e),this.updateDisplayedColumns(o),this.dispatchEverythingChanged(o),n(),this.columnAnimationService.finish(),a},t.prototype.applyOrderAfterApplyState=function(e){if(!(!this.gridColsArePrimary||!e.applyOrder||!e.state)){var o=[],r={},n={};if(this.gridColumns.forEach(function(s){return n[s.getId()]=s}),e.state.forEach(function(s){if(!(!s.colId||r[s.colId])){var a=n[s.colId];a&&(o.push(a),r[s.colId]=!0)}}),this.gridColumns.forEach(function(s){r[s.getColId()]||o.push(s)}),o=this.putFixedColumnsFirst(o),!this.doesMovePassMarryChildren(o)){console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.gridColumns=o}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var o=this,r=!!this.columnDefs;if(!r)return function(){};var n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},s=this.getColumnState(),a={};return s.forEach(function(u){a[u.colId]=u}),function(){if(!o.gridOptionsWrapper.isSuppressColumnStateEvents()){var u=o.getPrimaryAndAutoGroupCols(),p=function(M,L,j,J){var ue=L.map(J),te=j.map(J),pe=ce(ue,te);if(!pe){var ye={type:M,columns:j,column:j.length===1?j[0]:null,api:o.gridApi,columnApi:o.columnApi,source:e};o.eventService.dispatchEvent(ye)}},g=function(M){var L=[];return(u||[]).forEach(function(j){var J=a[j.getColId()];J&&M(J,j)&&L.push(j)}),L},y=function(M){return M.getColId()};p(_.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,o.rowGroupColumns,y),p(_.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,o.pivotColumns,y);var C=function(M,L){var j=M.aggFunc!=null,J=j!=L.isValueActive(),ue=j&&M.aggFunc!=L.getAggFunc();return J||ue},E=g(C);E.length>0&&o.fireColumnEvent(_.EVENT_COLUMN_VALUE_CHANGED,o.valueColumns,e);var S=function(M,L){return M.width!=L.getActualWidth()};o.fireColumnResizedEvent(g(S),!0,e);var b=function(M,L){return M.pinned!=L.getPinned()};o.raiseColumnPinnedEvent(g(b),e);var F=function(M,L){return M.hide==L.isVisible()};o.raiseColumnVisibleEvent(g(F),e);var B=function(M,L){return M.sort!=L.getSort()||M.sortIndex!=L.getSortIndex()};g(B).length>0&&o.sortController.dispatchSortChangedEvents(),o.raiseColumnMovedEvent(s,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,o){if(e.length){var r=e.length===1?e[0]:null,n=this.getCommonValue(e,function(a){return a.getPinned()}),s={type:_.EVENT_COLUMN_PINNED,pinned:n??null,columns:e,column:r,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}},t.prototype.getCommonValue=function(e,o){if(!(!e||e.length==0)){for(var r=o(e[0]),n=1;n<e.length;n++)if(r!==o(e[n]))return;return r}},t.prototype.raiseColumnVisibleEvent=function(e,o){if(e.length){var r=e.length===1?e[0]:null,n=this.getCommonValue(e,function(a){return a.isVisible()}),s={type:_.EVENT_COLUMN_VISIBLE,visible:n,columns:e,column:r,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}},t.prototype.raiseColumnMovedEvent=function(e,o){var r=this,n=this.getColumnState(),s={};n.forEach(function(C){return s[C.colId]=C});var a={};e.forEach(function(C){s[C.colId]&&(a[C.colId]=!0)});var u=qi(e,function(C){return a[C.colId]}),p=qi(n,function(C){return a[C.colId]}),g=[];if(p.forEach(function(C,E){var S=u&&u[E];if(S&&S.colId!==C.colId){var b=r.getGridColumn(S.colId);b&&g.push(b)}}),!!g.length){var y={type:_.EVENT_COLUMN_MOVED,columns:g,column:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(y)}},t.prototype.syncColumnWithStateItem=function(e,o,r,n,s,a,u){if(e){var p=function(ye,ge){var _e=o,We=r,mt={value1:void 0,value2:void 0},Oe=!1;return _e&&(_e[ye]!==void 0&&(mt.value1=_e[ye],Oe=!0),h(ge)&&_e[ge]!==void 0&&(mt.value2=_e[ge],Oe=!0)),!Oe&&We&&(We[ye]!==void 0&&(mt.value1=We[ye]),h(ge)&&We[ge]!==void 0&&(mt.value2=We[ge])),mt},g=p("hide").value1;g!==void 0&&e.setVisible(!g,u);var y=p("pinned").value1;y!==void 0&&e.setPinned(y);var C=this.columnUtils.calculateColMinWidth(e.getColDef()),E=p("flex").value1;E!==void 0&&e.setFlex(E);var S=e.getFlex()<=0;if(S){var b=p("width").value1;b!=null&&C!=null&&b>=C&&e.setActualWidth(b,u)}var F=p("sort").value1;F!==void 0&&(F===D.SORT_DESC||F===D.SORT_ASC?e.setSort(F):e.setSort(void 0));var B=p("sortIndex").value1;if(B!==void 0&&e.setSortIndex(B),!a){var M=p("aggFunc").value1;M!==void 0&&(typeof M=="string"?(e.setAggFunc(M),e.isValueActive()||(e.setValueActive(!0,u),this.valueColumns.push(e))):(h(M)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,u),$(this.valueColumns,e))));var L=p("rowGroup","rowGroupIndex"),j=L.value1,J=L.value2;(j!==void 0||J!==void 0)&&(typeof J=="number"||j?(e.isRowGroupActive()||(e.setRowGroupActive(!0,u),this.rowGroupColumns.push(e)),n&&typeof J=="number"&&(n[e.getId()]=J)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,u),$(this.rowGroupColumns,e)));var ue=p("pivot","pivotIndex"),te=ue.value1,pe=ue.value2;(te!==void 0||pe!==void 0)&&(typeof pe=="number"||te?(e.isPivotActive()||(e.setPivotActive(!0,u),this.pivotColumns.push(e)),s&&typeof pe=="number"&&(s[e.getId()]=pe)):e.isPivotActive()&&(e.setPivotActive(!1,u),$(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,o){var r=[];return e&&e.forEach(function(n){var s=o(n);s&&r.push(s)}),r},t.prototype.getColumnWithValidation=function(e){if(e==null)return null;var o=this.getGridColumn(e);return o||console.warn("AG Grid: could not find column "+e),o},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getColumn=function(e,o,r){if(!e)return null;if(typeof e=="string"&&r[e])return r[e];for(var n=0;n<o.length;n++)if(this.columnsMatch(o[n],e))return o[n];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var o=this;return!this.groupAutoColumns||!h(this.groupAutoColumns)||f(this.groupAutoColumns)?null:H(this.groupAutoColumns,function(r){return o.columnsMatch(r,e)})},t.prototype.columnsMatch=function(e,o){var r=e===o,n=e.getColDef()===o,s=e.getColId()==o;return r||n||s},t.prototype.getDisplayNameForColumn=function(e,o,r){if(r===void 0&&(r=!1),!e)return null;var n=this.getHeaderName(e.getColDef(),e,null,null,o);return r?this.wrapHeaderNameWithAggFunc(e,n):n},t.prototype.getDisplayNameForOriginalColumnGroup=function(e,o,r){var n=o?o.getColGroupDef():null;return n?this.getHeaderName(n,null,e,o,r):null},t.prototype.getDisplayNameForColumnGroup=function(e,o){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),o)},t.prototype.getHeaderName=function(e,o,r,n,s){var a=e.headerValueGetter;if(a){var u={colDef:e,column:o,columnGroup:r,originalColumnGroup:n,location:s,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return typeof a=="function"?a(u):typeof a=="string"?this.expressionService.evaluate(a,u):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}else{if(e.headerName!=null)return e.headerName;if(e.field)return ls(e.field)}return""},t.prototype.wrapHeaderNameWithAggFunc=function(e,o){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return o;var r=e.getColDef().pivotValueColumn,n=h(r),s=null,a;if(n)s=r?r.getAggFunc():null,a=!0;else{var u=e.isValueActive(),p=this.pivotMode||!this.isRowGroupEmpty();u&&p?(s=e.getAggFunc(),a=!0):a=!1}if(a){var g=typeof s=="string"?s:"func",y=this.gridOptionsWrapper.getLocaleTextFunc(),C=y(g,g);return C+"("+o+")"}return o},t.prototype.getColumnGroup=function(e,o){if(!e)return null;if(e instanceof Fe)return e;var r=this.getAllDisplayedTrees(),n=typeof o=="number",s=null;return this.columnUtils.depthFirstAllColumnTreeSearch(r,function(a){if(a instanceof Fe){var u=a,p=void 0;n?p=e===u.getGroupId()&&o===u.getInstanceId():p=e===u.getGroupId(),p&&(s=u)}}),s},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,o){this.valueColumns=this.extractColumns(o,this.valueColumns,function(r,n){return r.setValueActive(n,e)},function(){},function(){},function(r){var n=r.aggFunc;if(n===null||n==="")return null;if(n!==void 0)return!!n},function(r){return r.initialAggFunc!=null&&r.initialAggFunc!=""}),this.valueColumns.forEach(function(r){var n=r.getColDef();n.aggFunc!=null&&n.aggFunc!=""?r.setAggFunc(n.aggFunc):r.getAggFunc()||r.setAggFunc(n.initialAggFunc)})},t.prototype.extractRowGroupColumns=function(e,o){this.rowGroupColumns=this.extractColumns(o,this.rowGroupColumns,function(r,n){return r.setRowGroupActive(n,e)},function(r){return r.rowGroupIndex},function(r){return r.initialRowGroupIndex},function(r){return r.rowGroup},function(r){return r.initialRowGroup})},t.prototype.extractColumns=function(e,o,r,n,s,a,u){e===void 0&&(e=[]),o===void 0&&(o=[]);var p=[],g=[];(this.primaryColumns||[]).forEach(function(E){var S=e.indexOf(E)<0,b=E.getColDef(),F=O(a(b)),B=O(u(b)),M=R(n(b)),L=R(s(b)),j,J=F!==void 0,ue=M!==void 0,te=B!==void 0,pe=L!==void 0;if(J?j=F:ue?M===null?j=!1:j=M>=0:S?te?j=B:pe?j=L!=null&&L>=0:j=!1:j=o.indexOf(E)>=0,j){var ye=S?M!=null||L!=null:M!=null;ye?p.push(E):g.push(E)}});var y=function(E){var S=n(E.getColDef()),b=s(E.getColDef());return S??b};p.sort(function(E,S){var b=y(E),F=y(S);return b===F?0:b<F?-1:1});var C=[].concat(p);return o.forEach(function(E){g.indexOf(E)>=0&&C.push(E)}),g.forEach(function(E){C.indexOf(E)<0&&C.push(E)}),o.forEach(function(E){C.indexOf(E)<0&&r(E,!1)}),C.forEach(function(E){o.indexOf(E)<0&&r(E,!0)}),C},t.prototype.extractPivotColumns=function(e,o){this.pivotColumns=this.extractColumns(o,this.pivotColumns,function(r,n){return r.setPivotActive(n,e)},function(r){return r.pivotIndex},function(r){return r.initialPivotIndex},function(r){return r.pivot},function(r){return r.initialPivot})},t.prototype.resetColumnGroupState=function(e){e===void 0&&(e="api");var o=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(r){if(r instanceof Re){var n=r.getColGroupDef(),s={groupId:r.getGroupId(),open:n?n.openByDefault:void 0};o.push(s)}}),this.setColumnGroupState(o,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){if(o instanceof Re){var r=o;e.push({groupId:r.getGroupId(),open:r.isExpanded()})}}),e},t.prototype.setColumnGroupState=function(e,o){var r=this;o===void 0&&(o="api"),this.columnAnimationService.start();var n=[];e.forEach(function(s){var a=s.groupId,u=s.open,p=r.getOriginalColumnGroup(a);p&&p.isExpanded()!==u&&(r.logger.log("columnGroupOpened("+p.getGroupId()+","+u+")"),p.setExpanded(u),n.push(p))}),this.updateGroupsAndDisplayedColumns(o),this.setFirstRightAndLastLeftPinned(o),n.forEach(function(s){var a={type:_.EVENT_COLUMN_GROUP_OPENED,columnGroup:s,api:r.gridApi,columnApi:r.columnApi};r.eventService.dispatchEvent(a)}),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,o,r){r===void 0&&(r="api");var n;e instanceof Re?n=e.getId():n=e||"",this.setColumnGroupState([{groupId:n,open:o}],r)},t.prototype.getOriginalColumnGroup=function(e){if(e instanceof Re)return e;typeof e!="string"&&console.error("AG Grid: group key must be a string");var o=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){if(r instanceof Re){var n=r;n.getId()===e&&(o=n)}}),o},t.prototype.calculateColumnsForDisplay=function(){var e=this,o;return this.pivotMode&&!this.secondaryColumnsPresent?o=this.gridColumns.filter(function(r){var n=e.groupAutoColumns&&ot(e.groupAutoColumns,r),s=e.valueColumns&&ot(e.valueColumns,r);return n||s}):o=this.gridColumns.filter(function(r){var n=e.groupAutoColumns&&ot(e.groupAutoColumns,r);return n||r.isVisible()}),o},t.prototype.checkColSpanActiveInCols=function(e){var o=!1;return e.forEach(function(r){h(r.getColDef().colSpan)&&(o=!0)}),o},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var o=function(r){var n=r.getColDef();n&&h(n.showRowGroup)&&e.groupDisplayColumns.push(r)};this.gridColumns.forEach(o),this.groupAutoColumns&&this.groupAutoColumns.forEach(o)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var o=this.calculateColumnsForDisplay();this.buildDisplayedTrees(o),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},t.prototype.setSecondaryColumns=function(e,o){o===void 0&&(o="api");var r=e&&e.length>0;if(!(!r&&!this.secondaryColumnsPresent)){if(r){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(o)}},t.prototype.processSecondaryColumnDefinitions=function(e){var o=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),r=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(!(!o&&!r)){var n=function(s){s.forEach(function(a){var u=h(a.children);if(u){var p=a;r&&r(p),n(p.children)}else{var g=a;o&&o(g)}})};e&&n(e)}},t.prototype.updateGridColumns=function(){var e=this;this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.gridColumns=this.putFixedColumnsFirst(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(r){return e.gridColumnsMap[r.getId()]=r}),this.setAutoHeightActive();var o={type:_.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(n){return n.getColDef().autoHeight}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType(),o=e===D.ROW_MODEL_TYPE_CLIENT_SIDE||e===D.ROW_MODEL_TYPE_SERVER_SIDE;if(!o){var r="AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.";we(function(){return console.warn(r)},"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLikeLastPrimary=function(){if(!f(this.lastPrimaryOrder)){var e=Rt(this.lastPrimaryOrder.map(function(p,g){return[p,g]})),o=!0;if(this.gridColumns.forEach(function(p){e.has(p)&&(o=!1)}),!o){var r=Rt(this.gridColumns.map(function(p){return[p,!0]})),n=this.lastPrimaryOrder.filter(function(p){return r.has(p)}),s=Rt(n.map(function(p){return[p,!0]})),a=this.gridColumns.filter(function(p){return!s.has(p)}),u=n.slice();a.forEach(function(p){var g=p.getOriginalParent();if(!g){u.push(p);return}for(var y=[];!y.length&&g;){var C=g.getLeafColumns();C.forEach(function(b){var F=u.indexOf(b)>=0,B=y.indexOf(b)<0;F&&B&&y.push(b)}),g=g.getOriginalParent()}if(!y.length){u.push(p);return}var E=y.map(function(b){return u.indexOf(b)}),S=Math.max.apply(Math,E);Ro(u,p,S+1)}),this.gridColumns=u}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.putFixedColumnsFirst=function(e){var o=e.filter(function(n){return n.getColDef().lockPosition}),r=e.filter(function(n){return!n.getColDef().lockPosition});return o.concat(r)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!f(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var o={type:_.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(o){return o.getColDef().autoHeight})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var o=this;if(this.primaryColumns){var r=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(s){if(n){var a=o.getWidthOfColsInList(s);s.forEach(function(p){a-=p.getActualWidth(),p.setLeft(a,e)})}else{var u=0;s.forEach(function(p){p.setLeft(u,e),u+=p.getActualWidth()})}Mt(r,s)}),r.forEach(function(s){s.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(o){if(o instanceof Fe){var r=o;r.checkLeft()}})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,o){o.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(r){r instanceof fe&&o.push(r)})},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,o){var r;switch(e){case D.PINNED_LEFT:r=this.viewportRowLeft[o];break;case D.PINNED_RIGHT:r=this.viewportRowRight[o];break;default:r=this.viewportRowCenter[o];break}return f(r)&&(r=[]),r},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach(function(r){return e[r.getId()]=!0});var o=function(r,n,s){for(var a=!1,u=0;u<r.length;u++){var p=r[u],g=!1;if(p instanceof fe)g=e[p.getId()]===!0;else{var y=p,C=y.getDisplayedChildren();C&&(g=o(C,n,s+1))}g&&(a=!0,n[s]||(n[s]=[]),n[s].push(p))}return a};o(this.displayedTreeLeft,this.viewportRowLeft,0),o(this.displayedTreeRight,this.viewportRowRight,0),o(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var o=this;e===void 0&&(e={});var r=e.source?e.source:"flex";if(e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var n=-1;e.resizingCols&&e.resizingCols.forEach(function(j){var J=o.displayedColumnsCenter.indexOf(j);n<J&&(n=J)});var s=function(j){var J=o.displayedColumnsCenter.indexOf(j)>n;return j.getFlex()&&J},a=this.displayedColumnsCenter.filter(function(j){return!s(j)}),u=this.displayedColumnsCenter.filter(function(j){return s(j)}),p=[];if(!u.length)return[];var g=[],y;e:for(;;){var C=u.reduce(function(j,J){return j+J.getFlex()},0);y=this.flexViewportWidth-this.getWidthOfColsInList(a);for(var E=0;E<u.length;E++){var S=u[E],b=y*S.getFlex()/C,F=0,B=S.getMinWidth(),M=S.getMaxWidth();if(h(B)&&b<B?F=B:h(M)&&b>M&&(F=M),F){S.setActualWidth(F,r),$(u,S),p.push(S),a.push(S);continue e}g[E]=Math.round(b)}break}var L=y;return u.forEach(function(j,J){j.setActualWidth(Math.min(g[J],L),r),p.push(j),L-=g[J]}),e.skipSetLeft||this.setLeftValues(r),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(p,!0,r,u),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),u},t.prototype.sizeColumnsToFit=function(e,o,r){o===void 0&&(o="sizeColumnsToFit");var n=this.getAllDisplayedColumns();if(!(e<=0||!n.length)){var s=[],a=[];n.forEach(function(L){L.getColDef().suppressSizeToFit===!0?a.push(L):s.push(L)});var u=s.slice(0),p=!1,g=function(L){$(s,L),a.push(L)};for(s.forEach(function(L){return L.resetActualWidth(o)});!p;){p=!0;var y=e-this.getWidthOfColsInList(a);if(y<=0)s.forEach(function(L){L.setMinimum(o)});else for(var C=y/this.getWidthOfColsInList(s),E=y,S=s.length-1;S>=0;S--){var b=s[S],F=b.getMinWidth(),B=b.getMaxWidth(),M=Math.round(b.getActualWidth()*C);h(F)&&M<F?(M=F,g(b),p=!1):h(B)&&b.isGreaterThanMax(M)?(M=B,g(b),p=!1):S===0&&(M=E),b.setActualWidth(M,o,!0),E-=M}}u.forEach(function(L){L.fireColumnWidthChangedEvent(o)}),this.setLeftValues(o),this.updateBodyWidths(),!r&&this.fireColumnResizedEvent(u,!0,o)}},t.prototype.buildDisplayedTrees=function(e){var o=[],r=[],n=[];e.forEach(function(a){switch(a.getPinned()){case"left":o.push(a);break;case"right":r.push(a);break;default:n.push(a);break}});var s=new ss;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,s,D.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,s,D.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,s,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var o=function(r){e.displayedColumnsAndGroupsMap[r.getUniqueId()]=r};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,o),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,o),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,o)},t.prototype.isDisplayed=function(e){var o=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return o===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(o){if(o instanceof Fe){var r=o;r.calculateDisplayedColumns()}})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),o=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn(),r=this.rowGroupColumns.length>0||this.usingTreeData,n=r&&!o&&!e;if(n){var s=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns),a=!this.autoColsEqual(s,this.groupAutoColumns);(a||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=s)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,o){return ce(e,o,function(r,n){return r.getColId()===n.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(o,r){return o+r.getActualWidth()},0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){if(!this.gridColumns)return!1;var e=this.gridColumns.some(function(o){return o.getColDef().floatingFilter});return e},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),o=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&o.reverse();for(var r=0;r<o.length;r++){var n=this[o[r]]();if(n.length)return e?le(n):n[0]}return null},Ae([m("expressionService")],t.prototype,"expressionService",void 0),Ae([m("columnFactory")],t.prototype,"columnFactory",void 0),Ae([m("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Ae([m("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Ae([m("columnUtils")],t.prototype,"columnUtils",void 0),Ae([m("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Ae([m("autoGroupColService")],t.prototype,"autoGroupColService",void 0),Ae([he("aggFuncService")],t.prototype,"aggFuncService",void 0),Ae([he("valueCache")],t.prototype,"valueCache",void 0),Ae([he("animationFrameService")],t.prototype,"animationFrameService",void 0),Ae([m("rowModel")],t.prototype,"rowModel",void 0),Ae([m("columnApi")],t.prototype,"columnApi",void 0),Ae([m("gridApi")],t.prototype,"gridApi",void 0),Ae([m("sortController")],t.prototype,"sortController",void 0),Ae([m("columnDefFactory")],t.prototype,"columnDefFactory",void 0),Ae([k],t.prototype,"init",null),Ae([rw(0,xe("loggerFactory"))],t.prototype,"setBeans",null),t=Ae([Y("columnModel")],t),t}(V);/**
|
|
129
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
130
|
+
* @version v26.2.1
|
|
131
|
+
* @link http://www.ag-grid.com/
|
|
132
|
+
* @license MIT
|
|
133
|
+
*/function ps(i,t){return as(i.toString(),t,"0")}function ap(i,t){for(var e=[],o=i;o<=t;o++)e.push(o);return e}function ln(i){return i!==""&&!isNaN(parseFloat(i))&&isFinite(i)}function lp(){return Number.MAX_SAFE_INTEGER||9007199254740991}function iw(i){return typeof i=="string"&&(i=parseInt(i,10)),typeof i=="number"?Math.floor(i):null}function sw(i,t){for(var e="",o=0;o<t;o++)e+=String.fromCharCode(i&255),i>>>=8;return e}function aw(i){return typeof i!="number"?"":cs(Math.round(i*100)/100)}function cs(i){return typeof i!="number"?"":i.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}function lw(i){return i==null?null:i.reduce(function(t,e){return t+e},0)}var uw=Object.freeze({__proto__:null,padStartWidthZeros:ps,createArrayOfNumbers:ap,isNumeric:ln,getMaxSafeInteger:lp,cleanNumber:iw,decToHex:sw,formatNumberTwoDecimalPlacesAndCommas:aw,formatNumberCommas:cs,sum:lw});/**
|
|
134
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
135
|
+
* @version v26.2.1
|
|
136
|
+
* @link http://www.ag-grid.com/
|
|
137
|
+
* @license MIT
|
|
138
|
+
*/var pw=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),cw=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},up=function(i){pw(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calculateColMinWidth=function(e){return e.minWidth!=null?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return e.maxWidth!=null?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||lp()},t.prototype.calculateColInitialWidth=function(e){var o=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),n,s=R(e.width),a=R(e.initialWidth);return s!=null?n=s:a!=null?n=a:n=this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(n,r),o)},t.prototype.getOriginalPathForColumn=function(e,o){var r=[],n=!1,s=function(a,u){for(var p=0;p<a.length;p++){if(n)return;var g=a[p];if(g instanceof Re){var y=g;s(y.getChildren(),u+1),r[u]=g}else g===e&&(n=!0)}};return s(o,0),n?r:null},t.prototype.depthFirstOriginalTreeSearch=function(e,o,r){var n=this;o&&o.forEach(function(s){s instanceof Re&&n.depthFirstOriginalTreeSearch(s,s.getChildren(),r),r(s,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,o){var r=this;e&&e.forEach(function(n){n instanceof Fe&&r.depthFirstAllColumnTreeSearch(n.getChildren(),o),o(n)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,o){var r=this;e&&e.forEach(function(n){n instanceof Fe&&r.depthFirstDisplayedColumnTreeSearch(n.getDisplayedChildren(),o),o(n)})},t=cw([Y("columnUtils")],t),t}(V);/**
|
|
139
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
140
|
+
* @version v26.2.1
|
|
141
|
+
* @link http://www.ag-grid.com/
|
|
142
|
+
* @license MIT
|
|
143
|
+
*/var dw=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),hw=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pp=function(i){dw(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.createDisplayedGroups=function(e,o,r,n,s){var a=this,u=[],p,g,y=this.mapOldGroupsById(s);return e.forEach(function(C){for(var E=a.getOriginalPathForColumn(o,C),S=[],b=!g,F=0;F<E.length;F++)if(b||E[F]!==g[F]){var B=a.createColumnGroup(E[F],r,y,n);S[F]=B,F==0?u.push(B):S[F-1].addChild(B)}else S[F]=p[F];var M=S.length===0;if(M)u.push(C);else{var L=le(S);L.addChild(C)}p=S,g=E}),this.setupParentsIntoColumns(u,null),u},t.prototype.createColumnGroup=function(e,o,r,n){var s=e.getGroupId(),a=o.getInstanceIdForKey(s),u=Fe.createUniqueId(s,a),p=r[u];return p&&p.getOriginalColumnGroup()!==e&&(p=null),h(p)?p.reset():(p=new Fe(e,s,a,n),this.context.createBean(p)),p},t.prototype.mapOldGroupsById=function(e){var o={},r=function(n){n.forEach(function(s){if(s instanceof Fe){var a=s;o[s.getUniqueId()]=a,r(a.getChildren())}})};return e&&r(e),o},t.prototype.setupParentsIntoColumns=function(e,o){var r=this;e.forEach(function(n){if(n.setParent(o),n instanceof Fe){var s=n;r.setupParentsIntoColumns(s.getChildren(),s)}})},t.prototype.getOriginalPathForColumn=function(e,o){var r=[],n=!1,s=function(a,u){for(var p=0;p<a.length;p++){if(n)return;var g=a[p];if(g instanceof Re){var y=g;s(y.getChildren(),u+1),r[u]=g}else g===o&&(n=!0)}};return s(e,0),n?r:(console.warn("could not get path"),null)},t=hw([Y("displayedGroupCreator")],t),t}(V);/**
|
|
144
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
145
|
+
* @version v26.2.1
|
|
146
|
+
* @link http://www.ag-grid.com/
|
|
147
|
+
* @license MIT
|
|
148
|
+
*/var fw=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},St=function(){function i(){}return i.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],i.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],i.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],i.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],i.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi"],i.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","loadingCellRendererSelector"],i.ALL_PROPERTIES=fw(i.ARRAY_PROPERTIES,i.OBJECT_PROPERTIES,i.STRING_PROPERTIES,i.NUMBER_PROPERTIES,i.FUNCTION_PROPERTIES,i.BOOLEAN_PROPERTIES),i.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],i}();/**
|
|
149
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
150
|
+
* @version v26.2.1
|
|
151
|
+
* @link http://www.ag-grid.com/
|
|
152
|
+
* @license MIT
|
|
153
|
+
*/var ds=function(){return ds=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},ds.apply(this,arguments)},cp=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},it=function(){function i(){}return i.getEventCallbacks=function(){return i.EVENT_CALLBACKS||(i.EVENT_CALLBACKS=i.EVENTS.map(function(t){return i.getCallbackForEvent(t)})),i.EVENT_CALLBACKS},i.copyAttributesToGridOptions=function(t,e,o){typeof t!="object"&&(t={});var r=t,n=function(s){return typeof e[s]<"u"};return cp(i.ARRAY_PROPERTIES,i.STRING_PROPERTIES,i.OBJECT_PROPERTIES,i.FUNCTION_PROPERTIES,i.getEventCallbacks()).filter(n).forEach(function(s){return r[s]=e[s]}),i.BOOLEAN_PROPERTIES.filter(n).forEach(function(s){return r[s]=i.toBoolean(e[s])}),i.NUMBER_PROPERTIES.filter(n).forEach(function(s){return r[s]=i.toNumber(e[s])}),t},i.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},i.processOnChange=function(t,e,o,r){if(t){var n=ds({},t),s=e,a=function(g){return n[g]};cp(i.ARRAY_PROPERTIES,i.OBJECT_PROPERTIES,i.STRING_PROPERTIES,i.getEventCallbacks()).filter(a).forEach(function(g){return s[g]=n[g].currentValue}),i.BOOLEAN_PROPERTIES.filter(a).forEach(function(g){return s[g]=i.toBoolean(n[g].currentValue)}),i.NUMBER_PROPERTIES.filter(a).forEach(function(g){return s[g]=i.toNumber(n[g].currentValue)}),n.enableCellTextSelection&&(o.setEnableCellTextSelection(i.toBoolean(n.enableCellTextSelection.currentValue)),delete n.enableCellTextSelection),n.quickFilterText&&(o.setQuickFilter(n.quickFilterText.currentValue),delete n.quickFilterText),n.autoGroupColumnDef&&(o.setAutoGroupColumnDef(n.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete n.autoGroupColumnDef),n.columnDefs&&(o.setColumnDefs(n.columnDefs.currentValue,"gridOptionsChanged"),delete n.columnDefs),n.paginationPageSize&&(o.paginationSetPageSize(i.toNumber(n.paginationPageSize.currentValue)),delete n.paginationPageSize),n.pivotMode&&(r.setPivotMode(i.toBoolean(n.pivotMode.currentValue)),delete n.pivotMode),n.groupRemoveSingleChildren&&(o.setGroupRemoveSingleChildren(i.toBoolean(n.groupRemoveSingleChildren.currentValue)),delete n.groupRemoveSingleChildren),n.suppressRowDrag&&(o.setSuppressRowDrag(i.toBoolean(n.suppressRowDrag.currentValue)),delete n.suppressRowDrag),n.suppressMoveWhenRowDragging&&(o.setSuppressMoveWhenRowDragging(i.toBoolean(n.suppressMoveWhenRowDragging.currentValue)),delete n.suppressMoveWhenRowDragging),n.suppressRowClickSelection&&(o.setSuppressRowClickSelection(i.toBoolean(n.suppressRowClickSelection.currentValue)),delete n.suppressRowClickSelection),n.suppressClipboardPaste&&(o.setSuppressClipboardPaste(i.toBoolean(n.suppressClipboardPaste.currentValue)),delete n.suppressClipboardPaste),n.headerHeight&&(o.setHeaderHeight(i.toNumber(n.headerHeight.currentValue)),delete n.headerHeight);var u=o;Object.keys(n).forEach(function(g){var y="set"+g.charAt(0).toUpperCase()+g.substring(1);u[y]&&u[y](t[g].currentValue)});var p={type:_.EVENT_COMPONENT_STATE_CHANGED,api:e.api,columnApi:e.columnApi};ve(t,function(g,y){p[g]=y}),o.dispatchEvent(p)}},i.toBoolean=function(t){return typeof t=="boolean"?t:typeof t=="string"?t.toUpperCase()==="TRUE"||t=="":!1},i.toNumber=function(t){if(typeof t=="number")return t;if(typeof t=="string")return Number(t)},i.EVENTS=[],i.PUBLIC_EVENTS=[],i.EXCLUDED_INTERNAL_EVENTS=[],i.STRING_PROPERTIES=St.STRING_PROPERTIES,i.OBJECT_PROPERTIES=St.OBJECT_PROPERTIES,i.ARRAY_PROPERTIES=St.ARRAY_PROPERTIES,i.NUMBER_PROPERTIES=St.NUMBER_PROPERTIES,i.BOOLEAN_PROPERTIES=St.BOOLEAN_PROPERTIES,i.FUNCTION_PROPERTIES=St.FUNCTION_PROPERTIES,i.ALL_PROPERTIES=St.ALL_PROPERTIES,i}();it.EVENTS=U(_),it.EXCLUDED_INTERNAL_EVENTS=[_.EVENT_SCROLLBAR_WIDTH_CHANGED,_.EVENT_CHECKBOX_CHANGED,_.EVENT_HEIGHT_SCALE_CHANGED,_.EVENT_BODY_HEIGHT_CHANGED,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,_.EVENT_SCROLL_VISIBILITY_CHANGED,_.EVENT_COLUMN_HOVER_CHANGED,_.EVENT_FLASH_CELLS,_.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,_.EVENT_DISPLAYED_ROWS_CHANGED,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,_.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,_.EVENT_POPUP_TO_FRONT,_.EVENT_KEYBOARD_FOCUS,_.EVENT_MOUSE_FOCUS,_.EVENT_STORE_UPDATED,_.EVENT_COLUMN_PANEL_ITEM_DRAG_START,_.EVENT_COLUMN_PANEL_ITEM_DRAG_END,_.EVENT_FILL_START,_.EVENT_FILL_END],it.PUBLIC_EVENTS=it.EVENTS.filter(function(i){return!ot(it.EXCLUDED_INTERNAL_EVENTS,i)});/**
|
|
154
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
155
|
+
* @version v26.2.1
|
|
156
|
+
* @link http://www.ag-grid.com/
|
|
157
|
+
* @license MIT
|
|
158
|
+
*/var gw=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),vw=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},dp=function(i){gw(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.componentsMappedByName={},e}return t.prototype.setupComponents=function(e){var o=this;e&&e.forEach(function(r){return o.addComponent(r)})},t.prototype.addComponent=function(e){var o=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=o.toUpperCase();this.componentsMappedByName[r]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=vw([Y("agStackComponentsRegistry")],t),t}(V);/**
|
|
159
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
160
|
+
* @version v26.2.1
|
|
161
|
+
* @link http://www.ag-grid.com/
|
|
162
|
+
* @license MIT
|
|
163
|
+
*/var yw=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},hs=function(){function i(){}return i.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","initialAggFunc","aggFunc","cellRenderer","cellEditor","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],i.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],i.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],i.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],i.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle"],i.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],i.ALL_PROPERTIES=yw(i.ARRAY_PROPERTIES,i.OBJECT_PROPERTIES,i.STRING_PROPERTIES,i.NUMBER_PROPERTIES,i.FUNCTION_PROPERTIES,i.BOOLEAN_PROPERTIES),i.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],i}();/**
|
|
164
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
165
|
+
* @version v26.2.1
|
|
166
|
+
* @link http://www.ag-grid.com/
|
|
167
|
+
* @license MIT
|
|
168
|
+
*/var To=function(){function i(t,e,o,r){r===void 0&&(r=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,r||0))}return i.fromString=function(t){if(t.indexOf("#")>=0)return i.fromHexString(t);var e=i.nameToHex[t];if(e)return i.fromHexString(e);if(t.indexOf("rgb")>=0)return i.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},i.parseHex=function(t){t=t.replace(/ /g,"").slice(1);var e;switch(t.length){case 6:case 8:e=[];for(var o=0;o<t.length;o+=2)e.push(parseInt(""+t[o]+t[o+1],16));break;case 3:case 4:e=t.split("").map(function(r){return parseInt(r,16)}).map(function(r){return r+r*16});break}if(e.length>=3&&e.every(function(r){return r>=0}))return e.length===3&&e.push(255),e},i.fromHexString=function(t){var e=i.parseHex(t);if(e){var o=e[0],r=e[1],n=e[2],s=e[3];return new i(o/255,r/255,n/255,s/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},i.stringToRgba=function(t){for(var e=[NaN,NaN],o=e[0],r=e[1],n=0;n<t.length;n++){var s=t[n];if(!o&&s==="(")o=n;else if(s===")"){r=n;break}}var a=o&&r&&t.substring(o+1,r);if(a){for(var u=a.split(","),p=[],n=0;n<u.length;n++){var g=u[n],y=parseFloat(g);if(isNaN(y))return;g.indexOf("%")>=0?(y=Math.max(0,Math.min(100,y)),y/=100):n===3?y=Math.max(0,Math.min(1,y)):(y=Math.max(0,Math.min(255,y)),y/=255),p.push(y)}return p}},i.fromRgbaString=function(t){var e=i.stringToRgba(t);if(e){if(e.length===3)return new i(e[0],e[1],e[2]);if(e.length===4)return new i(e[0],e[1],e[2],e[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},i.fromArray=function(t){if(t.length===4)return new i(t[0],t[1],t[2],t[3]);if(t.length===3)return new i(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},i.fromHSB=function(t,e,o,r){r===void 0&&(r=1);var n=i.HSBtoRGB(t,e,o);return new i(n[0],n[1],n[2],r)},i.padHex=function(t){return t.length===1?"0"+t:t},i.prototype.toHexString=function(){var t="#"+i.padHex(Math.round(this.r*255).toString(16))+i.padHex(Math.round(this.g*255).toString(16))+i.padHex(Math.round(this.b*255).toString(16));return this.a<1&&(t+=i.padHex(Math.round(this.a*255).toString(16))),t},i.prototype.toRgbaString=function(t){t===void 0&&(t=3);var e=[Math.round(this.r*255),Math.round(this.g*255),Math.round(this.b*255)],o=Math.pow(10,t);return this.a!==1?(e.push(Math.round(this.a*o)/o),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},i.prototype.toString=function(){return this.a===1?this.toHexString():this.toRgbaString()},i.prototype.toHSB=function(){return i.RGBtoHSB(this.r,this.g,this.b)},i.RGBtoHSB=function(t,e,o){var r=Math.min(t,e,o),n=Math.max(t,e,o),s=n!==0?(n-r)/n:0,a=NaN;if(r!==n){var u=n-r,p=(n-t)/u,g=(n-e)/u,y=(n-o)/u;t===n?a=y-g:e===n?a=2+p-y:a=4+g-p,a/=6,a<0&&(a=a+1)}return[a*360,s,n]},i.HSBtoRGB=function(t,e,o){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var r=0,n=0,s=0;if(e===0)r=n=s=o;else{var a=(t-Math.floor(t))*6,u=a-Math.floor(a),p=o*(1-e),g=o*(1-e*u),y=o*(1-e*(1-u));switch(a>>0){case 0:r=o,n=y,s=p;break;case 1:r=g,n=o,s=p;break;case 2:r=p,n=o,s=y;break;case 3:r=p,n=g,s=o;break;case 4:r=y,n=p,s=o;break;case 5:r=o,n=p,s=g;break}}return[r,n,s]},i.prototype.derive=function(t,e,o,r){var n=i.RGBtoHSB(this.r,this.g,this.b),s=n[2];s==0&&o>1&&(s=.05);var a=((n[0]+t)%360+360)%360,u=Math.max(Math.min(n[1]*e,1),0);s=Math.max(Math.min(s*o,1),0);var p=Math.max(Math.min(this.a*r,1),0),g=i.HSBtoRGB(a,u,s);return g.push(p),i.fromArray(g)},i.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},i.prototype.darker=function(){return this.derive(0,1,.7,1)},i.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),i}();/**
|
|
169
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
170
|
+
* @version v26.2.1
|
|
171
|
+
* @link http://www.ag-grid.com/
|
|
172
|
+
* @license MIT
|
|
173
|
+
*/function hp(i,t){t===void 0&&(t=",");var e=[],o=function(C){return C==="\r"||C===`
|
|
174
|
+
`},r=!1;if(i==="")return[[""]];for(var n=function(C,E,S){var b=i[S-1],F=i[S],B=i[S+1],M=function(){e[C]||(e[C]=[]),e[C][E]||(e[C][E]="")};if(M(),F==='"'){if(r)return B==='"'?(e[C][E]+='"',S++):r=!1,s=C,a=E,u=S,"continue";if(b===void 0||b===t||o(b))return r=!0,s=C,a=E,u=S,"continue"}if(!r){if(F===t)return E++,M(),s=C,a=E,u=S,"continue";if(o(F))return E=0,C++,M(),F==="\r"&&B===`
|
|
175
|
+
`&&S++,s=C,a=E,u=S,"continue"}e[C][E]+=F,s=C,a=E,u=S},s,a,u,p=0,g=0,y=0;y<i.length;y++)n(p,g,y),p=s,g=a,y=u;return e}var mw=Object.freeze({__proto__:null,stringToArray:hp});/**
|
|
176
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
177
|
+
* @version v26.2.1
|
|
178
|
+
* @link http://www.ag-grid.com/
|
|
179
|
+
* @license MIT
|
|
180
|
+
*/var fs,gs,vs,ys,ms,Cs,ws,_s;function st(){return gs===void 0&&(gs=!!document.documentMode),gs}function un(){return vs===void 0&&(vs=!st()&&!!window.StyleMedia),vs}function pn(){return fs===void 0&&(fs=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),fs}function ar(){if(ys===void 0){var i=window;ys=!!i.chrome&&(!!i.chrome.webstore||!!i.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return ys}function Es(){if(ms===void 0){var i=window;ms=typeof i.InstallTrigger<"u"}return ms}function bo(){return Cs===void 0&&(Cs=(/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream),Cs}function cn(i){if(!i)return null;var t=i.tabIndex,e=i.getAttribute("tabIndex");if(st()&&t===0&&e===null){var o={a:!0,body:!0,button:!0,frame:!0,iframe:!0,img:!0,input:!0,isindex:!0,object:!0,select:!0,textarea:!0};return o[i.nodeName.toLowerCase()]===!0?"0":null}return t===-1&&(e===null||e===""&&!Es())?null:t.toString()}function fp(){if(!document.body)return-1;var i=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var o=i*2;if(e.style.height=o+"px",o>t||e.clientHeight!==o)break;i=o}return document.body.removeChild(e),i}function gp(){return _s==null&&vp(),_s}function vp(){var i=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",i.appendChild(t);var e=t.offsetWidth-t.clientWidth;e===0&&t.clientWidth===0&&(e=null),t.parentNode&&t.parentNode.removeChild(t),e!=null&&(_s=e,ws=e===0)}function yp(){return ws==null&&vp(),ws}function Cw(){var i=["webkit","moz","o","ms"],t=document.createElement("div"),e=document.getElementsByTagName("body")[0],o=!1,r;e.appendChild(t),t.setAttribute("style",i.map(function(u){return"-"+u+"-overflow-scrolling: touch"}).concat("overflow-scrolling: touch").join(";"));var n=window.getComputedStyle(t);if(n.overflowScrolling==="touch"&&(o=!0),!o){for(var s=0,a=i;s<a.length;s++)if(r=a[s],n[r+"OverflowScrolling"]==="touch"){o=!0;break}}return t.parentNode&&t.parentNode.removeChild(t),o}function mp(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Cp(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var ww=Object.freeze({__proto__:null,isBrowserIE:st,isBrowserEdge:un,isBrowserSafari:pn,isBrowserChrome:ar,isBrowserFirefox:Es,isIOSUserAgent:bo,getTabIndex:cn,getMaxDivHeight:fp,getScrollbarWidth:gp,isInvisibleScrollbar:yp,hasOverflowScrolling:Cw,getBodyWidth:mp,getBodyHeight:Cp});/**
|
|
181
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
182
|
+
* @version v26.2.1
|
|
183
|
+
* @link http://www.ag-grid.com/
|
|
184
|
+
* @license MIT
|
|
185
|
+
*/var dn;function Q(i,t){if(!(!i||!t||t.length===0)){if(t.indexOf(" ")>=0){t.split(" ").forEach(function(o){return Q(i,o)});return}if(i.classList)i.classList.add(t);else if(i.className&&i.className.length>0){var e=i.className.split(" ");e.indexOf(t)<0&&(e.push(t),i.setAttribute("class",e.join(" ")))}else i.setAttribute("class",t);return i}}function Ie(i,t){if(!(!i||!t||t.length===0)){if(t.indexOf(" ")>=0){t.split(" ").forEach(function(o){return Ie(i,o)});return}if(i.classList)i.classList.remove(t);else if(i.className&&i.className.length>0){var e=i.className.split(" ").filter(function(o){return o!==t}).join(" ");i.setAttribute("class",e)}}}function ee(i,t,e){e?Q(i,t):Ie(i,t)}function _w(i,t,e){for(var o=i.parentElement,r=o&&o.firstChild;r;)t&&ee(r,t,r===i),e&&ee(r,e,r!==i),r=r.nextSibling}function Ot(i,t){if(i.classList)return i.classList.contains(t);if(i.className){var e=i.className===t,o=i.className.indexOf(" "+t+" ")>=0,r=i.className.indexOf(t+" ")===0,n=i.className.lastIndexOf(" "+t)===i.className.length-t.length-1;return e||o||r||n}return!1}function wp(i){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,e=t.call(i,D.INPUT_SELECTOR),o=t.call(i,D.FOCUSABLE_EXCLUDE),r=Fo(i),n=e&&!o&&r;return n}function Ce(i,t){ee(i,"ag-hidden",!t)}function _p(i,t){ee(i,"ag-invisible",!t)}function No(i,t){var e="disabled",o=t?function(r){return r.setAttribute(e,"")}:function(r){return r.removeAttribute(e)};o(i),Ns(i.querySelectorAll("input"),function(r){return o(r)})}function hn(i,t,e){for(var o=0;i;){if(Ot(i,t))return!0;if(i=i.parentElement,e&&++o>e)break}return!1}function lr(i){var t=window.getComputedStyle(i),e=t.height,o=t.width,r=t.paddingTop,n=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,u=t.marginTop,p=t.marginRight,g=t.marginBottom,y=t.marginLeft,C=t.boxSizing;return{height:parseFloat(e),width:parseFloat(o),paddingTop:parseFloat(r),paddingRight:parseFloat(n),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(u),marginRight:parseFloat(p),marginBottom:parseFloat(g),marginLeft:parseFloat(y),boxSizing:C}}function ur(i){var t=lr(i);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function fn(i){var t=lr(i);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function Rs(i){var t=lr(i),e=t.marginBottom+t.marginTop;return Math.ceil(i.offsetHeight+e)}function gn(i){var t=lr(i),e=t.marginLeft+t.marginRight;return Math.ceil(i.offsetWidth+e)}function pr(){if(typeof dn=="boolean")return dn;var i=document.createElement("div");return i.style.direction="rtl",i.style.width="1px",i.style.height="1px",i.style.position="fixed",i.style.top="0px",i.style.overflow="hidden",i.dir="rtl",i.innerHTML=`<div style="width: 2px">
|
|
186
|
+
<span style="display: inline-block; width: 1px"></span>
|
|
187
|
+
<span style="display: inline-block; width: 1px"></span>
|
|
188
|
+
</div>`,document.body.appendChild(i),i.scrollLeft=1,dn=Math.floor(i.scrollLeft)===0,document.body.removeChild(i),dn}function cr(i,t){var e=i.scrollLeft;return t&&(e=Math.abs(e),ar()&&!pr()&&(e=i.scrollWidth-i.clientWidth-e)),e}function vn(i,t,e){e&&(pr()?t*=-1:(pn()||ar())&&(t=i.scrollWidth-i.clientWidth-t)),i.scrollLeft=t}function Je(i){for(;i&&i.firstChild;)i.removeChild(i.firstChild)}function Ew(i,t){xt(i.querySelector(t))}function xt(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function Fo(i){return i.offsetParent!==null}function Pt(i){var t=document.createElement("div");return t.innerHTML=(i||"").trim(),t.firstChild}function Rw(i,t){i.lastChild?i.insertAdjacentHTML("afterbegin",t):i.innerHTML=t}function Sw(i,t){if(i.attributes&&i.attributes[t]){var e=i.attributes[t];return e.value}return null}function Ss(i){return i&&i.clientHeight?i.clientHeight:0}function Os(i){return i&&i.clientWidth?i.clientWidth:0}function Ps(i,t,e){e&&e.nextSibling===t||(e?e.nextSibling?i.insertBefore(t,e.nextSibling):i.appendChild(t):i.firstChild&&i.firstChild!==t&&i.insertAdjacentElement("afterbegin",t))}function Ds(i,t){for(var e=0;e<t.length;e++){var o=t[e],r=i.children[e];r!==o&&i.insertBefore(o,r)}}function Ep(i,t,e){e?e.insertAdjacentElement("afterend",t):i.firstChild?i.insertAdjacentElement("afterbegin",t):i.appendChild(t)}function Ow(i,t){h(i.firstChild)?i.insertBefore(t,i.firstChild):i.appendChild(t)}function As(i,t){t&&Object.keys(t).forEach(function(e){var o=np(e);o&&(i.style[o]=t[e])})}function Ts(i){return i.clientWidth<i.scrollWidth}function Rp(i){return i.clientHeight<i.scrollHeight}function dr(i,t){t==="flex"?(i.style.removeProperty("width"),i.style.removeProperty("minWidth"),i.style.removeProperty("maxWidth"),i.style.flex="1 1 auto"):Dt(i,t)}function Dt(i,t){t=bs(t),i.style.width=t.toString(),i.style.maxWidth=t.toString(),i.style.minWidth=t.toString()}function Pw(i,t){t==="flex"?(i.style.removeProperty("height"),i.style.removeProperty("minHeight"),i.style.removeProperty("maxHeight"),i.style.flex="1 1 auto"):lo(i,t)}function lo(i,t){t=bs(t),i.style.height=t.toString(),i.style.maxHeight=t.toString(),i.style.minHeight=t.toString()}function bs(i){return typeof i=="number"?i+"px":i}function Sp(i){return typeof Node=="function"?i instanceof Node:i&&typeof i=="object"&&typeof i.nodeType=="number"&&typeof i.nodeName=="string"}function Op(i){return typeof HTMLElement=="function"?i instanceof HTMLElement:i&&Oo(i)&&i.nodeType===1&&typeof i.nodeName=="string"}function yn(i){return Sp(i)||Op(i)}function Pp(i){if(i==null)return[];var t=[];return Ns(i,function(e){return t.push(e)}),t}function Dp(i,t){if(i)for(var e=0;e<i.length;e++){var o=i[e];t(o.name,o.value)}}function Dw(i,t){typeof t=="boolean"?(i.checked=t,i.indeterminate=!1):i.indeterminate=!0}function hr(i,t,e){e==null?i.removeAttribute(t):i.setAttribute(t,e.toString())}function Ns(i,t){if(i!=null)for(var e=0;e<i.length;e++)t(i[e])}var Aw=Object.freeze({__proto__:null,addCssClass:Q,removeCssClass:Ie,addOrRemoveCssClass:ee,radioCssClass:_w,containsClass:Ot,isFocusableFormField:wp,setDisplayed:Ce,setVisible:_p,setDisabled:No,isElementChildOfClass:hn,getElementSize:lr,getInnerHeight:ur,getInnerWidth:fn,getAbsoluteHeight:Rs,getAbsoluteWidth:gn,isRtlNegativeScroll:pr,getScrollLeft:cr,setScrollLeft:vn,clearElement:Je,removeElement:Ew,removeFromParent:xt,isVisible:Fo,loadTemplate:Pt,appendHtml:Rw,getElementAttribute:Sw,offsetHeight:Ss,offsetWidth:Os,ensureDomOrder:Ps,setDomChildOrder:Ds,insertWithDomOrder:Ep,prependDC:Ow,addStylesToElement:As,isHorizontalScrollShowing:Ts,isVerticalScrollShowing:Rp,setElementWidth:dr,setFixedWidth:Dt,setElementHeight:Pw,setFixedHeight:lo,formatSize:bs,isNode:Sp,isElement:Op,isNodeOrElement:yn,copyNodeList:Pp,iterateNamedNodeMap:Dp,setCheckboxState:Dw,addOrRemoveAttribute:hr,nodeListForEach:Ns});/**
|
|
189
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
190
|
+
* @version v26.2.1
|
|
191
|
+
* @link http://www.ag-grid.com/
|
|
192
|
+
* @license MIT
|
|
193
|
+
*/function Tw(i){var t=/function (.{1,})\(/,e=i.toString(),o=t.exec(e);return o&&o.length>1?o[1]:""}function bw(i){var t=i.length,e=0;if(t<=1)return i;for(var o=0;o<i.length;o++){var r=i[o],n=r.toString().split("e-");if(n.length>1){e=Math.max(e,parseInt(n[1],10));continue}Math.floor(r)!==r&&(e=Math.max(e,r.toString().split(".")[1].length))}for(var s=0,a=0,u=0,p=0,g=0,y=0;y<t;y++)g=i[y],s+=y,a+=g,p+=y*y,u+=y*g;for(var C=(t*u-s*a)/(t*p-s*s),E=a/t-C*s/t,S=[],y=0;y<=t;y++)S.push(parseFloat((y*C+E).toFixed(e)));return S}function Nw(i){if(!i)return"";var t=[];return ve(i,function(e,o){var r=rp(e);t.push(r+": "+o+";")}),t.join(" ")}function Fw(i){var t=document.createElement("div"),e=document.querySelector("#__ag__message");if(t.innerHTML=i,!e){var o='<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>';e=Pt(o),document.body&&document.body.appendChild(e)}e.insertBefore(t,e.children[0])}function Iw(i,t){i.then(function(e){var o=e.getGui();o!=null&&(typeof o=="object"?t.appendChild(o):t.innerHTML=o)})}var Lw=Object.freeze({__proto__:null,getNameOfClass:Tw,findLineByLeastSquares:bw,cssStyleObjectToMarkup:Nw,message:Fw,bindCellRendererToHtmlElement:Iw});/**
|
|
194
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
195
|
+
* @version v26.2.1
|
|
196
|
+
* @link http://www.ag-grid.com/
|
|
197
|
+
* @license MIT
|
|
198
|
+
*/function Le(i,t,e){i.setAttribute(Ap(t),e.toString())}function Io(i,t){i.removeAttribute(Ap(t))}function Ap(i){return"aria-"+i}function ke(i,t){t?i.setAttribute("role",t):i.removeAttribute("role")}function Tp(i){var t;return i.isSortAscending()?t="ascending":i.isSortDescending()?t="descending":t="none",t}function Mw(i){return parseInt(i.getAttribute("aria-level"),10)}function bp(i){return parseInt(i.getAttribute("aria-posinset"),10)}function Gw(i){return i.getAttribute("aria-describedby")||""}function uo(i,t){var e="label";t?Le(i,e,t):Io(i,e)}function Fs(i,t){var e="labelledby";t?Le(i,e,t):Io(i,e)}function mn(i,t){var e="describedby";t?Le(i,e,t):Io(i,e)}function xw(i,t){Le(i,"level",t)}function fr(i,t){Le(i,"disabled",t)}function Cn(i,t){Le(i,"expanded",t)}function Vw(i){Io(i,"expanded")}function Np(i,t){Le(i,"setsize",t)}function Fp(i,t){Le(i,"posinset",t)}function Ip(i,t){Le(i,"multiselectable",t)}function Lp(i,t){Le(i,"rowcount",t)}function Is(i,t){Le(i,"rowindex",t)}function Mp(i,t){Le(i,"colcount",t)}function Ls(i,t){Le(i,"colindex",t)}function Gp(i,t){Le(i,"colspan",t)}function xp(i,t){Le(i,"sort",t)}function Vp(i){Io(i,"sort")}function Lo(i,t){var e="selected";t?Le(i,e,t):Io(i,e)}function Hp(i,t){Le(i,"checked",t===void 0?"mixed":t)}var Hw=Object.freeze({__proto__:null,setAriaRole:ke,getAriaSortState:Tp,getAriaLevel:Mw,getAriaPosInSet:bp,getAriaDescribedBy:Gw,setAriaLabel:uo,setAriaLabelledBy:Fs,setAriaDescribedBy:mn,setAriaLevel:xw,setAriaDisabled:fr,setAriaExpanded:Cn,removeAriaExpanded:Vw,setAriaSetSize:Np,setAriaPosInSet:Fp,setAriaMultiSelectable:Ip,setAriaRowCount:Lp,setAriaRowIndex:Is,setAriaColCount:Mp,setAriaColIndex:Ls,setAriaColSpan:Gp,setAriaSort:xp,removeAriaSort:Vp,setAriaSelected:Lo,setAriaChecked:Hp});/**
|
|
199
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
200
|
+
* @version v26.2.1
|
|
201
|
+
* @link http://www.ag-grid.com/
|
|
202
|
+
* @license MIT
|
|
203
|
+
*/function $t(i,t,e){if(t===void 0&&(t=!0),e===void 0&&(e="-"),!i)return null;var o=[i.getFullYear(),i.getMonth()+1,i.getDate()].map(function(r){return ps(r,2)}).join(e);return t&&(o+=" "+[i.getHours(),i.getMinutes(),i.getSeconds()].map(function(r){return ps(r,2)}).join(":")),o}function Kt(i){if(!i)return null;var t=i.split(" "),e=t[0],o=t[1];if(!e)return null;var r=e.split("-").map(function(E){return parseInt(E,10)});if(r.filter(function(E){return!isNaN(E)}).length!==3)return null;var n=r[0],s=r[1],a=r[2],u=new Date(n,s-1,a);if(u.getFullYear()!==n||u.getMonth()!==s-1||u.getDate()!==a)return null;if(!o||o==="00:00:00")return u;var p=o.split(":").map(function(E){return parseInt(E,10)}),g=p[0],y=p[1],C=p[2];return g>=0&&g<24&&u.setHours(g),y>=0&&y<60&&u.setMinutes(y),C>=0&&C<60&&u.setSeconds(C),u}var Ww=Object.freeze({__proto__:null,serialiseDate:$t,parseDateTimeFromString:Kt});/**
|
|
204
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
205
|
+
* @version v26.2.1
|
|
206
|
+
* @link http://www.ag-grid.com/
|
|
207
|
+
* @license MIT
|
|
208
|
+
*/function Wp(i,t,e){var o={},r=i.filter(function(n){return!t.some(function(s){return s===n})});return r.length>0&&r.forEach(function(n){return o[n]=Bp(n,e)}),o}function Bp(i,t,e,o){var r=o?Up:kp,n=t.map(function(s){return{value:s,relevance:r(i.toLowerCase(),s.toLocaleLowerCase())}});return n.sort(function(s,a){return a.relevance-s.relevance}),e&&(n=n.filter(function(s){return s.relevance!==0})),n.map(function(s){return s.value})}function Ms(i){var t=i.toLowerCase(),e=new Array(t.length-1),o,r,n;for(o=r=0,n=e.length;r<=n;o=r+=1)e[o]=t.slice(o,o+2);return e}function kp(i,t){if(i.length===0&&t.length===0)return 0;var e=Ms(i),o=Ms(t),r=e.length+o.length,n=0,s,a;for(s=0,a=e.length;s<a;s++){var u=e[s],p=void 0,g=void 0;for(p=0,g=o.length;p<g;p++){var y=o[p];u===y&&n++}}return n>0?2*n/r:0}function Up(i,t){for(var e=i.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,n=0,s=0;s<e.length;s++){var a=o.indexOf(e[s],n);a!==-1&&(n=a,r+=100-n*100/1e4*100)}return r}var Bw=Object.freeze({__proto__:null,fuzzyCheckStrings:Wp,fuzzySuggestions:Bp,get_bigrams:Ms,string_distances:kp,string_weighted_distances:Up});/**
|
|
209
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
210
|
+
* @version v26.2.1
|
|
211
|
+
* @link http://www.ag-grid.com/
|
|
212
|
+
* @license MIT
|
|
213
|
+
*/var jp={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function at(i,t,e){var o=Te(i,t,e);if(o&&o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r}function Te(i,t,e,o){var r=null,n=e&&e.getColDef().icons;if(n&&(r=n[i]),t&&!r){var s=t.getIcons();s&&(r=s[i])}if(r){var a=void 0;if(typeof r=="function")a=r();else if(typeof r=="string")a=r;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return Pt(a);if(yn(a))return a;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}else{var u=document.createElement("span"),p=jp[i];return p||(o?p=i:(console.warn("AG Grid: Did not find icon "+i),p="")),u.setAttribute("class","ag-icon ag-icon-"+p),u.setAttribute("unselectable","on"),ke(u,"presentation"),u}}var kw=Object.freeze({__proto__:null,iconNameClassMap:jp,createIcon:at,createIconNoSpan:Te});/**
|
|
214
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
215
|
+
* @version v26.2.1
|
|
216
|
+
* @link http://www.ag-grid.com/
|
|
217
|
+
* @license MIT
|
|
218
|
+
*/var Uw="Del",jw=46;function Gs(i,t){return(i.which||i.keyCode)===t}function zp(i){if(i.altKey||i.ctrlKey||i.metaKey)return!1;var t=i.key.length===1,e=zw(i);return t||e}function wn(i,t,e,o,r){var n=i.getSuppressKeyboardEventFunc(),s=o?o.getColDef().suppressKeyboardEvent:void 0;if(!n&&!s)return!1;var a={event:t,editing:r,column:o,api:i.getApi(),node:e,data:e.data,colDef:o.getColDef(),context:i.getContext(),columnApi:i.getColumnApi()};if(s){var u=s(a);if(u)return!0}return n?n(a):!1}function $p(i,t,e,o){var r=o.getDefinition(),n=r&&r.suppressHeaderKeyboardEvent;if(!h(n))return!1;var s={api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext(),colDef:r,column:o,headerRowIndex:e,event:t};return!!n(s)}function zw(i){return(un()||st())&&i.key===Uw&&i.charCode===jw}var $w=Object.freeze({__proto__:null,isKeyPressed:Gs,isEventFromPrintableCharacter:zp,isUserSuppressingKeyboardEvent:wn,isUserSuppressingHeaderKeyboardEvent:$p});/**
|
|
219
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
220
|
+
* @version v26.2.1
|
|
221
|
+
* @link http://www.ag-grid.com/
|
|
222
|
+
* @license MIT
|
|
223
|
+
*/function Kw(i){var t=10,e=40,o=800,r=0,n=0,s=0,a=0;return"detail"in i&&(n=i.detail),"wheelDelta"in i&&(n=-i.wheelDelta/120),"wheelDeltaY"in i&&(n=-i.wheelDeltaY/120),"wheelDeltaX"in i&&(r=-i.wheelDeltaX/120),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(r=n,n=0),s=r*t,a=n*t,"deltaY"in i&&(a=i.deltaY),"deltaX"in i&&(s=i.deltaX),(s||a)&&i.deltaMode&&(i.deltaMode==1?(s*=e,a*=e):(s*=o,a*=o)),s&&!r&&(r=s<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:r,spinY:n,pixelX:s,pixelY:a}}function Yw(i){if("buttons"in i)return i.buttons==1;var t=i.which||i.button;return t==1}function xs(i,t,e){if(e===0)return!1;var o=Math.abs(i.clientX-t.clientX),r=Math.abs(i.clientY-t.clientY);return Math.max(o,r)<=e}var qw=Object.freeze({__proto__:null,normalizeWheel:Kw,isLeftClick:Yw,areEventsNear:xs});/**
|
|
224
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
225
|
+
* @version v26.2.1
|
|
226
|
+
* @link http://www.ag-grid.com/
|
|
227
|
+
* @license MIT
|
|
228
|
+
*/function Xw(i,t){if(i){for(var e=function(a,u){var p=t[a.id],g=t[u.id],y=p!==void 0,C=g!==void 0,E=y&&C,S=!y&&!C;return E?p-g:S?a.__objectId-u.__objectId:y?1:-1},o,r,n=!1,s=0;s<i.length-1;s++)if(o=i[s],r=i[s+1],e(o,r)>0){n=!0;break}n&&i.sort(e)}}function Qw(i,t){var e=[];o(i);function o(r){r&&r.forEach(function(n){if(n.group||n.hasChildren()){e.push(n.key);var s=e.join("|");t(n,s),o(n.childrenAfterGroup),e.pop()}})}}var Jw=Object.freeze({__proto__:null,sortRowNodesByOrder:Xw,traverseNodesWithKey:Qw});/**
|
|
229
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
230
|
+
* @version v26.2.1
|
|
231
|
+
* @link http://www.ag-grid.com/
|
|
232
|
+
* @license MIT
|
|
233
|
+
*/function Vs(i){var t=new Set;return i.forEach(function(e){return t.add(e)}),t}var Zw=Object.freeze({__proto__:null,convertToSet:Vs});/**
|
|
234
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
235
|
+
* @version v26.2.1
|
|
236
|
+
* @link http://www.ag-grid.com/
|
|
237
|
+
* @license MIT
|
|
238
|
+
*/var Se=function(){return Se=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Se.apply(this,arguments)},e_=Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se({},Lw),Hw),DC),ww),mw),Ww),Aw),$C),VC),Bw),Z),kw),$w),tw),qw),uw),IC),Jw),Zw),JC),X=e_;/**
|
|
239
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
240
|
+
* @version v26.2.1
|
|
241
|
+
* @link http://www.ag-grid.com/
|
|
242
|
+
* @license MIT
|
|
243
|
+
*/var po=function(){function i(t,e){t===void 0&&(t=0),e===void 0&&(e=1),this.nextValue=t,this.step=e}return i.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},i.prototype.peek=function(){return this.nextValue},i.prototype.skip=function(t){this.nextValue+=t},i}();/**
|
|
244
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
245
|
+
* @version v26.2.1
|
|
246
|
+
* @link http://www.ag-grid.com/
|
|
247
|
+
* @license MIT
|
|
248
|
+
*/(function(i){i[i.IN_PROGRESS=0]="IN_PROGRESS",i[i.RESOLVED=1]="RESOLVED"})(l.AgPromiseStatus||(l.AgPromiseStatus={}));var Ke=function(){function i(t){var e=this;this.status=l.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],t(function(o){return e.onDone(o)},function(o){return e.onReject(o)})}return i.all=function(t){return new i(function(e){var o=t.length,r=new Array(o);Ee(t,function(n,s){n.then(function(a){r[s]=a,o--,o===0&&e(r)})})})},i.resolve=function(t){return t===void 0&&(t=null),new i(function(e){return e(t)})},i.prototype.then=function(t){var e=this;return new i(function(o){e.status===l.AgPromiseStatus.RESOLVED?o(t(e.resolution)):e.waiters.push(function(r){return o(t(r))})})},i.prototype.resolveNow=function(t,e){return this.status===l.AgPromiseStatus.RESOLVED?e(this.resolution):t},i.prototype.onDone=function(t){this.status=l.AgPromiseStatus.RESOLVED,this.resolution=t,Ee(this.waiters,function(e){return e(t)})},i.prototype.onReject=function(t){console.warn("TBI")},i}();/**
|
|
249
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
250
|
+
* @version v26.2.1
|
|
251
|
+
* @link http://www.ag-grid.com/
|
|
252
|
+
* @license MIT
|
|
253
|
+
*/var t_=function(){function i(){this.timestamp=new Date().getTime()}return i.prototype.print=function(t){var e=new Date().getTime()-this.timestamp;console.info(t+" = "+e),this.timestamp=new Date().getTime()},i}();/**
|
|
254
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
255
|
+
* @version v26.2.1
|
|
256
|
+
* @link http://www.ag-grid.com/
|
|
257
|
+
* @license MIT
|
|
258
|
+
*/var o_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Hs=function(){return Hs=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Hs.apply(this,arguments)},gr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gt;(function(i){i[i.NOTHING=0]="NOTHING",i[i.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",i[i.SHOWING=2]="SHOWING"})(gt||(gt={}));var Ws=function(i){o_(t,i);function t(e){var o=i.call(this)||this;return o.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=gt.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=e,o}return t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),i.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!bo()&&this.state==gt.NOTHING){var o=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),o),this.lastMouseEvent=e,this.state=gt.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===gt.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=gt.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===gt.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=new Date().getTime()),this.state=gt.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;Q(this.tooltipComp.getGui(),"ag-tooltip-hiding");var o=this.tooltipPopupDestroyFunc,r=this.tooltipComp;window.setTimeout(function(){o(),e.getContext().destroyBean(r)},this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){var e=new Date().getTime(),o=t.lastTooltipHideTime;return e-o<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Hs({api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},this.parentComp.getTooltipParams());if(!h(e.value)){this.setToDoNothing();return}this.state=gt.SHOWING,this.tooltipInstanceCount++;var o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),r=this.userComponentFactory.getTooltipCompDetails(e);r.newAgStackInstance().then(o)},t.prototype.newTooltipComponentCallback=function(e,o){var r=this.state!==gt.SHOWING||this.tooltipInstanceCount!==e;if(r){this.getContext().destroyBean(o);return}var n=o.getGui();this.tooltipComp=o,Ot(n,"ag-tooltip")||Q(n,"ag-tooltip-custom"),this.gridOptionsWrapper.isReactUi()&&Q(n,"ag-tooltip-reactui");var s=this.gridOptionsWrapper.getLocaleTextFunc(),a=this.popupService.addPopup({eChild:n,ariaLabel:s("ariaLabelTooltip","Tooltip")});a&&(this.tooltipPopupDestroyFunc=a.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.DEFAULT_HIDE_TOOLTIP_TIMEOUT)},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},gr([m("popupService")],t.prototype,"popupService",void 0),gr([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),gr([m("columnApi")],t.prototype,"columnApi",void 0),gr([m("gridApi")],t.prototype,"gridApi",void 0),gr([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
259
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
260
|
+
* @version v26.2.1
|
|
261
|
+
* @link http://www.ag-grid.com/
|
|
262
|
+
* @license MIT
|
|
263
|
+
*/var r_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Bs=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},n_=new po,se=function(i){r_(t,i);function t(e){var o=i.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=n_.next(),o.cssClassStates={},e&&o.setTemplate(e),o}return t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var o=this,r=function(){o.usingBrowserTooltips?o.getGui().removeAttribute("title"):o.tooltipFeature=o.destroyBean(o.tooltipFeature)},n=function(){o.usingBrowserTooltips?o.getGui().setAttribute("title",o.tooltipText):o.tooltipFeature=o.createBean(new Ws(o))};this.tooltipText!=e&&(this.tooltipText&&r(),e!=null&&(this.tooltipText=e,this.tooltipText&&n()))},t.prototype.createChildComponentsFromTags=function(e,o){var r=this,n=Pp(e.childNodes);Ee(n,function(s){if(s instanceof HTMLElement){var a=r.createComponentFromElement(s,function(p){var g=p.getGui();g&&r.copyAttributesFromNode(s,p.getGui())},o);if(a){if(a.addItems&&s.children.length){r.createChildComponentsFromTags(s,o);var u=Array.prototype.slice.call(s.children);a.addItems(u)}r.swapComponentForNode(a,e,s)}else s.childNodes&&r.createChildComponentsFromTags(s,o)}})},t.prototype.createComponentFromElement=function(e,o,r){var n=e.nodeName,s=r?r[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(n);if(a){t.elementGettingCreated=e;var u=new a(s);return u.setParentComponent(this),this.createBean(u,null,o),u}return null},t.prototype.copyAttributesFromNode=function(e,o){Dp(e.attributes,function(r,n){return o.setAttribute(r,n)})},t.prototype.swapComponentForNode=function(e,o,r){var n=e.getGui();o.replaceChild(n,r),o.insertBefore(document.createComment(r.nodeName),n),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,r)},t.prototype.swapInComponentForQuerySelectors=function(e,o){var r=this;this.iterateOverQuerySelectors(function(n){r[n.attributeName]===o&&(r[n.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var o=Object.getPrototypeOf(this);o!=null;){var r=o.__agComponentMetaData,n=rn(o.constructor);r&&r[n]&&r[n].querySelectors&&Ee(r[n].querySelectors,function(s){return e(s)}),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e,o){var r=Pt(e);this.setTemplateFromElement(r,o)},t.prototype.setTemplateFromElement=function(e,o){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),o)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var o=this;this.iterateOverQuerySelectors(function(r){var n=function(u){return o[r.attributeName]=u},s=r.refSelector&&e.eGui.getAttribute("ref")===r.refSelector;if(s)n(e.eGui);else{var a=e.eGui.querySelector(r.querySelector);a&&n(a.__agComponent||a)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,o){if(o||(o=this.eGui),e!=null)if(yn(e))o.appendChild(e);else{var r=e;o.appendChild(r.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,r))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,_p(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,Ce(this.eGui,e);var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),i.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,o){var r=this;this.eGui.addEventListener(e,o),this.addDestroyFunc(function(){return r.eGui.removeEventListener(e,o)})},t.prototype.addCssClass=function(e){var o=this.cssClassStates[e]!==!0;o&&(Q(this.eGui,e),this.cssClassStates[e]=!0)},t.prototype.removeCssClass=function(e){var o=this.cssClassStates[e]!==!1;o&&(Ie(this.eGui,e),this.cssClassStates[e]=!1)},t.prototype.addOrRemoveCssClass=function(e,o){var r=this.cssClassStates[e]!==o;r&&(ee(this.eGui,e,o),this.cssClassStates[e]=o)},t.prototype.getAttribute=function(e){var o=this.eGui;return o?o.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Bs([m("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Bs([ts],t.prototype,"preConstructOnComponent",null),Bs([ts],t.prototype,"createChildComponentsPreConstruct",null),t}(V);/**
|
|
264
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
265
|
+
* @version v26.2.1
|
|
266
|
+
* @link http://www.ag-grid.com/
|
|
267
|
+
* @license MIT
|
|
268
|
+
*/function i_(i){return Kp.bind(this,i,void 0)}function x(i){return Kp.bind(this,"[ref="+i+"]",i)}function Kp(i,t,e,o,r){if(i===null){console.error("AG Grid: QuerySelector selector should not be null");return}if(typeof r=="number"){console.error("AG Grid: QuerySelector should be on an attribute");return}s_(e,"querySelectors",{attributeName:o,querySelector:i,refSelector:t})}function s_(i,t,e){var o=a_(i,rn(i.constructor));o[t]||(o[t]=[]),o[t].push(e)}function a_(i,t){return i.__agComponentMetaData||(i.__agComponentMetaData={}),i.__agComponentMetaData[t]||(i.__agComponentMetaData[t]={}),i.__agComponentMetaData[t]}/**
|
|
269
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
270
|
+
* @version v26.2.1
|
|
271
|
+
* @link http://www.ag-grid.com/
|
|
272
|
+
* @license MIT
|
|
273
|
+
*/var l_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Yp=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},u_=function(i){l_(t,i);function t(){return i.call(this,`
|
|
274
|
+
<div class="ag-floating-filter-input" role="presentation">
|
|
275
|
+
<ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>
|
|
276
|
+
</div>`)||this}return t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var o=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),r=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(o+" "+r("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var o=this;if(!e){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(r){if(r.getModelAsString){var n=r.getModelAsString(e);o.eFloatingFilterText.setValue(n)}})},Yp([x("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Yp([m("columnModel")],t.prototype,"columnModel",void 0),t}(se);/**
|
|
277
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
278
|
+
* @version v26.2.1
|
|
279
|
+
* @link http://www.ag-grid.com/
|
|
280
|
+
* @license MIT
|
|
281
|
+
*/var qp=function(){function i(t,e,o,r){var n=this;this.alive=!0,this.context=t,this.eParent=r;var s=e.getDateCompDetails(o),a=s.newAgStackInstance();a.then(function(u){if(!n.alive){t.destroyBean(u);return}n.dateComp=u,u&&(r.appendChild(u.getGui()),u.afterGuiAttached&&u.afterGuiAttached(),n.tempValue&&u.setDate(n.tempValue),n.disabled!=null&&n.setDateCompDisabled(n.disabled))})}return i.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},i.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},i.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},i.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},i.prototype.setDisplayed=function(t){Ce(this.eParent,t)},i.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},i.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},i.prototype.afterGuiAttached=function(t){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(t)},i.prototype.setDateCompDisabled=function(t){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(t)},i}();/**
|
|
282
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
283
|
+
* @version v26.2.1
|
|
284
|
+
* @link http://www.ag-grid.com/
|
|
285
|
+
* @license MIT
|
|
286
|
+
*/var ks=function(){return ks=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},ks.apply(this,arguments)},Xp=function(){function i(){this.customFilterOptions={}}return i.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},i.prototype.checkForDeprecatedParams=function(){X.some(this.filterOptions,function(t){return typeof t!="string"&&t.test!=null})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),X.some(this.filterOptions,function(t){return typeof t!="string"&&t.hideFilterInput!=null})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},i.prototype.getFilterOptions=function(){return this.filterOptions},i.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var o=[["displayKey"],["displayName"],["predicate","test"]],r=function(a){return So(a,function(u){return e[u]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+a+"'"),!1)};if(!ir(o,r)){t.filterOptions=X.filter(t.filterOptions,function(a){return a===e})||[];return}var n=e.test,s=ks({},e);n!=null&&e.predicate==null&&(s.predicate=function(a,u){return n(a[0],u)},delete s.test),s.hideFilterInput&&s.numberOfInputs==null&&(s.numberOfInputs=0,delete s.hideFilterInput),t.customFilterOptions[e.displayKey]=s}})},i.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},i.prototype.getDefaultOption=function(){return this.defaultOption},i.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},i}();/**
|
|
287
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
288
|
+
* @version v26.2.1
|
|
289
|
+
* @link http://www.ag-grid.com/
|
|
290
|
+
* @license MIT
|
|
291
|
+
*/var p_={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};/**
|
|
292
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
293
|
+
* @version v26.2.1
|
|
294
|
+
* @link http://www.ag-grid.com/
|
|
295
|
+
* @license MIT
|
|
296
|
+
*/var W=function(){function i(){}return i.BACKSPACE=8,i.TAB=9,i.ENTER=13,i.SHIFT=16,i.ESCAPE=27,i.SPACE=32,i.LEFT=37,i.UP=38,i.RIGHT=39,i.DOWN=40,i.DELETE=46,i.A=65,i.C=67,i.V=86,i.D=68,i.Z=90,i.Y=89,i.F2=113,i.PAGE_UP=33,i.PAGE_DOWN=34,i.PAGE_HOME=36,i.PAGE_END=35,i}();/**
|
|
297
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
298
|
+
* @version v26.2.1
|
|
299
|
+
* @link http://www.ag-grid.com/
|
|
300
|
+
* @license MIT
|
|
301
|
+
*/var c_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Us=function(){return Us=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Us.apply(this,arguments)},Qp=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Vt=function(i){c_(t,i);function t(e,o){o===void 0&&(o={});var r=i.call(this)||this;return r.eFocusableElement=e,r.callbacks=o,r.callbacks=Us({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(n){if(!n.defaultPrevented){var s=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,n.shiftKey);s&&(s.focus(),n.preventDefault())}}},o),r}return t.prototype.postConstruct=function(){Q(this.eFocusableElement,t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var o=this;this.addManagedListener(e,"keydown",function(r){if(!(r.defaultPrevented||Et(r))){if(o.callbacks.shouldStopEventPropagation(r)){Do(r);return}r.keyCode===W.TAB?o.callbacks.onTabKeyDown(r):o.callbacks.handleKeyDown&&o.callbacks.handleKeyDown(r)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",Qp([m("focusService")],t.prototype,"focusService",void 0),Qp([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
302
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
303
|
+
* @version v26.2.1
|
|
304
|
+
* @link http://www.ag-grid.com/
|
|
305
|
+
* @license MIT
|
|
306
|
+
*/var d_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Jp=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vr=function(i){d_(t,i);function t(e){var o=i.call(this)||this;return o.filterNameKey=e,o.applyActive=!1,o.hidePopup=null,o.appliedModel=null,o}return t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Vt(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.onFilterChanged=function(){console.warn(`AG Grid: you should not call onFilterChanged() directly on the filter, please call
|
|
307
|
+
gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was
|
|
308
|
+
a method that existed on an old version of the filters that was not intended for public use.`),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var o=`
|
|
309
|
+
<div class="ag-filter-wrapper">
|
|
310
|
+
<div class="ag-filter-body-wrapper ag-`+this.getCssIdentifier()+`-body-wrapper">
|
|
311
|
+
`+this.createBodyTemplate()+`
|
|
312
|
+
</div>
|
|
313
|
+
</div>`;this.setTemplate(o,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var o=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){o.updateUiVisibility(),o.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){if(t.checkForDeprecatedParams(e),this.providedFilterParams=e,e.newRowsAction==="keep")this.newRowsActionKeep=!0;else if(e.newRowsAction==="clear")this.newRowsActionKeep=!1;else{var o=[D.ROW_MODEL_TYPE_SERVER_SIDE,D.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=o.indexOf(this.rowModel.getType())>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,o=this.providedFilterParams.buttons;if(!(!o||o.length<1||this.isReadOnly())){var r=document.createElement("div");Q(r,"ag-filter-apply-panel");var n=function(s){var a,u;switch(s){case"apply":a=e.translate("applyFilter"),u=function(g){return e.onBtApply(!1,!1,g)};break;case"clear":a=e.translate("clearFilter"),u=function(){return e.onBtClear()};break;case"reset":a=e.translate("resetFilter"),u=function(){return e.onBtReset()};break;case"cancel":a=e.translate("cancelFilter"),u=function(g){e.onBtCancel(g)};break;default:console.warn("Unknown button type specified");return}var p=Pt(`<button
|
|
314
|
+
type="button"
|
|
315
|
+
ref="`+s+`FilterButton"
|
|
316
|
+
class="ag-standard-button ag-filter-apply-panel-button"
|
|
317
|
+
>`+a+`
|
|
318
|
+
</button>`);r.appendChild(p),e.addManagedListener(p,"click",u)};Vs(o).forEach(function(s){return n(s)}),this.getGui().appendChild(r)}},t.checkForDeprecatedParams=function(e){var o=e.buttons||[];if(!(o.length>0)){var r=e.applyButton,n=e.resetButton,s=e.clearButton;s&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.clearButton is deprecated. Please use filterParams.buttons instead"),o.push("clear")),n&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.resetButton is deprecated. Please use filterParams.buttons instead"),o.push("reset")),r&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.applyButton is deprecated. Please use filterParams.buttons instead"),o.push("apply")),e.apply&&(console.warn("AG Grid: as of AG Grid v21, filterParams.apply is deprecated. Please use filterParams.buttons instead"),o.push("apply")),e.buttons=o}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=zt(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){var o=this,r=e?this.setModelIntoUi(e):this.resetUiToDefaults();return r.then(function(){o.updateUiVisibility(),o.applyModel()})},t.prototype.onBtCancel=function(e){var o=this,r=this.getModel(),n=function(){o.onUiChanged(!1,"prevent"),o.providedFilterParams.closeOnApply&&o.close(e)};r!=null?this.setModelIntoUi(r).then(n):this.resetUiToDefaults().then(n)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var o=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(o,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,o,r){e===void 0&&(e=!1),o===void 0&&(o=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:o});var n=this.providedFilterParams.closeOnApply;n&&this.applyActive&&!e&&!o&&this.close(r)},t.prototype.onNewRowsLoaded=function(){var e=this;this.newRowsActionKeep||this.resetUiToDefaults().then(function(){return e.appliedModel=null})},t.prototype.close=function(e){if(this.hidePopup){var o=e,r=o&&o.key,n;(r==="Enter"||r==="Space")&&(n={keyboardEvent:o}),this.hidePopup(n),this.hidePopup=null}},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e,o){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var r=this.isModelValid(this.getModelFromUi());No(this.getRefElement("applyFilterButton"),!r)}e&&!o||o==="immediately"?this.onBtApply(e):(!this.applyActive&&!o||o==="debounce")&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e!=null&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,o){return t.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:o},t.isUseApplyButton=function(e){return t.checkForDeprecatedParams(e),!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,i.prototype.destroy.call(this)},t.prototype.translate=function(e){var o=this.gridOptionsWrapper.getLocaleTextFunc();return o(e,p_[e])},t.prototype.getCellValue=function(e){return this.providedFilterParams.valueGetter(e)},Jp([m("rowModel")],t.prototype,"rowModel",void 0),Jp([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
319
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
320
|
+
* @version v26.2.1
|
|
321
|
+
* @link http://www.ag-grid.com/
|
|
322
|
+
* @license MIT
|
|
323
|
+
*/var h_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),f_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},js=function(i){h_(t,i);function t(e,o){var r=i.call(this,o)||this;return r.labelSeparator="",r.labelAlignment="left",r.label="",r.config=e||{},r}return t.prototype.postConstruct=function(){Q(this.getGui(),"ag-labeled"),Q(this.eLabel,"ag-label");var e=this.config,o=e.labelSeparator,r=e.label,n=e.labelWidth,s=e.labelAlignment;o!=null&&this.setLabelSeparator(o),r!=null&&this.setLabel(r),n!=null&&this.setLabelWidth(n),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){Je(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(Q(this.eLabel,"ag-hidden"),ke(this.eLabel,"presentation")):(Ie(this.eLabel,"ag-hidden"),ke(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var o=this.getGui();return ee(o,"ag-label-align-left",e==="left"),ee(o,"ag-label-align-right",e==="right"),ee(o,"ag-label-align-top",e==="top"),this},t.prototype.setLabelWidth=function(e){return this.label==null?this:(dr(this.eLabel,e),this)},f_([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
324
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
325
|
+
* @version v26.2.1
|
|
326
|
+
* @link http://www.ag-grid.com/
|
|
327
|
+
* @license MIT
|
|
328
|
+
*/var g_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),At=function(i){g_(t,i);function t(e,o,r){var n=i.call(this,e,o)||this;return n.className=r,n.disabled=!1,n}return t.prototype.postConstruct=function(){i.prototype.postConstruct.call(this),this.className&&Q(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var o=this;return this.addManagedListener(this,t.EVENT_CHANGED,function(){return e(o.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Dt(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e?this:(this.previousValue=this.value,this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED}),this)},t.prototype.setDisabled=function(e){e=!!e;var o=this.getGui();return No(o,e),ee(o,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(js);/**
|
|
329
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
330
|
+
* @version v26.2.1
|
|
331
|
+
* @link http://www.ag-grid.com/
|
|
332
|
+
* @license MIT
|
|
333
|
+
*/var v_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),_n=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Zp=function(i){v_(t,i);function t(e,o,r,n){var s=i.call(this,e,`<div class="ag-picker-field" role="presentation">
|
|
334
|
+
<div ref="eLabel"></div>
|
|
335
|
+
<div ref="eWrapper"
|
|
336
|
+
class="ag-wrapper ag-picker-field-wrapper"
|
|
337
|
+
tabIndex="-1"
|
|
338
|
+
`+(n?'aria-haspopup="'+n+'"':"")+`
|
|
339
|
+
>
|
|
340
|
+
<div ref="eDisplayField" class="ag-picker-field-display"></div>
|
|
341
|
+
<div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
|
|
342
|
+
</div>
|
|
343
|
+
</div>`,o)||this;return s.pickerIcon=r,s.isPickerDisplayed=!1,s.isDestroyingPicker=!1,s.skipClick=!1,s}return t.prototype.postConstruct=function(){var e=this;i.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),mn(this.eWrapper,o);var r=function(){if(e.skipClick){e.skipClick=!1;return}e.isDisabled()||(e.pickerComponent=e.showPicker())},n=this.getGui();if(this.addManagedListener(n,"mousedown",function(a){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&Fo(e.pickerComponent.getGui())&&n.contains(a.target)&&(e.skipClick=!0)}),this.addManagedListener(n,"keydown",function(a){switch(a.keyCode){case W.UP:case W.DOWN:case W.ENTER:case W.SPACE:r();case W.ESCAPE:e.isPickerDisplayed&&a.preventDefault();break}}),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var s=Te(this.pickerIcon,this.gridOptionsWrapper);s&&this.eIcon.appendChild(s)}},t.prototype.refreshLabel=function(){h(this.getLabel())?Fs(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),i.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return uo(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return dr(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},_n([x("eLabel")],t.prototype,"eLabel",void 0),_n([x("eWrapper")],t.prototype,"eWrapper",void 0),_n([x("eDisplayField")],t.prototype,"eDisplayField",void 0),_n([x("eIcon")],t.prototype,"eIcon",void 0),t}(At);/**
|
|
344
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
345
|
+
* @version v26.2.1
|
|
346
|
+
* @link http://www.ag-grid.com/
|
|
347
|
+
* @license MIT
|
|
348
|
+
*/var y_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),m_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ec=function(i){y_(t,i);function t(e){e===void 0&&(e="default");var o=i.call(this,'<div class="ag-list ag-'+e+'-list" role="listbox"></div>')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var o=e.keyCode;switch(o){case W.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{var r=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(r)}break;case W.DOWN:case W.UP:var n=o===W.DOWN,s=void 0;if(e.preventDefault(),!this.highlightedEl)s=this.itemEls[n?0:this.itemEls.length-1];else{var a=this.itemEls.indexOf(this.highlightedEl),u=a+(n?1:-1);u=Math.min(Math.max(u,0),this.itemEls.length-1),s=this.itemEls[u]}this.highlightItem(s);break}},t.prototype.addOptions=function(e){var o=this;return e.forEach(function(r){return o.addOption(r)}),this},t.prototype.addOption=function(e){var o=e.value,r=e.text,n=ft(r||o);return this.options.push({value:o,text:n}),this.renderOption(o,n),this},t.prototype.renderOption=function(e,o){var r=this,n=document.createElement("div");ke(n,"option"),Q(n,"ag-list-item"),Q(n,"ag-"+this.cssIdentifier+"-list-item"),n.innerHTML="<span>"+o+"</span>",n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",function(){return r.highlightItem(n)}),this.addManagedListener(n,"mouseleave",function(){return r.clearHighlighted()}),this.addManagedListener(n,"click",function(){return r.setValue(e)}),this.getGui().appendChild(n)},t.prototype.setValue=function(e,o){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(),this;var r=so(this.options,function(s){return s.value===e});if(r!==-1){var n=this.options[r];this.value=n.value,this.displayValue=n.text!=null?n.text:n.value,this.highlightItem(this.itemEls[r]),o||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var o=so(this.options,function(r){return r.value===e.value});o!==-1&&this.highlightItem(this.itemEls[o])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,Q(this.highlightedEl,t.ACTIVE_CLASS),Lo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!this.highlightedEl.offsetParent||(Ie(this.highlightedEl,t.ACTIVE_CLASS),Lo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:At.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",m_([k],t.prototype,"init",null),t}(se);/**
|
|
349
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
350
|
+
* @version v26.2.1
|
|
351
|
+
* @link http://www.ag-grid.com/
|
|
352
|
+
* @license MIT
|
|
353
|
+
*/var C_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),tc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},zs=function(i){C_(t,i);function t(e){return i.call(this,e,"ag-select","smallDown","listbox")||this}return t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new ec("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,ec.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList()}),this.listComponent.addManagedListener(this.listComponent,At.EVENT_CHANGED,function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()})},t.prototype.showPicker=function(){var e=this,o=this.listComponent.getGui(),r=this.addManagedListener(document.body,"wheel",function(u){!o.contains(u.target)&&e.hideList&&e.hideList()}),n=this.addManagedListener(o,"focusout",function(u){!o.contains(u.relatedTarget)&&e.hideList&&e.hideList()}),s=this.gridOptionsWrapper.getLocaleTextFunc(),a=this.popupService.addPopup({modal:!0,eChild:o,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,n(),r(),e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:s("ariaLabelSelectField","Select Field")});return a&&(this.hideList=a.hideFunc),this.isPickerDisplayed=!0,dr(o,gn(this.eWrapper)),o.style.maxHeight=ur(this.popupService.getPopupParent())+"px",o.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:o,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var o=this;return e.forEach(function(r){return o.addOption(r)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(e,o,r){if(this.value===e)return this;r||this.listComponent.setValue(e,!0);var n=this.listComponent.getValue();return n===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),i.prototype.setValue.call(this,e,o))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),i.prototype.destroy.call(this)},tc([m("popupService")],t.prototype,"popupService",void 0),tc([k],t.prototype,"init",null),t}(Zp);/**
|
|
354
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
355
|
+
* @version v26.2.1
|
|
356
|
+
* @link http://www.ag-grid.com/
|
|
357
|
+
* @license MIT
|
|
358
|
+
*/var w_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),$s=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ht=function(i){w_(t,i);function t(e,o,r,n){r===void 0&&(r="text"),n===void 0&&(n="input");var s=i.call(this,e,`
|
|
359
|
+
<div role="presentation">
|
|
360
|
+
<div ref="eLabel" class="ag-input-field-label"></div>
|
|
361
|
+
<div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
|
|
362
|
+
<`+n+' ref="eInput" class="ag-input-field-input"></'+n+`>
|
|
363
|
+
</div>
|
|
364
|
+
</div>`,o)||this;return s.inputType=r,s.displayFieldTag=n,s}return t.prototype.postConstruct=function(){i.prototype.postConstruct.call(this),this.setInputType(),Q(this.eLabel,this.className+"-label"),Q(this.eWrapper,this.className+"-input-wrapper"),Q(this.eInput,this.className+"-input"),Q(this.getGui(),"ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,o=e.width,r=e.value;o!=null&&this.setWidth(o),r!=null&&this.setValue(r),this.addInputListeners()},t.prototype.refreshLabel=function(){h(this.getLabel())?Fs(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),i.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(o){return e.setValue(o.target.value)})},t.prototype.setInputType=function(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return dr(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){var o=this.eInput;return o.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return hr(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return uo(this.eInput,e),this},t.prototype.setDisabled=function(e){return No(this.eInput,e),i.prototype.setDisabled.call(this,e)},$s([x("eLabel")],t.prototype,"eLabel",void 0),$s([x("eWrapper")],t.prototype,"eWrapper",void 0),$s([x("eInput")],t.prototype,"eInput",void 0),t}(At);/**
|
|
365
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
366
|
+
* @version v26.2.1
|
|
367
|
+
* @link http://www.ag-grid.com/
|
|
368
|
+
* @license MIT
|
|
369
|
+
*/var __=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),co=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ve;(function(i){i[i.One=0]="One",i[i.Two=1]="Two"})(Ve||(Ve={}));var Ue=function(i){__(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getNumberOfInputs=function(e){var o=this.optionsFactory.getCustomOption(e);if(o){var r=o.numberOfInputs;return r??1}return e===t.EMPTY?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,o){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(o),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(Ve.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Ve.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Ve.One),condition2:this.createCondition(Ve.Two)}:this.createCondition(Ve.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return this.eJoinOperatorOr.getValue()===!0?"OR":"AND"},t.prototype.areModelsEqual=function(e,o){if(!e&&!o)return!0;if(!e&&o||e&&!o)return!1;var r=!e.operator,n=!o.operator,s=!r&&n||r&&!n;if(s)return!1;var a;if(r){var u=e,p=o;a=this.areSimpleModelsEqual(u,p)}else{var g=e,y=o;a=g.operator===y.operator&&this.areSimpleModelsEqual(g.condition1,y.condition1)&&this.areSimpleModelsEqual(g.condition2,y.condition2)}return a},t.prototype.setModelIntoUi=function(e){var o=e.operator;if(o){var r=e,n=r.operator==="OR";this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(r.condition1.type),this.eType2.setValue(r.condition2.type),this.setConditionIntoUi(r.condition1,Ve.One),this.setConditionIntoUi(r.condition2,Ve.Two)}else{var s=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(s.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(s,Ve.One),this.setConditionIntoUi(null,Ve.Two)}return Ke.resolve()},t.prototype.doesFilterPass=function(e){var o=this,r=this.getModel();if(r==null)return!0;var n=r.operator,s=[];if(n){var a=r;s.push(a.condition1,a.condition2)}else s.push(r);var u=n&&n==="OR"?So:ir;return u(s,function(p){return o.individualConditionPasses(e,p)})},t.prototype.setParams=function(e){i.prototype.setParams.call(this,e),this.optionsFactory=new Xp,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.allowTwoConditions=!e.suppressAndOrCondition,this.alwaysShowBothConditions=!!e.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return ot(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,o=this.optionsFactory.getFilterOptions(),r=[this.eType1,this.eType2];Ee(o,function(n){var s=typeof n=="string"?e.createBoilerplateListOption(n):e.createCustomListOption(n);Ee(r,function(a){return a.addOption(s)})}),Ee(r,function(n){return n.setDisabled(o.length<=1)})},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var o=e.displayKey,r=this.optionsFactory.getCustomOption(e.displayKey);return{value:o,text:r?this.gridOptionsWrapper.getLocaleTextFunc()(r.displayKey,r.displayName):this.translate(o)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return`
|
|
370
|
+
<ag-select class="ag-filter-select" ref="eOptions1"></ag-select>
|
|
371
|
+
`+this.createValueTemplate(Ve.One)+`
|
|
372
|
+
<div class="ag-filter-condition" ref="eJoinOperatorPanel">
|
|
373
|
+
<ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>
|
|
374
|
+
<ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>
|
|
375
|
+
</div>
|
|
376
|
+
<ag-select class="ag-filter-select" ref="eOptions2"></ag-select>
|
|
377
|
+
`+this.createValueTemplate(Ve.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,o=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],r=[this.eCondition1Body,this.eCondition2Body];Ee(o,function(n,s){var a=e.isConditionVisible(s),u=e.isConditionDisabled(s);Ee(n,function(p){p instanceof Ht||p instanceof zs?(p.setDisabled(u),p.setDisplayed(a)):(No(p,u),Ce(p,a))})}),Ee(r,function(n,s){Ce(n,e.isConditionBodyVisible(s))}),this.forEachInput(function(n,s,a,u){e.setElementDisplayed(n,s<u),e.setElementDisabled(n,e.isConditionDisabled(a))}),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(e){if(i.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e||!e.suppressFocus&&!this.isReadOnly()){var o=this.getInputs()[0][0];if(!o)return;o instanceof Ht&&o.getInputElement().focus()}},t.prototype.resetPlaceholder=function(){var e=this,o=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput(function(r,n,s,a){if(r instanceof Ht){var u=n===0&&a>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",p=n===0&&a>1?o("ariaFilterFromValue","Filter from value"):n===0?o("ariaFilterValue","Filter Value"):o("ariaFilterToValue","Filter to Value");r.setInputPlaceholder(e.translate(u)),r.setInputAriaLabel(p)}})},t.prototype.setElementValue=function(e,o,r){e instanceof Ht&&e.setValue(o?String(o):null,r)},t.prototype.setElementDisplayed=function(e,o){e instanceof se&&Ce(e.getGui(),o)},t.prototype.setElementDisabled=function(e,o){e instanceof se&&No(e.getGui(),o)},t.prototype.attachElementOnChange=function(e,o){e instanceof Ht&&e.onValueChange(o)},t.prototype.forEachInput=function(e){var o=this,r=this.getInputs();this.getConditionTypes().forEach(function(n,s){for(var a=o.getNumberOfInputs(n),u=0;u<r[s].length;u++){var p=r[s][u];p!=null&&e(p,u,s,a)}})},t.prototype.isConditionVisible=function(e){return e===0?!0:this.allowTwoConditions?this.isReadOnly()?this.isConditionUiComplete(e):this.alwaysShowBothConditions?!0:this.isConditionUiComplete(e-1):!1},t.prototype.isConditionDisabled=function(e){return this.isReadOnly()||!this.isConditionVisible(e)?!0:e===0?!1:!this.isConditionUiComplete(e-1)},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var o=this.getConditionTypes()[e],r=this.getNumberOfInputs(o);return r>0},t.prototype.isConditionUiComplete=function(e){var o=this.getConditionTypes()[e];return!(o===t.EMPTY||X.some(this.getValues(e),function(r){return r==null}))},t.prototype.resetUiToDefaults=function(e){var o=this,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=r("ariaFilteringOperator","Filtering operator"),s="ag-simple-filter-and-or-"+this.getCompId(),a=this.optionsFactory.getDefaultOption();return this.eType1.setValue(a,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(s).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(s).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput(function(u){o.setElementValue(u,null,e),o.setElementDisabled(u,o.isReadOnly())}),this.resetPlaceholder(),Ke.resolve()},t.prototype.setConditionIntoUi=function(e,o){var r=this,n=this.mapValuesFromModel(e);this.forEachInput(function(s,a,u,p){u===o&&r.setElementValue(s,n[a]?n[a]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var o=this;this.forEachInput(function(r,n,s,a){o.setElementValue(r,n===0&&s===0?e:null)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var o=function(){return e.onUiChanged()};this.eType1.onValueChange(o),this.eType2.onValueChange(o),this.eJoinOperatorOr.onValueChange(o),this.eJoinOperatorAnd.onValueChange(o),this.forEachInput(function(r){e.attachElementOnChange(r,o)})}},t.prototype.individualConditionPasses=function(e,o){var r=this.getCellValue(e.node),n=this.mapValuesFromModel(o),s=this.optionsFactory.getCustomOption(o.type),a=this.evaluateCustomFilter(s,n,r);return a??(r==null?this.evaluateNullValue(o.type):this.evaluateNonNullValue(n,r,o))},t.prototype.evaluateCustomFilter=function(e,o,r){if(e!=null){var n=e.predicate;if(n!=null&&!X.some(o,function(s){return s==null}))return n(o,r)}},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",co([x("eOptions1")],t.prototype,"eType1",void 0),co([x("eOptions2")],t.prototype,"eType2",void 0),co([x("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),co([x("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),co([x("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),co([x("eCondition1Body")],t.prototype,"eCondition1Body",void 0),co([x("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(vr);/**
|
|
378
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
379
|
+
* @version v26.2.1
|
|
380
|
+
* @link http://www.ag-grid.com/
|
|
381
|
+
* @license MIT
|
|
382
|
+
*/var E_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),je=function(i){E_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setParams=function(e){i.prototype.setParams.call(this,e),this.scalarFilterParams=e,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("AG Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break}return!1},t.prototype.evaluateNonNullValue=function(e,o,r){var n=this.comparator(),s=n(e[0],o);switch(r.type){case t.EQUALS:return s===0;case t.NOT_EQUAL:return s!==0;case t.GREATER_THAN:return s>0;case t.GREATER_THAN_OR_EQUAL:return s>=0;case t.LESS_THAN:return s<0;case t.LESS_THAN_OR_EQUAL:return s<=0;case t.IN_RANGE:{var a=n(e[1],o);return this.scalarFilterParams.inRangeInclusive?s>=0&&a<=0:s>0&&a<0}default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Ue);/**
|
|
383
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
384
|
+
* @version v26.2.1
|
|
385
|
+
* @link http://www.ag-grid.com/
|
|
386
|
+
* @license MIT
|
|
387
|
+
*/var R_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ks=function(){return Ks=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Ks.apply(this,arguments)},yr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},oc=1e3,rc=1/0,Ys=function(i){R_(t,i);function t(){var e=i.call(this,"dateFilter")||this;return e.minValidYear=oc,e.maxValidYear=rc,e}return t.prototype.afterGuiAttached=function(e){i.prototype.afterGuiAttached.call(this,e),this.dateCondition1FromComp.afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var o=e||{},r=o.dateFrom,n=o.dateTo,s=o.type;return[r&&Kt(r)||null,n&&Kt(n)||null].slice(0,this.getNumberOfInputs(s))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,o){var r=o;return o==null||r<e?-1:r>e?1:0},t.prototype.setParams=function(e){i.prototype.setParams.call(this,e),this.dateFilterParams=e;var o=function(r,n){if(e[r]!=null)if(isNaN(e[r]))console.warn("AG Grid: DateFilter "+r+" is not a number");else return e[r]==null?n:Number(e[r]);return n};this.minValidYear=o("minValidYear",oc),this.maxValidYear=o("maxValidYear",rc),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,o=function(r){return new qp(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},r)};this.dateCondition1FromComp=o(this.eCondition1PanelFrom),this.dateCondition1ToComp=o(this.eCondition1PanelTo),this.dateCondition2FromComp=o(this.eCondition2PanelFrom),this.dateCondition2ToComp=o(this.eCondition2PanelTo),this.addDestroyFunc(function(){e.forEachInput(function(r){return r.destroy()})})},t.prototype.setElementValue=function(e,o,r){e.setDate(o)},t.prototype.setElementDisplayed=function(e,o){e.setDisplayed(o)},t.prototype.setElementDisabled=function(e,o){e.setDisabled(o)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var o=e===Ve.One?"1":"2";return`
|
|
388
|
+
<div class="ag-filter-body" ref="eCondition`+o+`Body">
|
|
389
|
+
<div class="ag-filter-from ag-filter-date-from" ref="eCondition`+o+`PanelFrom"></div>
|
|
390
|
+
<div class="ag-filter-to ag-filter-date-to" ref="eCondition`+o+`PanelTo"></div>
|
|
391
|
+
</div>`},t.prototype.isConditionUiComplete=function(e){var o=this;if(!i.prototype.isConditionUiComplete.call(this,e))return!1;var r=function(s){return s!=null&&s.getUTCFullYear()>=o.minValidYear&&s.getUTCFullYear()<=o.maxValidYear},n=!0;return this.forEachInput(function(s,a,u,p){u!==e||!n||a>=p||(n=n&&r(s.getDate()))}),n},t.prototype.areSimpleModelsEqual=function(e,o){return e.dateFrom===o.dateFrom&&e.dateTo===o.dateTo&&e.type===o.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var o=this.getConditionTypes()[e],r={},n=this.getValues(e);return n.length>0&&(r.dateFrom=$t(n[0])),n.length>1&&(r.dateTo=$t(n[1])),Ks({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:o},r)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.translate("dateFormatOoo"),r=e("ariaFilterValue","Filter Value");this.forEachInput(function(n){n.setInputPlaceholder(o),n.setInputAriaLabel(r)})},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var o=[];return this.forEachInput(function(r,n,s,a){e===s&&n<a&&o.push(r.getDate())}),o},t.DEFAULT_FILTER_OPTIONS=[je.EQUALS,je.GREATER_THAN,je.LESS_THAN,je.NOT_EQUAL,je.IN_RANGE],yr([x("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),yr([x("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),yr([x("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),yr([x("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),yr([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(je);/**
|
|
392
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
393
|
+
* @version v26.2.1
|
|
394
|
+
* @link http://www.ag-grid.com/
|
|
395
|
+
* @license MIT
|
|
396
|
+
*/var S_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),nc=function(i){S_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;var o=e.operator!=null;if(o){var r=e,n=r||{},s=n.condition1,a=n.condition2,u=this.optionsFactory.getCustomOption(s.type),p=this.optionsFactory.getCustomOption(a.type);return[this.conditionToString(s,u),r.operator,this.conditionToString(a,p)].join(" ")}else{var g=e,y=this.optionsFactory.getCustomOption(g.type),C=y||{},E=C.displayKey,S=C.displayName,b=C.numberOfInputs;return E&&S&&b===0?(this.gridOptionsWrapper.getLocaleTextFunc()(E,S),S):this.conditionToString(g,y)}},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}var o=e.operator,r;if(o){var n=e;r=n.condition1}else r=e;this.lastType=r.type},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);var o=e.operator;if(o)return!1;var r=e;return this.isTypeEditable(r.type)},t.prototype.init=function(e){this.optionsFactory=new Xp,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var o=this.isTypeEditable(this.lastType);this.setEditable(o)},t.prototype.doesFilterHaveSingleInput=function(e){var o=this.optionsFactory.getCustomOption(e),r=(o||{}).numberOfInputs;return r==null||r==1},t.prototype.isTypeEditable=function(e){return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&e!==Ue.IN_RANGE&&e!==Ue.EMPTY},t}(se);/**
|
|
397
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
398
|
+
* @version v26.2.1
|
|
399
|
+
* @link http://www.ag-grid.com/
|
|
400
|
+
* @license MIT
|
|
401
|
+
*/var O_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),qs=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},P_=function(i){O_(t,i);function t(){return i.call(this,`
|
|
402
|
+
<div class="ag-floating-filter-input" role="presentation">
|
|
403
|
+
<ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>
|
|
404
|
+
<div ref="eDateWrapper" style="display: flex;"></div>
|
|
405
|
+
</div>`)||this}return t.prototype.getDefaultFilterOptions=function(){return Ys.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,o){var r=e.type,n=(o||{}).numberOfInputs,s=r==Ue.IN_RANGE||n===2,a=Kt(e.dateFrom),u=Kt(e.dateTo);return s?$t(a,!1)+"-"+$t(u,!1):a!=null?""+$t(a,!1):""+r},t.prototype.init=function(e){i.prototype.init.call(this,e),this.params=e,this.createDateComponent();var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){Ce(this.eDateWrapper,e),Ce(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,o){if(!this.isEventFromFloatingFilter(o)){i.prototype.setLastTypeFromModel.call(this,e);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(r),r){if(e){var n=e;this.dateComp.setDate(Kt(n.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(e)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,o=this.dateComp.getDate(),r=$t(o);this.params.parentFilterInstance(function(n){if(n){var s=n;s.onFloatingFilterChanged(e.getLastType(),Kt(r))}})},t.prototype.createDateComponent=function(){var e=this,o=vr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r={onDateChanged:zt(this.onDateChanged.bind(this),o),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new qp(this.getContext(),this.userComponentFactory,r,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},qs([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),qs([x("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),qs([x("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(nc);/**
|
|
406
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
407
|
+
* @version v26.2.1
|
|
408
|
+
* @link http://www.ag-grid.com/
|
|
409
|
+
* @license MIT
|
|
410
|
+
*/var D_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),A_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},T_=function(i){D_(t,i);function t(){return i.call(this,`
|
|
411
|
+
<div class="ag-filter-filter">
|
|
412
|
+
<ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>
|
|
413
|
+
</div>`)||this}return t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.init=function(e){var o=this,r=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(st()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11; reverting to text date picker"):r.type="date"),this.addManagedListener(r,"mousedown",function(){o.eDateInput.isDisabled()||r.focus()}),this.addManagedListener(r,"input",function(u){u.target===document.activeElement&&(o.eDateInput.isDisabled()||e.onDateChanged())});var n=e.filterParams||{},s=n.minValidYear,a=n.maxValidYear;s&&(r.min=s+"-01-01"),a&&(r.max=a+"-12-31")},t.prototype.getDate=function(){return Kt(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue($t(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:ar()||Es()},A_([x("eDateInput")],t.prototype,"eDateInput",void 0),t}(se);/**
|
|
414
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
415
|
+
* @version v26.2.1
|
|
416
|
+
* @link http://www.ag-grid.com/
|
|
417
|
+
* @license MIT
|
|
418
|
+
*/var b_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),En=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Xs=function(i){b_(t,i);function t(){return i.call(this,"numberFilter")||this}return t.prototype.mapValuesFromModel=function(e){var o=e||{},r=o.filter,n=o.filterTo,s=o.type;return[r||null,n||null].slice(0,this.getNumberOfInputs(s))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,o){return e===o?0:e<o?1:-1}},t.prototype.setParams=function(e){this.numberFilterParams=e;var o=this.getAllowedCharPattern();if(o){var r={allowedCharPattern:o};this.resetTemplate({eValueFrom1:r,eValueTo1:r,eValueFrom2:r,eValueTo2:r})}i.prototype.setParams.call(this,e)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var o=e===Ve.One?"1":"2",r=this.getAllowedCharPattern(),n=r?"ag-input-text-field":"ag-input-number-field";return`
|
|
419
|
+
<div class="ag-filter-body" ref="eCondition`+o+`Body" role="presentation">
|
|
420
|
+
<`+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+o+'"></'+n+`>
|
|
421
|
+
<`+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+o+'"></'+n+`>
|
|
422
|
+
</div>`},t.prototype.getValues=function(e){var o=this,r=[];return this.forEachInput(function(n,s,a,u){e===a&&s<u&&r.push(o.stringToFloat(n.getValue()))}),r},t.prototype.areSimpleModelsEqual=function(e,o){return e.filter===o.filter&&e.filterTo===o.filterTo&&e.type===o.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if(typeof e=="number")return e;var o=c(e);return o!=null&&o.trim()===""&&(o=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(o):o==null||o.trim()==="-"?null:parseFloat(o)},t.prototype.createCondition=function(e){var o=this.getConditionTypes()[e],r={filterType:this.getFilterType(),type:o},n=this.getValues(e);return n.length>0&&(r.filter=n[0]),n.length>1&&(r.filterTo=n[1]),r},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(!ar()&&!un()?"\\d\\-\\.":null)},t.DEFAULT_FILTER_OPTIONS=[je.EQUALS,je.NOT_EQUAL,je.LESS_THAN,je.LESS_THAN_OR_EQUAL,je.GREATER_THAN,je.GREATER_THAN_OR_EQUAL,je.IN_RANGE],En([x("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),En([x("eValue-index1-1")],t.prototype,"eValueTo1",void 0),En([x("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),En([x("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(je);/**
|
|
423
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
424
|
+
* @version v26.2.1
|
|
425
|
+
* @link http://www.ag-grid.com/
|
|
426
|
+
* @license MIT
|
|
427
|
+
*/var N_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Rn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Sn=function(i){N_(t,i);function t(){return i.call(this,"textFilter")||this}return t.trimInput=function(e){var o=e&&e.trim();return o===""?e:o},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){i.prototype.setParams.call(this,e),this.textFilterParams=e,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.createCondition=function(e){var o=this.getConditionTypes()[e],r={filterType:this.getFilterType(),type:o},n=this.getValues(e);return n.length>0&&(r.filter=n[0]),n.length>1&&(r.filterTo=n[1]),r},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,o){return e.filter===o.filter&&e.filterTo===o.filterTo&&e.type===o.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var o=this,r=[];return this.forEachInput(function(n,s,a,u){if(e===a&&s<u){var p=c(n.getValue()),g=(o.textFilterParams.trimInput?t.trimInput(p):p)||null;r.push(g),n.setValue(g,!0)}}),r},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var o=e===Ve.One?"1":"2";return`
|
|
428
|
+
<div class="ag-filter-body" ref="eCondition`+o+`Body" role="presentation">
|
|
429
|
+
<ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-`+o+`"></ag-input-text-field>
|
|
430
|
+
<ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-`+o+`"></ag-input-text-field>
|
|
431
|
+
</div>`},t.prototype.mapValuesFromModel=function(e){var o=e||{},r=o.filter,n=o.filterTo,s=o.type;return[r||null,n||null].slice(0,this.getNumberOfInputs(s))},t.prototype.evaluateNullValue=function(e){return e===Ue.NOT_EQUAL||e===Ue.NOT_CONTAINS},t.prototype.evaluateNonNullValue=function(e,o,r){var n=this,s=X.map(e,function(u){return n.formatter(u)})||[],a=this.formatter(o);return X.some(s,function(u){return n.comparator(r.type,a,u)})},t.DEFAULT_FILTER_OPTIONS=[Ue.CONTAINS,Ue.NOT_CONTAINS,Ue.EQUALS,Ue.NOT_EQUAL,Ue.STARTS_WITH,Ue.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return e==null?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,r){switch(e){case t.CONTAINS:return o.indexOf(r)>=0;case t.NOT_CONTAINS:return o.indexOf(r)<0;case t.EQUALS:return o===r;case t.NOT_EQUAL:return o!=r;case t.STARTS_WITH:return o.indexOf(r)===0;case t.ENDS_WITH:var n=o.lastIndexOf(r);return n>=0&&n===o.length-r.length;default:return!1}},Rn([x("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Rn([x("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Rn([x("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Rn([x("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Ue);/**
|
|
432
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
433
|
+
* @version v26.2.1
|
|
434
|
+
* @link http://www.ag-grid.com/
|
|
435
|
+
* @license MIT
|
|
436
|
+
*/var F_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Qs=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ic=function(i){F_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setTemplate(`
|
|
437
|
+
<div class="ag-floating-filter-input" role="presentation">
|
|
438
|
+
<ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>
|
|
439
|
+
</div>`)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,o){this.isEventFromFloatingFilter(o)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(e){if(i.prototype.init.call(this,e),this.params=e,this.applyActive=vr.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var o=vr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=zt(this.syncUpWithParentFilter.bind(this),o),n=this.eFloatingFilterInput.getGui();this.addManagedListener(n,"input",r),this.addManagedListener(n,"keypress",r),this.addManagedListener(n,"keydown",r)}var s=e.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&s.filterParams.filterOptions.length===1&&s.filterParams.filterOptions[0]==="inRange")&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),u=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+u("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var o=this,r=Gs(e,W.ENTER);if(!(this.applyActive&&!r)){var n=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(n=Sn.trimInput(n),this.eFloatingFilterInput.setValue(n,!0)),this.params.parentFilterInstance(function(s){if(s){var a=s;a.onFloatingFilterChanged(o.getLastType(),n||null)}})}},t.prototype.conditionToString=function(e,o){var r=(o||{}).numberOfInputs,n=e.type==Ue.IN_RANGE||r===2;return n?e.filter+"-"+e.filterTo:e.filter!=null?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Qs([m("columnModel")],t.prototype,"columnModel",void 0),Qs([x("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Qs([k],t.prototype,"postConstruct",null),t}(nc);/**
|
|
440
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
441
|
+
* @version v26.2.1
|
|
442
|
+
* @link http://www.ag-grid.com/
|
|
443
|
+
* @license MIT
|
|
444
|
+
*/var I_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),L_=function(i){I_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getDefaultFilterOptions=function(){return Xs.DEFAULT_FILTER_OPTIONS},t}(ic);/**
|
|
445
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
446
|
+
* @version v26.2.1
|
|
447
|
+
* @link http://www.ag-grid.com/
|
|
448
|
+
* @license MIT
|
|
449
|
+
*/var M_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),sc=function(i){M_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getDefaultFilterOptions=function(){return Sn.DEFAULT_FILTER_OPTIONS},t}(ic);/**
|
|
450
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
451
|
+
* @version v26.2.1
|
|
452
|
+
* @link http://www.ag-grid.com/
|
|
453
|
+
* @license MIT
|
|
454
|
+
*/var lt=function(){function i(t,e){var o=this;e===void 0&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Gt,this.eElement=t,this.preventMouseClick=e;var r=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){o.eElement.removeEventListener("touchstart",r,{passive:!0}),o.eElement.removeEventListener("touchmove",n,{passive:!0}),o.eElement.removeEventListener("touchend",s,{passive:!1})})}return i.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++){var o=t[e].identifier===this.touchStart.identifier;if(o)return t[e]}return null},i.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},i.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},i.prototype.onTouchStart=function(t){var e=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var o=this.touchStart;window.setTimeout(function(){var r=e.touchStart===o;if(e.touching&&r&&!e.moved){e.moved=!0;var n={type:i.EVENT_LONG_TAP,touchStart:e.touchStart,touchEvent:t};e.eventService.dispatchEvent(n)}},500)}},i.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);if(e){var o=!xs(e,this.touchStart,4);o&&(this.moved=!0)}}},i.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var e={type:i.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(e),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},i.prototype.checkForDoubleTap=function(){var t=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0){var e=t-this.lastTapTime;if(e>i.DOUBLE_TAP_MILLIS){var o={type:i.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t}else this.lastTapTime=t},i.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},i.EVENT_TAP="tap",i.EVENT_DOUBLE_TAP="doubleTap",i.EVENT_LONG_TAP="longTap",i.DOUBLE_TAP_MILLIS=500,i}();/**
|
|
455
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
456
|
+
* @version v26.2.1
|
|
457
|
+
* @link http://www.ag-grid.com/
|
|
458
|
+
* @license MIT
|
|
459
|
+
*/var G_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Tt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},x_=function(i){G_(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort?!1:(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=K(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e,e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var o=ft(this.currentDisplayName);this.eText&&(this.eText.innerHTML=o)}},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,o,r){if(o!=null){var n=Te(e,this.gridOptionsWrapper,r);n&&o.appendChild(n)}},t.prototype.setupTap=function(){var e=this,o=this.gridOptionsWrapper;if(!o.isSuppressTouch()){var r=new lt(this.getGui(),!0),n=o.isSuppressMenuHide(),s=n&&h(this.eMenu),a=s?new lt(this.eMenu,!0):r;if(this.params.enableMenu){var u=s?"EVENT_TAP":"EVENT_LONG_TAP",p=function(y){o.getApi().showColumnMenuAfterMouseClick(e.params.column,y.touchStart)};this.addManagedListener(a,lt[u],p)}if(this.params.enableSorting){var g=function(y){var C=y.touchStart.target;n&&e.eMenu.contains(C)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(r,lt.EVENT_TAP,g)}this.addDestroyFunc(function(){return r.destroy()}),s&&this.addDestroyFunc(function(){return a.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),o=bo()&&e,r=this.params.enableMenu&&!o;return r},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){xt(this.eMenu);return}var o=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),ee(this.eMenu,"ag-header-menu-always-show",o)}},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){xt(this.eSortAsc),xt(this.eSortDesc),xt(this.eSortNone),xt(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,!this.currentSort){this.removeSortIcons();return}var o=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,fe.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=new Date().getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(r){var n=e.params.column.isMoving(),s=new Date().getTime(),a=s-e.lastMovingChanged<50,u=n||a;if(!u){var p=o?r.ctrlKey||r.metaKey:r.shiftKey;e.params.progressSort(p)}}),this.addManagedListener(this.params.column,fe.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()},t.prototype.onSortChanged=function(){if(ee(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),ee(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),ee(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&ee(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&ee(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();ee(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,o=this.sortController.getColumnsWithSortingOrdered(),r=o.indexOf(e),n=o.length>1,s=e.isSorting()&&n;Ce(this.eSortOrder,s),r>=0?this.eSortOrder.innerHTML=(r+1).toString():Je(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,fe.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();ee(this.eFilter,"ag-hidden",!e)},t.TEMPLATE=`<div class="ag-cell-label-container" role="presentation">
|
|
460
|
+
<span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
|
|
461
|
+
<div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on">
|
|
462
|
+
<span ref="eText" class="ag-header-cell-text" unselectable="on"></span>
|
|
463
|
+
<span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
|
|
464
|
+
<span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>
|
|
465
|
+
<span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>
|
|
466
|
+
<span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>
|
|
467
|
+
<span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>
|
|
468
|
+
</div>
|
|
469
|
+
</div>`,Tt([m("sortController")],t.prototype,"sortController",void 0),Tt([m("menuFactory")],t.prototype,"menuFactory",void 0),Tt([x("eFilter")],t.prototype,"eFilter",void 0),Tt([x("eSortAsc")],t.prototype,"eSortAsc",void 0),Tt([x("eSortDesc")],t.prototype,"eSortDesc",void 0),Tt([x("eSortNone")],t.prototype,"eSortNone",void 0),Tt([x("eSortOrder")],t.prototype,"eSortOrder",void 0),Tt([x("eMenu")],t.prototype,"eMenu",void 0),Tt([x("eLabel")],t.prototype,"eLabel",void 0),Tt([x("eText")],t.prototype,"eText",void 0),t}(se);/**
|
|
470
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
471
|
+
* @version v26.2.1
|
|
472
|
+
* @link http://www.ag-grid.com/
|
|
473
|
+
* @license MIT
|
|
474
|
+
*/var V_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Js=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},H_=function(i){V_(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){var e=this.params;if(e.template){var o="A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";we(function(){return console.warn(o)},"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var o=function(s){if(!Et(s)){var a=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),a,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,o),this.addTouchAndClickListeners(this.eOpenIcon,o);var r=function(s){Do(s)};this.addManagedListener(this.eCloseIcon,"dblclick",r),this.addManagedListener(this.eOpenIcon,"dblclick",r),this.addManagedListener(this.getGui(),"dblclick",o),this.updateIconVisibility();var n=this.params.columnGroup.getOriginalColumnGroup();this.addManagedListener(n,Re.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,Re.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,o){var r=new lt(e,!0);this.addManagedListener(r,lt.EVENT_TAP,o),this.addDestroyFunc(function(){return r.destroy()}),this.addManagedListener(e,"click",o)},t.prototype.updateIconVisibility=function(){var e=this.params.columnGroup;if(e.isExpandable()){var o=this.params.columnGroup.isExpanded();Ce(this.eOpenIcon,o),Ce(this.eCloseIcon,!o)}else Ce(this.eOpenIcon,!1),Ce(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,o){var r=Te(e,this.gridOptionsWrapper,null);r&&this.getRefElement(o).appendChild(r)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable()){Ce(this.eOpenIcon,!1),Ce(this.eCloseIcon,!1);return}},t.prototype.setupLabel=function(){var e=this.params.displayName;if(h(e)){var o=ft(e);this.getRefElement("agLabel").innerHTML=o}},t.TEMPLATE=`<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
|
|
475
|
+
<span ref="agLabel" class="ag-header-group-text" role="presentation"></span>
|
|
476
|
+
<span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
|
|
477
|
+
<span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
|
|
478
|
+
</div>`,Js([m("columnModel")],t.prototype,"columnModel",void 0),Js([x("agOpened")],t.prototype,"eOpenIcon",void 0),Js([x("agClosed")],t.prototype,"eCloseIcon",void 0),t}(se);/**
|
|
479
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
480
|
+
* @version v26.2.1
|
|
481
|
+
* @link http://www.ag-grid.com/
|
|
482
|
+
* @license MIT
|
|
483
|
+
*/var W_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Mo=function(i){W_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){Q(e.getGui(),"ag-has-popup"),i.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent,o=e&&e.isAlive();o&&Ie(e.getGui(),"ag-has-popup"),i.prototype.destroy.call(this)},t}(se);/**
|
|
484
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
485
|
+
* @version v26.2.1
|
|
486
|
+
* @link http://www.ag-grid.com/
|
|
487
|
+
* @license MIT
|
|
488
|
+
*/var B_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),k_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ac=function(i){B_(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),h(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var o=e.which||e.keyCode;(o===W.LEFT||o===W.UP||o===W.RIGHT||o===W.DOWN||e.shiftKey&&o===W.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE=`<div class="ag-large-text" tabindex="0">
|
|
489
|
+
<ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
|
|
490
|
+
</div>`,k_([x("eTextArea")],t.prototype,"eTextArea",void 0),t}(Mo);/**
|
|
491
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
492
|
+
* @version v26.2.1
|
|
493
|
+
* @link http://www.ag-grid.com/
|
|
494
|
+
* @license MIT
|
|
495
|
+
*/var U_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),lc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Zs=function(i){U_(t,i);function t(){var e=i.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return e.startedByEnter=!1,e}return t.prototype.init=function(e){var o=this;if(this.focusAfterAttached=e.cellStartedEdit,f(e.values)){console.warn("AG Grid: no values found for select cellEditor");return}this.startedByEnter=e.keyPress===W.ENTER;var r=!1;e.values.forEach(function(n){var s={value:n},a=o.valueFormatterService.formatValue(e.column,null,null,n),u=a!=null;s.text=u?a:n,o.eSelect.addOption(s),r=r||e.value===n}),r?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange(function(){return e.stopEditing()})},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},lc([m("valueFormatterService")],t.prototype,"valueFormatterService",void 0),lc([x("eSelect")],t.prototype,"eSelect",void 0),t}(Mo);/**
|
|
496
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
497
|
+
* @version v26.2.1
|
|
498
|
+
* @link http://www.ag-grid.com/
|
|
499
|
+
* @license MIT
|
|
500
|
+
*/var j_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),uc=function(i){j_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.isPopup=function(){return!0},t}(Zs);/**
|
|
501
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
502
|
+
* @version v26.2.1
|
|
503
|
+
* @link http://www.ag-grid.com/
|
|
504
|
+
* @license MIT
|
|
505
|
+
*/var z_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),$_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},On=function(i){z_(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){this.params=e;var o=this.eInput,r;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===W.BACKSPACE||e.keyPress===W.DELETE?r="":e.charPress?r=e.charPress:(r=this.getStartValue(e),e.keyPress!==W.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=this.getStartValue(e)),r!=null&&o.setValue(r,!0),this.addManagedListener(o.getGui(),"keydown",function(n){var s=n.keyCode;(s===W.PAGE_UP||s===W.PAGE_DOWN)&&n.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){pn()||o.getFocusableElement().focus();var r=o.getInputElement();if(this.highlightAllOnFocus)r.select();else{var n=o.getValue(),s=h(n)&&n.length||0;s&&r.setSelectionRange(s,s)}}},t.prototype.focusIn=function(){var e=this.eInput,o=e.getFocusableElement(),r=e.getInputElement();o.focus(),r.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();st()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){var o=e.useFormatter||e.column.getColDef().refData;return o?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',$_([x("eInput")],t.prototype,"eInput",void 0),t}(Mo);/**
|
|
506
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
507
|
+
* @version v26.2.1
|
|
508
|
+
* @link http://www.ag-grid.com/
|
|
509
|
+
* @license MIT
|
|
510
|
+
*/var K_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),pc=function(i){K_(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.isPopup=function(){return!0},t}(On);/**
|
|
511
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
512
|
+
* @version v26.2.1
|
|
513
|
+
* @link http://www.ag-grid.com/
|
|
514
|
+
* @license MIT
|
|
515
|
+
*/var Y_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),q_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},X_="↑",Q_="↓",cc=function(i){Y_(t,i);function t(){var e=i.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,o){var r=Math.abs(o),n=e.formatValue(r),s=h(n)?n:r,a=o>=0;a?this.eDelta.innerHTML=X_+s:this.eDelta.innerHTML=Q_+s,ee(this.eDelta,"ag-value-change-delta-up",a),ee(this.eDelta,"ag-value-change-delta-down",!a)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var o=this.refreshCount;window.setTimeout(function(){o===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){Ie(this.eValue,"ag-value-change-value-highlight"),Je(this.eDelta)},t.prototype.refresh=function(e){var o=e.value;if(o===this.lastValue||(h(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:h(e.value)?this.eValue.innerHTML=o:Je(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof o=="number"&&typeof this.lastValue=="number"){var r=o-this.lastValue;this.showDelta(e,r)}return this.lastValue&&Q(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=o,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',q_([m("filterManager")],t.prototype,"filterManager",void 0),t}(se);/**
|
|
516
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
517
|
+
* @version v26.2.1
|
|
518
|
+
* @link http://www.ag-grid.com/
|
|
519
|
+
* @license MIT
|
|
520
|
+
*/var J_=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Z_=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},dc=function(i){J_(t,i);function t(){var e=i.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var o=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Pt('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout(function(){o===e.refreshCount&&Q(e.ePrevious,"ag-value-slide-out-end")},50),window.setTimeout(function(){o===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var o=e.value;return f(o)&&(o=""),o===this.lastValue||this.filterManager.isSuppressFlashingCellsBecauseFiltering()?!1:(this.addSlideAnimation(),this.lastValue=o,h(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:h(e.value)?this.eCurrent.innerHTML=o:Je(this.eCurrent),!0)},t.TEMPLATE=`<span>
|
|
521
|
+
<span class="ag-value-slide-current"></span>
|
|
522
|
+
</span>`,Z_([m("filterManager")],t.prototype,"filterManager",void 0),t}(se);/**
|
|
523
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
524
|
+
* @version v26.2.1
|
|
525
|
+
* @link http://www.ag-grid.com/
|
|
526
|
+
* @license MIT
|
|
527
|
+
*/(function(i){i[i.Above=0]="Above",i[i.Below=1]="Below"})(l.RowHighlightPosition||(l.RowHighlightPosition={}));var ae=function(){function i(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=i.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return i.prototype.setData=function(t){this.setDataCommon(t,!1)},i.prototype.updateData=function(t){this.setDataCommon(t,!0)},i.prototype.setDataCommon=function(t,e){var o=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var r=this.createDataChangedEvent(t,o,e);this.dispatchLocalEvent(r)},i.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},i.prototype.createDataChangedEvent=function(t,e,o){return{type:i.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:o}},i.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},i.prototype.getRowIndexString=function(){return this.rowPinned===D.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===D.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},i.prototype.createDaemonNode=function(){var t=new i(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},i.prototype.setDataAndId=function(t,e){var o=h(this.id)?this.createDaemonNode():null,r=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,o),this.checkRowSelectable();var n=this.createDataChangedEvent(t,r,!1);this.dispatchLocalEvent(n)},i.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(t?t(this):!0)},i.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_SELECTABLE_CHANGED)))},i.prototype.setId=function(t){var e=this.beans.gridOptionsWrapper.getRowNodeIdFunc();e?this.data?(this.id=e(this.data),this.id&&typeof this.id=="string"&&us(this.id,i.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row ID's cannot start with "+i.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),this.id&&typeof this.id!="string"&&(this.id=""+this.id)):this.id=void 0:this.id=t},i.prototype.isPixelInRange=function(t){return!h(this.rowTop)||!h(this.rowHeight)?!1:t>=this.rowTop&&t<this.rowTop+this.rowHeight},i.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_FIRST_CHILD_CHANGED)))},i.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_LAST_CHILD_CHANGED)))},i.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_CHILD_INDEX_CHANGED)))},i.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_TOP_CHANGED)),this.setDisplayed(t!==null))},i.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},i.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_DISPLAYED_CHANGED)))},i.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_DRAGGING_CHANGED)))},i.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_HIGHLIGHT_CHANGED)))},i.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},i.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_MASTER_CHANGED)))},i.prototype.setRowHeight=function(t,e){e===void 0&&(e=!1),this.rowHeight=t,this.rowHeightEstimated=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_HEIGHT_CHANGED))},i.prototype.setRowAutoHeight=function(t,e){this.__autoHeights||(this.__autoHeights={});var o=this.__autoHeights;o[e.getId()]=t,t!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=zt(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},i.prototype.checkAutoHeights=function(){var t=!1,e=!0,o=0,r=this.__autoHeights;if(r!=null){var n=this.beans.columnModel.getAllDisplayedAutoHeightCols();if(n.forEach(function(a){var u=r[a.getId()];if(u==null){t=!0;return}e=!1,u>o&&(o=u)}),!t&&((e||o<10)&&(o=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),o!=this.rowHeight)){this.setRowHeight(o);var s=this.beans.rowModel;s.onRowHeightChanged&&s.onRowHeightChanged()}}},i.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_ROW_INDEX_CHANGED)))},i.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_UI_LEVEL_CHANGED)))},i.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_EXPANDED_CHANGED));var e=nt({},this.createGlobalRowEvent(_.EVENT_ROW_GROUP_OPENED),{expanded:t});this.beans.rowNodeEventThrottle.dispatchExpanded(e),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},i.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},i.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},i.prototype.setDataValue=function(t,e,o){var r=this.beans.columnModel.getPrimaryColumn(t),n=this.beans.valueService.getValue(r,this);this.beans.valueService.setValue(this,r,e,o),this.dispatchCellChangedEvent(r,e,n)},i.prototype.setGroupValue=function(t,e){var o=this.beans.columnModel.getGridColumn(t);f(this.groupData)&&(this.groupData={});var r=o.getColId(),n=this.groupData[r];n!==e&&(this.groupData[r]=e,this.dispatchCellChangedEvent(o,e,n))},i.prototype.setAggData=function(t){var e=this,o=Bu([this.aggData,t]),r=this.aggData;this.aggData=t,this.eventService&&o.forEach(function(n){var s=e.beans.columnModel.getGridColumn(n),a=e.aggData?e.aggData[n]:void 0,u=r?r[n]:void 0;e.dispatchCellChangedEvent(s,a,u)})},i.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(i.EVENT_HAS_CHILDREN_CHANGED)))},i.prototype.hasChildren=function(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren},i.prototype.isEmptyRowGroupNode=function(){return this.group&&v(this.childrenAfterGroup)},i.prototype.dispatchCellChangedEvent=function(t,e,o){var r={type:i.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:o};this.dispatchLocalEvent(r)},i.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},i.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},i.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},i.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},i.prototype.calculateSelectedFromChildren=function(){var t=!1,e=!1,o=!1,r;if(this.childrenAfterGroup)for(var n=0;n<this.childrenAfterGroup.length;n++){var s=this.childrenAfterGroup[n];if(s.selectable){var a=s.isSelected();switch(a){case!0:t=!0;break;case!1:e=!0;break;default:o=!0;break}}}o?r=void 0:t&&!e?r=!0:!t&&e?r=!1:r=void 0,this.selectThisNode(r)},i.prototype.setSelectedInitialValue=function(t){this.selected=t},i.prototype.setSelected=function(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1),this.setSelectedParams({newValue:t,clearSelection:e,suppressFinishActions:o,rangeSelect:!1})},i.prototype.isRowPinned=function(){return this.rowPinned===D.PINNED_TOP||this.rowPinned===D.PINNED_BOTTOM},i.prototype.setSelectedParams=function(t){var e=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=t.newValue===!0,r=t.clearSelection===!0,n=t.suppressFinishActions===!0,s=t.rangeSelect===!0,a=e&&t.groupSelectsFiltered===!0;if(this.id===void 0)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(t);if(s&&this.beans.selectionService.getLastSelectedNode()){var u=this.beans.selectionService.getLastSelectedNode()!==this,p=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(u&&p){var g=this.doRowRangeSelection(t.newValue);return this.beans.selectionService.setLastSelectedNode(this),g}}var y=0,C=a&&this.group;if(!C){var E=this.selectThisNode(o);E&&y++}if(e&&this.group&&(y+=this.selectChildNodes(o,a)),!n){var S=o&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti());if(S&&(y+=this.beans.selectionService.clearOtherNodes(this)),y>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var b={type:_.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(b)}o&&this.beans.selectionService.setLastSelectedNode(this)}return y},i.prototype.doRowRangeSelection=function(t){var e=this;t===void 0&&(t=!0);var o=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=this.beans.selectionService.getLastSelectedNode(),n=this.beans.rowModel.getNodesInRangeForSelection(this,r),s=0;n.forEach(function(u){if(!(u.group&&o||t===!1&&e===u)){var p=u.selectThisNode(t);p&&s++}}),this.beans.selectionService.updateGroupsFromChildrenSelections();var a={type:_.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(a),s},i.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},i.prototype.selectThisNode=function(t){var e=!this.selectable&&t,o=this.selected===t;if(e||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(i.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(_.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(r),!0},i.prototype.selectChildNodes=function(t,e){var o=e?this.childrenAfterFilter:this.childrenAfterGroup;if(f(o))return 0;for(var r=0,n=0;n<o.length;n++)r+=o[n].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:e});return r},i.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new Gt),this.eventService.addEventListener(t,e)},i.prototype.removeEventListener=function(t,e){this.eventService&&(this.eventService.removeEventListener(t,e),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},i.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(i.EVENT_MOUSE_ENTER))},i.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(i.EVENT_MOUSE_LEAVE))},i.prototype.getFirstChildOfFirstChild=function(t){for(var e=this,o=!0,r=!1,n=null;o&&!r;){var s=e.parent,a=h(s)&&e.firstChild;a?s.rowGroupColumn===t&&(r=!0,n=s):o=!1,e=s}return r?n:null},i.prototype.isFullWidthCell=function(){var t=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return t?t(this):!1},i.prototype.getRoute=function(){if(this.key!=null){for(var t=[],e=this;e.key!=null;)t.push(e.key),e=e.parent;return t.reverse()}},i.ID_PREFIX_ROW_GROUP="row-group-",i.ID_PREFIX_TOP_PINNED="t-",i.ID_PREFIX_BOTTOM_PINNED="b-",i.OBJECT_ID_SEQUENCE=0,i.EVENT_ROW_SELECTED="rowSelected",i.EVENT_DATA_CHANGED="dataChanged",i.EVENT_CELL_CHANGED="cellChanged",i.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",i.EVENT_MASTER_CHANGED="masterChanged",i.EVENT_MOUSE_ENTER="mouseEnter",i.EVENT_MOUSE_LEAVE="mouseLeave",i.EVENT_HEIGHT_CHANGED="heightChanged",i.EVENT_TOP_CHANGED="topChanged",i.EVENT_DISPLAYED_CHANGED="displayedChanged",i.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",i.EVENT_LAST_CHILD_CHANGED="lastChildChanged",i.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",i.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",i.EVENT_EXPANDED_CHANGED="expandedChanged",i.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",i.EVENT_SELECTABLE_CHANGED="selectableChanged",i.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",i.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",i.EVENT_DRAGGING_CHANGED="draggingChanged",i}();/**
|
|
528
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
529
|
+
* @version v26.2.1
|
|
530
|
+
* @link http://www.ag-grid.com/
|
|
531
|
+
* @license MIT
|
|
532
|
+
*/var eE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),hc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ea=function(i){eE(t,i);function t(){return i.call(this,`
|
|
533
|
+
<div class="ag-selection-checkbox" role="presentation">
|
|
534
|
+
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
|
|
535
|
+
</div>`)||this}return t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.rowNode.isSelected(),r=o===void 0?e("ariaIndeterminate","indeterminate"):o===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(o,!0),this.eCheckbox.setInputAriaLabel(n+" ("+r+")")},t.prototype.onCheckedClicked=function(e){var o=this.gridOptionsWrapper.isGroupSelectsFiltered(),r=this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o});return r},t.prototype.onUncheckedClicked=function(e){var o=this.gridOptionsWrapper.isGroupSelectsFiltered(),r=this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:o});return r},t.prototype.init=function(e){var o=this;this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",function(a){return Do(a)}),this.addGuiEventListener("dblclick",function(a){return Do(a)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(a){var u=o.eCheckbox.getValue(),p=o.eCheckbox.getPreviousValue();if(p===void 0){var g=o.onUncheckedClicked(a||{});g===0&&o.onCheckedClicked(a)}else u?o.onCheckedClicked(a):o.onUncheckedClicked(a||{})}),this.addManagedListener(this.rowNode,ae.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var r=this.gridOptionsWrapper.getIsRowSelectableFunc(),n=r||this.checkboxCallbackExists();if(n){var s=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.rowNode,ae.EVENT_DATA_CHANGED,s),this.addManagedListener(this.rowNode,ae.EVENT_CELL_CHANGED,s),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&typeof e.checkboxSelection=="function"},hc([x("eCheckbox")],t.prototype,"eCheckbox",void 0),hc([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
536
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
537
|
+
* @version v26.2.1
|
|
538
|
+
* @link http://www.ag-grid.com/
|
|
539
|
+
* @license MIT
|
|
540
|
+
*/var tE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ho=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i[i.ToolPanel=0]="ToolPanel",i[i.HeaderCell=1]="HeaderCell",i[i.RowDrag=2]="RowDrag",i[i.ChartPanel=3]="ChartPanel"})(l.DragSourceType||(l.DragSourceType={})),function(i){i[i.Up=0]="Up",i[i.Down=1]="Down"}(l.VerticalDirection||(l.VerticalDirection={})),function(i){i[i.Left=0]="Left",i[i.Right=1]="Right"}(l.HorizontalDirection||(l.HorizontalDirection={}));var ze=function(i){tE(t,i);function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.dragSourceAndParamsList=[],o.dropTargets=[],o}e=t,t.prototype.init=function(){this.ePinnedIcon=at("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=at("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=at("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=at("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=at("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=at("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=at("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=at("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=at("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(o,r){r===void 0&&(r=!1);var n={eElement:o.eElement,dragStartPixels:o.dragStartPixels,onDragStart:this.onDragStart.bind(this,o),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:o}),this.dragService.addDragSource(n,r)},t.prototype.removeDragSource=function(o){var r=H(this.dragSourceAndParamsList,function(n){return n.dragSource===o});r&&(this.dragService.removeDragSource(r.params),$(this.dragSourceAndParamsList,r))},t.prototype.clearDragSourceParamsList=function(){var o=this;this.dragSourceAndParamsList.forEach(function(r){return o.dragService.removeDragSource(r.params)}),this.dragSourceAndParamsList.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(o,r){this.dragging=!0,this.dragSource=o,this.eventLastTime=r,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(o){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var r=this.createDropTargetEvent(this.lastDropTarget,o,null,null,!1);this.lastDropTarget.onDragStop(r)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(o,r){var n=this,s=this.getHorizontalDirection(o),a=this.getVerticalDirection(o);this.eventLastTime=o,this.positionGhost(o);var u=this.dropTargets.filter(function(C){return n.isMouseOnDropTarget(o,C)}),p=u.length,g=null;if(p>0&&(g=p===1?u[0]:u.reduce(function(C,E){if(!C)return E;var S=C.getContainer(),b=E.getContainer();return S.contains(b)?E:C})),g!==this.lastDropTarget)this.leaveLastTargetIfExists(o,s,a,r),this.enterDragTargetIfExists(g,o,s,a,r),this.lastDropTarget=g;else if(g&&g.onDragging){var y=this.createDropTargetEvent(g,o,s,a,r);g.onDragging(y)}},t.prototype.enterDragTargetIfExists=function(o,r,n,s,a){if(o){if(o.onDragEnter){var u=this.createDropTargetEvent(o,r,n,s,a);o.onDragEnter(u)}this.setGhostIcon(o.getIconName?o.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(o,r,n,s){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var a=this.createDropTargetEvent(this.lastDropTarget,o,r,n,s);this.lastDropTarget.onDragLeave(a)}this.setGhostIcon(null)}},t.prototype.getAllContainersFromDropTarget=function(o){var r=o.getSecondaryContainers?o.getSecondaryContainers():null,n=[[o.getContainer()]];return r?n.concat(r):n},t.prototype.allContainersIntersect=function(o,r){for(var n=0,s=r;n<s.length;n++){var a=s[n],u=a.getBoundingClientRect();if(u.width===0||u.height===0)return!1;var p=o.clientX>=u.left&&o.clientX<u.right,g=o.clientY>=u.top&&o.clientY<u.bottom;if(!p||!g)return!1}return!0},t.prototype.isMouseOnDropTarget=function(o,r){for(var n=this.getAllContainersFromDropTarget(r),s=!1,a=0,u=n;a<u.length;a++){var p=u[a];if(this.allContainersIntersect(o,p)){s=!0;break}}return s&&r.isInterestedIn(this.dragSource.type)},t.prototype.addDropTarget=function(o){this.dropTargets.push(o)},t.prototype.removeDropTarget=function(o){this.dropTargets=this.dropTargets.filter(function(r){return r.getContainer()!==o.getContainer()})},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(o){return o.external})},t.prototype.findExternalZone=function(o){var r=this.dropTargets.filter(function(n){return n.external});return H(r,function(n){return n.getContainer()===o.getContainer()})},t.prototype.getHorizontalDirection=function(o){var r=this.eventLastTime&&this.eventLastTime.clientX,n=o.clientX;return r===n?null:r>n?l.HorizontalDirection.Left:l.HorizontalDirection.Right},t.prototype.getVerticalDirection=function(o){var r=this.eventLastTime&&this.eventLastTime.clientY,n=o.clientY;return r===n?null:r>n?l.VerticalDirection.Up:l.VerticalDirection.Down},t.prototype.createDropTargetEvent=function(o,r,n,s,a){var u=o.getContainer(),p=u.getBoundingClientRect(),g=this,y=g.gridApi,C=g.columnApi,E=g.dragItem,S=g.dragSource,b=r.clientX-p.left,F=r.clientY-p.top;return{event:r,x:b,y:F,vDirection:s,hDirection:n,dragSource:S,fromNudge:a,dragItem:E,api:y,columnApi:C,dropZoneTarget:u}},t.prototype.positionGhost=function(o){var r=this.eGhost;if(r){var n=r.getBoundingClientRect(),s=n.height,a=mp()-2,u=Cp()-2,p=o.pageY-s/2,g=o.pageX-10,y=this.gridOptionsWrapper.getDocument(),C=window.pageYOffset||y.documentElement.scrollTop,E=window.pageXOffset||y.documentElement.scrollLeft;a>0&&g+r.clientWidth>a+E&&(g=a+E-r.clientWidth),g<0&&(g=0),u>0&&p+r.clientHeight>u+C&&(p=u+C-r.clientHeight),p<0&&(p=0),r.style.left=g+"px",r.style.top=p+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=Pt(e.GHOST_TEMPLATE);var o=this.environment.getTheme().theme;o&&Q(this.eGhost,o),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var r=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;Qi(n)&&(n=n()),r.innerHTML=ft(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var s=this.gridOptionsWrapper.getDocument(),a=s.fullscreenElement||s.querySelector("body");this.eGhostParent=a,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(o,r){r===void 0&&(r=!1),Je(this.eGhostIcon);var n=null;switch(o||(o=this.dragSource.defaultIconName||e.ICON_NOT_ALLOWED),o){case e.ICON_PINNED:n=this.ePinnedIcon;break;case e.ICON_MOVE:n=this.eMoveIcon;break;case e.ICON_LEFT:n=this.eLeftIcon;break;case e.ICON_RIGHT:n=this.eRightIcon;break;case e.ICON_GROUP:n=this.eGroupIcon;break;case e.ICON_AGGREGATE:n=this.eAggregateIcon;break;case e.ICON_PIVOT:n=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:n=this.eHideIcon;break}ee(this.eGhostIcon,"ag-shake-left-to-right",r),!(n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns())&&n&&this.eGhostIcon.appendChild(n)};var e;return t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE=`<div class="ag-dnd-ghost ag-unselectable">
|
|
541
|
+
<span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
|
|
542
|
+
<div class="ag-dnd-ghost-label"></div>
|
|
543
|
+
</div>`,ho([m("dragService")],t.prototype,"dragService",void 0),ho([m("environment")],t.prototype,"environment",void 0),ho([m("columnApi")],t.prototype,"columnApi",void 0),ho([m("gridApi")],t.prototype,"gridApi",void 0),ho([k],t.prototype,"init",null),ho([Ne],t.prototype,"clearDragSourceParamsList",null),t=e=ho([Y("dragAndDropService")],t),t}(V);/**
|
|
544
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
545
|
+
* @version v26.2.1
|
|
546
|
+
* @link http://www.ag-grid.com/
|
|
547
|
+
* @license MIT
|
|
548
|
+
*/var Pn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),mr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Dn=function(i){Pn(t,i);function t(e,o,r,n,s,a){var u=i.call(this)||this;return u.cellValueFn=e,u.rowNode=o,u.column=r,u.customGui=n,u.dragStartPixels=s,u.suppressVisibilityChange=a,u.dragSource=null,u}return t.prototype.isCustomGui=function(){return this.customGui!=null},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Te("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new rE(this,this.beans,this.rowNode,this.column):new oE(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,o){this.setTemplateFromElement(e),this.addDragSource(o)},t.prototype.getSelectedCount=function(){var e=this.beans.gridOptionsWrapper.isRowDragMultiRow();if(!e)return 1;var o=this.beans.selectionService.getSelectedNodes();return o.indexOf(this.rowNode)!==-1?o.length:1},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged(),o=this.beans.gridOptionsWrapper.isTreeData();o&&e&&we(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.addDragSource=function(e){var o=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var r={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},n=this.column&&this.column.getColDef().rowDragText;this.dragSource={type:l.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var s=o.getSelectedCount();return n?n(r,s):s===1?o.cellValueFn():s+" rows"},getDragItem:function(){return r},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.addMouseDownListenerIfNeeded(),this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.addMouseDownListenerIfNeeded=function(){var e=this;this.customGui||!this.column||!this.gridOptionsWrapper.isEnableCellTextSelect()||this.addManagedListener(this.getGui(),"mousedown",function(o){o.preventDefault(),e.beans.focusService.setFocusedCell(e.rowNode.rowIndex,e.column,e.rowNode.rowPinned,!0)})},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},mr([m("beans")],t.prototype,"beans",void 0),mr([k],t.prototype,"postConstruct",null),mr([Ne],t.prototype,"removeDragSource",null),t}(se),fc=function(i){Pn(t,i);function t(e,o,r){var n=i.call(this)||this;return n.parent=e,n.rowNode=o,n.column=r,n}return t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var o=!0,r=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=Qi(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0),this.parent.setVisible(o)):(this.parent.setDisplayed(o),this.parent.setVisible(!0))}},t}(V),oE=function(i){Pn(t,i);function t(e,o,r,n){var s=i.call(this,e,r,n)||this;return s.beans=o,s}return t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},mr([k],t.prototype,"postConstruct",null),t}(fc),rE=function(i){Pn(t,i);function t(e,o,r,n){var s=i.call(this,e,r,n)||this;return s.beans=o,s}return t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,_.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),o=e.getRowDragFeature(),r=o&&o.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),s=this.beans.dragAndDropService.hasExternalDropZones(),a=r&&!s||n;this.setDisplayedOrVisible(a)},mr([k],t.prototype,"postConstruct",null),t}(fc);/**
|
|
549
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
550
|
+
* @version v26.2.1
|
|
551
|
+
* @link http://www.ag-grid.com/
|
|
552
|
+
* @license MIT
|
|
553
|
+
*/var nE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),An=function(){return An=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},An.apply(this,arguments)},Cr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gc=function(i){nE(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(e,o,r,n,s,a,u){this.params=u,this.eGui=o,this.eCheckbox=r,this.eExpanded=n,this.eContracted=s,this.comp=e,this.compClass=a;var p=this.isTopLevelFooter(),g=this.isEmbeddedRowMismatch(),y=u.value==null,C=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var E=u.node;if(E.footer){var S=u.colDef&&u.colDef.showRowGroup,b=E.rowGroupColumn&&E.rowGroupColumn.getColId();C=S!==b}}this.cellIsBlank=p?!1:g||y||C,!this.cellIsBlank&&(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter()||this.params.value!=null||this.params.node.level!=-1)return!1;var e=this.params.colDef,o=e==null;if(o||e.showRowGroup===!0)return!0;var r=this.columnModel.getRowGroupColumns();if(!r||r.length===0)return!0;var n=r[0];return n.getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===D.PINNED_LEFT,o=this.params.pinned===D.PINNED_RIGHT,r=!e&&!o;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!o:!r:this.columnModel.isPinningLeft()?!e:!r},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,o=this.params.node;if(this.showingValueForOpenedParent)for(var r=o.parent;r!=null;){if(r.rowGroupColumn&&e.isRowGroupDisplayed(r.rowGroupColumn.getId())){this.displayedGroupNode=r;break}r=r.parent}f(this.displayedGroupNode)&&(this.displayedGroupNode=o)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,o=this.params.column;if(!this.gridOptionsWrapper.isGroupHideOpenParents()){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}var r=e.rowGroupColumn!=null;if(r){var n=e.rowGroupColumn.getId(),s=o.isRowGroupDisplayed(n);if(s){this.showingValueForOpenedParent=!1;return}}var a=e.groupData[o.getId()]!=null;this.showingValueForOpenedParent=a},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),o=this.getInnerCompDetails(e),r=e.valueFormatted,n=e.value,s=r??n;this.comp.setInnerRenderer(o,s)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,o=this.params.column;if(!e)return this.params;var r=o!=null;if(r){var n=o.isRowGroupDisplayed(e.getId());if(!n)return this.params}var s=this.params,a=this.params,u=a.value,p=a.scope,g=a.node,y=this.valueFormatterService.formatValue(e,g,p,u),C=An(An({},s),{valueFormatted:y});return C},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,o="";if(e){var r=Xi(this.params);r.value=this.params.value,typeof e=="function"?o=e(r):typeof e=="string"?o=this.expressionService.evaluate(e,r):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else o="Total "+(this.params.value!=null?this.params.value:"");var n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,o)},t.prototype.getInnerCompDetails=function(e){var o=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var r=this.userComponentFactory.getInnerRendererDetails(e,e),n=function(g){return g&&g.componentClass==o.compClass};if(r&&!n(r))return r;var s=this.displayedGroupNode.rowGroupColumn,a=s?s.getColDef():void 0;if(a){var u=this.userComponentFactory.getCellRendererDetails(a,e);if(u&&!n(u))return u;if(n(u)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer){var p=this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e);return p}}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,ae.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,o=this.isShowRowGroupForThisRow(),r=o&&e!=null&&e>=0,n=r?"("+e+")":"";this.comp.setChildCount(n)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var o=this.params.column,r=o==null||o.isRowGroupDisplayed(e.getId());return r},t.prototype.addExpandAndContract=function(){var e=this.params,o=Te("groupExpanded",this.gridOptionsWrapper,null),r=Te("groupContracted",this.gridOptionsWrapper,null);o&&this.eExpanded.appendChild(o),r&&this.eContracted.appendChild(r);var n=e.eGridCell;!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListener(n,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(n,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,ae.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var s=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,ae.EVENT_ALL_CHILDREN_COUNT_CHANGED,s),this.addManagedListener(this.displayedGroupNode,ae.EVENT_MASTER_CHANGED,s),this.addManagedListener(this.displayedGroupNode,ae.EVENT_HAS_CHILDREN_CHANGED,s)},t.prototype.onExpandClicked=function(e){Et(e)||(Do(e),this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroupNode,o=!e.expanded;e.setExpanded(o)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,o=this.columnModel.isPivotMode()&&e.leafGroup,r=e.isExpandable()&&!e.footer&&!o;if(!r)return!1;var n=this.params.column,s=n!=null&&typeof n.getColDef().showRowGroup=="string";if(s){var a=this.isShowRowGroupForThisRow();return a}return!0},t.prototype.showExpandAndContractIcons=function(){var e=this,o=e.params,r=e.displayedGroupNode,n=e.columnModel,s=o.node,a=this.isExpandable();if(a){var u=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(u),this.comp.setContractedDisplayed(!u)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var p=n.isPivotMode(),g=p&&r.leafGroup,y=a&&!g,C=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",y),this.comp.addOrRemoveCssClass("ag-row-group",y),p?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",g):C||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!y)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.setupIndent=function(){var e=this.params.node,o=this.params.suppressPadding;o||(this.addManagedListener(e,ae.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,o=e.node,r=!!e.colDef,n=this.gridOptionsWrapper.isTreeData(),s=!r||n||e.colDef.showRowGroup===!0,a=s?o.uiLevel:0,u=e.padding>=0;u&&we(function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")},"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+a,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(!(!this.params.fullWidth||!this.params.rowDrag)){var o=new Dn(function(){return e.params.value},this.params.node);this.createManagedBean(o,this.context),this.eGui.insertAdjacentElement("afterbegin",o.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return typeof e=="function"?e(this.params):e===!0},t.prototype.addCheckboxIfNeeded=function(){var e=this,o=this.displayedGroupNode,r=this.isUserWantsSelected()&&!o.footer&&!o.rowPinned&&!o.detail;if(r){var n=new ea;this.getContext().createBean(n),n.init({rowNode:o,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(n)})}this.comp.setCheckboxVisible(r)},t.prototype.onKeyDown=function(e){var o=Gs(e,W.ENTER);if(!(!o||this.params.suppressEnterExpand)){var r=this.params.column&&this.params.column.isCellEditable(this.params.node);r||this.onExpandOrContract()}},t.prototype.onCellDblClicked=function(e){if(!Et(e)){var o=an(this.eExpanded,e)||an(this.eContracted,e);o||this.onExpandOrContract()}},Cr([m("expressionService")],t.prototype,"expressionService",void 0),Cr([m("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Cr([m("columnModel")],t.prototype,"columnModel",void 0),Cr([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Cr([m("gridOptions")],t.prototype,"gridOptions",void 0),t}(V);/**
|
|
554
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
555
|
+
* @version v26.2.1
|
|
556
|
+
* @link http://www.ag-grid.com/
|
|
557
|
+
* @license MIT
|
|
558
|
+
*/var iE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Go=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ta=function(i){iE(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var o=this,r={setInnerRenderer:function(u,p){return o.setRenderDetails(u,p)},setChildCount:function(u){return o.eChildCount.innerHTML=u},addOrRemoveCssClass:function(u,p){return o.addOrRemoveCssClass(u,p)},setContractedDisplayed:function(u){return Ce(o.eContracted,u)},setExpandedDisplayed:function(u){return Ce(o.eExpanded,u)},setCheckboxVisible:function(u){return ee(o.eCheckbox,"ag-invisible",!u)}},n=this.createManagedBean(new gc),s=!e.colDef,a=this.getGui();n.init(r,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),s&&ke(a,"gridcell")},t.prototype.setRenderDetails=function(e,o){var r=this;if(e){var n=e.newAgStackInstance();if(!n)return;n.then(function(s){if(s){var a=function(){return r.context.destroyBean(s)};r.isAlive()?(r.eValue.appendChild(s.getGui()),r.addDestroyFunc(a)):a()}})}else this.eValue.innerText=o},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),i.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE=`<span class="ag-cell-wrapper">
|
|
559
|
+
<span class="ag-group-expanded" ref="eExpanded"></span>
|
|
560
|
+
<span class="ag-group-contracted" ref="eContracted"></span>
|
|
561
|
+
<span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>
|
|
562
|
+
<span class="ag-group-value" ref="eValue"></span>
|
|
563
|
+
<span class="ag-group-child-count" ref="eChildCount"></span>
|
|
564
|
+
</span>`,Go([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Go([x("eExpanded")],t.prototype,"eExpanded",void 0),Go([x("eContracted")],t.prototype,"eContracted",void 0),Go([x("eCheckbox")],t.prototype,"eCheckbox",void 0),Go([x("eValue")],t.prototype,"eValue",void 0),Go([x("eChildCount")],t.prototype,"eChildCount",void 0),t}(se);/**
|
|
565
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
566
|
+
* @version v26.2.1
|
|
567
|
+
* @link http://www.ag-grid.com/
|
|
568
|
+
* @license MIT
|
|
569
|
+
*/var sE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),vc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aE=function(i){sE(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Te("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE=`<div class="ag-loading">
|
|
570
|
+
<span class="ag-loading-icon" ref="eLoadingIcon"></span>
|
|
571
|
+
<span class="ag-loading-text" ref="eLoadingText"></span>
|
|
572
|
+
</div>`,vc([x("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),vc([x("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(se);/**
|
|
573
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
574
|
+
* @version v26.2.1
|
|
575
|
+
* @link http://www.ag-grid.com/
|
|
576
|
+
* @license MIT
|
|
577
|
+
*/var lE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),uE=function(i){lE(t,i);function t(){return i.call(this)||this}return t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(n)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(se);/**
|
|
578
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
579
|
+
* @version v26.2.1
|
|
580
|
+
* @link http://www.ag-grid.com/
|
|
581
|
+
* @license MIT
|
|
582
|
+
*/var pE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),cE=function(i){pE(t,i);function t(){return i.call(this)||this}return t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(n)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(se);/**
|
|
583
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
584
|
+
* @version v26.2.1
|
|
585
|
+
* @link http://www.ag-grid.com/
|
|
586
|
+
* @license MIT
|
|
587
|
+
*/var dE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),hE=function(i){dE(t,i);function t(){return i.call(this,'<div class="ag-tooltip"></div>')||this}return t.prototype.init=function(e){var o=e.value;this.getGui().innerHTML=ft(o)},t}(Mo);/**
|
|
588
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
589
|
+
* @version v26.2.1
|
|
590
|
+
* @link http://www.ag-grid.com/
|
|
591
|
+
* @license MIT
|
|
592
|
+
*/var fE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),oa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yc=function(i){fE(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:T_,agColumnHeader:x_,agColumnGroupHeader:H_,agTextColumnFloatingFilter:sc,agNumberColumnFloatingFilter:L_,agDateColumnFloatingFilter:P_,agReadOnlyFloatingFilter:u_,agAnimateShowChangeCellRenderer:cc,agAnimateSlideCellRenderer:dc,agGroupCellRenderer:ta,agGroupRowRenderer:ta,agLoadingCellRenderer:aE,agCellEditor:On,agTextCellEditor:On,agSelectCellEditor:Zs,agPopupTextCellEditor:pc,agPopupSelectCellEditor:uc,agLargeTextCellEditor:ac,agTextColumnFilter:Sn,agNumberColumnFilter:Xs,agDateColumnFilter:Ys,agLoadingOverlay:uE,agNoRowsOverlay:cE,agTooltipComponent:hE},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComponents={},e.frameworkComponents={},e}return t.prototype.init=function(){var e=this;this.gridOptions.components!=null&&ve(this.gridOptions.components,function(o,r){return e.registerComponent(o,r)}),this.gridOptions.frameworkComponents!=null&&ve(this.gridOptions.frameworkComponents,function(o,r){return e.registerFwComponent(o,r)})},t.prototype.registerDefaultComponent=function(e,o){var r=this.translateIfDeprecated(e);if(this.agGridDefaults[r]){console.error("Trying to overwrite a default component. You should call registerComponent");return}this.agGridDefaults[r]=o},t.prototype.registerComponent=function(e,o){var r=this.translateIfDeprecated(e);if(this.frameworkComponents[r]){console.error("Trying to register a component that you have already registered for frameworks: "+r);return}this.jsComponents[r]=o},t.prototype.registerFwComponent=function(e,o){var r=this.translateIfDeprecated(e);if(this.jsComponents[r]){console.error("Trying to register a component that you have already registered for plain javascript: "+r);return}this.frameworkComponents[r]=o},t.prototype.retrieve=function(e){var o=this.translateIfDeprecated(e),r=this.frameworkComponents[o]||this.getFrameworkOverrides().frameworkComponent(o);if(r)return{componentFromFramework:!0,component:r};var n=this.jsComponents[o];if(n)return{componentFromFramework:!1,component:n};var s=this.agGridDefaults[o];return s?{componentFromFramework:!1,component:s}:(Object.keys(this.agGridDefaults).indexOf(o)<0&&console.warn("AG Grid: Looking for component ["+o+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var o=this.agDeprecatedNames[e];return o!=null?(we(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+o.propertyHolder+":"+e+" to "+o.propertyHolder+":"+o.newComponentName)},"DEPRECATE_COMPONENT_"+e),o.newComponentName):e},oa([m("gridOptions")],t.prototype,"gridOptions",void 0),oa([k],t.prototype,"init",null),t=oa([Y("userComponentRegistry")],t),t}(V);/**
|
|
593
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
594
|
+
* @version v26.2.1
|
|
595
|
+
* @link http://www.ag-grid.com/
|
|
596
|
+
* @license MIT
|
|
597
|
+
*/var gE={propertyName:"dateComponent",isCellRenderer:function(){return!1}},vE={propertyName:"headerComponent",isCellRenderer:function(){return!1}},yE={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},mc={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},mE={propertyName:"cellEditor",isCellRenderer:function(){return!1}},Cc={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},CE={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},wE={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},_E={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},EE={propertyName:"filter",isCellRenderer:function(){return!1}},RE={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},SE={propertyName:"toolPanel",isCellRenderer:function(){return!1}},OE={propertyName:"statusPanel",isCellRenderer:function(){return!1}};/**
|
|
598
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
599
|
+
* @version v26.2.1
|
|
600
|
+
* @link http://www.ag-grid.com/
|
|
601
|
+
* @license MIT
|
|
602
|
+
*/var PE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),xo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wc=function(i){PE(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getHeaderCompDetails=function(e,o){return this.getCompDetails(e,vE,"agColumnHeader",o)},t.prototype.getHeaderGroupCompDetails=function(e){var o=e.columnGroup.getColGroupDef();return this.getCompDetails(o,yE,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e,o,r){return this.getCompDetails(this.gridOptions,{propertyName:o,isCellRenderer:function(){return!0}},r,e)},t.prototype.getInnerRendererDetails=function(e,o){return this.getCompDetails(e,Cc,null,o)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,o){return this.getCompDetails(e,Cc,null,o)},t.prototype.getCellRendererDetails=function(e,o){return this.getCompDetails(e,mc,null,o)},t.prototype.getCellEditorDetails=function(e,o){return this.getCompDetails(e,mE,"agCellEditor",o,!0)},t.prototype.getFilterDetails=function(e,o,r){return this.getCompDetails(e,EE,r,o,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,gE,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,CE,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,wE,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,_E,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,o){return this.getCompDetails(e,mc,null,o)},t.prototype.getFloatingFilterCompDetails=function(e,o,r){return this.getCompDetails(e,RE,r,o)},t.prototype.getToolPanelCompDetails=function(e,o){return this.getCompDetails(e,SE,null,o,!0)},t.prototype.getStatusPanelCompDetails=function(e,o){return this.getCompDetails(e,OE,null,o,!0)},t.prototype.getCompDetails=function(e,o,r,n,s){var a=this;s===void 0&&(s=!1);var u=o.propertyName,p,g,y;if(e){var C=e,E=C[u+"Selector"],S=E?E(n):null;S?(p=S.component,g=S.frameworkComponent,y=S.params):(p=C[u],g=C[u+"Framework"]),p===!0&&(p=void 0)}var b=function(J){var ue=a.userComponentRegistry.retrieve(J);ue?(p=ue.componentFromFramework?void 0:ue.component,g=ue.componentFromFramework?ue.component:void 0):(p=void 0,g=void 0)};if(typeof p=="string"&&b(p),p==null&&g==null&&r!=null&&b(r),p&&!this.agComponentUtils.doesImplementIComponent(p)&&(p=this.agComponentUtils.adaptFunction(u,p)),!p&&!g){if(s){var F=e?e[u]:r,B=F||r;console.error("Could not find component "+B+", did you forget to configure this component?")}return}var M=this.mergeParamsWithApplicationProvidedParams(e,u,n,y),L=p==null,j=p||g;return{componentFromFramework:L,componentClass:j,params:M,type:o,newAgStackInstance:function(J){return a.newAgStackInstance(j,L,M,o,J)}}},t.prototype.newAgStackInstance=function(e,o,r,n,s){var a=n.propertyName,u,p=!o;if(p)u=new e;else{var g=this.componentMetadataProvider.retrieve(a);u=this.frameworkComponentWrapper.wrap(e,g.mandatoryMethodList,g.optionalMethodList,n,s)}var y=this.initComponent(u,r);return y==null?Ke.resolve(u):y.then(function(){return u})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,o,r,n){n===void 0&&(n=null);var s={};rt(s,r);var a=e?e[o+"Params"]:null;if(a!=null)if(typeof a=="function"){var u=a(r);rt(s,u)}else typeof a=="object"&&rt(s,a);return rt(s,n),s},t.prototype.initComponent=function(e,o){if(this.context.createBean(e),e.init!=null)return e.init(o)},xo([m("gridOptions")],t.prototype,"gridOptions",void 0),xo([m("agComponentUtils")],t.prototype,"agComponentUtils",void 0),xo([m("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),xo([m("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),xo([he("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=xo([Y("userComponentFactory")],t),t}(V);/**
|
|
603
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
604
|
+
* @version v26.2.1
|
|
605
|
+
* @link http://www.ag-grid.com/
|
|
606
|
+
* @license MIT
|
|
607
|
+
*/var _c=function(){function i(){}return i.parse=function(t){if(!t)return null;if(t===!0)return{toolPanels:[i.DEFAULT_COLUMN_COMP,i.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if(typeof t=="string")return i.parse([t]);if(Array.isArray(t)){var e=[];return t.forEach(function(r){var n=i.DEFAULT_BY_KEY[r];if(!n){console.warn("ag-grid: the key "+r+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(i.DEFAULT_BY_KEY).join(","));return}e.push(n)}),e.length===0?null:{toolPanels:e,defaultToolPanel:e[0].id}}var o={toolPanels:i.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position};return o},i.parseComponents=function(t){var e=[];return t&&t.forEach(function(o){var r=null;if(typeof o=="string"){var n=i.DEFAULT_BY_KEY[o];if(!n){console.warn("ag-grid: the key "+o+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(i.DEFAULT_BY_KEY).join(","));return}r=n}else r=o;e.push(r)}),e},i.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},i.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},i.DEFAULT_BY_KEY={columns:i.DEFAULT_COLUMN_COMP,filters:i.DEFAULT_FILTER_COMP},i}();/**
|
|
608
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
609
|
+
* @version v26.2.1
|
|
610
|
+
* @link http://www.ag-grid.com/
|
|
611
|
+
* @license MIT
|
|
612
|
+
*/var fo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ec=function(i,t){return function(e,o){t(e,o,i)}},ra=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},DE=25,AE=300,TE=5,bE=5,NE=10;function I(i){return i===!0||i==="true"}function Rc(i){if(typeof i=="number")return i;if(typeof i=="string")return parseInt(i,10)}function FE(i,t){return i>=0?i:t}function Sc(i,t){var e=parseInt(i,10);return ln(e)&&e>0?e:t}var q=function(){function i(){this.propertyEventService=new Gt,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}t=i,i.prototype.agWire=function(e,o){this.gridOptions.api=e,this.gridOptions.columnApi=o,this.checkForDeprecated(),this.checkForViolations()},i.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},i.prototype.init=function(){var e=this;this.gridOptions.suppressPropertyNamesCheck!==!0&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.gridOptions.sideBar!=null&&(this.gridOptions.sideBar=_c.parse(this.gridOptions.sideBar));var o=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),o),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var r=function(s){return"AG Grid: '"+s+"' is not supported on the Server-Side Row Model"};h(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),h(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),h(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"enableRangeSelection"),!this.isEnableRangeSelection()&&(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var n=function(s){e.gridOptions.icons&&e.gridOptions.icons[s]&&console.warn("gridOptions.icons."+s+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};n("radioButtonOff"),n("radioButtonOn"),n("checkboxChecked"),n("checkboxUnchecked"),n("checkboxIndeterminate"),this.getScrollbarWidth()},i.prototype.checkColumnDefProperties=function(){var e=this;this.gridOptions.columnDefs!=null&&this.gridOptions.columnDefs.forEach(function(o){var r=Object.getOwnPropertyNames(o),n=ra(hs.ALL_PROPERTIES,hs.FRAMEWORK_PROPERTIES);e.checkProperties(r,n,n,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")})},i.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),o=ra(St.ALL_PROPERTIES,St.FRAMEWORK_PROPERTIES,U(_).map(function(n){return it.getCallbackForEvent(n)})),r=ra(o,["api","columnApi"]);this.checkProperties(e,r,o,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},i.prototype.checkProperties=function(e,o,r,n,s){var a=Wp(e,o,r);ve(a,function(u,p){console.warn("ag-grid: invalid "+n+" property '"+u+"' did you mean any of these: "+p.slice(0,8).join(", "))}),Object.keys(a).length>0&&console.warn("ag-grid: to see all the valid "+n+" properties please check: "+s)},i.prototype.getDomDataKey=function(){return this.domDataKey},i.prototype.getDomData=function(e,o){var r=e[this.getDomDataKey()];return r?r[o]:void 0},i.prototype.setDomData=function(e,o,r){var n=this.getDomDataKey(),s=e[n];f(s)&&(s={},e[n]=s),s[o]=r},i.prototype.isRowSelection=function(){return this.gridOptions.rowSelection==="single"||this.gridOptions.rowSelection==="multiple"},i.prototype.isSuppressRowDeselection=function(){return I(this.gridOptions.suppressRowDeselection)},i.prototype.isRowSelectionMulti=function(){return this.gridOptions.rowSelection==="multiple"},i.prototype.isRowMultiSelectWithClick=function(){return I(this.gridOptions.rowMultiSelectWithClick)},i.prototype.getContext=function(){return this.gridOptions.context},i.prototype.isPivotMode=function(){return I(this.gridOptions.pivotMode)},i.prototype.isSuppressExpandablePivotGroups=function(){return I(this.gridOptions.suppressExpandablePivotGroups)},i.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},i.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},i.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===D.ROW_MODEL_TYPE_INFINITE},i.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===D.ROW_MODEL_TYPE_VIEWPORT},i.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===D.ROW_MODEL_TYPE_SERVER_SIDE},i.prototype.isRowModelDefault=function(){return f(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===D.ROW_MODEL_TYPE_CLIENT_SIDE},i.prototype.isFullRowEdit=function(){return this.gridOptions.editType==="fullRow"},i.prototype.isSuppressFocusAfterRefresh=function(){return I(this.gridOptions.suppressFocusAfterRefresh)},i.prototype.isSuppressBrowserResizeObserver=function(){return I(this.gridOptions.suppressBrowserResizeObserver)},i.prototype.isSuppressMaintainUnsortedOrder=function(){return I(this.gridOptions.suppressMaintainUnsortedOrder)},i.prototype.isSuppressClearOnFillReduction=function(){return I(this.gridOptions.suppressClearOnFillReduction)},i.prototype.isShowToolPanel=function(){return I(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},i.prototype.getSideBar=function(){return this.gridOptions.sideBar},i.prototype.isSuppressTouch=function(){return I(this.gridOptions.suppressTouch)},i.prototype.isMaintainColumnOrder=function(){return I(this.gridOptions.maintainColumnOrder)},i.prototype.isSuppressRowTransform=function(){return I(this.gridOptions.suppressRowTransform)},i.prototype.isSuppressColumnStateEvents=function(){return I(this.gridOptions.suppressColumnStateEvents)},i.prototype.isAllowDragFromColumnsToolPanel=function(){return I(this.gridOptions.allowDragFromColumnsToolPanel)},i.prototype.useAsyncEvents=function(){return!I(this.gridOptions.suppressAsyncEvents)},i.prototype.isEnableCellChangeFlash=function(){return I(this.gridOptions.enableCellChangeFlash)},i.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},i.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},i.prototype.isGroupSelectsChildren=function(){var e=I(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("AG Grid: groupSelectsChildren does not work with tree data"),!1):e},i.prototype.isSuppressRowHoverHighlight=function(){return I(this.gridOptions.suppressRowHoverHighlight)},i.prototype.isColumnHoverHighlight=function(){return I(this.gridOptions.columnHoverHighlight)},i.prototype.isGroupSelectsFiltered=function(){return I(this.gridOptions.groupSelectsFiltered)},i.prototype.isGroupHideOpenParents=function(){return I(this.gridOptions.groupHideOpenParents)},i.prototype.isGroupMaintainOrder=function(){return I(this.gridOptions.groupMaintainOrder)},i.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},i.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):I(this.gridOptions.groupHideOpenParents)},i.prototype.isGroupUseEntireRow=function(e){return e?!1:this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType):!1},i.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType):!1;return e?!0:this.gridOptions.treeDataDisplayType?this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType):!1},i.prototype.isGroupRemoveSingleChildren=function(){return I(this.gridOptions.groupRemoveSingleChildren)},i.prototype.isGroupRemoveLowestSingleChildren=function(){return I(this.gridOptions.groupRemoveLowestSingleChildren)},i.prototype.isGroupIncludeFooter=function(){return I(this.gridOptions.groupIncludeFooter)},i.prototype.isGroupIncludeTotalFooter=function(){return I(this.gridOptions.groupIncludeTotalFooter)},i.prototype.isGroupSuppressBlankHeader=function(){return I(this.gridOptions.groupSuppressBlankHeader)},i.prototype.isSuppressRowClickSelection=function(){return I(this.gridOptions.suppressRowClickSelection)},i.prototype.isSuppressCellSelection=function(){return I(this.gridOptions.suppressCellSelection)},i.prototype.isSuppressMultiSort=function(){return I(this.gridOptions.suppressMultiSort)},i.prototype.isMultiSortKeyCtrl=function(){return this.gridOptions.multiSortKey==="ctrl"},i.prototype.isPivotSuppressAutoColumn=function(){return I(this.gridOptions.pivotSuppressAutoColumn)},i.prototype.isSuppressDragLeaveHidesColumns=function(){return I(this.gridOptions.suppressDragLeaveHidesColumns)},i.prototype.isSuppressScrollOnNewData=function(){return I(this.gridOptions.suppressScrollOnNewData)},i.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return I(this.gridOptions.suppressScrollWhenPopupsAreOpen)},i.prototype.isRowDragEntireRow=function(){return I(this.gridOptions.rowDragEntireRow)},i.prototype.isSuppressRowDrag=function(){return I(this.gridOptions.suppressRowDrag)},i.prototype.isRowDragManaged=function(){return I(this.gridOptions.rowDragManaged)},i.prototype.isSuppressMoveWhenRowDragging=function(){return I(this.gridOptions.suppressMoveWhenRowDragging)},i.prototype.isRowDragMultiRow=function(){return I(this.gridOptions.rowDragMultiRow)},i.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||D.DOM_LAYOUT_NORMAL,o=[D.DOM_LAYOUT_PRINT,D.DOM_LAYOUT_AUTO_HEIGHT,D.DOM_LAYOUT_NORMAL];return o.indexOf(e)===-1?(we(function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+D.DOM_LAYOUT_NORMAL+", "+D.DOM_LAYOUT_AUTO_HEIGHT+" and "+D.DOM_LAYOUT_PRINT)},"warn about dom layout values"),D.DOM_LAYOUT_NORMAL):e},i.prototype.isSuppressHorizontalScroll=function(){return I(this.gridOptions.suppressHorizontalScroll)},i.prototype.isSuppressMaxRenderedRowRestriction=function(){return I(this.gridOptions.suppressMaxRenderedRowRestriction)},i.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return I(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},i.prototype.isAlwaysShowHorizontalScroll=function(){return I(this.gridOptions.alwaysShowHorizontalScroll)},i.prototype.isAlwaysShowVerticalScroll=function(){return I(this.gridOptions.alwaysShowVerticalScroll)},i.prototype.isDebounceVerticalScrollbar=function(){return I(this.gridOptions.debounceVerticalScrollbar)},i.prototype.isSuppressLoadingOverlay=function(){return I(this.gridOptions.suppressLoadingOverlay)},i.prototype.isSuppressNoRowsOverlay=function(){return I(this.gridOptions.suppressNoRowsOverlay)},i.prototype.isSuppressFieldDotNotation=function(){return I(this.gridOptions.suppressFieldDotNotation)},i.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},i.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},i.prototype.isFunctionsPassive=function(){return I(this.gridOptions.functionsPassive)},i.prototype.isSuppressChangeDetection=function(){return I(this.gridOptions.suppressChangeDetection)},i.prototype.isSuppressAnimationFrame=function(){return I(this.gridOptions.suppressAnimationFrame)},i.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},i.prototype.isCacheQuickFilter=function(){return I(this.gridOptions.cacheQuickFilter)},i.prototype.isUnSortIcon=function(){return I(this.gridOptions.unSortIcon)},i.prototype.isSuppressMenuHide=function(){return I(this.gridOptions.suppressMenuHide)},i.prototype.isEnterMovesDownAfterEdit=function(){return I(this.gridOptions.enterMovesDownAfterEdit)},i.prototype.isEnterMovesDown=function(){return I(this.gridOptions.enterMovesDown)},i.prototype.isUndoRedoCellEditing=function(){return I(this.gridOptions.undoRedoCellEditing)},i.prototype.getUndoRedoCellEditingLimit=function(){return Rc(this.gridOptions.undoRedoCellEditingLimit)},i.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},i.prototype.getRowClass=function(){return this.gridOptions.rowClass},i.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},i.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},i.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},i.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},i.prototype.getServerSideStoreParamsFunc=function(){return this.gridOptions.getServerSideStoreParams},i.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},i.prototype.getPopupParent=function(){return this.gridOptions.popupParent},i.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},i.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},i.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},i.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},i.prototype.getIsApplyServerSideTransactionFunc=function(){return this.gridOptions.isApplyServerSideTransaction},i.prototype.getDefaultGroupOrderComparator=function(){return this.gridOptions.defaultGroupOrderComparator},i.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},i.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},i.prototype.isEmbedFullWidthRows=function(){return I(this.gridOptions.embedFullWidthRows)||I(this.gridOptions.deprecatedEmbedFullWidthRows)},i.prototype.isDetailRowAutoHeight=function(){return I(this.gridOptions.detailRowAutoHeight)},i.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},i.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},i.prototype.getApi=function(){return this.gridOptions.api},i.prototype.getColumnApi=function(){return this.gridOptions.columnApi},i.prototype.isImmutableData=function(){return I(this.gridOptions.immutableData)},i.prototype.isEnsureDomOrder=function(){return I(this.gridOptions.ensureDomOrder)},i.prototype.isEnableCharts=function(){return I(this.gridOptions.enableCharts)?oe.assertRegistered(l.ModuleNames.GridChartsModule,"enableCharts"):!1},i.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},i.prototype.isSingleClickEdit=function(){return I(this.gridOptions.singleClickEdit)},i.prototype.isSuppressClickEdit=function(){return I(this.gridOptions.suppressClickEdit)},i.prototype.isStopEditingWhenCellsLoseFocus=function(){return I(this.gridOptions.stopEditingWhenCellsLoseFocus)},i.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},i.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},i.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},i.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},i.prototype.getPaginationPageSize=function(){return Rc(this.gridOptions.paginationPageSize)},i.prototype.isPaginateChildRows=function(){var e=this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren();return e?!0:I(this.gridOptions.paginateChildRows)},i.prototype.getCacheBlockSize=function(){return Sc(this.gridOptions.cacheBlockSize)},i.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},i.prototype.isPurgeClosedRowNodes=function(){return I(this.gridOptions.purgeClosedRowNodes)},i.prototype.isSuppressPaginationPanel=function(){return I(this.gridOptions.suppressPaginationPanel)},i.prototype.getRowData=function(){return this.gridOptions.rowData},i.prototype.isEnableRtl=function(){return I(this.gridOptions.enableRtl)},i.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},i.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},i.prototype.isAngularCompileRows=function(){return I(this.gridOptions.angularCompileRows)},i.prototype.isAngularCompileFilters=function(){return I(this.gridOptions.angularCompileFilters)},i.prototype.isDebug=function(){return I(this.gridOptions.debug)},i.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},i.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},i.prototype.getDatasource=function(){return this.gridOptions.datasource},i.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},i.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},i.prototype.isAccentedSort=function(){return I(this.gridOptions.accentedSort)},i.prototype.isEnableBrowserTooltips=function(){return I(this.gridOptions.enableBrowserTooltips)},i.prototype.isEnableCellExpressions=function(){return I(this.gridOptions.enableCellExpressions)},i.prototype.isEnableGroupEdit=function(){return I(this.gridOptions.enableGroupEdit)},i.prototype.isSuppressMiddleClickScrolls=function(){return I(this.gridOptions.suppressMiddleClickScrolls)},i.prototype.isPreventDefaultOnContextMenu=function(){return I(this.gridOptions.preventDefaultOnContextMenu)},i.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return I(this.gridOptions.suppressPreventDefaultOnMouseWheel)},i.prototype.isSuppressColumnVirtualisation=function(){return I(this.gridOptions.suppressColumnVirtualisation)},i.prototype.isSuppressContextMenu=function(){return I(this.gridOptions.suppressContextMenu)},i.prototype.isAllowContextMenuWithControlKey=function(){return I(this.gridOptions.allowContextMenuWithControlKey)},i.prototype.isSuppressCopyRowsToClipboard=function(){return I(this.gridOptions.suppressCopyRowsToClipboard)},i.prototype.isCopyHeadersToClipboard=function(){return I(this.gridOptions.copyHeadersToClipboard)},i.prototype.isSuppressClipboardPaste=function(){return I(this.gridOptions.suppressClipboardPaste)},i.prototype.isSuppressLastEmptyLineOnPaste=function(){return I(this.gridOptions.suppressLastEmptyLineOnPaste)},i.prototype.isPagination=function(){return I(this.gridOptions.pagination)},i.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return I(this.gridOptions.suppressEnterpriseResetOnNewColumns)},i.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},i.prototype.getAsyncTransactionWaitMillis=function(){return h(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:D.BATCH_WAIT_MILLIS},i.prototype.isSuppressMovableColumns=function(){return I(this.gridOptions.suppressMovableColumns)},i.prototype.isAnimateRows=function(){return this.isEnsureDomOrder()?!1:I(this.gridOptions.animateRows)},i.prototype.isSuppressColumnMoveAnimation=function(){return I(this.gridOptions.suppressColumnMoveAnimation)},i.prototype.isSuppressAggFuncInHeader=function(){return I(this.gridOptions.suppressAggFuncInHeader)},i.prototype.isSuppressAggAtRootLevel=function(){return I(this.gridOptions.suppressAggAtRootLevel)},i.prototype.isSuppressAggFilteredOnly=function(){return I(this.gridOptions.suppressAggFilteredOnly)},i.prototype.isShowOpenedGroup=function(){return I(this.gridOptions.showOpenedGroup)},i.prototype.isReactUi=function(){return I(this.gridOptions.reactUi)},i.prototype.isEnableRangeSelection=function(){return oe.isRegistered(l.ModuleNames.RangeSelectionModule)&&I(this.gridOptions.enableRangeSelection)},i.prototype.isEnableRangeHandle=function(){return I(this.gridOptions.enableRangeHandle)},i.prototype.isEnableFillHandle=function(){return I(this.gridOptions.enableFillHandle)},i.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?e!=="x"&&e!=="y"&&e!=="xy"?(we(function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")},"warn invalid fill direction"),"xy"):e:"xy"},i.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},i.prototype.isSuppressMultiRangeSelection=function(){return I(this.gridOptions.suppressMultiRangeSelection)},i.prototype.isPaginationAutoPageSize=function(){return I(this.gridOptions.paginationAutoPageSize)},i.prototype.isRememberGroupStateWhenNewData=function(){return I(this.gridOptions.rememberGroupStateWhenNewData)},i.prototype.getIcons=function(){return this.gridOptions.icons},i.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},i.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},i.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},i.prototype.isMasterDetail=function(){var e=I(this.gridOptions.masterDetail);return e?oe.assertRegistered(l.ModuleNames.MasterDetailModule,"masterDetail"):!1},i.prototype.isKeepDetailRows=function(){return I(this.gridOptions.keepDetailRows)},i.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return h(e)&&e>0?this.gridOptions.keepDetailRowsCount:NE},i.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},i.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},i.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},i.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},i.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},i.prototype.isSuppressAutoSize=function(){return I(this.gridOptions.suppressAutoSize)},i.prototype.isEnableCellTextSelection=function(){return I(this.gridOptions.enableCellTextSelection)},i.prototype.isSuppressParentsInRowNodes=function(){return I(this.gridOptions.suppressParentsInRowNodes)},i.prototype.isSuppressClipboardApi=function(){return I(this.gridOptions.suppressClipboardApi)},i.prototype.isFunctionsReadOnly=function(){return I(this.gridOptions.functionsReadOnly)},i.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},i.prototype.isEnableCellTextSelect=function(){return I(this.gridOptions.enableCellTextSelection)},i.prototype.isEnableOldSetFilterModel=function(){return I(this.gridOptions.enableOldSetFilterModel)},i.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},i.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},i.prototype.getDefaultExportParams=function(e){if(this.gridOptions.defaultExportParams)return console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+ip(e)+"ExportParams`'"),e==="csv"?this.gridOptions.defaultExportParams:this.gridOptions.defaultExportParams;if(e==="csv"&&this.gridOptions.defaultCsvExportParams)return this.gridOptions.defaultCsvExportParams;if(e==="excel"&&this.gridOptions.defaultExcelExportParams)return this.gridOptions.defaultExcelExportParams},i.prototype.isSuppressCsvExport=function(){return I(this.gridOptions.suppressCsvExport)},i.prototype.isAllowShowChangeAfterFilter=function(){return I(this.gridOptions.allowShowChangeAfterFilter)},i.prototype.isSuppressExcelExport=function(){return I(this.gridOptions.suppressExcelExport)},i.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return I(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},i.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},i.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},i.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.gridOptions.isServerSideGroupOpenByDefault},i.prototype.getIsGroupOpenByDefaultFunc=function(){return this.gridOptions.isGroupOpenByDefault},i.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},i.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},i.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},i.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},i.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},i.prototype.getNavigateToNextHeaderFunc=function(){return this.gridOptions.navigateToNextHeader},i.prototype.getTabToNextHeaderFunc=function(){return this.gridOptions.tabToNextHeader},i.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},i.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},i.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},i.prototype.isTreeData=function(){var e=I(this.gridOptions.treeData);return e?oe.assertRegistered(l.ModuleNames.RowGroupingModule,"Tree Data"):!1},i.prototype.isValueCache=function(){return I(this.gridOptions.valueCache)},i.prototype.isValueCacheNeverExpires=function(){return I(this.gridOptions.valueCacheNeverExpires)},i.prototype.isDeltaSort=function(){return I(this.gridOptions.deltaSort)},i.prototype.isAggregateOnlyChangedColumns=function(){return I(this.gridOptions.aggregateOnlyChangedColumns)},i.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},i.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},i.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},i.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},i.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},i.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},i.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},i.prototype.getViewportRowModelPageSize=function(){return Sc(this.gridOptions.viewportRowModelPageSize,TE)},i.prototype.getViewportRowModelBufferSize=function(){return FE(this.gridOptions.viewportRowModelBufferSize,bE)},i.prototype.isServerSideSortingAlwaysResets=function(){return I(this.gridOptions.serverSideSortingAlwaysResets)},i.prototype.isServerSideFilteringAlwaysResets=function(){return I(this.gridOptions.serverSideFilteringAlwaysResets)},i.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},i.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},i.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},i.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},i.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},i.prototype.getClipboardDeliminator=function(){return h(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:" "},i.prototype.setProperty=function(e,o,r){r===void 0&&(r=!1);var n=this.gridOptions,s=n[e];if(r||s!==o){n[e]=o;var a={type:e,currentValue:o,previousValue:s};this.propertyEventService.dispatchEvent(a)}},i.prototype.addEventListener=function(e,o){this.propertyEventService.addEventListener(e,o)},i.prototype.removeEventListener=function(e,o){this.propertyEventService.removeEventListener(e,o)},i.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},i.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return e!=null&&e>=0?e:20},i.prototype.getHeaderHeight=function(){return typeof this.gridOptions.headerHeight=="number"?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},i.prototype.getFloatingFiltersHeight=function(){return typeof this.gridOptions.floatingFiltersHeight=="number"?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},i.prototype.getGroupHeaderHeight=function(){return typeof this.gridOptions.groupHeaderHeight=="number"?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},i.prototype.getPivotHeaderHeight=function(){return typeof this.gridOptions.pivotHeaderHeight=="number"?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},i.prototype.getPivotGroupHeaderHeight=function(){return typeof this.gridOptions.pivotGroupHeaderHeight=="number"?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},i.prototype.isExternalFilterPresent=function(){return typeof this.gridOptions.isExternalFilterPresent=="function"?this.gridOptions.isExternalFilterPresent():!1},i.prototype.doesExternalFilterPass=function(e){return typeof this.gridOptions.doesExternalFilterPass=="function"?this.gridOptions.doesExternalFilterPass(e):!1},i.prototype.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return h(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},i.prototype.isTooltipMouseTrack=function(){return I(this.gridOptions.tooltipMouseTrack)},i.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return I(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},i.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&h(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&h(e)?e:document},i.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(h(e)&&e>t.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var o=this.getFromTheme(null,"headerCellMinWidth");return h(o)?Math.max(o,t.MIN_COL_WIDTH):t.MIN_COL_WIDTH},i.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},i.prototype.getColWidth=function(){return typeof this.gridOptions.colWidth!="number"||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},i.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return typeof e=="number"?e<0&&(we(function(){return console.warn("AG Grid: rowBuffer should not be negative")},"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=D.ROW_BUFFER_SIZE,e},i.prototype.getRowBufferInPixels=function(){var e=this.getRowBuffer(),o=this.getRowHeightAsNumber();return e*o},i.prototype.getScrollbarWidth=function(){if(this.scrollbarWidth==null){var e=typeof this.gridOptions.scrollbarWidth=="number"&&this.gridOptions.scrollbarWidth>=0,o=e?this.gridOptions.scrollbarWidth:gp();o!=null&&(this.scrollbarWidth=o,this.eventService.dispatchEvent({type:_.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},i.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.enableOldSetFilterModel&&console.warn("AG Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),e.floatingFilter&&(console.warn("AG Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),e.defaultColDef||(e.defaultColDef={}),e.defaultColDef.floatingFilter==null&&(e.defaultColDef.floatingFilter=!0)),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var o=function(s,a,u){e[s]!=null&&(console.warn("ag-grid: since version "+u+", '"+s+"' is deprecated / renamed, please use the new property name '"+a+"' instead."),e[a]==null&&(e[a]=e[s]))};if(o("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),o("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),o("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var r=e.groupRowRendererParams;e.groupRowInnerRenderer&&(r.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(r.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(r.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn(`AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in
|
|
613
|
+
future versions of AG Grid. If you need this to be set for every column use the defaultColDef property.`),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var n=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+n+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `defaultGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.")},i.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},i.prototype.treeDataViolations=function(){this.isRowModelDefault()&&f(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(f(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),f(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},i.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this.gridOptions.localeText;return function(o,r){return e&&e[o]?e[o]:r}},i.prototype.globalEventHandler=function(e,o){if(!this.destroyed){var r=it.getCallbackForEvent(e);typeof this.gridOptions[r]=="function"&&this.gridOptions[r](o)}},i.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||f(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},i.prototype.getRowHeightForNode=function(e,o,r){if(o===void 0&&(o=!1),r==null&&(r=this.getDefaultRowHeight()),typeof this.gridOptions.getRowHeight=="function"){if(o)return{height:r,estimated:!0};var n={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},s=this.gridOptions.getRowHeight(n);if(this.isNumeric(s))return s===0&&we(function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")},"invalidRowHeight"),{height:Math.max(1,s),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:AE,estimated:!1};var a=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:r;return{height:a,estimated:!1}},i.prototype.isDynamicRowHeight=function(){return typeof this.gridOptions.getRowHeight=="function"},i.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},i.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},i.prototype.isNumeric=function(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)},i.prototype.getFromTheme=function(e,o){var r=this.environment.getTheme().theme;return r&&r.indexOf("ag-theme")===0?this.environment.getSassVariable(r,o):e},i.prototype.getDefaultRowHeight=function(){return this.getFromTheme(DE,"rowHeight")},i.prototype.matchesGroupDisplayType=function(e,o){var r=["groupRows","multipleColumns","custom","singleColumn"];return r.indexOf(o)<0?(console.warn("AG Grid: '"+o+"' is not a valid groupDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):o===e},i.prototype.matchesTreeDataDisplayType=function(e,o){var r=["auto","custom"];return r.indexOf(o)<0?(console.warn("AG Grid: '"+o+"' is not a valid treeDataDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):o===e};var t;return i.MIN_COL_WIDTH=10,i.PROP_HEADER_HEIGHT="headerHeight",i.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",i.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",i.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",i.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",i.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",i.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",i.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",i.PROP_TAB_TO_NEXT_CELL="tabToNextCell",i.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",i.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",i.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",i.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",i.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",i.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",i.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",i.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",i.PROP_GET_ROW_CLASS="getRowClass",i.PROP_GET_ROW_STYLE="getRowStyle",i.PROP_GET_ROW_HEIGHT="getRowHeight",i.PROP_POPUP_PARENT="popupParent",i.PROP_DOM_LAYOUT="domLayout",i.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",i.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",i.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",i.PROP_GET_CHILD_COUNT="getChildCount",i.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",i.PROP_GET_ROW_NODE_ID="getRowNodeId",i.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",i.PROP_IS_ROW_SELECTABLE="isRowSelectable",i.PROP_IS_ROW_MASTER="isRowMaster",i.PROP_POST_SORT="postSort",i.PROP_GET_DOCUMENT="getDocument",i.PROP_POST_PROCESS_POPUP="postProcessPopup",i.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",i.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",i.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",i.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",i.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",i.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",i.PROP_SEND_TO_CLIPBOARD="sendToClipboard",i.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",i.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",i.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",i.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",i.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",i.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",i.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",i.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",fo([m("gridOptions")],i.prototype,"gridOptions",void 0),fo([m("eventService")],i.prototype,"eventService",void 0),fo([m("environment")],i.prototype,"environment",void 0),fo([Ec(0,xe("gridApi")),Ec(1,xe("columnApi"))],i.prototype,"agWire",null),fo([Ne],i.prototype,"destroy",null),fo([k],i.prototype,"init",null),i=t=fo([Y("gridOptionsWrapper")],i),i}();/**
|
|
614
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
615
|
+
* @version v26.2.1
|
|
616
|
+
* @link http://www.ag-grid.com/
|
|
617
|
+
* @license MIT
|
|
618
|
+
*/var Tn=function(){function i(t,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return i.prototype.setInactive=function(){this.active=!1},i.prototype.isActive=function(){return this.active},i.prototype.depthFirstSearchChangedPath=function(t,e){if(t.children)for(var o=0;o<t.children.length;o++)this.depthFirstSearchChangedPath(t.children[o],e);e(t.rowNode)},i.prototype.depthFirstSearchEverything=function(t,e,o){if(t.childrenAfterGroup)for(var r=0;r<t.childrenAfterGroup.length;r++){var n=t.childrenAfterGroup[r];n.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[r],e,o):o&&e(n)}e(t)},i.prototype.forEachChangedNodeDepthFirst=function(t,e){e===void 0&&(e=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,e)},i.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},i.prototype.createPathItems=function(t){for(var e=t,o=0;!this.mapToItems[e.id];){var r={rowNode:e,children:null};this.mapToItems[e.id]=r,o++,e=e.parent}return o},i.prototype.populateColumnsMap=function(t,e){var o=this;if(!(!this.keepingColumns||!e))for(var r=t;r;)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),e.forEach(function(n){return o.nodeIdsToColumns[r.id][n.getId()]=!0}),r=r.parent},i.prototype.linkPathItems=function(t,e){for(var o=t,r=0;r<e;r++){var n=this.mapToItems[o.id],s=this.mapToItems[o.parent.id];s.children||(s.children=[]),s.children.push(n),o=o.parent}},i.prototype.addParentNode=function(t,e){if(!(!t||t.isRowPinned())){var o=this.createPathItems(t);this.linkPathItems(t,o),this.populateColumnsMap(t,e)}},i.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},i.prototype.getValueColumnsForNode=function(t,e){if(!this.keepingColumns)return e;var o=this.nodeIdsToColumns[t.id],r=e.filter(function(n){return o[n.getId()]});return r},i.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[t.id],r=e.filter(function(n){return!o[n.getId()]});return r},i}();/**
|
|
619
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
620
|
+
* @version v26.2.1
|
|
621
|
+
* @link http://www.ag-grid.com/
|
|
622
|
+
* @license MIT
|
|
623
|
+
*/var IE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Vo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},LE=function(i,t){return function(e,o){t(e,o,i)}},Oc=function(i){IE(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,_.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,_.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return ve(this.selectedNodes,function(o,r){r&&e.push(r)}),e},t.prototype.getSelectedRows=function(){var e=[];return ve(this.selectedNodes,function(o,r){r&&r.data&&e.push(r.data)}),e},t.prototype.removeGroupsFromSelection=function(){var e=this;ve(this.selectedNodes,function(o,r){r&&r.group&&(e.selectedNodes[r.id]=void 0)})},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE){var o=this.rowModel,r=o.getRootNode();e||(e=new Tn(!0,r),e.setInactive()),e.forEachChangedNodeDepthFirst(function(n){n!==r&&n.calculateSelectedFromChildren()})}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var o=this,r={},n=0;return ve(this.selectedNodes,function(s,a){if(a&&a.id!==e.id){var u=o.selectedNodes[a.id];n+=u.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),o.groupSelectsChildren&&a.parent&&(r[a.parent.id]=a.parent)}}),ve(r,function(s,a){a.calculateSelectedFromChildren()}),n},t.prototype.onRowSelected=function(e){var o=e.node;this.groupSelectsChildren&&o.group||(o.isSelected()?this.selectedNodes[o.id]=o:this.selectedNodes[o.id]=void 0)},t.prototype.syncInRowNode=function(e,o){this.syncInOldRowNode(e,o),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,o){var r=h(o)&&e.id!==o.id;if(r&&o){var n=o.id,s=this.selectedNodes[n]==e;s&&(this.selectedNodes[o.id]=o)}},t.prototype.syncInNewRowNode=function(e){h(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()!==D.ROW_MODEL_TYPE_CLIENT_SIDE){console.warn("getBestCostNodeSelection is only available when using normal row model");return}var e=this.rowModel,o=e.getTopLevelNodes();if(o===null){console.warn("selectAll not available doing rowModel=virtual");return}var r=[];function n(s){for(var a=0,u=s.length;a<u;a++){var p=s[a];if(p.isSelected())r.push(p);else{var g=p;g.group&&g.children&&n(g.children)}}}return n(o),r},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return ve(this.selectedNodes,function(o,r){r&&e++}),e===0},t.prototype.deselectAllRowNodes=function(e){e===void 0&&(e=!1);var o=function(a){return a.selectThisNode(!1)},r=this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!r){console.error("AG Grid: selecting just filtered only works with In Memory Row Model");return}var n=this.rowModel;n.forEachNodeAfterFilter(o)}else ve(this.selectedNodes,function(a,u){u&&o(u)}),this.reset();r&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var s={type:_.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)},t.prototype.selectAllRowNodes=function(e){if(e===void 0&&(e=!1),this.rowModel.getType()!==D.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var o=this.rowModel,r=function(s){return s.selectThisNode(!0)};e?o.forEachNodeAfterFilter(r):o.forEachNode(r),this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:_.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.selectNode=function(e,o){e&&e.setSelectedParams({newValue:!0,clearSelection:!o})},t.prototype.deselectIndex=function(e){var o=this.rowModel.getRow(e);this.deselectNode(o)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,o){var r=this.rowModel.getRow(e);this.selectNode(r,o)},Vo([m("rowModel")],t.prototype,"rowModel",void 0),Vo([m("columnApi")],t.prototype,"columnApi",void 0),Vo([m("gridApi")],t.prototype,"gridApi",void 0),Vo([LE(0,xe("loggerFactory"))],t.prototype,"setBeans",null),Vo([k],t.prototype,"init",null),t=Vo([Y("selectionService")],t),t}(V);/**
|
|
624
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
625
|
+
* @version v26.2.1
|
|
626
|
+
* @link http://www.ag-grid.com/
|
|
627
|
+
* @license MIT
|
|
628
|
+
*/var na=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Pc=function(){function i(){}return i.prototype.sizeColumnsToFit=function(t){typeof t>"u"&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},i.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},i.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},i.prototype.getOriginalColumnGroup=function(t){return this.columnModel.getOriginalColumnGroup(t)},i.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},i.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},i.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},i.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},i.prototype.getColumnState=function(){return this.columnModel.getColumnState()},i.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},i.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},i.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},i.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},i.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},i.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},i.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},i.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},i.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},i.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},i.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},i.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},i.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},i.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},i.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},i.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},i.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},i.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},i.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},i.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},i.prototype.moveColumn=function(t,e){typeof t=="number"?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(t,e,"api")):this.columnModel.moveColumn(t,e,"api")},i.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},i.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},i.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},i.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},i.prototype.setColumnWidth=function(t,e,o,r){o===void 0&&(o=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,o,r)},i.prototype.setColumnWidths=function(t,e,o){e===void 0&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,o)},i.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},i.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},i.prototype.getSecondaryPivotColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},i.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},i.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},i.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},i.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},i.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},i.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},i.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},i.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},i.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},i.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},i.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},i.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},i.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},i.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},i.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},i.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},i.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},i.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},i.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},i.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},i.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},i.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},i.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},i.prototype.autoSizeColumns=function(t,e){return this.columnModel.autoSizeColumns(t,e,"api")},i.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},i.prototype.setSecondaryColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},i.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},i.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},i.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(X.removeAllReferences.bind(window,this,"Column API"),100)},i.prototype.columnGroupOpened=function(t,e){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,e)},i.prototype.hideColumns=function(t,e){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(t,!e,"api")},i.prototype.hideColumn=function(t,e){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(t,!e,"api")},i.prototype.setState=function(t){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},i.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},i.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},i.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},i.prototype.removeAggregationColumn=function(t){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(t,"api")},i.prototype.removeAggregationColumns=function(t){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(t,"api")},i.prototype.addAggregationColumn=function(t){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(t,"api")},i.prototype.addAggregationColumns=function(t){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(t,"api")},i.prototype.setColumnAggFunction=function(t,e){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(t,e,"api")},i.prototype.getDisplayNameForCol=function(t){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},i.prototype.setColumnState=function(t){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:t,applyOrder:!0},"api")},na([m("columnModel")],i.prototype,"columnModel",void 0),na([Ne],i.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),i=na([Y("columnApi")],i),i}();/**
|
|
629
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
630
|
+
* @version v26.2.1
|
|
631
|
+
* @link http://www.ag-grid.com/
|
|
632
|
+
* @license MIT
|
|
633
|
+
*/(function(i){i[i.FILL=0]="FILL",i[i.RANGE=1]="RANGE"})(l.SelectionHandleType||(l.SelectionHandleType={})),function(i){i[i.VALUE=0]="VALUE",i[i.DIMENSION=1]="DIMENSION"}(l.CellRangeType||(l.CellRangeType={}));/**
|
|
634
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
635
|
+
* @version v26.2.1
|
|
636
|
+
* @link http://www.ag-grid.com/
|
|
637
|
+
* @license MIT
|
|
638
|
+
*/var wr="ag-cell-range-selected",ME="ag-cell-range-chart",GE="ag-cell-range-single-cell",xE="ag-cell-range-chart-category",VE="ag-cell-range-handle",HE="ag-cell-range-top",WE="ag-cell-range-right",BE="ag-cell-range-bottom",kE="ag-cell-range-left",UE=function(){function i(t,e){this.beans=t,this.cellCtrl=e}return i.prototype.setComp=function(t){this.cellComp=t,this.onRangeSelectionChanged()},i.prototype.onRangeSelectionChanged=function(){this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(wr,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass(wr+"-1",this.rangeCount===1),this.cellComp.addOrRemoveCssClass(wr+"-2",this.rangeCount===2),this.cellComp.addOrRemoveCssClass(wr+"-3",this.rangeCount===3),this.cellComp.addOrRemoveCssClass(wr+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(ME,this.hasChartRange),this.cellComp.setAriaSelected(this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(GE,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()},i.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.top,r=!e&&t.right,n=!e&&t.bottom,s=!e&&t.left;this.cellComp.addOrRemoveCssClass(HE,o),this.cellComp.addOrRemoveCssClass(WE,r),this.cellComp.addOrRemoveCssClass(BE,n),this.cellComp.addOrRemoveCssClass(kE,s)},i.prototype.isSingleCell=function(){var t=this.beans.rangeService;return this.rangeCount===1&&t&&!t.isMoreThanOneCell()},i.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(o){return ot([l.CellRangeType.DIMENSION,l.CellRangeType.VALUE],o.type)})},i.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},i.prototype.getRangeBorders=function(){var t=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),o=!1,r=!1,n=!1,s=!1,a=this.cellCtrl.getCellPosition().column,u=this.beans,p=u.rangeService,g=u.columnModel,y,C;e?(y=g.getDisplayedColAfter(a),C=g.getDisplayedColBefore(a)):(y=g.getDisplayedColBefore(a),C=g.getDisplayedColAfter(a));var E=p.getCellRanges().filter(function(M){return p.isCellInSpecificRange(t.cellCtrl.getCellPosition(),M)});y||(s=!0),C||(r=!0);for(var S=0;S<E.length&&!(o&&r&&n&&s);S++){var b=E[S],F=p.getRangeStartRow(b),B=p.getRangeEndRow(b);!o&&this.beans.rowPositionUtils.sameRow(F,this.cellCtrl.getCellPosition())&&(o=!0),!n&&this.beans.rowPositionUtils.sameRow(B,this.cellCtrl.getCellPosition())&&(n=!0),!s&&y&&b.columns.indexOf(y)<0&&(s=!0),!r&&C&&b.columns.indexOf(C)<0&&(r=!0)}return{top:o,right:r,bottom:n,left:s}},i.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(VE,!!this.selectionHandle)}},i.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,o=t.rangeService,r=o.getCellRanges(),n=r.length;if(this.rangeCount<1||n<1)return!1;var s=le(r),a=this.cellCtrl.getCellPosition(),u=e.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),p=e.isEnableRangeHandle(),g=n===1&&!this.cellCtrl.isEditing()&&(u||p);if(this.hasChartRange){var y=r[0].type===l.CellRangeType.DIMENSION,C=y&&o.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass(xE,C),g=s.type===l.CellRangeType.VALUE}return g&&s.endRow!=null&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},i.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,o=t.rangeService,r=le(o.getCellRanges()).type,n=e.isEnableFillHandle()&&f(r),s=n?l.SelectionHandleType.FILL:l.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==s&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(s)),this.selectionHandle.refresh(this.cellCtrl)},i.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},i}();/**
|
|
639
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
640
|
+
* @version v26.2.1
|
|
641
|
+
* @link http://www.ag-grid.com/
|
|
642
|
+
* @license MIT
|
|
643
|
+
*/var jE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),zE=function(i){jE(t,i);function t(e,o){var r=i.call(this)||this;return r.cellCtrl=e,r.beans=o,r.column=e.getColumn(),r.rowNode=e.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.cellComp=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ce(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.cellComp){var e=this.getCellWidth();this.cellComp.setWidth(e+"px")}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,o){return e+o.getActualWidth()},0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),o=[];if(e===1)o.push(this.column);else for(var r=this.column,n=this.column.getPinned(),s=0;r&&s<e&&(o.push(r),r=this.beans.columnModel.getDisplayedColAfter(r),!(!r||f(r)||n!==r.getPinned()));s++);return o},t.prototype.onLeftChanged=function(){if(this.cellComp){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.cellComp.setLeft(e+"px")}},t.prototype.getCellLeft=function(){var e;return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?e=le(this.colsSpanning):e=this.column,e.getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===D.PINNED_LEFT)return e;var o=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(this.column.getPinned()===D.PINNED_RIGHT){var r=this.beans.columnModel.getBodyContainerWidth();return o+r+(e||0)}return o+(e||0)},t.prototype.applyRowSpan=function(){if(this.rowSpan!==1){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber(),o=e*this.rowSpan;this.cellComp.setHeight(o+"px"),this.cellComp.setZIndex("1")}},t.prototype.destroy=function(){i.prototype.destroy.call(this)},t}(V);/**
|
|
644
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
645
|
+
* @version v26.2.1
|
|
646
|
+
* @link http://www.ag-grid.com/
|
|
647
|
+
* @license MIT
|
|
648
|
+
*/var $E=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),KE=function(i){$E(t,i);function t(e,o){var r=i.call(this)||this;return r.staticClasses=[],r.cellCtrl=e,r.beans=o,r.column=e.getColumn(),r.rowNode=e.getRowNode(),r}return t.prototype.setComp=function(e,o){this.cellComp=e,this.scope=o,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,o=this.column.getColDef(),r={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(o.cellClassRules,r,function(n){return e.cellComp.addOrRemoveCssClass(n,!0)},function(n){return e.cellComp.addOrRemoveCssClass(n,!1)})},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var o;if(typeof e.cellStyle=="function"){var r={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},n=e.cellStyle;o=n(r)}else o=e.cellStyle;this.cellComp.setUserStyles(o)}},t.prototype.applyClassesFromColDef=function(){var e=this,o=this.column.getColDef(),r={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach(function(n){return e.cellComp.addOrRemoveCssClass(n,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(o,r),this.staticClasses.length&&this.staticClasses.forEach(function(n){return e.cellComp.addOrRemoveCssClass(n,!0)})},t.prototype.destroy=function(){i.prototype.destroy.call(this)},t}(V);/**
|
|
649
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
650
|
+
* @version v26.2.1
|
|
651
|
+
* @link http://www.ag-grid.com/
|
|
652
|
+
* @license MIT
|
|
653
|
+
*/var YE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ia=function(i){YE(t,i);function t(e,o){var r=i.call(this)||this;return r.ctrl=e,r.beans=o,r}return t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(this.tooltipSanatised!=null?this.tooltipSanatised:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue(),this.tooltipSanatised=ft(this.tooltip)},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(this.genericTooltipFeature==null){var o={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Ws(o),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(this.tooltipSanatised!=null?this.tooltipSanatised:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,o=e.getColumn?e.getColumn():void 0,r=e.getColDef?e.getColDef():void 0,n=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:r,column:o,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:n,data:n?n.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){i.prototype.destroy.call(this)},t}(V);/**
|
|
654
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
655
|
+
* @version v26.2.1
|
|
656
|
+
* @link http://www.ag-grid.com/
|
|
657
|
+
* @license MIT
|
|
658
|
+
*/var ne=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},sa=function(){function i(){}return i.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},ne([m("resizeObserverService")],i.prototype,"resizeObserverService",void 0),ne([m("paginationProxy")],i.prototype,"paginationProxy",void 0),ne([m("context")],i.prototype,"context",void 0),ne([m("columnApi")],i.prototype,"columnApi",void 0),ne([m("gridApi")],i.prototype,"gridApi",void 0),ne([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),ne([m("expressionService")],i.prototype,"expressionService",void 0),ne([m("rowRenderer")],i.prototype,"rowRenderer",void 0),ne([m("$compile")],i.prototype,"$compile",void 0),ne([m("templateService")],i.prototype,"templateService",void 0),ne([m("valueService")],i.prototype,"valueService",void 0),ne([m("eventService")],i.prototype,"eventService",void 0),ne([m("columnModel")],i.prototype,"columnModel",void 0),ne([m("headerNavigationService")],i.prototype,"headerNavigationService",void 0),ne([m("navigationService")],i.prototype,"navigationService",void 0),ne([m("columnAnimationService")],i.prototype,"columnAnimationService",void 0),ne([he("rangeService")],i.prototype,"rangeService",void 0),ne([m("focusService")],i.prototype,"focusService",void 0),ne([he("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),ne([m("popupService")],i.prototype,"popupService",void 0),ne([m("valueFormatterService")],i.prototype,"valueFormatterService",void 0),ne([m("stylingService")],i.prototype,"stylingService",void 0),ne([m("columnHoverService")],i.prototype,"columnHoverService",void 0),ne([m("userComponentFactory")],i.prototype,"userComponentFactory",void 0),ne([m("userComponentRegistry")],i.prototype,"userComponentRegistry",void 0),ne([m("animationFrameService")],i.prototype,"animationFrameService",void 0),ne([m("dragAndDropService")],i.prototype,"dragAndDropService",void 0),ne([m("sortController")],i.prototype,"sortController",void 0),ne([m("filterManager")],i.prototype,"filterManager",void 0),ne([m("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),ne([m("frameworkOverrides")],i.prototype,"frameworkOverrides",void 0),ne([m("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),ne([m("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),ne([m("selectionService")],i.prototype,"selectionService",void 0),ne([he("selectionHandleFactory")],i.prototype,"selectionHandleFactory",void 0),ne([m("rowCssClassCalculator")],i.prototype,"rowCssClassCalculator",void 0),ne([m("rowModel")],i.prototype,"rowModel",void 0),ne([m("ctrlsService")],i.prototype,"ctrlsService",void 0),ne([m("ctrlsFactory")],i.prototype,"ctrlsFactory",void 0),ne([m("agStackComponentsRegistry")],i.prototype,"agStackComponentsRegistry",void 0),ne([m("valueCache")],i.prototype,"valueCache",void 0),ne([m("rowNodeEventThrottle")],i.prototype,"rowNodeEventThrottle",void 0),ne([k],i.prototype,"postConstruct",null),i=ne([Y("beans")],i),i}();/**
|
|
659
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
660
|
+
* @version v26.2.1
|
|
661
|
+
* @link http://www.ag-grid.com/
|
|
662
|
+
* @license MIT
|
|
663
|
+
*/var qE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),XE=function(i){qE(t,i);function t(e,o,r){var n=i.call(this)||this;return n.cellCtrl=e,n.beans=o,n.column=r,n}return t.prototype.onMouseEvent=function(e,o){if(!Et(o))switch(e){case"click":this.onCellClicked(o);break;case"mousedown":case"touchstart":this.onMouseDown(o);break;case"dblclick":this.onCellDoubleClicked(o);break;case"mouseout":this.onMouseOut(o);break;case"mouseover":this.onMouseOver(o);break}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}var o=this.beans,r=o.eventService,n=o.gridOptionsWrapper,s=this.cellCtrl.createEvent(e,_.EVENT_CELL_CLICKED);r.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout(function(){return a.onCellClicked(s)},0);var u=(n.isSingleClickEdit()||a.singleClickEdit)&&!n.isSuppressClickEdit();u&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!bo()||rs("dblclick"))return!1;var e=new Date().getTime(),o=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,o},t.prototype.onCellDoubleClicked=function(e){var o=this.column.getColDef(),r=this.cellCtrl.createEvent(e,_.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(r),typeof o.onCellDoubleClicked=="function"&&window.setTimeout(function(){return o.onCellDoubleClicked(r)},0);var n=!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit();n&&this.cellCtrl.startRowOrCellEdit()},t.prototype.onMouseDown=function(e){var o=e.ctrlKey,r=e.metaKey,n=e.shiftKey,s=e.target,a=this.beans,u=a.eventService,p=a.rangeService;if(!this.isRightClickInExistingRange(e)){var g=p&&p.getCellRanges().length!=0;if(!n||!g){var y=(st()||un())&&!this.cellCtrl.isEditing()&&!wp(s);this.cellCtrl.focusCell(y)}if(n&&g&&e.preventDefault(),!this.containsWidget(s)){if(p){var C=this.cellCtrl.getCellPosition();if(n)p.extendLatestRangeToCell(C);else{var E=o||r;p.setRangeToCell(C,E)}}u.dispatchEvent(this.cellCtrl.createEvent(e,_.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var o=this.beans.rangeService;if(o){var r=o.isCellInAnyRange(this.cellCtrl.getCellPosition());if(r&&e.button===2)return!0}return!1},t.prototype.containsWidget=function(e){return hn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var o=this.cellCtrl.createEvent(e,_.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(o),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var o=this.cellCtrl.createEvent(e,_.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(o),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var o=this.cellCtrl.getGui(),r=o.contains(e.target),n=o.contains(e.relatedTarget);return r&&n},t.prototype.destroy=function(){},t}(sa);/**
|
|
664
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
665
|
+
* @version v26.2.1
|
|
666
|
+
* @link http://www.ag-grid.com/
|
|
667
|
+
* @license MIT
|
|
668
|
+
*/var QE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),JE=function(i){QE(t,i);function t(e,o,r,n,s,a){var u=i.call(this)||this;return u.cellCtrl=e,u.beans=o,u.column=r,u.rowNode=n,u.rowCtrl=a,u}return t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var o=e.which||e.keyCode;switch(o){case W.ENTER:this.onEnterKeyDown(e);break;case W.F2:this.onF2KeyDown();break;case W.ESCAPE:this.onEscapeKeyDown();break;case W.TAB:this.onTabKeyDown(e);break;case W.BACKSPACE:case W.DELETE:this.onBackspaceOrDeleteKeyPressed(o);break;case W.DOWN:case W.UP:case W.RIGHT:case W.LEFT:this.onNavigationKeyPressed(e,o);break}},t.prototype.onNavigationKeyPressed=function(e,o){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(o):this.beans.navigationService.navigateToNextCell(e,o,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var o=this.beans.rangeService.extendLatestRangeInDirection(e);o&&this.beans.navigationService.ensureCellVisible(o)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,W.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(W.ENTER),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(W.F2)},t.prototype.onEscapeKeyDown=function(){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){var o=Ao(e),r=o!==this.eGui;if(!(r||this.cellCtrl.isEditing())){var n=String.fromCharCode(e.charCode);n===" "?this.onSpaceKeyPressed(e):zp(e)&&(this.cellCtrl.startRowOrCellEdit(null,n),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var o=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&o.isRowSelection()){var r=this.rowNode.isSelected(),n=!r;if(n||!o.isSuppressRowDeselection()){var s=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),a=this.rowNode.setSelectedParams({newValue:n,rangeSelect:e.shiftKey,groupSelectsFiltered:s});r===void 0&&a===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:s})}}e.preventDefault()},t.prototype.destroy=function(){},t}(V);/**
|
|
669
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
670
|
+
* @version v26.2.1
|
|
671
|
+
* @link http://www.ag-grid.com/
|
|
672
|
+
* @license MIT
|
|
673
|
+
*/var ZE=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),eR=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},tR=function(i){ZE(t,i);function t(e,o,r,n){var s=i.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return s.rowNode=e,s.column=o,s.beans=r,s.eCell=n,s}return t.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(Te("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",function(o){o.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var o=this,r=this.column.getColDef().dndSourceOnRowDrag,n=st();n||e.dataTransfer.setDragImage(this.eCell,0,0);var s=function(){try{var a=JSON.stringify(o.rowNode.data);n?e.dataTransfer.setData("text",a):(e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a))}catch{}};r?r({rowNode:this.rowNode,dragEvent:e}):s()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},eR([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
674
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
675
|
+
* @version v26.2.1
|
|
676
|
+
* @link http://www.ag-grid.com/
|
|
677
|
+
* @license MIT
|
|
678
|
+
*/var oR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),bn=function(){return bn=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bn.apply(this,arguments)},rR="ag-cell",nR="ag-cell-auto-height",iR="ag-cell-normal-height",sR="ag-cell-focus",aR="ag-cell-first-right-pinned",lR="ag-cell-last-left-pinned",Dc="ag-cell-not-inline-editing",uR="ag-cell-inline-editing",pR="ag-cell-popup-editing",cR="ag-column-hover",dR="ag-cell-wrap-text",hR=0,Yt=function(i){oR(t,i);function t(e,o,r,n){var s=i.call(this)||this;return s.suppressRefreshCell=!1,s.column=e,s.rowNode=o,s.beans=r,s.rowCtrl=n,s.instanceId=e.getId()+"-"+hR++,s.createCellPosition(),s.addFeatures(),s}return t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new zE(this,this.beans),this.addDestroyFunc(function(){return e.cellPositionFeature.destroy()}),this.cellCustomStyleFeature=new KE(this,this.beans),this.addDestroyFunc(function(){return e.cellCustomStyleFeature.destroy()}),this.cellMouseListenerFeature=new XE(this,this.beans,this.column),this.addDestroyFunc(function(){return e.cellMouseListenerFeature.destroy()}),this.cellKeyboardListenerFeature=new JE(this,this.beans,this.column,this.rowNode,this.scope,this.rowCtrl),this.addDestroyFunc(function(){return e.cellKeyboardListenerFeature.destroy()});var o=this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection();o&&(this.cellRangeFeature=new UE(this.beans,this),this.addDestroyFunc(function(){return e.cellRangeFeature.destroy()})),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,o=function(){var n=e.column.getColDef(),s=e.rowNode.data;if(n.tooltipField&&h(s))return on(s,n.tooltipField,e.column.isTooltipFieldContainsDots());var a=n.tooltipValueGetter;return a?a({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},r={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:o,getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new ia(r,this.beans),this.addDestroyFunc(function(){return e.tooltipFeature.destroy()})},t.prototype.setComp=function(e,o,r,n,s){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.scope=o,this.eGui=r,this.printLayout=n,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAriaExpanded(),this.setupAutoHeight();var a=ft(this.column.getId()),u=this.beans.columnModel.getAriaColumnIndex(this.column);this.cellComp.setTabIndex(-1),this.cellComp.setRole("gridcell"),this.cellComp.setAriaColIndex(u),this.cellComp.setColId(a),this.cellComp.setUnselectable(this.beans.gridOptionsWrapper.isEnableCellTextSelection()?null:"on"),this.cellPositionFeature.setComp(e),this.cellCustomStyleFeature.setComp(e,o),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e),s&&this.isCellEditable()?this.startEditing():this.showValue()},t.prototype.setupAutoHeight=function(){var e=this;if(this.column.getColDef().autoHeight){var o=function(s){var a=e.beans.gridOptionsWrapper.getDocument();if((!a||!a.contains(e.eGui))&&s<5){e.beans.frameworkOverrides.setTimeout(function(){return o(s++)},0);return}var u=e.eGui.offsetHeight;e.rowNode.setRowAutoHeight(u,e.column)},r=function(){return o(0)};r();var n=this.beans.resizeObserverService.observeResize(this.eGui,r);this.addDestroyFunc(function(){n(),e.rowNode.setRowAutoHeight(void 0,e.column)})}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){e===void 0&&(e=!1);var o=this.valueFormatted!=null?this.valueFormatted:this.value,r=this.createCellRendererParams(),n=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),r);this.cellComp.setRenderDetails(n,o,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource);var o=this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.getColDef().autoHeight==!0;this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag),this.cellComp.setForceWrapper(o)},t.prototype.isIncludeControl=function(e){var o=this.rowNode.rowPinned!=null,r=typeof e=="function",n=o?!1:r||e===!0;return n},t.prototype.setupAriaExpanded=function(){var e=this,o=this.column.getColDef();if(this.rowNode.isExpandable()){var r=o.showRowGroup,n=this.rowNode.rowGroupColumn,s=r===!0,a=n&&n.getColId()===r,u=s||a;if(u){var p=function(){e.cellComp.setAriaExpanded(!!e.rowNode.expanded)};this.addManagedListener(this.rowNode,ae.EVENT_EXPANDED_CHANGED,p),p()}}},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),o=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),r=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),n=this.includeDndSource!=this.isIncludeControl(e.dndSource);return o||r||n},t.prototype.startEditing=function(e,o,r){if(e===void 0&&(e=null),o===void 0&&(o=null),r===void 0&&(r=!1),!(!this.isCellEditable()||this.editing)){var n=this.createCellEditorParams(e,o,r),s=this.column.getColDef(),a=this.beans.userComponentFactory.getCellEditorDetails(s,n),u=!!s.cellEditorPopup,p=s.cellEditorPopupPosition;this.setEditing(!0,u),this.cellComp.setEditDetails(a,u,p);var g=this.createEvent(null,_.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(g)}},t.prototype.setEditing=function(e,o){o===void 0&&(o=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=o,this.setInlineEditingClass())},t.prototype.stopRowOrCellEdit=function(e){e===void 0&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var o={newValueExists:!1};if(e)return o;var r=this.cellComp.getCellEditor();if(!r)return o;var n=r.isCancelAfterEnd&&r.isCancelAfterEnd();if(n)return o;var s=r.getValue();return{newValue:s,newValueExists:!0}},t.prototype.saveNewValue=function(e,o){o!==e&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,o),this.suppressRefreshCell=!1)},t.prototype.stopEditing=function(e){if(e===void 0&&(e=!1),!!this.editing){var o=this.takeValueFromCellEditor(e),r=o.newValue,n=o.newValueExists,s=this.getValueFromValueService();n&&this.saveNewValue(s,r),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(s,r)}},t.prototype.dispatchEditingStoppedEvent=function(e,o){var r=bn(bn({},this.createEvent(null,_.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:o});this.beans.eventService.dispatchEvent(r)},t.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,o=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass(uR,e),this.cellComp.addOrRemoveCssClass(Dc,!e),this.cellComp.addOrRemoveCssClass(pR,o),this.rowCtrl.setInlineEditingCss(this.editing)}},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,o,r){var n={value:this.getValueFromValueService(),keyPress:e,charPress:o,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:r,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)};return this.scope&&(n.$scope=this.scope),n},t.prototype.createCellRendererParams=function(){var e=this,o=function(n,s){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(n,s)},r={value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(n){return e.beans.valueService.setValue(e.rowNode,e.column,n)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(n,s,a,u){return e.registerRowDragger(n,s,u)},addRowCompListener:o};return this.scope&&(r.$scope=this.scope),r},t.prototype.parseValue=function(e){var o=this.column.getColDef(),r={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:o,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},n=o.valueParser;return h(n)?this.beans.expressionService.evaluate(n,r):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){var o=e.column===this.column;o&&this.refreshCell({})},t.prototype.refreshCell=function(e){if(!(this.suppressRefreshCell||this.editing)){var o=this.column.getColDef(),r=e!=null&&!!e.newData,n=e!=null&&!!e.suppressFlash||!!o.suppressCellFlash,s=o.field==null&&o.valueGetter==null&&o.showRowGroup==null,a=e&&e.forceRefresh||s||r,u=this.updateAndFormatValue(),p=a||u;if(p){this.showValue(r);var g=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering(),y=!n&&!g&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||o.enableCellChangeFlash);y&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){e===void 0&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){var e=this.beans.gridOptionsWrapper.isFullRowEdit();if(!e){var o=this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit();o&&this.beans.navigationService.navigateToNextCell(null,W.DOWN,this.getCellPosition(),!1)}},t.prototype.flashCell=function(e){var o=e&&e.flashDelay,r=e&&e.fadeDelay;this.animateCell("data-changed",o,r)},t.prototype.animateCell=function(e,o,r){var n=this,s="ag-cell-"+e,a="ag-cell-"+e+"-animation",u=this.beans.gridOptionsWrapper;o||(o=u.getCellFlashDelay()),h(r)||(r=u.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(s,!0),this.cellComp.addOrRemoveCssClass(a,!1),window.setTimeout(function(){n.cellComp.addOrRemoveCssClass(s,!1),n.cellComp.addOrRemoveCssClass(a,!0),n.cellComp.setTransition("background-color "+r+"ms"),window.setTimeout(function(){n.cellComp.addOrRemoveCssClass(a,!1),n.cellComp.setTransition("transition")},r)},o)},t.prototype.onFlashCells=function(e){var o=this.beans.cellPositionUtils.createId(this.getCellPosition()),r=e.cells[o];r&&this.animateCell("highlight")},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var o=this.callValueFormatter(e);return o??e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e)},t.prototype.updateAndFormatValue=function(e){e===void 0&&(e=!1);var o=this.value,r=this.valueFormatted;this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value);var n=e?!0:!this.valuesAreEqual(o,this.value)||this.valueFormatted!=r;return n},t.prototype.valuesAreEqual=function(e,o){var r=this.column.getColDef();return r.equals?r.equals(e,o):e===o},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),o=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,r=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),n=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),s=o&&r&&!n,a=this.beans.valueService.getValue(this.column,this.rowNode,!1,s);return a},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_CTRL,null)})},t.prototype.createEvent=function(e,o){var r={type:o,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex};return this.scope&&(r.$scope=this.scope),r},t.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},t.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},t.prototype.onMouseEvent=function(e,o){this.cellMouseListenerFeature.onMouseEvent(e,o)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){this.cellPositionFeature.onLeftChanged(),this.refreshAriaIndex()},t.prototype.refreshAriaIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);this.cellComp.setAriaColIndex(e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,o){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,o,this):this.startEditing(e,o,!0)},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return this.cellRangeFeature!=null},t.prototype.focusCell=function(e){e===void 0&&(e=!1),this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(aR,e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(lR,e)}},t.prototype.onCellFocused=function(e){if(this.cellComp){var o=this.beans.focusService.isCellFocused(this.cellPosition);if(this.gow.isSuppressCellSelection()||this.cellComp.addOrRemoveCssClass(sR,o),o&&e&&e.forceBrowserFocus){var r=this.cellComp.getFocusableElement();r.focus(),(!document.activeElement||document.activeElement===document.body)&&r.focus()}var n=this.beans.gridOptionsWrapper.isFullRowEdit();!o&&!n&&this.editing&&this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(rR,!0),this.cellComp.addOrRemoveCssClass(Dc,!0);var e=this.column.getColDef().autoHeight==!0;this.cellComp.addOrRemoveCssClass(nR,e),this.cellComp.addOrRemoveCssClass(iR,!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(cR,e)}},t.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(dR,e)},t.prototype.dispatchCellContextMenuEvent=function(e){var o=this.column.getColDef(),r=this.createEvent(e,_.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(r),o.onCellContextMenu&&window.setTimeout(function(){return o.onCellContextMenu(r)},0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){i.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new ea;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new tR(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,o,r){var n=this;if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,o);return}var s=this.createRowDragComp(e,o,r);s&&(this.customRowDragComp=s,this.addDestroyFunc(function(){return n.beans.context.destroyBean(s)}))},t.prototype.createRowDragComp=function(e,o,r){var n=this,s=this.beans.gridOptionsWrapper.isPagination(),a=this.beans.gridOptionsWrapper.isRowDragManaged(),u=this.beans.gridOptionsWrapper.isRowModelDefault();if(a){if(!u){we(function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");return}if(s){we(function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging");return}}var p=new Dn(function(){return n.value},this.rowNode,this.column,e,o,r);return this.beans.context.createBean(p),p},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(V);/**
|
|
679
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
680
|
+
* @version v26.2.1
|
|
681
|
+
* @link http://www.ag-grid.com/
|
|
682
|
+
* @license MIT
|
|
683
|
+
*/var aa=function(){return aa=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},aa.apply(this,arguments)},fR=function(){function i(){}return i.createChildScopeOrNull=function(t,e,o){var r=o.isAngularCompileRows();if(!r)return null;var n=e.$new();n.data=aa({},t.data),n.rowNode=t,n.context=o.getContext();var s=function(){n.$destroy(),n.data=null,n.rowNode=null,n.context=null};return{scope:n,scopeDestroyFunc:s}},i}();/**
|
|
684
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
685
|
+
* @version v26.2.1
|
|
686
|
+
* @link http://www.ag-grid.com/
|
|
687
|
+
* @license MIT
|
|
688
|
+
*/var gR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),vR=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},Me;(function(i){i.Normal="Normal",i.FullWidth="FullWidth",i.FullWidthLoading="FullWidthLoading",i.FullWidthGroup="FullWidthGroup",i.FullWidthDetail="FullWidthDetail"})(Me||(Me={}));var yR=Rt([[Me.FullWidthLoading,"agLoadingCellRenderer"],[Me.FullWidthGroup,"agGroupRowRenderer"],[Me.FullWidthDetail,"agDetailCellRenderer"]]),mR=Rt([[Me.FullWidth,"fullWidthCellRenderer"],[Me.FullWidthLoading,"loadingCellRenderer"],[Me.FullWidthGroup,"groupRowRenderer"],[Me.FullWidthDetail,"detailCellRenderer"]]),CR=0,qt=function(i){gR(t,i);function t(e,o,r,n,s,a){var u=i.call(this)||this;return u.allRowGuis=[],u.active=!0,u.centerCellCtrls={list:[],map:{}},u.leftCellCtrls={list:[],map:{}},u.rightCellCtrls={list:[],map:{}},u.lastMouseDownOnDragger=!1,u.updateColumnListsPending=!1,u.parentScope=e,u.beans=r,u.rowNode=o,u.paginationPage=u.beans.paginationProxy.getCurrentPage(),u.useAnimationFrameForCreate=s,u.printLayout=a,u.instanceId=o.id+"-"+CR++,u.setAnimateFlags(n),u.rowFocused=u.beans.focusService.isRowFocused(u.rowNode.rowIndex,u.rowNode.rowPinned),u.setupAngular1Scope(),u.rowLevel=u.beans.rowCssClassCalculator.calculateRowLevel(u.rowNode),u.setRowType(),u.addListeners(),u.setInitialRowTop(),u}return t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,o,r){var n={rowComp:e,element:o,pinned:r};this.allRowGuis.push(n),r===D.PINNED_LEFT?this.leftGui=n:r===D.PINNED_RIGHT?this.rightGui=n:this.isFullWidth()&&!this.beans.gridOptionsWrapper.isEmbedFullWidthRows()?this.fullWidthGui=n:this.centerGui=n;var s=this.leftGui!=null&&this.rightGui!=null&&this.centerGui!=null,a=this.fullWidthGui!=null;(s||a)&&this.initialiseRowComps()},t.prototype.isCacheable=function(){return this.rowType===Me.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},t.prototype.setCached=function(e){var o=e?"none":void 0;this.allRowGuis.forEach(function(r){return r.rowComp.setDisplay(o)})},t.prototype.initialiseRowComps=function(){var e=this,o=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&es(this.onTopChanged.bind(this)),this.fadeRowIn&&es(function(){e.allRowGuis.forEach(function(a){return a.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})});var r=this.getRowBusinessKey(),n=ft(this.rowNode.id),s=ft(r);this.allRowGuis.forEach(function(a){var u=a.rowComp;u.setRole("row");var p=e.getInitialRowClasses(a.pinned);p.forEach(function(g){return u.addOrRemoveCssClass(g,!0)}),e.rowNode.group&&u.setAriaExpanded(e.rowNode.expanded==!0),n!=null&&u.setRowId(n),s!=null&&u.setRowBusinessKey(s),e.isFullWidth()&&u.setTabIndex(-1),o.setDomData(a.element,t.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc(function(){return o.setDomData(a.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,a.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(a.element),e.isFullWidth()&&e.setupFullWidth(a),o.isRowDragEntireRow()&&e.addRowDraggerToRow(a),e.beans.animationFrameService.addDestroyTask(function(){e.isAlive()&&a.rowComp.addOrRemoveCssClass("ag-after-created",!0)})}),this.executeProcessRowPostCreateFunc()},t.prototype.addRowDraggerToRow=function(e){var o=this.beans.gridOptionsWrapper;if(o.isEnableRangeSelection()){we(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");return}var r=new Dn(function(){return"1 row"},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(r,this.beans.context)},t.prototype.getFullWidthCellRendererType=function(){return mR.get(this.rowType)},t.prototype.getFullWidthCellRendererName=function(){return yR.get(this.rowType)},t.prototype.setupFullWidth=function(e){var o=this.createFullWidthParams(e.element,e.pinned),r=this.getFullWidthCellRendererType(),n=this.getFullWidthCellRendererName(),s=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o,r,n);if(s)e.rowComp.showFullWidth(s);else{var a=oe.isRegistered(l.ModuleNames.MasterDetailModule);n==="agDetailCellRenderer"&&!a?console.warn("AG Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"):console.error("AG Grid: fullWidthCellRenderer "+n+" not found")}},t.prototype.getScope=function(){return this.scope},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.setupAngular1Scope=function(){var e=fR.createChildScopeOrNull(this.rowNode,this.parentScope,this.beans.gridOptionsWrapper);e&&(this.scope=e.scope,this.addDestroyFunc(e.scopeDestroyFunc))},t.prototype.getCellElement=function(e){var o=this.getCellCtrl(e);return o?o.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();if(e){var o={eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};e(o)}},t.prototype.setRowType=function(){var e=this.rowNode.stub,o=this.rowNode.isFullWidthCell(),r=this.beans.doingMasterDetail&&this.rowNode.detail,n=this.beans.columnModel.isPivotMode(),s=!!this.rowNode.group&&!this.rowNode.footer,a=s&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(n);e?this.rowType=Me.FullWidthLoading:r?this.rowType=Me.FullWidthDetail:o?this.rowType=Me.FullWidth:a?this.rowType=Me.FullWidthGroup:this.rowType=Me.Normal},t.prototype.updateColumnLists=function(e){var o=this;if(e===void 0&&(e=!1),!this.isFullWidth()){var r=e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout;if(r){this.updateColumnListsImpl();return}this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){o.active&&o.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,o,r){var n=this;r===void 0&&(r=null);var s={list:[],map:{}},a=function(u,p){s.list.push(p),s.map[u]=p};return o.forEach(function(u){var p=u.getInstanceId(),g=e.map[p];g||(g=new Yt(u,n.rowNode,n.beans,n)),a(p,g)}),e.list.forEach(function(u){var p=s.map[u.getColumn().getInstanceId()]!=null;if(!p){var g=!n.isCellEligibleToBeRemoved(u,r);if(g){a(u.getColumn().getInstanceId(),u);return}u.destroy()}}),s},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var o=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var r=o.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r);var n=o.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,n,D.PINNED_LEFT);var s=o.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,s,D.PINNED_RIGHT)}this.allRowGuis.forEach(function(a){var u=a.pinned===D.PINNED_LEFT?e.leftCellCtrls:a.pinned===D.PINNED_RIGHT?e.rightCellCtrls:e.centerCellCtrls;a.rowComp.setCellCtrls(u.list)})},t.prototype.isCellEligibleToBeRemoved=function(e,o){var r=!0,n=!1,s=e.getColumn();if(s.getPinned()!=o)return r;var a=e.isEditing(),u=this.beans.focusService.isCellFocused(e.getCellPosition()),p=a||u;if(p){var g=e.getColumn(),y=this.beans.columnModel.getAllDisplayedColumns(),C=y.indexOf(g)>=0;return C?n:r}return r},t.prototype.setAnimateFlags=function(e){if(e){var o=h(this.rowNode.oldRowTop);this.slideRowIn=o,this.fadeRowIn=!o}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Me.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,o=function(p,g){if(!p)return!0;var y=p.rowComp.getFullWidthCellRenderer();if(!y||!y.refresh)return!1;var C=e.createFullWidthParams(p.element,g),E=y.refresh(C);return E},r=o(this.fullWidthGui,null),n=o(this.centerGui,null),s=o(this.leftGui,D.PINNED_LEFT),a=o(this.rightGui,D.PINNED_RIGHT),u=r&&n&&s&&a;return u},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,ae.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,ae.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,_.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,_.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,_.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,_.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,_.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,_.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,_.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,ae.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,ae.EVENT_CELL_CHANGED,function(o){e.getAllCellCtrls().forEach(function(r){return r.onCellChanged(o)})})},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach(function(o){return o.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(o){var r=e===l.RowHighlightPosition.Above,n=e===l.RowHighlightPosition.Below;o.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),o.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),o=this.rowNode.expanded==!0;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-group",e),r.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&o),r.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!o),r.rowComp.setAriaExpanded(e&&o)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:this.rowNode.rowPinned,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var o=H(this.allRowGuis,function(p){return p.element.contains(e.target)}),r=o?o.element:null,n=r===e.target;if(n){var s=this.rowNode,a=this.beans.focusService.getFocusedCell(),u={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a&&a.column};this.beans.navigationService.navigateToNextCell(e,e.keyCode,u,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!(e.defaultPrevented||Et(e))){var o=H(this.allRowGuis,function(a){return a.element.contains(e.target)}),r=o?o.element:null,n=r===e.target,s=null;n||(s=this.beans.focusService.findNextFocusableElement(r,!1,e.shiftKey)),(this.isFullWidth()&&n||!s)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var o=this.rowNode,r=this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned,n=this.fullWidthGui?this.fullWidthGui.element:this.centerGui.element;ee(n,"ag-full-width-focus",r),r&&n.focus({preventScroll:!0})},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,o){var r={list:[],map:{}};return e.list.forEach(function(n){n!==o&&(r.list.push(n),r.map[n.getInstanceId()]=n)}),r},t.prototype.onMouseEvent=function(e,o){switch(e){case"dblclick":this.onRowDblClick(o);break;case"click":this.onRowClick(o);break;case"touchstart":case"mousedown":this.onRowMouseDown(o);break}},t.prototype.createRowEvent=function(e,o){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:o}},t.prototype.createRowEventWithSource=function(e,o){var r=this.createRowEvent(e,o);return r.source=this,r},t.prototype.onRowDblClick=function(e){if(!Et(e)){var o=this.createRowEventWithSource(_.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(o)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=hn(e.target,"ag-row-drag",3),!!this.isFullWidth()){var o=this.rowNode,r=this.beans.columnModel;this.beans.focusService.setFocusedCell(o.rowIndex,r.getAllDisplayedColumns()[0],o.rowPinned,!0)}},t.prototype.onRowClick=function(e){var o=Et(e)||this.lastMouseDownOnDragger;if(!o){var r=this.createRowEventWithSource(_.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(r);var n=e.ctrlKey||e.metaKey,s=e.shiftKey,a=this.beans.gridOptionsWrapper.isGroupSelectsChildren();if(!(a&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var u=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),p=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())u?this.rowNode.setSelectedParams({newValue:!1}):n?p&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!s,clearSelection:!s,rangeSelect:s});else{var g=u?!1:!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:g,rangeSelect:s})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var o=this;if(this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var r=function(){var s=e.clientHeight;if(s!=null&&s>0){var a=function(){o.rowNode.setRowHeight(s),o.beans.clientSideRowModel?o.beans.clientSideRowModel.onRowHeightChanged():o.beans.serverSideRowModel&&o.beans.serverSideRowModel.onRowHeightChanged()};o.beans.frameworkOverrides.setTimeout(a,0)}},n=this.beans.resizeObserverService.observeResize(e,r);this.addDestroyFunc(n),r()}},t.prototype.createFullWidthParams=function(e,o){var r=this,n={fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:o,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(s,a,u,p){return r.addFullWidthRowDragging(s,a,u,p)}};return n},t.prototype.addFullWidthRowDragging=function(e,o,r,n){if(r===void 0&&(r=""),!!this.isFullWidth()){var s=new Dn(function(){return r},this.rowNode,void 0,e,o,n);this.createManagedBean(s,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var o="ag-row-level-"+e,r="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(n){n.rowComp.addOrRemoveCssClass(o,!0),n.rowComp.addOrRemoveCssClass(r,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),o=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==o&&(this.lastRowOnPage=o,this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-last",o)}))},t.prototype.stopEditing=function(e){if(e===void 0&&(e=!1),this.getAllCellCtrls().forEach(function(r){return r.stopEditing(e)}),!!this.editingRow){if(!e){var o=this.createRowEvent(_.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(o)}this.setEditingRow(!1)}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),o.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var o=e?this.createRowEvent(_.EVENT_ROW_EDITING_STARTED):this.createRowEvent(_.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(o)},t.prototype.startRowEditing=function(e,o,r){e===void 0&&(e=null),o===void 0&&(o=null),r===void 0&&(r=null),!this.editingRow&&(this.getAllCellCtrls().forEach(function(n){var s=n===r;s?n.startEditing(e,o,s):n.startEditing(null,null,s)}),this.setEditingRow(!0))},t.prototype.getAllCellCtrls=function(){var e=vR(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list);return e},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,o=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode,this.scope);!o||!o.length||o.forEach(function(r){e.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass(r,!0)})})},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,this.scope,function(o){e.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass(o,!0)})},function(o){e.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass(o,!1)})})},t.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach(function(o){return o.rowComp.setUserStyles(e)})},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if(typeof e=="function")return e(this.rowNode)},t.prototype.getInitialRowClasses=function(e){var o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),scope:this.scope,pinned:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(e&&typeof e=="function"){console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}var o=this.beans.gridOptionsWrapper.getRowStyleFunc(),r;if(o){var n={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};r=o(n)}return nt({},e,r)},t.prototype.onRowSelected=function(){var e=this,o=this.rowNode.isSelected();this.allRowGuis.forEach(function(r){r.rowComp.setAriaSelected(o?!0:void 0),r.rowComp.addOrRemoveCssClass("ag-row-selected",o),r.rowComp.setAriaLabel(e.createAriaLabel())})},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!(e&&this.beans.gridOptionsWrapper.isSuppressRowDeselection())){var o=this.beans.gridOptionsWrapper.getLocaleTextFunc(),r=o(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.");return r}},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var o=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return o.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return o.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,ae.EVENT_MOUSE_ENTER,function(){o.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||Q(e,"ag-row-hover")}),this.addManagedListener(this.rowNode,ae.EVENT_MOUSE_LEAVE,function(){Ie(e,"ag-row-hover")}))},t.prototype.roundRowTopToBounds=function(e){var o=this.beans.ctrlsService.getGridBodyCtrl(),r=o.getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(r.top,!0)-100,s=this.applyPaginationOffset(r.bottom,!0)+100;return Math.min(Math.max(n,e),s)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(h(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.allRowGuis.forEach(function(o){return o.rowComp.setHeight(e)})}},t.prototype.addEventListener=function(e,o){(e==="renderedRowRemoved"||e==="rowRemoved")&&(e=_.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+_.EVENT_VIRTUAL_ROW_REMOVED)),i.prototype.addEventListener.call(this,e,o)},t.prototype.removeEventListener=function(e,o){(e==="renderedRowRemoved"||e==="rowRemoved")&&(e=_.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+_.EVENT_VIRTUAL_ROW_REMOVED)),i.prototype.removeEventListener.call(this,e,o)},t.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var e=this.createRowEvent(_.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),i.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){var e=this.rowNode.rowTop!=null;if(e){var o=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(o)}else this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(o){return o.list.forEach(function(r){return r.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},t.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),o.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)})},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,o){if(o===void 0&&(o=!1),this.rowNode.isRowPinned())return e;var r=this.beans.paginationProxy.getPixelOffset(),n=o?1:-1;return e+r*n},t.prototype.setRowTop=function(e){if(!this.printLayout&&h(e)){var o=this.applyPaginationOffset(e),r=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o),n=r+"px";this.setRowTopStyle(n)}},t.prototype.getInitialRowTop=function(){return this.initialTop},t.prototype.getInitialTransform=function(){return this.initialTransform},t.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,o=this.applyPaginationOffset(e),r=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o),n=r+"px",s=this.beans.gridOptionsWrapper.isSuppressRowTransform();s?this.initialTop=n:this.initialTransform="translateY("+n+")"},t.prototype.setRowTopStyle=function(e){var o=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach(function(r){return o?r.rowComp.setTop(e):r.rowComp.setTransform("translateY("+e+")")})},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var o=null;return this.getAllCellCtrls().forEach(function(r){r.getColumn()==e&&(o=r)}),o!=null||this.getAllCellCtrls().forEach(function(r){r.getColSpanningList().indexOf(e)>=0&&(o=r)}),o},t.prototype.onRowIndexChanged=function(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes())},t.prototype.updateRowIndexes=function(){var e=this,o=this.rowNode.getRowIndexString(),r=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2===0;this.allRowGuis.forEach(function(s){s.rowComp.setRowIndex(o),s.rowComp.setAriaRowIndex(r+e.rowNode.rowIndex+1),s.rowComp.addOrRemoveCssClass("ag-row-even",n),s.rowComp.addOrRemoveCssClass("ag-row-odd",!n)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(V);/**
|
|
689
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
690
|
+
* @version v26.2.1
|
|
691
|
+
* @link http://www.ag-grid.com/
|
|
692
|
+
* @license MIT
|
|
693
|
+
*/var wR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ze=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ac=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},Tc=function(i){wR(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},t.prototype.initialise=function(){this.addManagedListener(this.eventService,_.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,_.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,_.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),o=e??3;this.cachedRowCtrls=new _R(o)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.updateAllRowCtrls=function(){var e=_t(this.rowCtrlsByRowIndex);this.beans.gridOptionsWrapper.isEnsureDomOrder()&&e.sort(function(n,s){return n.getRowNode().rowIndex-s.getRowNode.rowIndex});var o=_t(this.zombieRowCtrls),r=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Ac(e,o,r)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_CELL_FOCUSED,function(r){e.getAllCellCtrls().forEach(function(n){return n.onCellFocused(r)}),e.getAllRowCtrls().forEach(function(n){n.isFullWidth()&&n.onFullWidthRowFocused(r)})}),this.addManagedListener(this.eventService,_.EVENT_FLASH_CELLS,function(r){e.getAllCellCtrls().forEach(function(n){return n.onFlashCells(r)})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(r){return r.onColumnHover()})}),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(r){return r.onLeftChanged()})});var o=this.gridOptionsWrapper.isEnableRangeSelection();o&&(this.addManagedListener(this.eventService,_.EVENT_RANGE_SELECTION_CHANGED,function(){e.getAllCellCtrls().forEach(function(r){return r.onRangeSelectionChanged()})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,function(){e.getAllCellCtrls().forEach(function(r){return r.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PINNED,function(){e.getAllCellCtrls().forEach(function(r){return r.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,function(){e.getAllCellCtrls().forEach(function(r){return r.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var o=this.columnModel.getAllGridColumns();o&&o.forEach(function(r){var n=function(g){e.getAllCellCtrls().forEach(function(y){y.getColumn()===r&&g(y)})},s=function(){n(function(g){return g.onLeftChanged()})},a=function(){n(function(g){return g.onWidthChanged()})},u=function(){n(function(g){return g.onFirstRightPinnedChanged()})},p=function(){n(function(g){return g.onLastLeftPinnedChanged()})};r.addEventListener(fe.EVENT_LEFT_CHANGED,s),r.addEventListener(fe.EVENT_WIDTH_CHANGED,a),r.addEventListener(fe.EVENT_FIRST_RIGHT_PINNED_CHANGED,u),r.addEventListener(fe.EVENT_LAST_LEFT_PINNED_CHANGED,p),e.destroyFuncsForColumnListeners.push(function(){r.removeEventListener(fe.EVENT_LEFT_CHANGED,s),r.removeEventListener(fe.EVENT_WIDTH_CHANGED,a),r.removeEventListener(fe.EVENT_FIRST_RIGHT_PINNED_CHANGED,u),r.removeEventListener(fe.EVENT_LAST_LEFT_PINNED_CHANGED,p)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT,o=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),r=o!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=o,r&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var o={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(o)},t.prototype.getAllCellsForColumn=function(e){var o=[];return this.getAllRowCtrls().forEach(function(r){var n=r.getCellElement(e);n&&o.push(n)}),o},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,o){var r=this;e.forEach(function(n){n.destroyFirstPass(),n.destroySecondPass()}),e.length=0,o&&o.forEach(function(n){var s=new qt(r.$scope,n,r.beans,!1,!1,r.printLayout);e.push(s)})},t.prototype.onPinnedRowDataChanged=function(){var e={recycleRows:!0};this.redrawAfterModelUpdate(e)},t.prototype.getRenderedIndexesForRowNodes=function(e){var o=[];return f(e)||ve(this.rowCtrlsByRowIndex,function(r,n){var s=n.getRowNode();e.indexOf(s)>=0&&o.push(r)}),o},t.prototype.redrawRows=function(e){var o=e!=null&&e.length>0;if(o){var r=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(r)}this.redrawAfterModelUpdate({recycleRows:o})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var o=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(o==null)return null;var r=document.activeElement,n=this.gridOptionsWrapper.getDomData(r,Yt.DOM_DATA_KEY_CELL_CTRL),s=this.gridOptionsWrapper.getDomData(r,qt.DOM_DATA_KEY_ROW_CTRL),a=n||s;return a?o:null},t.prototype.redrawAfterModelUpdate=function(e){e===void 0&&(e={}),this.getLockOnRefresh();var o=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var r=!this.printLayout&&!!e.recycleRows,n=e.animate&&this.gridOptionsWrapper.isAnimateRows(),s=r?this.recycleRows():null;r||this.removeAllRowComps();var a=function(){if(o==null||s==null)return!1;var p=!1;return ve(s,function(g,y){var C=y.getRowNode(),E=C.rowIndex==o.rowIndex,S=C.rowPinned==o.rowPinned;E&&S&&(p=!0)}),p},u=a();this.redraw(s,n),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),u||this.restoreFocusedCell(o),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var o=e.newData||e.newPage,r=this.gridOptionsWrapper.isSuppressScrollOnNewData();o&&!r&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout){this.rowContainerHeightService.setModelHeight(null);return}var e=this.paginationProxy.getCurrentPageHeight();e===0&&(e=1),this.rowContainerHeightService.setModelHeight(e)},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.refreshView(), call setTimeout(function() { api.refreshView(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){e===void 0&&(e=!1),this.getAllRowCtrls().forEach(function(o){o.stopEditing(e)})},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach(function(e){return e.onNewColumnsLoaded()})},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach(function(o){return e=e.concat(o.getAllCellCtrls())}),e},t.prototype.getAllRowCtrls=function(){var e=this,o=Ac(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach(function(r){return o.push(e.rowCtrlsByRowIndex[r])}),o},t.prototype.addRenderedRowListener=function(e,o,r){var n=this.rowCtrlsByRowIndex[o];n&&n.addEventListener(e,r)},t.prototype.flashCells=function(e){e===void 0&&(e={});var o=e.flashDelay,r=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach(function(n){return n.flashCell({flashDelay:o,fadeDelay:r})})},t.prototype.refreshCells=function(e){e===void 0&&(e={});var o={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(r){if(r.refreshShouldDestroy()){var n=r.getRowCtrl();n&&n.refreshCell(r)}else r.refreshCell(o)})},t.prototype.getCellRendererInstances=function(e){var o=this.getCellCtrls(e.rowNodes,e.columns).map(function(r){return r.getCellRenderer()}).filter(function(r){return r!=null});return o},t.prototype.getCellEditorInstances=function(e){var o=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(r){var n=r.getCellEditor();n&&o.push(n)}),o},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(o){if(o.isEditing()){var r=o.getCellPosition();e.push(r)}}),e},t.prototype.getCellCtrls=function(e,o){var r=this,n,s=[];h(e)&&(n={top:{},bottom:{},normal:{}},e.forEach(function(p){var g=p.id;p.rowPinned===D.PINNED_TOP?n.top[g]=!0:p.rowPinned===D.PINNED_BOTTOM?n.bottom[g]=!0:n.normal[g]=!0}));var a;h(o)&&(a={},o.forEach(function(p){var g=r.columnModel.getGridColumn(p);h(g)&&(a[g.getId()]=!0)}));var u=function(p){var g=p.getRowNode(),y=g.id,C=g.rowPinned;if(h(n)){if(C===D.PINNED_BOTTOM){if(!n.bottom[y])return}else if(C===D.PINNED_TOP){if(!n.top[y])return}else if(!n.normal[y])return}p.getAllCellCtrls().forEach(function(E){var S=E.getColumn().getId(),b=a&&!a[S];b||s.push(E)})};return ve(this.rowCtrlsByRowIndex,function(p,g){u(g)}),this.topRowCtrls&&this.topRowCtrls.forEach(u),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(u),s},t.prototype.destroy=function(){this.removeAllRowComps(),i.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];ve(this.rowCtrlsByRowIndex,function(r,n){var s=n.getRowNode().id==null;s&&e.push(r)}),this.removeRowCtrls(e);var o={};return ve(this.rowCtrlsByRowIndex,function(r,n){var s=n.getRowNode();o[s.id]=n}),this.rowCtrlsByRowIndex={},o},t.prototype.removeRowCtrls=function(e){var o=this;e.forEach(function(r){var n=o.rowCtrlsByRowIndex[r];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete o.rowCtrlsByRowIndex[r]})},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var o={};e.forEach(function(s){return o[s]=!0});var r=Object.keys(this.rowCtrlsByRowIndex),n=r.filter(function(s){return!o[s]});this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var o=this,r=ap(this.firstRenderedRow,this.lastRenderedRow),n=function(s,a){var u=a.getRowNode().rowIndex;u!=null&&(u<o.firstRenderedRow||u>o.lastRenderedRow)&&o.doNotUnVirtualiseRow(a)&&r.push(u)};return ve(this.rowCtrlsByRowIndex,n),ve(e,n),r.sort(function(s,a){return s-a}),r},t.prototype.redraw=function(e,o,r){var n=this;o===void 0&&(o=!1),r===void 0&&(r=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var s=this.calculateIndexesToDraw(e);if(this.removeRowCompsNotToDraw(s),this.printLayout&&(o=!1),s.forEach(function(u){var p=n.createOrUpdateRowCtrl(u,e,o,r);h(p)}),e){var a=r&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout;a?this.beans.animationFrameService.addDestroyTask(function(){n.destroyRowCtrls(e,o),n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,o)}this.updateAllRowCtrls(),this.checkAngularCompile(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:_.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),o=this.columnModel.isPinningRight(),r=this.pinningLeft!==e||o!==this.pinningRight;r&&(this.pinningLeft=e,this.pinningRight=o,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];ve(this.rowCtrlsByRowIndex,function(o,r){if(r.isFullWidth()){var n=r.getRowNode().rowIndex;e.push(n.toString())}}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(e){var o=[],r=!!e,n=r?{}:void 0;r&&n&&e.forEach(function(s){return n[s.id]=!0}),ve(this.rowCtrlsByRowIndex,function(s,a){if(a.isFullWidth()){var u=a.getRowNode();if(r&&n){var p=u.level>0&&u.parent?u.parent.id:void 0,g=!n[u.id]&&!n[p];if(g)return}var y=a.refreshFullWidth();if(!y){var C=a.getRowNode().rowIndex;o.push(C.toString())}}}),this.removeRowCtrls(o),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,o,r,n){var s,a=this.rowCtrlsByRowIndex[e];a||(s=this.paginationProxy.getRow(e),h(s)&&h(o)&&o[s.id]&&s.alreadyRendered&&(a=o[s.id],o[s.id]=null));var u=!a;if(u)if(s||(s=this.paginationProxy.getRow(e)),h(s))a=this.createRowCon(s,r,n);else return;return s&&(s.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},t.prototype.destroyRowCtrls=function(e,o){var r=this,n=[];ve(e,function(s,a){if(a){if(r.cachedRowCtrls&&a.isCacheable()){r.cachedRowCtrls.addRow(a);return}a.destroyFirstPass(),o?(r.zombieRowCtrls[a.getInstanceId()]=a,n.push(function(){a.destroySecondPass(),delete r.zombieRowCtrls[a.getInstanceId()]})):a.destroySecondPass()}}),o&&(n.push(function(){r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()}),zu(n))},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout(function(){e.$scope.$apply()},0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e=this,o,r;if(!this.paginationProxy.isRowsToRender())o=0,r=-1;else if(this.printLayout)o=this.paginationProxy.getPageFirstRow(),r=this.paginationProxy.getPageLastRow();else{var n=this.gridOptionsWrapper.getRowBufferInPixels(),s=this.ctrlsService.getGridBodyCtrl(),a=!1,u=void 0,p=void 0;do{var g=this.paginationProxy.getPixelOffset(),y=this.paginationProxy.getCurrentPagePixelRange(),C=y.pageFirstPixel,E=y.pageLastPixel,S=this.rowContainerHeightService.getDivStretchOffset(),b=s.getScrollFeature().getVScrollPosition(),F=b.top,B=b.bottom;u=Math.max(F+g-n,C)+S,p=Math.min(B+g+n,E)+S,a=this.ensureAllRowsInRangeHaveHeightsCalculated(u,p)}while(a);var M=this.paginationProxy.getRowIndexAtPixel(u),L=this.paginationProxy.getRowIndexAtPixel(p),j=this.paginationProxy.getPageFirstRow(),J=this.paginationProxy.getPageLastRow();M<j&&(M=j),L>J&&(L=J),o=M,r=L}var ue=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_NORMAL,te=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),pe=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);ue&&!te&&r-o>pe&&(r=o+pe);var ye=o!==this.firstRenderedRow,ge=r!==this.lastRenderedRow;if(ye||ge){this.firstRenderedRow=o,this.lastRenderedRow=r;var _e={type:_.EVENT_VIEWPORT_CHANGED,firstRow:o,lastRow:r,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(_e)}if(this.paginationProxy.isRowsToRender()){var We={type:_.EVENT_FIRST_DATA_RENDERED,firstRow:o,lastRow:r,api:this.gridApi,columnApi:this.columnApi};window.setTimeout(function(){return e.eventService.dispatchEventOnce(We)},50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,o){var r=this.paginationProxy.ensureRowHeightsValid(e,o,-1,-1);return r&&this.updateContainerHeights(),r},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var o=!1,r=!0,n=e.getRowNode(),s=this.focusService.isRowNodeFocused(n),a=e.isEditing(),u=n.detail,p=s||a||u;if(!p)return o;var g=this.paginationProxy.isRowPresent(n);return g?r:o},t.prototype.createRowCon=function(e,o,r){var n=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(n)return n;var s=this.gridOptionsWrapper.isSuppressAnimationFrame(),a=r&&!s&&!this.printLayout,u=new qt(this.$scope,e,this.beans,o,a,this.printLayout);return u},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(o){return e[o].getRowNode()})},t.prototype.getRowByPosition=function(e){var o;switch(e.rowPinned){case D.PINNED_TOP:o=this.topRowCtrls[e.rowIndex];break;case D.PINNED_BOTTOM:o=this.bottomRowCtrls[e.rowIndex];break;default:o=this.rowCtrlsByRowIndex[e.rowIndex];break}return o},t.prototype.getRowNode=function(e){switch(e.rowPinned){case D.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case D.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,o){var r=e==null||o==null;if(r)return!1;var n=e>this.lastRenderedRow,s=o<this.firstRenderedRow,a=!s&&!n;return a},Ze([m("paginationProxy")],t.prototype,"paginationProxy",void 0),Ze([m("columnModel")],t.prototype,"columnModel",void 0),Ze([m("$scope")],t.prototype,"$scope",void 0),Ze([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ze([m("rowModel")],t.prototype,"rowModel",void 0),Ze([m("focusService")],t.prototype,"focusService",void 0),Ze([m("columnApi")],t.prototype,"columnApi",void 0),Ze([m("gridApi")],t.prototype,"gridApi",void 0),Ze([m("beans")],t.prototype,"beans",void 0),Ze([m("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Ze([he("ctrlsService")],t.prototype,"ctrlsService",void 0),Ze([k],t.prototype,"postConstruct",null),t=Ze([Y("rowRenderer")],t),t}(V),_R=function(){function i(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return i.prototype.toString=function(){return this.entriesList.map(function(t){return t.getRowNode().data.name}).join(", ")},i.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},i.prototype.getRow=function(t){if(t==null||t.id==null)return null;var e=this.entriesMap[t.id];if(!e)return null;this.removeFromCache(e),e.setCached(!1);var o=e.getRowNode()!=t;return o?null:e},i.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],$(this.entriesList,t)},i.prototype.getEntries=function(){return this.entriesList},i}();/**
|
|
694
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
695
|
+
* @version v26.2.1
|
|
696
|
+
* @link http://www.ag-grid.com/
|
|
697
|
+
* @license MIT
|
|
698
|
+
*/var ER=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),la=function(i){ER(t,i);function t(e,o){var r=i.call(this,e)||this;return r.ctrl=o,r}return t.prototype.getCtrl=function(){return this.ctrl},t}(se);/**
|
|
699
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
700
|
+
* @version v26.2.1
|
|
701
|
+
* @link http://www.ag-grid.com/
|
|
702
|
+
* @license MIT
|
|
703
|
+
*/var RR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ua=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},SR=function(i){RR(t,i);function t(e){var o=i.call(this,t.TEMPLATE,e)||this;return o.headerCompVersion=0,o.column=e.getColumnGroupChild(),o.pinned=e.getPinned(),o}return t.prototype.postConstruct=function(){var e=this,o=this.getGui(),r=function(a,u,p){var g=p||o;u!=null&&u!=""?g.setAttribute(a,u):g.removeAttribute(a)},n={setWidth:function(a){return o.style.width=a},addOrRemoveCssClass:function(a,u){return e.addOrRemoveCssClass(a,u)},setAriaSort:function(a){return a?xp(o,a):Vp(o)},setColId:function(a){return r("col-id",a)},setTitle:function(a){return r("title",a)},setAriaDescribedBy:function(a){return mn(o,a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(n,this.getGui(),this.eResize);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var o=this;this.headerCompVersion++;var r=this.headerCompVersion;e.newAgStackInstance().then(function(n){return o.afterCompCreated(r,n)})},t.prototype.afterCompCreated=function(e,o){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(o);return}this.destroyHeaderComp(),this.headerComp=o,this.headerCompGui=o.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)},t.TEMPLATE=`<div class="ag-header-cell" role="columnheader" unselectable="on" tabindex="-1">
|
|
704
|
+
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
|
|
705
|
+
</div>`,ua([x("eResize")],t.prototype,"eResize",void 0),ua([k],t.prototype,"postConstruct",null),ua([Ne],t.prototype,"destroyHeaderComp",null),t}(la);/**
|
|
706
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
707
|
+
* @version v26.2.1
|
|
708
|
+
* @link http://www.ag-grid.com/
|
|
709
|
+
* @license MIT
|
|
710
|
+
*/var OR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),pa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PR=function(i){OR(t,i);function t(e){return i.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,o=this.getGui(),r=function(s,a){return a!=null?o.setAttribute(s,a):o.removeAttribute(s)},n={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},addOrRemoveResizableCssClass:function(s,a){return ee(e.eResize,s,a)},setWidth:function(s){return o.style.width=s},setColId:function(s){return o.setAttribute("col-id",s)},setAriaExpanded:function(s){return r("aria-expanded",s)},setTitle:function(s){return r("title",s)},setUserCompDetails:function(s){return e.setUserCompDetails(s)}};this.ctrl.setComp(n,o,this.eResize)},t.prototype.setUserCompDetails=function(e){var o=this;e.newAgStackInstance().then(function(r){return o.afterHeaderCompCreated(r)})},t.prototype.afterHeaderCompCreated=function(e){var o=this,r=function(){return o.destroyBean(e)};if(!this.isAlive()){r();return}this.getGui().appendChild(e.getGui()),this.addDestroyFunc(r),this.ctrl.setDragSource(e.getGui())},t.TEMPLATE=`<div class="ag-header-group-cell" role="columnheader" tabindex="-1">
|
|
711
|
+
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
|
|
712
|
+
</div>`,pa([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),pa([x("eResize")],t.prototype,"eResize",void 0),pa([k],t.prototype,"postConstruct",null),t}(la);/**
|
|
713
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
714
|
+
* @version v26.2.1
|
|
715
|
+
* @link http://www.ag-grid.com/
|
|
716
|
+
* @license MIT
|
|
717
|
+
*/var DR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Nn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bc=function(i){DR(t,i);function t(e){return i.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,o=this.getGui(),r={addOrRemoveCssClass:function(n,s){return e.addOrRemoveCssClass(n,s)},addOrRemoveBodyCssClass:function(n,s){return ee(e.eFloatingFilterBody,n,s)},addOrRemoveButtonWrapperCssClass:function(n,s){return ee(e.eButtonWrapper,n,s)},setCompDetails:function(n){return e.setCompDetails(n)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(n){return o.style.width=n},setMenuIcon:function(n){return e.eButtonShowMainFilter.appendChild(n)}};this.ctrl.setComp(r,o,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var o=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(r){return o.afterCompCreated(r)})},t.prototype.afterCompCreated=function(e){var o=this;e&&(this.addDestroyFunc(function(){return o.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE=`<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">
|
|
718
|
+
<div ref="eFloatingFilterBody" role="presentation"></div>
|
|
719
|
+
<div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">
|
|
720
|
+
<button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>
|
|
721
|
+
</div>
|
|
722
|
+
</div>`,Nn([x("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),Nn([x("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),Nn([x("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),Nn([k],t.prototype,"postConstruct",null),t}(la);/**
|
|
723
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
724
|
+
* @version v26.2.1
|
|
725
|
+
* @link http://www.ag-grid.com/
|
|
726
|
+
* @license MIT
|
|
727
|
+
*/var AR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Nc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i.COLUMN_GROUP="group",i.COLUMN="column",i.FLOATING_FILTER="filter"})(l.HeaderRowType||(l.HeaderRowType={}));var Fc=function(i){AR(t,i);function t(e){var o=i.call(this)||this;o.headerComps={};var r=e.getType()==l.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==l.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=e,o}return t.prototype.init=function(){var e=this,o={setTransform:function(r){return e.getGui().style.transform=r},setHeight:function(r){return e.getGui().style.height=r},setTop:function(r){return e.getGui().style.top=r},setHeaderCtrls:function(r){return e.setHeaderCtrls(r)},setWidth:function(r){return e.getGui().style.width=r},setAriaRowIndex:function(r){return Is(e.getGui(),r)}};this.ctrl.setComp(o)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var o=this;if(this.isAlive()){var r=this.headerComps;this.headerComps={},e.forEach(function(u){var p=u.getInstanceId(),g=r[p];delete r[p],g==null&&(g=o.createHeaderComp(u),o.getGui().appendChild(g.getGui())),o.headerComps[p]=g}),ve(r,function(u,p){o.getGui().removeChild(p.getGui()),o.destroyBean(p)});var n=this.gridOptionsWrapper.isEnsureDomOrder();if(n){var s=_t(this.headerComps);s.sort(function(u,p){var g=u.getCtrl().getColumnGroupChild().getLeft(),y=p.getCtrl().getColumnGroupChild().getLeft();return g-y});var a=s.map(function(u){return u.getGui()});Ds(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var o;switch(this.ctrl.getType()){case l.HeaderRowType.COLUMN_GROUP:o=new PR(e);break;case l.HeaderRowType.FLOATING_FILTER:o=new bc(e);break;default:o=new SR(e);break}return this.createBean(o),o.setParentComponent(this),o},Nc([k],t.prototype,"init",null),Nc([Ne],t.prototype,"destroyHeaderCtrls",null),t}(se);/**
|
|
728
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
729
|
+
* @version v26.2.1
|
|
730
|
+
* @link http://www.ag-grid.com/
|
|
731
|
+
* @license MIT
|
|
732
|
+
*/var TR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ho=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i[i.UP=0]="UP",i[i.DOWN=1]="DOWN",i[i.LEFT=2]="LEFT",i[i.RIGHT=3]="RIGHT"})(l.HeaderNavigationDirection||(l.HeaderNavigationDirection={}));var Ic=function(i){TR(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){e.gridBodyCon=o.gridBodyCtrl})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.getHeaderRowType=function(e){var o=this.ctrlsService.getHeaderRowContainerCtrl();if(o)return o.getRowType(e)},t.prototype.navigateVertically=function(e,o,r){if(o||(o=this.focusService.getFocusedHeader()),!o)return!1;var n=o.headerRowIndex,s=o.column,a=this.getHeaderRowCount(),u=e===l.HeaderNavigationDirection.UP,p=u?n-1:n+1,g=null,y=!1;p<0&&(p=0,g=s,y=!0),p>=a&&(p=-1);var C=this.getHeaderRowType(n);if(!y){if(C===l.HeaderRowType.COLUMN_GROUP){var E=s;g=u?s.getParent():E.getDisplayedChildren()[0]}else if(C===l.HeaderRowType.FLOATING_FILTER)g=s;else{var E=s;g=u?E.getParent():E}if(!g)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:p,column:g},allowUserOverride:!0,event:r})},t.prototype.navigateHorizontally=function(e,o,r){o===void 0&&(o=!1);var n=this.focusService.getFocusedHeader(),s=e===l.HeaderNavigationDirection.LEFT,a=this.gridOptionsWrapper.isEnableRtl(),u,p;return s!==a?(p="Before",u=this.headerPositionUtils.findHeader(n,p)):(p="After",u=this.headerPositionUtils.findHeader(n,p)),u?this.focusService.focusHeaderPosition({headerPosition:u,direction:p,fromTab:o,allowUserOverride:!0,event:r}):o?this.focusNextHeaderRow(n,p,r):!0},t.prototype.focusNextHeaderRow=function(e,o,r){var n=e.headerRowIndex,s=null,a;return o==="Before"?n>0&&(a=n-1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"end")):(a=n+1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"start")),this.focusService.focusHeaderPosition({headerPosition:s,direction:o,fromTab:!0,allowUserOverride:!0,event:r})},t.prototype.scrollToColumn=function(e,o){if(o===void 0&&(o="After"),!e.getPinned()){var r;if(e instanceof Fe){var n=e.getDisplayedLeafColumns();r=o==="Before"?le(n):n[0]}else r=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Ho([m("focusService")],t.prototype,"focusService",void 0),Ho([m("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),Ho([m("animationFrameService")],t.prototype,"animationFrameService",void 0),Ho([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Ho([k],t.prototype,"postConstruct",null),t=Ho([Y("headerNavigationService")],t),t}(V);/**
|
|
733
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
734
|
+
* @version v26.2.1
|
|
735
|
+
* @link http://www.ag-grid.com/
|
|
736
|
+
* @license MIT
|
|
737
|
+
*/var bR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Fn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Lc=function(i){bR(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setComp=function(e,o,r){this.comp=e,this.eGui=o,this.createManagedBean(new Vt(r,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,q.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,q.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,q.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,q.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},t.prototype.setHeaderHeight=function(){var e=this,o=e.columnModel,r=e.gridOptionsWrapper,n=0,s=o.getHeaderRowCount(),a,u,p;if(o.isPivotMode())u=r.getPivotGroupHeaderHeight(),p=r.getPivotHeaderHeight();else{var g=o.hasFloatingFilters();g&&(s++,n=1),u=r.getGroupHeaderHeight(),p=r.getHeaderHeight()}var y=1+n,C=s-y;a=n*r.getFloatingFiltersHeight(),a+=C*u,a+=p;var E=a+1+"px";this.comp.setHeightAndMinHeight(E)},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onTabKeyDown=function(e){var o=this.gridOptionsWrapper.isEnableRtl(),r=e.shiftKey!==o?l.HeaderNavigationDirection.LEFT:l.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(r,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var o=null;switch(e.keyCode){case W.LEFT:o=l.HeaderNavigationDirection.LEFT;case W.RIGHT:h(o)||(o=l.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(o,!1,e);break;case W.UP:o=l.HeaderNavigationDirection.UP;case W.DOWN:h(o)||(o=l.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(o,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var o=e.relatedTarget;!o&&this.eGui.contains(document.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Fn([m("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Fn([m("focusService")],t.prototype,"focusService",void 0),Fn([m("columnModel")],t.prototype,"columnModel",void 0),Fn([m("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(V);/**
|
|
738
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
739
|
+
* @version v26.2.1
|
|
740
|
+
* @link http://www.ag-grid.com/
|
|
741
|
+
* @license MIT
|
|
742
|
+
*/var NR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Mc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ca=function(i){NR(t,i);function t(e){var o=i.call(this)||this;return o.callback=e,o}return t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,o=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT,r=e.getBodyContainerWidth(),n=e.getDisplayedColumnsLeftWidth(),s=e.getDisplayedColumnsRightWidth(),a=o?r+n+s:r;this.callback(a)},Mc([m("columnModel")],t.prototype,"columnModel",void 0),Mc([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
743
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
744
|
+
* @version v26.2.1
|
|
745
|
+
* @link http://www.ag-grid.com/
|
|
746
|
+
* @license MIT
|
|
747
|
+
*/var _r=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Gc=function(){function i(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!h(t)}return i.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},i.prototype.getIconName=function(){return this.pinned?ze.ICON_PINNED:ze.ICON_MOVE},i.prototype.onDragEnter=function(t){var e=t.dragItem.columns,o=t.dragSource.type===l.DragSourceType.ToolPanel;if(o)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var r=t.dragItem.visibleState,n=(e||[]).filter(function(s){return r[s.getId()]});this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0)},i.prototype.onDragLeave=function(t){var e=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!t.fromNudge;if(e){var o=t.dragSource.getDragItem(),r=o.columns;this.setColumnsVisible(r,!1,"uiColumnDragged")}this.ensureIntervalCleared()},i.prototype.setColumnsVisible=function(t,e,o){if(o===void 0&&(o="api"),t){var r=t.filter(function(n){return!n.getColDef().lockVisible});this.columnModel.setColumnsVisible(r,e,o)}},i.prototype.setColumnsPinned=function(t,e,o){if(o===void 0&&(o="api"),t){var r=t.filter(function(n){return!n.getColDef().lockPinned});this.columnModel.setColumnsPinned(r,e,o)}},i.prototype.onDragStop=function(){this.ensureIntervalCleared()},i.prototype.normaliseX=function(t){if(this.gridOptionsWrapper.isEnableRtl()){var e=this.eContainer.clientWidth;t=e-t}return this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},i.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=t<e+50,this.needToMoveLeft=t>o-50):(this.needToMoveLeft=t<e+50,this.needToMoveRight=t>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},i.prototype.onDragging=function(t,e){var o=this;if(e===void 0&&(e=!1),this.lastDraggingEvent=t,!f(t.hDirection)){var r=this.normaliseX(t.x);e||this.checkCenterForScrolling(r);var n=this.normaliseDirection(t.hDirection),s=t.dragSource.type,a=t.dragSource.getDragItem().columns;a=a.filter(function(u){return u.getColDef().lockPinned?u.getPinned()==o.pinned:!0}),this.attemptMoveColumns(s,a,n,r,e)}},i.prototype.normaliseDirection=function(t){if(this.gridOptionsWrapper.isEnableRtl())switch(t){case l.HorizontalDirection.Left:return l.HorizontalDirection.Right;case l.HorizontalDirection.Right:return l.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+t)}else return t},i.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),o=A(t.map(function(u){return e.indexOf(u)})),r=o[0],n=le(o),s=n-r,a=s!==o.length-1;return a?null:r},i.prototype.attemptMoveColumns=function(t,e,o,r,n){var s=o===l.HorizontalDirection.Left,a=o===l.HorizontalDirection.Right,u=e.slice();this.columnModel.sortColumnsLikeGridColumns(u);var p=this.calculateValidMoves(u,a,r),g=this.calculateOldIndex(u);if(p.length!==0){var y=p[0],C=g!==null&&!n;if(t==l.DragSourceType.HeaderCell&&(C=g!==null),!(C&&(s&&y>=g||a&&y<=g)))for(var E=0;E<p.length;E++){var S=p[E];if(this.columnModel.doesMovePassRules(u,S)){this.columnModel.moveColumns(u,S,"uiColumnDragged");return}}}},i.prototype.calculateValidMoves=function(t,e,o){var r=this.gridOptionsWrapper.isSuppressMovableColumns()||t.some(function(te){return te.getColDef().suppressMovable});if(r)return[];var n=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=n.filter(function(te){return ot(t,te)}),u=n.filter(function(te){return!ot(t,te)}),p=s.filter(function(te){return!ot(t,te)}),g=0,y=o;if(e){var C=0;a.forEach(function(te){return C+=te.getActualWidth()}),y-=C}if(y>0){for(var E=0;E<u.length;E++){var S=u[E];if(y-=S.getActualWidth(),y<0)break;g++}e&&g++}var b;if(g>0){var F=u[g-1];b=p.indexOf(F)+1}else b=p.indexOf(u[0]),b===-1&&(b=0);var B=[b],M=function(te,pe){return te-pe};if(e){for(var L=b+1,j=s.length-1;L<=j;)B.push(L),L++;B.sort(M)}else{for(var L=b,j=s.length-1,J=s[L];L<=j&&this.isColumnHidden(n,J);)L++,B.push(L),J=s[L];L=b-1;for(var ue=0;L>=ue;)B.push(L),L--;B.sort(M).reverse()}return B},i.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},i.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(ze.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ze.ICON_RIGHT,!0))},i.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ze.ICON_MOVE))},i.prototype.moveInterval=function(){var t;this.intervalCount++,t=10+this.intervalCount*5,t>100&&(t=100);var e=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=o.scrollHorizontally(-t):this.needToMoveRight&&(e=o.scrollHorizontally(t)),e!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns,n=r.filter(function(a){return!a.getColDef().lockPinned});if(n.length>0&&(this.dragAndDropService.setGhostIcon(ze.ICON_PINNED),this.failedMoveAttempts>7)){var s=this.needToMoveLeft?D.PINNED_LEFT:D.PINNED_RIGHT;this.setColumnsPinned(n,s,"uiColumnDragged"),this.dragAndDropService.nudge()}}},_r([m("columnModel")],i.prototype,"columnModel",void 0),_r([m("dragAndDropService")],i.prototype,"dragAndDropService",void 0),_r([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),_r([m("ctrlsService")],i.prototype,"ctrlsService",void 0),_r([k],i.prototype,"init",null),i}();/**
|
|
748
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
749
|
+
* @version v26.2.1
|
|
750
|
+
* @link http://www.ag-grid.com/
|
|
751
|
+
* @license MIT
|
|
752
|
+
*/var xc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Vc=function(){function i(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return i.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var o=t.dragItem.columns;o&&o.forEach(function(r){r.isPrimary()&&(r.isAnyFunctionActive()||(r.isAllowValue()?e.columnsToAggregate.push(r):r.isAllowRowGroup()?e.columnsToGroup.push(r):r.isAllowPivot()&&e.columnsToPivot.push(r)))})}},i.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?ze.ICON_PINNED:ze.ICON_MOVE:null},i.prototype.onDragLeave=function(t){this.clearColumnsList()},i.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},i.prototype.onDragging=function(t){},i.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},xc([m("columnModel")],i.prototype,"columnModel",void 0),xc([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),i}();/**
|
|
753
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
754
|
+
* @version v26.2.1
|
|
755
|
+
* @link http://www.ag-grid.com/
|
|
756
|
+
* @license MIT
|
|
757
|
+
*/var FR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Er=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Hc=function(i){FR(t,i);function t(e,o){var r=i.call(this)||this;return r.pinned=e,r.eContainer=o,r}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){switch(e.pinned){case D.PINNED_LEFT:e.eSecondaryContainers=[[o.gridBodyCtrl.getBodyViewportElement(),o.leftRowContainerCtrl.getContainerElement()],[o.bottomLeftRowContainerCtrl.getContainerElement()],[o.topLeftRowContainerCtrl.getContainerElement()]];break;case D.PINNED_RIGHT:e.eSecondaryContainers=[[o.gridBodyCtrl.getBodyViewportElement(),o.rightRowContainerCtrl.getContainerElement()],[o.bottomRightRowContainerCtrl.getContainerElement()],[o.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[o.gridBodyCtrl.getBodyViewportElement(),o.centerRowContainerCtrl.getViewportElement()],[o.bottomCenterRowContainerCtrl.getViewportElement()],[o.topCenterRowContainerCtrl.getViewportElement()]];break}})},t.prototype.isInterestedIn=function(e){return e===l.DragSourceType.HeaderCell||e===l.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Gc(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Vc(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===l.DragSourceType.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Er([m("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Er([m("columnModel")],t.prototype,"columnModel",void 0),Er([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Er([k],t.prototype,"postConstruct",null),Er([k],t.prototype,"init",null),t}(V);/**
|
|
758
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
759
|
+
* @version v26.2.1
|
|
760
|
+
* @link http://www.ag-grid.com/
|
|
761
|
+
* @license MIT
|
|
762
|
+
*/var IR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),LR=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},MR=0,Rr=function(i){IR(t,i);function t(e,o){var r=i.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=e,r.parentRowCtrl=o,r.instanceId=e.getUniqueId()+"-"+MR++,r}return t.prototype.shouldStopEventPropagation=function(e){var o=this.focusService.getFocusedHeader(),r=o.headerRowIndex,n=o.column;return $p(this.gridOptionsWrapper,e,r,n)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,o=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,o,this),this.addDestroyFunc(function(){return e.gridOptionsWrapper.setDomData(e.eGui,o,null)})},t.prototype.focus=function(e){return this.eGui?(this.lastFocusEvent=e||null,this.eGui.focus(),!0):!1},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",LR([m("focusService")],t.prototype,"focusService",void 0),t}(V);/**
|
|
763
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
764
|
+
* @version v26.2.1
|
|
765
|
+
* @link http://www.ag-grid.com/
|
|
766
|
+
* @license MIT
|
|
767
|
+
*/var Wc=function(){function i(){}return i.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},i.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},i}();/**
|
|
768
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
769
|
+
* @version v26.2.1
|
|
770
|
+
* @link http://www.ag-grid.com/
|
|
771
|
+
* @license MIT
|
|
772
|
+
*/var GR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),xR=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},In=function(i){GR(t,i);function t(e,o,r,n){var s=i.call(this)||this;return s.columnOrGroup=e,s.eCell=o,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=n,s.beans=r,s}return t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?le(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,fe.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,q.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),o=h(this.columnOrGroup.getOldLeft()),r=this.beans.columnAnimationService.isActive()&&o&&!e;r?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,o=this.getColumnOrGroup(),r=o.getLeft(),n=o.getOldLeft(),s=this.modifyLeftForPrintLayout(o,n),a=this.modifyLeftForPrintLayout(o,r);this.setLeft(s),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),o=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,o),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,o){var r=this.beans.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT;if(!r||e.getPinned()===D.PINNED_LEFT)return o;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()===D.PINNED_RIGHT){var s=this.beans.columnModel.getBodyContainerWidth();return n+s+o}return n+o},t.prototype.setLeft=function(e){h(e)&&(this.eCell.style.left=e+"px");var o;if(this.columnOrGroup instanceof fe)o=this.columnOrGroup;else{var r=this.columnOrGroup,n=r.getLeafColumns();if(!n.length)return;n.length>1&&Gp(this.ariaEl,n.length),o=n[0]}var s=this.beans.columnModel.getAriaColumnIndex(o);Ls(this.ariaEl,s)},xR([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
773
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
774
|
+
* @version v26.2.1
|
|
775
|
+
* @link http://www.ag-grid.com/
|
|
776
|
+
* @license MIT
|
|
777
|
+
*/var VR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Bc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},da=function(i){VR(t,i);function t(e,o){var r=i.call(this)||this;return r.columns=e,r.element=o,r}return t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Bc([m("columnHoverService")],t.prototype,"columnHoverService",void 0),Bc([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
778
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
779
|
+
* @version v26.2.1
|
|
780
|
+
* @link http://www.ag-grid.com/
|
|
781
|
+
* @license MIT
|
|
782
|
+
*/var HR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),go=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},kc=function(i){HR(t,i);function t(e,o){var r=i.call(this,e,o)||this;return r.column=e,r}return t.prototype.setComp=function(e,o,r,n){i.prototype.setGui.call(this,o),this.comp=e,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=n;var s=this.column.getColDef();this.active=(!!s.filter||!!s.filterFramework)&&!!s.floatingFilter,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),!!this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Te("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new Vt(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){var o=document.activeElement,r=o===this.eGui;if(!r){var n=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);n&&(e.preventDefault(),n.focus())}},t.prototype.handleKeyDown=function(e){var o=document.activeElement,r=o===this.eGui;switch(e.keyCode){case W.UP:case W.DOWN:r||e.preventDefault();case W.LEFT:case W.RIGHT:if(r)return;e.stopPropagation();case W.ENTER:r&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case W.ESCAPE:r||this.eGui.focus()}},t.prototype.onFocusIn=function(e){var o=this.eGui.contains(e.relatedTarget);if(!o){var r=this.focusService.isKeyboardMode(),n=!!e.relatedTarget&&!Ot(e.relatedTarget,"ag-floating-filter"),s=!!e.relatedTarget&&hn(e.relatedTarget,"ag-floating-filter");if(r&&n&&s&&e.target===this.eGui){var a=this.lastFocusEvent,u=!!(a&&a.keyCode===W.TAB);if(a&&u){var p=this.beans.focusService.getFocusedHeader(),g=this.beans.columnModel.getDisplayedColAfter(this.column),y=p&&g===p.column,C=!!(r&&a.shiftKey&&y);this.focusService.focusInto(this.eGui,C)}}var E=this.getRowIndex();this.beans.focusService.setFocusedHeader(E,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new da([this.column],this.eGui));var o=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var r=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",r)}};this.addManagedListener(this.eventService,_.EVENT_COLUMN_HOVER_CHANGED,o),o()},t.prototype.setupLeft=function(){var e=new In(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){if(this.active){var e=this.column.getColDef(),o=this.filterManager.createFilterParams(this.column,e),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(e,"filter",o),n=t.getDefaultFloatingFilterType(e);n==null&&(n="agReadOnlyFloatingFilter");var s={api:this.gridApi,column:this.column,filterParams:r,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=e.floatingFilterComponentParams?!!e.floatingFilterComponentParams.suppressFilterButton:!1;var a=this.userComponentFactory.getFloatingFilterCompDetails(e,s,n);a&&this.comp.setCompDetails(a)}},t.getDefaultFloatingFilterType=function(e){if(e==null)return null;var o=null;if(typeof e.filter=="string")o=Wc.getFloatingFilterType(e.filter);else if(!e.filterFramework){if(e.filter===!0){var r=oe.isRegistered(l.ModuleNames.SetFilterModule);o=r?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}}return o},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,function(o){return o&&o.getModel()}):null},t.prototype.getFilterComponent=function(e){return e===void 0&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.onFloatingFilterChanged=function(){console.warn("AG Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},t.prototype.parentFilterInstance=function(e){var o=this,r=this.getFilterComponent();r&&r.then(function(n){var s=o.frameworkComponentWrapper?o.frameworkComponentWrapper.unwrap(n):n;e(s)})},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var o=function(r){var n=e.comp.getFloatingFilterComp();if(n){var s=e.currentParentModel();n.then(function(a){return a&&a.onParentModelChanged(s,r)})}};this.addManagedListener(this.column,fe.EVENT_FILTER_CHANGED,o),this.filterManager.isFilterActive(this.column)&&o(null)}},t.prototype.setupWidth=function(){var e=this,o=function(){var r=e.column.getActualWidth()+"px";e.comp.setWidth(r)};this.addManagedListener(this.column,fe.EVENT_WIDTH_CHANGED,o),o()},go([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),go([m("filterManager")],t.prototype,"filterManager",void 0),go([m("columnHoverService")],t.prototype,"columnHoverService",void 0),go([m("gridApi")],t.prototype,"gridApi",void 0),go([m("menuFactory")],t.prototype,"menuFactory",void 0),go([m("beans")],t.prototype,"beans",void 0),go([he("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t}(Rr);/**
|
|
783
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
784
|
+
* @version v26.2.1
|
|
785
|
+
* @link http://www.ag-grid.com/
|
|
786
|
+
* @license MIT
|
|
787
|
+
*/var ha=function(){function i(){}return i.getHeaderClassesFromColDef=function(t,e,o,r){return f(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,o,r)},i.getToolPanelClassesFromColDef=function(t,e,o,r){return f(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,o,r)},i.getColumnClassesFromCollDef=function(t,e,o,r,n){if(f(t))return[];var s;if(typeof t=="function"){var a={colDef:e,column:r,columnGroup:n,context:o.getContext(),api:o.getApi()};s=t(a)}else s=t;return typeof s=="string"?[s]:Array.isArray(s)?s:[]},i}();/**
|
|
788
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
789
|
+
* @version v26.2.1
|
|
790
|
+
* @link http://www.ag-grid.com/
|
|
791
|
+
* @license MIT
|
|
792
|
+
*/var WR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),fa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},BR=function(i){WR(t,i);function t(e,o,r,n,s){var a=i.call(this)||this;return a.pinned=e,a.column=o,a.eResize=r,a.comp=n,a.ctrl=s,a}return t.prototype.postConstruct=function(){var e=this,o=this.column.getColDef(),r=[],n,s,a=function(){if(Ce(e.eResize,n),!!n){var g=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(r.push(g),s){var y=e.gridOptionsWrapper.isSkipHeaderOnAutoSize(),C=function(){e.columnModel.autoSizeColumn(e.column,y,"uiColumnResized")};e.eResize.addEventListener("dblclick",C);var E=new lt(e.eResize);E.addEventListener(lt.EVENT_DOUBLE_TAP,C),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",C),E.removeEventListener(lt.EVENT_DOUBLE_TAP,C),E.destroy()})}}},u=function(){r.forEach(function(g){return g()}),r.length=0},p=function(){var g=e.column.isResizable(),y=!e.gridOptionsWrapper.isSuppressAutoSize()&&!o.suppressAutoSize,C=g!==n||y!==s;C&&(n=g,s=y,u(),a())};p(),this.addDestroyFunc(u),this.ctrl.addRefreshFunction(p)},t.prototype.onResizing=function(e,o){var r=this.normaliseResizeAmount(o),n=[{key:this.column,newWidth:this.resizeStartWidth+r}];this.columnModel.setColumnWidths(n,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var o=e,r=this.pinned!==D.PINNED_LEFT,n=this.pinned===D.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?r&&(o*=-1):n&&(o*=-1),o},fa([m("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),fa([m("columnModel")],t.prototype,"columnModel",void 0),fa([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
793
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
794
|
+
* @version v26.2.1
|
|
795
|
+
* @link http://www.ag-grid.com/
|
|
796
|
+
* @license MIT
|
|
797
|
+
*/var kR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Wo=function(i){kR(t,i);function t(e,o,r){o===void 0&&(o="ag-checkbox"),r===void 0&&(r="checkbox");var n=i.call(this,e,o,r)||this;return n.labelAlignment="right",n.selected=!1,n.readOnly=!1,n.passive=!1,n}return t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){ee(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return ee(this.eWrapper,"ag-disabled",e),i.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),o=this.getNextValue();this.passive?this.dispatchChange(o,e):this.setValue(o)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,o){return this.refreshSelectedClass(e),this.setSelected(e,o),this},t.prototype.setName=function(e){var o=this.getInputElement();return o.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,o){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,o||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,o,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:o,event:r});var n=this.getInputElement(),s={type:_.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:e,previousValue:o};this.eventService.dispatchEvent(s)},t.prototype.onCheckboxClick=function(e){if(!(this.passive||this.eInput.disabled)){var o=this.isSelected(),r=this.selected=e.target.checked;this.refreshSelectedClass(r),this.dispatchChange(r,o,e)}},t.prototype.refreshSelectedClass=function(e){ee(this.eWrapper,"ag-checked",e===!0),ee(this.eWrapper,"ag-indeterminate",e==null)},t}(Ht);/**
|
|
798
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
799
|
+
* @version v26.2.1
|
|
800
|
+
* @link http://www.ag-grid.com/
|
|
801
|
+
* @license MIT
|
|
802
|
+
*/var UR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ln=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},jR=function(i){UR(t,i);function t(e){var o=i.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=e;var r=e.getColDef();return o.filteredOnly=r?!!r.headerCheckboxSelectionFilteredOnly:!1,o}return t.prototype.onSpaceKeyPressed=function(e){var o=this.cbSelectAll;o.isDisplayed()&&!o.getGui().contains(document.activeElement)&&(e.preventDefault(),o.setValue(!o.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.comp=e,this.cbSelectAll=this.createManagedBean(new Wo),this.cbSelectAll.addCssClass("ag-header-select-all"),ke(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Wo.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshHeaderAriaDescribedBy(this.cbSelectAllVisible)},t.prototype.refreshHeaderAriaDescribedBy=function(e){var o=e?this.cbSelectAll.getInputElement().id:void 0;this.comp.setAriaDescribedBy(o)},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return e.selected===0&&e.notSelected===0?!1:e.selected>0&&e.notSelected>0?null:e.selected>0},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),o=this.getNextCheckboxState(e);this.cbSelectAll.setValue(o),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.cbSelectAll.getValue(),r=o?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAll.setInputAriaLabel(n+" ("+r+")")},t.prototype.getSelectionCount=function(){var e=this,o=0,r=0,n=function(s){e.gridOptionsWrapper.isGroupSelectsChildren()&&s.group||(s.isSelected()?o++:s.selectable&&r++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:r,selected:o}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType(),o=e===D.ROW_MODEL_TYPE_CLIENT_SIDE;o||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue();e?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if(typeof e=="function"){var o=e;e=o({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})}return e?this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):this.gridOptionsWrapper.isRowModelViewport()?(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1):!0:!1},Ln([m("gridApi")],t.prototype,"gridApi",void 0),Ln([m("columnApi")],t.prototype,"columnApi",void 0),Ln([m("rowModel")],t.prototype,"rowModel",void 0),Ln([m("selectionService")],t.prototype,"selectionService",void 0),t}(V);/**
|
|
803
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
804
|
+
* @version v26.2.1
|
|
805
|
+
* @link http://www.ag-grid.com/
|
|
806
|
+
* @license MIT
|
|
807
|
+
*/var zR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),bt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Uc=function(i){zR(t,i);function t(e,o){var r=i.call(this,e,o)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.column=e,r}return t.prototype.setComp=function(e,o,r){var n=this;i.prototype.setGui.call(this,o),this.comp=e,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.createManagedBean(new BR(this.getPinned(),this.column,r,e,this)),this.createManagedBean(new da([this.column],o)),this.createManagedBean(new In(this.column,o,this.beans)),this.createManagedBean(new Vt(o,{shouldStopEventPropagation:function(s){return n.shouldStopEventPropagation(s)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),o=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(o,e)},t.prototype.createParams=function(){var e=this,o=this.column.getColDef(),r={column:this.column,displayName:this.displayName,enableSorting:o.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(n){e.gridApi.showColumnMenuAfterButtonClick(e.column,n)},progressSort:function(n){e.sortController.progressSort(e.column,!!n,"uiColumnSorted")},setSort:function(n,s){e.sortController.setSortForColumn(e.column,n,!!s,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()};return r},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new jR(this.column)),this.selectAllFeature.setComp(this.comp)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){e.keyCode===W.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.keyCode===W.ENTER&&this.onEnterKeyPressed(e)},t.prototype.onEnterKeyPressed=function(e){var o=this.comp.getUserCompInstance();if(o){if(e.ctrlKey||e.metaKey)this.menuEnabled&&o.showMenu&&(e.preventDefault(),o.showMenu());else if(this.sortable){var r=e.shiftKey;this.sortController.progressSort(this.column,r,"uiColumnSorted")}}},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var o=this.getRowIndex();this.focusService.setFocusedHeader(o,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,o={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var n=e.column.getColDef().headerTooltip;return n}},r=this.createManagedBean(new ia(o,this.beans));r.setComp(this.comp),this.refreshFunctions.push(function(){return r.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,o=function(){var r=e.column.getColDef(),n=e.gridOptionsWrapper,s=ha.getHeaderClassesFromColDef(r,n,e.column,null),a=e.userHeaderClasses;e.userHeaderClasses=new Set(s),s.forEach(function(u){a.has(u)?a.delete(u):e.comp.addOrRemoveCssClass(u,!0)}),a.forEach(function(u){return e.comp.addOrRemoveCssClass(u,!1)})};this.refreshFunctions.push(o),o()},t.prototype.getGui=function(){return this.eGui},t.prototype.setDragSource=function(e){var o=this;this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.moveDragSource={type:l.DragSourceType.HeaderCell,eElement:e,defaultIconName:ze.ICON_HIDE,getDragItem:function(){return o.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return o.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return o.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails(),o=this.comp.getUserCompInstance(),r=o!=null&&this.userCompDetails.componentClass==e.componentClass,n=r?this.attemptHeaderCompRefresh(e.params):!1;n?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var o=this.comp.getUserCompInstance();if(!o||!o.refresh)return!1;var r=o.refresh(e);return r},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef(),o=this.gridOptionsWrapper.isSuppressMovableColumns(),r=!o&&!e.suppressMovable&&!e.lockPosition;return!!r||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,o=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,fe.EVENT_WIDTH_CHANGED,o),o()},t.prototype.setupMovingCss=function(){var e=this,o=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,fe.EVENT_MOVING_CHANGED,o),o()},t.prototype.setupMenuClass=function(){var e=this,o=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,fe.EVENT_MENU_VISIBLE_CHANGED,o),o()},t.prototype.setupSortableClass=function(){var e=this,o=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)},r=function(){e.sortable?e.comp.setAriaSort(Tp(e.column)):e.comp.setAriaSort(void 0)};o(),r(),this.addRefreshFunction(o),this.addRefreshFunction(r),this.addManagedListener(this.column,fe.EVENT_SORT_CHANGED,r)},t.prototype.addColumnHoverListener=function(){var e=this,o=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var r=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",r)}};this.addManagedListener(this.eventService,_.EVENT_COLUMN_HOVER_CHANGED,o),o()},t.prototype.setupFilterCss=function(){var e=this,o=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,fe.EVENT_FILTER_ACTIVE_CHANGED,o),o()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,o=function(r){return e.setActiveHeader(r.type==="mouseenter")};this.addManagedListener(this.getGui(),"mouseenter",o),this.addManagedListener(this.getGui(),"mouseleave",o)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},bt([m("columnModel")],t.prototype,"columnModel",void 0),bt([m("columnHoverService")],t.prototype,"columnHoverService",void 0),bt([m("beans")],t.prototype,"beans",void 0),bt([m("sortController")],t.prototype,"sortController",void 0),bt([m("menuFactory")],t.prototype,"menuFactory",void 0),bt([m("dragAndDropService")],t.prototype,"dragAndDropService",void 0),bt([m("gridApi")],t.prototype,"gridApi",void 0),bt([m("columnApi")],t.prototype,"columnApi",void 0),bt([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),bt([Ne],t.prototype,"removeDragSource",null),t}(Rr);/**
|
|
808
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
809
|
+
* @version v26.2.1
|
|
810
|
+
* @link http://www.ag-grid.com/
|
|
811
|
+
* @license MIT
|
|
812
|
+
*/var $R=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ga=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},KR=function(i){$R(t,i);function t(e,o,r,n){var s=i.call(this)||this;return s.eResize=o,s.comp=e,s.pinned=r,s.columnGroup=n,s}return t.prototype.postConstruct=function(){var e=this;if(!this.columnGroup.isResizable()){this.comp.addOrRemoveResizableCssClass("ag-hidden",!0);return}var o=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(o),!this.gridOptionsWrapper.isSuppressAutoSize()){var r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",function(n){var s=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(a){a.getColDef().suppressAutoSize||s.push(a.getColId())}),s.length>0&&e.columnModel.autoSizeColumns(s,r,"uiColumnResized")})}},t.prototype.onResizeStart=function(e){var o=this,r=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=r.filter(function(a){return a.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(a){return o.resizeStartWidth+=a.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(a){return o.resizeRatios.push(a.getActualWidth()/o.resizeStartWidth)});var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var s=n.getDisplayedLeafColumns();this.resizeTakeFromCols=s.filter(function(a){return a.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(a){return o.resizeTakeFromStartWidth+=a.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(a){return o.resizeTakeFromRatios.push(a.getActualWidth()/o.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,o){var r=[],n=this.normaliseDragChange(o);r.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+n}),this.resizeTakeFromCols&&r.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-n}),this.columnModel.resizeColumnSets(r,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.normaliseDragChange=function(e){var o=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==D.PINNED_LEFT&&(o*=-1):this.pinned===D.PINNED_RIGHT&&(o*=-1),o},ga([m("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),ga([m("columnModel")],t.prototype,"columnModel",void 0),ga([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
813
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
814
|
+
* @version v26.2.1
|
|
815
|
+
* @link http://www.ag-grid.com/
|
|
816
|
+
* @license MIT
|
|
817
|
+
*/var YR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),qR=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},XR=function(i){YR(t,i);function t(e,o){var r=i.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=o,r.comp=e,r}return t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Fe.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var o=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(r){r.addEventListener(fe.EVENT_WIDTH_CHANGED,o),r.addEventListener(fe.EVENT_VISIBLE_CHANGED,o),e.removeChildListenersFuncs.push(function(){r.removeEventListener(fe.EVENT_WIDTH_CHANGED,o),r.removeEventListener(fe.EVENT_VISIBLE_CHANGED,o)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},qR([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
818
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
819
|
+
* @version v26.2.1
|
|
820
|
+
* @link http://www.ag-grid.com/
|
|
821
|
+
* @license MIT
|
|
822
|
+
*/var QR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Bo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},jc=function(i){QR(t,i);function t(e,o){var r=i.call(this,e,o)||this;return r.columnGroup=e,r}return t.prototype.setComp=function(e,o,r){i.prototype.setGui.call(this,o),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var n=this.getParentRowCtrl().getPinned(),s=this.columnGroup.getOriginalColumnGroup().getLeafColumns();this.createManagedBean(new da(s,o)),this.createManagedBean(new In(this.columnGroup,o,this.beans)),this.createManagedBean(new KR(e,r,n,this.columnGroup)),this.createManagedBean(new XR(e,this.columnGroup)),this.createManagedBean(new Vt(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupUserComp=function(){var e=this,o=this.displayName,r={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(p){e.columnModel.setColumnGroupOpened(e.columnGroup.getOriginalColumnGroup(),p,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!o){for(var n=this.columnGroup,s=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===s.length;)n=n.getParent();var a=n.getColGroupDef();a&&(o=a.headerName),o||(o=s?this.columnModel.getDisplayNameForColumn(s[0],"header",!0):"")}var u=this.userComponentFactory.getHeaderGroupCompDetails(r);this.comp.setUserCompDetails(u)},t.prototype.setupTooltip=function(){var e=this,o=this.columnGroup.getColGroupDef(),r={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return o&&o.headerTooltip}};o&&(r.getColDef=function(){return o});var n=this.createManagedBean(new ia(r,this.beans));n.setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getOriginalColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Re.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Re.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var o=e.isExpanded();this.expandable?this.comp.setAriaExpanded(o?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,o=this.columnGroup.getColGroupDef(),r=ha.getHeaderClassesFromColDef(o,this.gridOptionsWrapper,null,this.columnGroup);r.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),r.forEach(function(n){return e.comp.addOrRemoveCssClass(n,!0)})},t.prototype.setupMovingCss=function(){var e=this,o=this.columnGroup.getOriginalColumnGroup(),r=o.getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};r.forEach(function(s){e.addManagedListener(s,fe.EVENT_MOVING_CHANGED,n)}),n()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var o=this.getRowIndex();this.beans.focusService.setFocusedHeader(o,this.columnGroup)}},t.prototype.handleKeyDown=function(e){var o=document.activeElement,r=o===this.eGui;if(!(!this.expandable||!r)&&e.keyCode===W.ENTER){var n=this.columnGroup,s=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getOriginalColumnGroup(),s,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var o=this;if(!this.isSuppressMoving()){var r=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),n={type:l.DragSourceType.HeaderCell,eElement:e,defaultIconName:ze.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return r.forEach(function(s){return s.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return r.forEach(function(s){return s.setMoving(!1,"uiColumnDragged")})}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc(function(){return o.dragAndDropService.removeDragSource(n)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),o={};e.forEach(function(n){return o[n.getId()]=n.isVisible()});var r=[];return this.columnModel.getAllDisplayedColumns().forEach(function(n){e.indexOf(n)>=0&&(r.push(n),$(e,n))}),e.forEach(function(n){return r.push(n)}),{columns:r,visibleState:o}},t.prototype.isSuppressMoving=function(){var e=!1;this.columnGroup.getLeafColumns().forEach(function(r){(r.getColDef().suppressMovable||r.getColDef().lockPosition)&&(e=!0)});var o=e||this.gridOptionsWrapper.isSuppressMovableColumns();return o},Bo([m("beans")],t.prototype,"beans",void 0),Bo([m("columnModel")],t.prototype,"columnModel",void 0),Bo([m("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Bo([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Bo([m("gridApi")],t.prototype,"gridApi",void 0),Bo([m("columnApi")],t.prototype,"columnApi",void 0),t}(Rr);/**
|
|
823
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
824
|
+
* @version v26.2.1
|
|
825
|
+
* @link http://www.ag-grid.com/
|
|
826
|
+
* @license MIT
|
|
827
|
+
*/var JR=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),zc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ZR=0,Mn=function(i){JR(t,i);function t(e,o,r){var n=i.call(this)||this;return n.instanceId=ZR++,n.headerCellCtrls={},n.rowIndex=e,n.pinned=o,n.type=r,n}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),pn()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,_.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,q.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},t.prototype.getHtmlElementForColumnHeader=function(e){if(this.type==l.HeaderRowType.COLUMN){var o=H(this.headerCellCtrls,function(n){return n.getColumnGroupChild()==e});if(o){var r=o.getGui();return r}}},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){var e=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT;if(e){var o=this.pinned!=null;return o?0:this.columnModel.getContainerWidth(D.PINNED_RIGHT)+this.columnModel.getContainerWidth(D.PINNED_LEFT)+this.columnModel.getContainerWidth(null)}return this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),o=[],r=0,n,s;this.columnModel.isPivotMode()?(n=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),s=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnModel.hasFloatingFilters()&&(e++,r=1),n=this.gridOptionsWrapper.getGroupHeaderHeight(),s=this.gridOptionsWrapper.getHeaderHeight());for(var a=1+r,u=e-a,p=0;p<u;p++)o.push(n);o.push(s);for(var p=0;p<r;p++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());for(var g=0,p=0;p<this.rowIndex;p++)g+=o[p];this.comp.setTop(g+"px"),this.comp.setHeight(o[this.rowIndex]+"px")},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,o=this.headerCellCtrls;this.headerCellCtrls={};var r=this.getColumnsInViewport();r.forEach(function(a){if(!a.isEmptyGroup()){var u=a.getUniqueId(),p=o[u];delete o[u];var g=p&&p.getColumnGroupChild()!=a;if(g&&(e.destroyBean(p),p=void 0),p==null)switch(e.type){case l.HeaderRowType.FLOATING_FILTER:p=e.createBean(new kc(a,e));break;case l.HeaderRowType.COLUMN_GROUP:p=e.createBean(new jc(a,e));break;default:p=e.createBean(new Uc(a,e));break}e.headerCellCtrls[u]=p}});var n=function(a){var u=e.focusService.isHeaderWrapperFocused(a);if(!u)return!1;var p=e.columnModel.isDisplayed(a.getColumnGroupChild());return p};ve(o,function(a,u){var p=n(u);p?e.headerCellCtrls[a]=u:e.destroyBean(u)});var s=_t(this.headerCellCtrls);this.comp.setHeaderCtrls(s)},t.prototype.getColumnsInViewport=function(){var e=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT;return e?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(this.pinned!=null)return[];var o=[],r=this.getActualDepth();return[D.PINNED_LEFT,null,D.PINNED_RIGHT].forEach(function(n){var s=e.columnModel.getVirtualHeaderGroupRow(n,r);o=o.concat(s)}),o},t.prototype.getActualDepth=function(){return this.type==l.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,o){var r=_t(this.headerCellCtrls),n=H(r,function(s){return s.getColumnGroupChild()==e});return n?(n.focus(o),!0):!1},zc([m("columnModel")],t.prototype,"columnModel",void 0),zc([m("focusService")],t.prototype,"focusService",void 0),t}(V);/**
|
|
828
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
829
|
+
* @version v26.2.1
|
|
830
|
+
* @link http://www.ag-grid.com/
|
|
831
|
+
* @license MIT
|
|
832
|
+
*/var eS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Sr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},tS=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},$c=function(i){eS(t,i);function t(e){var o=i.call(this)||this;return o.groupsRowCtrls=[],o.pinned=e,o}return t.prototype.setComp=function(e,o){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(o),this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var o=new Hc(this.pinned,e);this.createManagedBean(o)},t.prototype.refresh=function(e){var o=this;e===void 0&&(e=!1);var r=new po,n=this.focusService.getFocusHeaderToUseAfterRefresh(),s=function(){var g=o.columnModel.getHeaderRowCount()-1;o.groupsRowCtrls=o.destroyBeans(o.groupsRowCtrls);for(var y=0;y<g;y++){var C=o.createBean(new Mn(r.next(),o.pinned,l.HeaderRowType.COLUMN_GROUP));o.groupsRowCtrls.push(C)}},a=function(){var g=r.next(),y=o.columnsRowCtrl==null||!e||o.columnsRowCtrl.getRowIndex()!==g;y&&(o.destroyBean(o.columnsRowCtrl),o.columnsRowCtrl=o.createBean(new Mn(g,o.pinned,l.HeaderRowType.COLUMN)))},u=function(){var g=!o.columnModel.isPivotMode()&&o.columnModel.hasFloatingFilters(),y=function(){o.filtersRowCtrl=o.destroyBean(o.filtersRowCtrl)};if(!g){y();return}var C=r.next();if(o.filtersRowCtrl){var E=o.filtersRowCtrl.getRowIndex()!==C;(!e||E)&&y()}o.filtersRowCtrl||(o.filtersRowCtrl=o.createBean(new Mn(C,o.pinned,l.HeaderRowType.FLOATING_FILTER)))};s(),a(),u();var p=this.getAllCtrls();this.comp.setCtrls(p),this.restoreFocusOnHeader(n)},t.prototype.restoreFocusOnHeader=function(e){e==null||e.column.getPinned()!=this.pinned||this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=tS(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;this.pinned==null&&this.createManagedBean(new ca(function(o){return e.comp.setCenterWidth(o+"px")}))},t.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},t.prototype.setupPinnedWidth=function(){var e=this;if(this.pinned!=null){var o=this.pinned===D.PINNED_LEFT,r=this.pinned===D.PINNED_RIGHT,n=function(){var s=o?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(s!=null){var a=s==0,u=e.gridOptionsWrapper.isEnableRtl(),p=e.gridOptionsWrapper.getScrollbarWidth(),g=e.scrollVisibleService.isVerticalScrollShowing()&&(u&&o||!u&&r),y=g?s+p:s;e.comp.setPinnedContainerWidth(y+"px"),e.comp.addOrRemoveCssClass("ag-hidden",a)}};this.addManagedListener(this.eventService,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,_.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}},t.prototype.getHtmlElementForColumnHeader=function(e){if(this.columnsRowCtrl)return this.columnsRowCtrl.getHtmlElementForColumnHeader(e)},t.prototype.getRowType=function(e){var o=this.getAllCtrls(),r=o[e];return r?r.getType():void 0},t.prototype.focusHeader=function(e,o,r){var n=this.getAllCtrls(),s=n[e];return s?s.focusHeader(o,r):!1},t.prototype.getRowCount=function(){return this.getAllCtrls().length},Sr([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Sr([m("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Sr([m("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Sr([m("columnModel")],t.prototype,"columnModel",void 0),Sr([m("focusService")],t.prototype,"focusService",void 0),t}(V);/**
|
|
833
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
834
|
+
* @version v26.2.1
|
|
835
|
+
* @link http://www.ag-grid.com/
|
|
836
|
+
* @license MIT
|
|
837
|
+
*/var oS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),va=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Gn=function(i){oS(t,i);function t(e){var o=i.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=e,o}return t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var o={addOrRemoveCssClass:function(n,s){return e.addOrRemoveCssClass(n,s)},setCtrls:function(n){return e.setCtrls(n)},setCenterWidth:function(n){return e.eCenterContainer.style.width=n},setContainerTransform:function(n){return e.eCenterContainer.style.transform=n},setPinnedContainerWidth:function(n){var s=e.getGui();s.style.width=n,s.style.maxWidth=n,s.style.minWidth=n}},r=this.createManagedBean(new $c(this.pinned));r.setComp(o,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==D.PINNED_LEFT,o=this.pinned==D.PINNED_RIGHT,r=e?t.PINNED_LEFT_TEMPLATE:o?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var o=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var n,s=function(a){var u=a.getGui(),p=u.parentElement!=o.eRowContainer;p&&o.eRowContainer.appendChild(u),n&&Ps(o.eRowContainer,u,n),n=u};e.forEach(function(a){var u=a.getInstanceId(),p=r[u];delete r[u];var g=p||o.createBean(new Fc(a));o.headerRowComps[u]=g,o.rowCompsList.push(g),s(g)}),_t(r).forEach(function(a){return o.destroyRowComp(a)})},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE=`<div class="ag-header-viewport" role="presentation">
|
|
838
|
+
<div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>
|
|
839
|
+
</div>`,va([x("eCenterContainer")],t.prototype,"eCenterContainer",void 0),va([k],t.prototype,"init",null),va([Ne],t.prototype,"destroyRowComps",null),t}(se);/**
|
|
840
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
841
|
+
* @version v26.2.1
|
|
842
|
+
* @link http://www.ag-grid.com/
|
|
843
|
+
* @license MIT
|
|
844
|
+
*/var rS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),nS=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Kc=function(i){rS(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.postConstruct=function(){var e=this,o={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setHeightAndMinHeight:function(s){e.getGui().style.height=s,e.getGui().style.minHeight=s}},r=this.createManagedBean(new Lc);r.setComp(o,this.getGui(),this.getFocusableElement());var n=function(s){e.createManagedBean(s),e.appendChild(s)};n(new Gn(D.PINNED_LEFT)),n(new Gn(null)),n(new Gn(D.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation" unselectable="on"/>',nS([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
845
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
846
|
+
* @version v26.2.1
|
|
847
|
+
* @link http://www.ag-grid.com/
|
|
848
|
+
* @license MIT
|
|
849
|
+
*/var iS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),xn=function(){return xn=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},xn.apply(this,arguments)},vt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Yc=function(i){iS(t,i);function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.allAdvancedFilters=new Map,o.activeAdvancedFilters=[],o.quickFilter=null,o.quickFilterParts=null,o.processingFilterChange=!1,o}e=t,t.prototype.init=function(){this.addManagedListener(this.eventService,_.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(o){var r=this,n=[],s=this.getFilterModel();if(o){var a=Vs(Object.keys(o));this.allAdvancedFilters.forEach(function(u,p){var g=o[p];n.push(r.setModelOnFilterWrapper(u.filterPromise,g)),a.delete(p)}),a.forEach(function(u){var p=r.columnModel.getPrimaryColumn(u);if(!p){console.warn("AG-Grid: setFilterModel() - no column found for colId: "+u);return}if(!p.isFilterAllowed()){console.warn("AG-Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+u);return}var g=r.getOrCreateFilterWrapper(p,"NO_UI");n.push(r.setModelOnFilterWrapper(g.filterPromise,o[u]))})}else this.allAdvancedFilters.forEach(function(u){n.push(r.setModelOnFilterWrapper(u.filterPromise,null))});Ke.all(n).then(function(){var u=r.getFilterModel(),p=[];r.allAdvancedFilters.forEach(function(g,y){var C=s?s[y]:null,E=u?u[y]:null;X.jsonEquals(C,E)||p.push(g.column)}),p.length>0&&r.onFilterChanged({columns:p})})},t.prototype.setModelOnFilterWrapper=function(o,r){return new Ke(function(n){o.then(function(s){typeof s.setModel!="function"&&(console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"),n()),(s.setModel(r)||Ke.resolve()).then(function(){return n()})})})},t.prototype.getFilterModel=function(){var o={};return this.allAdvancedFilters.forEach(function(r,n){var s=r.filterPromise,a=s.resolveNow(null,function(p){return p});if(a==null)return null;if(typeof a.getModel!="function"){console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel");return}var u=a.getModel();h(u)&&(o[n]=u)}),o},t.prototype.isAdvancedFilterPresent=function(){return this.activeAdvancedFilters.length>0},t.prototype.updateActiveFilters=function(){var o=this;this.activeAdvancedFilters.length=0;var r=function(n){return n?n.isFilterActive?n.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1):!1};this.allAdvancedFilters.forEach(function(n){if(n.filterPromise.resolveNow(!1,r)){var s=n.filterPromise.resolveNow(null,function(a){return a});o.activeAdvancedFilters.push(s)}})},t.prototype.updateFilterFlagInColumns=function(o,r){this.allAdvancedFilters.forEach(function(n){var s=n.filterPromise.resolveNow(!1,function(a){return a.isFilterActive()});n.column.setFilterActive(s,o,r)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isAdvancedFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.doAdvancedFiltersPass=function(o,r){for(var n=o.data,s=0;s<this.activeAdvancedFilters.length;s++){var a=this.activeAdvancedFilters[s];if(!(a==null||a===r)){if(typeof a.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!a.doesFilterPass({node:o,data:n}))return!1}}return!0},t.prototype.parseQuickFilter=function(o){return h(o)?this.gridOptionsWrapper.isRowModelDefault()?o.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(o){var r=this.parseQuickFilter(o);this.quickFilter!==r&&(this.quickFilter=r,this.setQuickFilterParts(),this.onFilterChanged())},t.prototype.onFilterChanged=function(o){o===void 0&&(o={});var r=o.filterInstance,n=o.additionalEventAttributes,s=o.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.allAdvancedFilters.forEach(function(u){u.filterPromise&&u.filterPromise.then(function(p){p&&p!==r&&p.onAnyFilterChanged&&p.onAnyFilterChanged()})});var a={type:_.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:s||[]};n&&rt(a,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(a),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return this.quickFilter!==null},t.prototype.doesRowPassOtherFilters=function(o,r){return this.doesRowPassFilter({rowNode:r,filterInstanceToSkip:o})},t.prototype.doesRowPassQuickFilterNoCache=function(o,r){var n=this,s=this.columnModel.getAllColumnsForQuickFilter();return So(s,function(a){var u=n.getQuickFilterTextForColumn(a,o);return h(u)&&u.indexOf(r)>=0})},t.prototype.doesRowPassQuickFilterCache=function(o,r){return o.quickFilterAggregateText||this.aggregateRowForQuickFilter(o),o.quickFilterAggregateText.indexOf(r)>=0},t.prototype.doesRowPassQuickFilter=function(o){var r=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return ir(this.quickFilterParts,function(s){return n?r.doesRowPassQuickFilterCache(o,s):r.doesRowPassQuickFilterNoCache(o,s)})},t.prototype.doesRowPassFilter=function(o){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(o.rowNode)||this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(o.rowNode)||this.isAdvancedFilterPresent()&&!this.doAdvancedFiltersPass(o.rowNode,o.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(o,r){var n=this.valueService.getValue(o,r,!0),s=o.getColDef();if(s.getQuickFilterText){var a={value:n,node:r,data:r.data,column:o,colDef:s,context:this.gridOptionsWrapper.getContext()};n=s.getQuickFilterText(a)}return h(n)?n.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(o){var r=this,n=[],s=this.columnModel.getAllColumnsForQuickFilter();Ee(s,function(a){var u=r.getQuickFilterTextForColumn(a,o);h(u)&&n.push(u)}),o.quickFilterAggregateText=n.join(e.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(o){this.allAdvancedFilters.forEach(function(r){r.filterPromise.then(function(n){n.onNewRowsLoaded&&n.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(o),this.updateActiveFilters()},t.prototype.createValueGetter=function(o){var r=this;return function(n){return r.valueService.getValue(o,n,!0)}},t.prototype.getFilterComponent=function(o,r,n){if(n===void 0&&(n=!0),n)return this.getOrCreateFilterWrapper(o,r).filterPromise;var s=this.cachedFilter(o);return s?s.filterPromise:null},t.prototype.isFilterActive=function(o){var r=this.cachedFilter(o);return!!r&&r.filterPromise.resolveNow(!1,function(n){return n.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(o,r){var n=this.cachedFilter(o);return n?r!=="NO_UI"&&this.putIntoGui(n,r):(n=this.createFilterWrapper(o,r),this.allAdvancedFilters.set(o.getColId(),n)),n},t.prototype.cachedFilter=function(o){return this.allAdvancedFilters.get(o.getColId())},t.prototype.createFilterInstance=function(o,r){var n=this,s=oe.isRegistered(l.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=o.getColDef(),u,p=xn(xn({},this.createFilterParams(o,a,r)),{filterModifiedCallback:function(){var C={type:_.EVENT_FILTER_MODIFIED,api:n.gridApi,columnApi:n.columnApi,column:o,filterInstance:u};n.eventService.dispatchEvent(C)},filterChangedCallback:function(C){return n.onFilterChanged({filterInstance:u,additionalEventAttributes:C,columns:[o]})},doesRowPassOtherFilter:function(C){return n.doesRowPassOtherFilters(u,C)}}),g=this.userComponentFactory.getFilterDetails(a,p,s);if(!g)return null;var y=g.newAgStackInstance();return y&&y.then(function(C){return u=C}),y},t.prototype.createFilterParams=function(o,r,n){n===void 0&&(n=null);var s={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:o,colDef:Xi(r),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(o),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}};return n&&(s.$scope=n),s},t.prototype.createFilterWrapper=function(o,r){var n={column:o,filterPromise:null,scope:null,compiledElement:null,guiPromise:Ke.resolve(null)};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(o,n.scope),n.filterPromise&&this.putIntoGui(n,r),n},t.prototype.putIntoGui=function(o,r){var n=this,s=document.createElement("div");s.className="ag-filter",o.guiPromise=new Ke(function(a){o.filterPromise.then(function(u){var p=u.getGui();if(h(p)||console.warn("getGui method from filter returned "+p+", it should be a DOM element or an HTML template string."),typeof p=="string"&&(p=Pt(p)),s.appendChild(p),o.scope){var g=n.$compile(s)(o.scope);o.compiledElement=g,window.setTimeout(function(){return o.scope.$apply()},0)}a(s),n.eventService.dispatchEvent({type:_.EVENT_FILTER_OPENED,column:o.column,source:r,eGui:s,api:n.gridApi,columnApi:n.columnApi})})})},t.prototype.onNewColumnsLoaded=function(){var o=this,r=!1,n=[];this.allAdvancedFilters.forEach(function(s){var a=!o.columnModel.getPrimaryColumn(s.column);a&&(r=!0,n.push(s.column),o.disposeFilterWrapper(s,"filterDestroyed"))}),r&&this.onFilterChanged({columns:n})},t.prototype.destroyFilter=function(o,r){r===void 0&&(r="api");var n=this.allAdvancedFilters.get(o.getColId());n&&(this.disposeFilterWrapper(n,r),this.onFilterChanged({columns:[o]}))},t.prototype.disposeFilterWrapper=function(o,r){var n=this;o.filterPromise.then(function(s){(s.setModel(null)||Ke.resolve()).then(function(){n.getContext().destroyBean(s),o.column.setFilterActive(!1,r),o.scope&&(o.compiledElement&&o.compiledElement.remove(),o.scope.$destroy()),n.allAdvancedFilters.delete(o.column.getColId())})})},t.prototype.destroy=function(){var o=this;i.prototype.destroy.call(this),this.allAdvancedFilters.forEach(function(r){return o.disposeFilterWrapper(r,"filterDestroyed")})};var e;return t.QUICK_FILTER_SEPARATOR=`
|
|
850
|
+
`,vt([m("$compile")],t.prototype,"$compile",void 0),vt([m("$scope")],t.prototype,"$scope",void 0),vt([m("valueService")],t.prototype,"valueService",void 0),vt([m("columnModel")],t.prototype,"columnModel",void 0),vt([m("rowModel")],t.prototype,"rowModel",void 0),vt([m("columnApi")],t.prototype,"columnApi",void 0),vt([m("gridApi")],t.prototype,"gridApi",void 0),vt([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),vt([k],t.prototype,"init",null),vt([Ne],t.prototype,"destroy",null),t=e=vt([Y("filterManager")],t),t}(V);/**
|
|
851
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
852
|
+
* @version v26.2.1
|
|
853
|
+
* @link http://www.ag-grid.com/
|
|
854
|
+
* @license MIT
|
|
855
|
+
*/var sS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Or=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},qc=function(i){sS(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.initialised=!1,e}return t.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},t.prototype.getValue=function(e,o,r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this.initialised||this.init(),!!o){var s=e.getColDef(),a=s.field,u=e.getId(),p=o.data,g,y=o.groupData&&o.groupData[u]!==void 0,C=!n&&o.aggData&&o.aggData[u]!==void 0;if(r&&s.filterValueGetter?g=this.executeFilterValueGetter(s.filterValueGetter,p,e,o):this.gridOptionsWrapper.isTreeData()&&C?g=o.aggData[u]:this.gridOptionsWrapper.isTreeData()&&s.valueGetter?g=this.executeValueGetter(s.valueGetter,p,e,o):this.gridOptionsWrapper.isTreeData()&&a&&p?g=on(p,a,e.isFieldContainsDots()):y?g=o.groupData[u]:C?g=o.aggData[u]:s.valueGetter?g=this.executeValueGetter(s.valueGetter,p,e,o):a&&p&&(g=on(p,a,e.isFieldContainsDots())),this.cellExpressions&&typeof g=="string"&&g.indexOf("=")===0){var E=g.substring(1);g=this.executeValueGetter(E,p,e,o)}if(g==null){var S=this.getOpenedGroup(o,e);if(S!=null)return S}return g}},t.prototype.getOpenedGroup=function(e,o){if(this.gridOptionsWrapper.isShowOpenedGroup()){var r=o.getColDef();if(r.showRowGroup)for(var n=o.getColDef().showRowGroup,s=e.parent;s!=null;){if(s.rowGroupColumn&&(n===!0||n===s.rowGroupColumn.getId()))return s.key;s=s.parent}}},t.prototype.setValue=function(e,o,r,n){var s=this.columnModel.getPrimaryColumn(o);if(!(!e||!s)){f(e.data)&&(e.data={});var a=s.getColDef(),u=a.field,p=a.newValueHandler,g=a.valueSetter;if(f(u)&&f(p)&&f(g)){console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");return}var y={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:r,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};y.newValue=r;var C;if(p&&h(p)?C=p(y):h(g)?C=this.expressionService.evaluate(g,y):C=this.setValueUsingField(e.data,u,r,s.isFieldContainsDots()),C===void 0&&(C=!0),!!C){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),y.newValue=this.getValue(s,e);var E=s.getColDef().onCellValueChanged;typeof E=="function"&&setTimeout(function(){return E(y)},0);var S={type:_.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:y.column,api:y.api,columnApi:y.columnApi,colDef:y.colDef,context:y.context,data:e.data,node:e,oldValue:y.oldValue,newValue:y.newValue,value:y.newValue,source:n};this.eventService.dispatchEvent(S)}}},t.prototype.setValueUsingField=function(e,o,r,n){if(!o)return!1;var s=!1;if(!n)e[o]=r;else for(var a=o.split("."),u=e;a.length>0&&u;){var p=a.shift();a.length===0?u[p]=r:u=u[p]}return!s},t.prototype.executeFilterValueGetter=function(e,o,r,n){var s={data:o,node:n,column:r,colDef:r.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)};return this.expressionService.evaluate(e,s)},t.prototype.executeValueGetter=function(e,o,r,n){var s=r.getId(),a=this.valueCache.getValue(n,s);if(a!==void 0)return a;var u={data:o,node:n,column:r,colDef:r.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)},p=this.expressionService.evaluate(e,u);return this.valueCache.setValue(n,s,p),p},t.prototype.getValueCallback=function(e,o){var r=this.columnModel.getPrimaryColumn(o);return r?this.getValue(r,e):null},t.prototype.getKeyForNode=function(e,o){var r=this.getValue(e,o),n=e.getColDef().keyCreator,s=r;if(n){var a={value:r,colDef:e.getColDef(),column:e,node:o,data:o.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=n(a)}return typeof s=="string"||s==null||(s=String(s),s==="[object Object]"&&we(function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")},"getKeyForNode - warn about [object,object]")),s},Or([m("expressionService")],t.prototype,"expressionService",void 0),Or([m("columnModel")],t.prototype,"columnModel",void 0),Or([m("valueCache")],t.prototype,"valueCache",void 0),Or([k],t.prototype,"init",null),t=Or([Y("valueService")],t),t}(V);/**
|
|
856
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
857
|
+
* @version v26.2.1
|
|
858
|
+
* @link http://www.ag-grid.com/
|
|
859
|
+
* @license MIT
|
|
860
|
+
*/var aS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Xc=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i.AUTO_HEIGHT="ag-layout-auto-height",i.NORMAL="ag-layout-normal",i.PRINT="ag-layout-print"})(l.LayoutCssClasses||(l.LayoutCssClasses={}));var ya=function(i){aS(t,i);function t(e){var o=i.call(this)||this;return o.view=e,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),o={autoHeight:e===D.DOM_LAYOUT_AUTO_HEIGHT,normal:e===D.DOM_LAYOUT_NORMAL,print:e===D.DOM_LAYOUT_PRINT},r=o.autoHeight?l.LayoutCssClasses.AUTO_HEIGHT:o.print?l.LayoutCssClasses.PRINT:l.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(r,o)},Xc([m("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xc([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
861
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
862
|
+
* @version v26.2.1
|
|
863
|
+
* @link http://www.ag-grid.com/
|
|
864
|
+
* @license MIT
|
|
865
|
+
*/var lS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Nt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},uS=function(i){lS(t,i);function t(e){var o=i.call(this)||this;return o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=e,o.resetLastHorizontalScrollElementDebounced=zt(o.resetLastHorizontalScrollElement.bind(o),500),o}return t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(o){e.centerRowContainerCon=o.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCon.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var o=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?zt(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",o)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){e===void 0&&(e=this.centerRowContainerCon.getCenterViewportScrollLeft());var o=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),n=this.ctrlsService.getBottomCenterRowContainerCtrl(),s=this.ctrlsService.getFakeHScrollCtrl(),a=this.ctrlsService.getHeaderRowContainerCtrl();a.setHorizontalScroll(o),n.setContainerTranslateX(o),r.setContainerTranslateX(o);var u=this.lastHorizontalScrollElement===this.centerRowContainerCon.getViewportElement()?s.getViewport():this.centerRowContainerCon.getViewportElement();vn(u,Math.abs(e),this.enableRtl)},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCon.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var o=this.centerRowContainerCon.getViewportElement(),r=o.scrollLeft;this.shouldBlockScrollUpdate("horizontal",r,!0)||(this.doHorizontalScroll(Math.round(cr(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var o=this.ctrlsService.getFakeHScrollCtrl().getViewport(),r=cr(o,this.enableRtl);this.scrollLeft===e&&e===r||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var o=this,r={type:_.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(r),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var n=nt({},r,{type:_.EVENT_BODY_SCROLL_END});o.eventService.dispatchEvent(n)},100)},t.prototype.shouldBlockScrollUpdate=function(e,o,r){if(r===void 0&&(r=!1),r&&!bo())return!1;if(e==="vertical"){var n=ur(this.eBodyViewport),s=this.eBodyViewport.scrollHeight;if(o<0||o+n>s)return!0}if(e==="horizontal"){var a=this.centerRowContainerCon.getCenterWidth(),u=this.centerRowContainerCon.getViewportElement().scrollWidth;if(this.enableRtl&&pr()){if(o>0)return!0}else if(o<0)return!0;if(Math.abs(o)+a>u)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCon.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCon.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCon.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var o=0,r=this.centerRowContainerCon.getViewportElement().scrollWidth-this.centerRowContainerCon.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(this.enableRtl&&pr()?e=e>0?0:r:e=Math.min(Math.max(e,o),r)),vn(this.centerRowContainerCon.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){var e={top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight};return e},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCon.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCon.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var o=this.centerRowContainerCon.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(o+e),this.centerRowContainerCon.getViewportElement().scrollLeft-o},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,o){o===void 0&&(o=null);for(var r=this.rowModel.getRowCount(),n=typeof e=="function",s=-1,a=0;a<r;a++){var u=this.rowModel.getRow(a);if(n){if(e(u)){s=a;break}}else if(e===u||e===u.data){s=a;break}}s>=0&&this.ensureIndexVisible(s,o)},t.prototype.ensureIndexVisible=function(e,o){if(this.gridOptionsWrapper.getDomLayout()!==D.DOM_LAYOUT_PRINT){var r=this.paginationProxy.getRowCount();if(typeof e!="number"||e<0||e>=r){console.warn("invalid row index for ensureIndexVisible: "+e);return}var n=this.gridOptionsWrapper.isPagination(),s=n&&!this.gridOptionsWrapper.isSuppressPaginationPanel();s||this.paginationProxy.goToPageWithIndex(e);var a=this.paginationProxy.getRow(e),u;do{var p=a.rowTop,g=a.rowHeight,y=this.paginationProxy.getPixelOffset(),C=a.rowTop-y,E=C+a.rowHeight,S=this.getVScrollPosition(),b=this.heightScaler.getDivStretchOffset(),F=S.top+b,B=S.bottom+b,M=B-F,L=this.heightScaler.getScrollPositionForPixel(C),j=this.heightScaler.getScrollPositionForPixel(E-M),J=Math.min((L+j)/2,C),ue=F>C,te=B<E,pe=null;o==="top"?pe=L:o==="bottom"?pe=j:o==="middle"?pe=J:ue?pe=L:te&&(pe=j),pe!==null&&(this.eBodyViewport.scrollTop=pe,this.rowRenderer.redrawAfterScroll()),u=p!==a.rowTop||g!==a.rowHeight}while(u);this.animationFrameService.flushAllFrames()}},t.prototype.ensureColumnVisible=function(e){var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var r=o.getLeft(),n=r+o.getActualWidth(),s=this.centerRowContainerCon.getCenterWidth(),a=this.centerRowContainerCon.getCenterViewportScrollLeft(),u=this.columnModel.getBodyContainerWidth(),p,g;this.enableRtl?(p=u-a-s,g=u-a):(p=a,g=s+a);var y=p>r,C=g<n,E=s<o.getActualWidth(),S=y||E,b=C;if(S||b){var F=void 0;this.enableRtl?F=S?u-s-r:u-n:F=S?r:n-s,this.centerRowContainerCon.setCenterViewportScrollLeft(F)}this.centerRowContainerCon.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},Nt([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Nt([m("animationFrameService")],t.prototype,"animationFrameService",void 0),Nt([m("columnApi")],t.prototype,"columnApi",void 0),Nt([m("gridApi")],t.prototype,"gridApi",void 0),Nt([m("paginationProxy")],t.prototype,"paginationProxy",void 0),Nt([m("rowModel")],t.prototype,"rowModel",void 0),Nt([m("rowContainerHeightService")],t.prototype,"heightScaler",void 0),Nt([m("rowRenderer")],t.prototype,"rowRenderer",void 0),Nt([m("columnModel")],t.prototype,"columnModel",void 0),Nt([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
866
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
867
|
+
* @version v26.2.1
|
|
868
|
+
* @link http://www.ag-grid.com/
|
|
869
|
+
* @license MIT
|
|
870
|
+
*/var Qc=function(){function i(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=t.scrollAxis.indexOf("x")!==-1,this.scrollVertically=t.scrollAxis.indexOf("y")!==-1,this.scrollByTick=t.scrollByTick!=null?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return i.prototype.check=function(t,e){e===void 0&&(e=!1);var o=e||this.shouldSkipVerticalScroll();if(!(o&&this.shouldSkipHorizontalScroll())){var r=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=t.clientX<r.left+n,this.tickRight=t.clientX>r.right-n,this.tickUp=t.clientY<r.top+n&&!o,this.tickDown=t.clientY>r.bottom-n&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},i.prototype.ensureTickingStarted=function(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},i.prototype.doTick=function(){this.tickCount++;var t;if(t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-t),this.tickRight&&this.setHorizontalPosition(o+t)}this.onScrollCallback&&this.onScrollCallback()},i.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},i}();/**
|
|
871
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
872
|
+
* @version v26.2.1
|
|
873
|
+
* @link http://www.ag-grid.com/
|
|
874
|
+
* @license MIT
|
|
875
|
+
*/var pS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ma=function(){return ma=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},ma.apply(this,arguments)},ut=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Jc=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},cS=function(i){pS(t,i);function t(e){var o=i.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=e,o}return t.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var o=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,function(){o()}),o(),this.ctrlsService.whenReady(function(){var r=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Qc({scrollContainer:r.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return r.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(n){return r.getScrollFeature().setVerticalScrollPosition(n)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!v(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===l.DragSourceType.RowDrag},t.prototype.getIconName=function(){var e=this.gridOptionsWrapper.isRowDragManaged();return e&&this.shouldPreventRowMove()?ze.ICON_NOT_ALLOWED:ze.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var o=this.gridOptionsWrapper.isRowDragMultiRow(),r=this.selectionService.getSelectedNodes(),n=e.dragItem.rowNode;return o&&r.indexOf(n)!==-1?(this.isMultiRowDrag=!0,Jc(r)):(this.isMultiRowDrag=!1,[n])},t.prototype.onDragEnter=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(o){o.setDragging(!0)}),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){var o=e.dragSource.dragSourceDomDataKey;return o===this.gridOptionsWrapper.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var o=this.ctrlsService.getGridBodyCtrl(),r=o.getGui(),n=e.dropZoneTarget;return!r.contains(n)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var o=this.mouseEventService.getNormalisedPosition(e).y,r=this.gridOptionsWrapper.isRowDragManaged();r&&this.doManagedDrag(e,o),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,o){var r=this,n,s=this.isFromThisGrid(e);s?(n=[e.dragItem.rowNode],this.isMultiRowDrag&&(n=Jc(this.selectionService.getSelectedNodes()).sort(function(u,p){return r.getRowIndexNumber(u)-r.getRowIndexNumber(p)})),e.dragItem.rowNodes=n):n=e.dragItem.rowNodes;var a=this.gridOptionsWrapper.isRowDragManaged();a&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!s?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(n[0],o):this.moveRows(n,o))},t.prototype.getRowIndexNumber=function(e){return parseInt(le(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var o=this,r=this.clientSideRowModel.getLastHighlightedRowNode(),n=r&&r.highlighted===l.RowHighlightPosition.Below,s=this.mouseEventService.getNormalisedPosition(e).y,a=e.dragItem.rowNodes,u=n?1:0;if(this.isFromThisGrid(e))a.forEach(function(y){y.rowTop<s&&(u-=1)}),this.moveRows(a,s,u);else{var p=this.gridOptionsWrapper.getRowNodeIdFunc(),g=this.clientSideRowModel.getRowIndexAtPixel(s)+1;this.clientSideRowModel.getHighlightPosition(s)===l.RowHighlightPosition.Above&&g--,this.clientSideRowModel.updateRowData({add:a.map(function(y){return y.data}).filter(function(y){return!o.clientSideRowModel.getRowNode(p?p(y):y.id)}),addIndex:g})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,o,r){r===void 0&&(r=0);var n=this.clientSideRowModel.ensureRowsAtPixel(e,o,r);n&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var o=this;if(!e.getContainer()){we(function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")},"add-drop-zone-empty-target");return}if(this.dragAndDropService.findExternalZone(e)){console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");return}var r={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,r=e):(e.onDragEnter&&(r.onDragEnter=function(n){e.onDragEnter(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_ENTER,n))}),e.onDragLeave&&(r.onDragLeave=function(n){e.onDragLeave(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_LEAVE,n))}),e.onDragging&&(r.onDragging=function(n){e.onDragging(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_MOVE,n))}),e.onDragStop&&(r.onDragStop=function(n){e.onDragStop(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(ma({isInterestedIn:function(n){return n===l.DragSourceType.RowDrag},getIconName:function(){return ze.ICON_MOVE},external:!0},r))},t.prototype.getRowDropZone=function(e){var o=this,r=this.getContainer.bind(this),n=this.onDragEnter.bind(this),s=this.onDragLeave.bind(this),a=this.onDragging.bind(this),u=this.onDragStop.bind(this);return e?{getContainer:r,onDragEnter:e.onDragEnter?function(p){n(p),e.onDragEnter(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_ENTER,p))}:n,onDragLeave:e.onDragLeave?function(p){s(p),e.onDragLeave(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_LEAVE,p))}:s,onDragging:e.onDragging?function(p){a(p),e.onDragging(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_MOVE,p))}:a,onDragStop:e.onDragStop?function(p){u(p),e.onDragStop(o.draggingToRowDragEvent(_.EVENT_ROW_DRAG_END,p))}:u,fromGrid:!0}:{getContainer:r,onDragEnter:n,onDragLeave:s,onDragging:a,onDragStop:u,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,o){var r=this.mouseEventService.getNormalisedPosition(o).y,n=r>this.paginationProxy.getCurrentPageHeight(),s=-1,a;n||(s=this.rowModel.getRowIndexAtPixel(r),a=this.rowModel.getRow(s));var u;switch(o.vDirection){case l.VerticalDirection.Down:u="down";break;case l.VerticalDirection.Up:u="up";break;default:u=null;break}var p={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:o.event,node:o.dragItem.rowNode,nodes:o.dragItem.rowNodes,overIndex:s,overNode:a,y:r,vDirection:u};return p},t.prototype.dispatchGridEvent=function(e,o){var r=this.draggingToRowDragEvent(e,o);this.eventService.dispatchEvent(r)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(o){o.setDragging(!1)})},ut([m("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ut([m("rowModel")],t.prototype,"rowModel",void 0),ut([m("paginationProxy")],t.prototype,"paginationProxy",void 0),ut([m("columnModel")],t.prototype,"columnModel",void 0),ut([m("focusService")],t.prototype,"focusService",void 0),ut([m("sortController")],t.prototype,"sortController",void 0),ut([m("filterManager")],t.prototype,"filterManager",void 0),ut([m("selectionService")],t.prototype,"selectionService",void 0),ut([m("mouseEventService")],t.prototype,"mouseEventService",void 0),ut([m("ctrlsService")],t.prototype,"ctrlsService",void 0),ut([he("rangeService")],t.prototype,"rangeService",void 0),ut([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
876
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
877
|
+
* @version v26.2.1
|
|
878
|
+
* @link http://www.ag-grid.com/
|
|
879
|
+
* @license MIT
|
|
880
|
+
*/var dS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),et=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i.ANIMATION_ON="ag-row-animation",i.ANIMATION_OFF="ag-row-no-animation"})(l.RowAnimationCssClasses||(l.RowAnimationCssClasses={}));var Zc="ag-selectable",ed="ag-force-vertical-scroll",td="ag-column-moving",od=function(i){dS(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.angularApplyTriggered=!1,e}return t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,o,r,n,s){this.comp=e,this.eGridBody=o,this.eBodyViewport=r,this.eTop=n,this.eBottom=s,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new ya(this.comp)),this.bodyScrollFeature=this.createManagedBean(new uS(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.ctrlsService.registerGridBodyCtrl(this),this.addEventListeners(),this.addFocusListeners([n,r,s]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.$scope&&this.addAngularApplyCheck()},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},t.prototype.addFocusListeners=function(e){var o=this;e.forEach(function(r){o.addManagedListener(r,"focusin",function(){Q(r,"ag-has-focus")}),o.addManagedListener(r,"focusout",function(n){r.contains(n.relatedTarget)||Ie(r,"ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?td:null,e)},t.prototype.setCellTextSelection=function(e){e===void 0&&(e=!1);var o=e?Zc:null;this.comp.setCellSelectableCss(o,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var o=function(n){var s=n.relatedTarget;if(cn(s)===null){e.rowRenderer.stopEditing();return}var a=r.some(function(p){return p.contains(s)})&&e.mouseEventService.isElementInThisGrid(s);if(!a){var u=e.popupService;a=u.getActivePopups().some(function(p){return p.contains(s)})||u.isElementWithinCustomPopup(s)}a||e.rowRenderer.stopEditing()},r=[this.eBodyViewport,this.eBottom,this.eTop];r.forEach(function(n){return e.addManagedListener(n,"focusout",o)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),o=this.paginationProxy.getType(),r=-1;o===D.ROW_MODEL_TYPE_CLIENT_SIDE&&(r=0,this.paginationProxy.forEachNode(function(s){s.group||r++}));var n=r===-1?-1:e+r;this.comp.setRowCount(n)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var o=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(o)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),o=e?ed:null;return this.comp.setAlwaysVerticalScrollClass(o,e),e||Rp(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,o=function(){var r=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),n=r?l.RowAnimationCssClasses.ANIMATION_ON:l.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(n,r)};o(),this.addManagedListener(this.eventService,_.EVENT_HEIGHT_SCALE_CHANGED,o)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,o=function(r){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&r.preventDefault();var n=Ao(r);(n===e.eBodyViewport||n===e.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(r,null,null,null,null,e.eGridBody)};this.addManagedListener(this.eBodyViewport,"contextmenu",o),this.addManagedListener(this.eBodyViewport,"wheel",this.onWheel.bind(this))},t.prototype.onWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var o=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(o+e),this.eBodyViewport.scrollTop-o},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new cS(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,o=e.getPinnedTopTotalHeight();o&&(o+=1);var r=e.getPinnedBottomTotalHeight();r&&(r+=1),this.comp.setTopHeight(o),this.comp.setBottomHeight(r),this.comp.setTopDisplay(o?"inherit":"none"),this.comp.setBottomDisplay(r?"inherit":"none")},t.prototype.sizeColumnsToFit=function(e){var o=this,r=this.isVerticalScrollShowing()&&!st(),n=r?this.gridOptionsWrapper.getScrollbarWidth():0,s=fn(this.eBodyViewport),a=s-n;if(a>0){this.columnModel.sizeColumnsToFit(a,"sizeColumnsToFit");return}e===void 0?window.setTimeout(function(){o.sizeColumnsToFit(100)},0):e===100?window.setTimeout(function(){o.sizeColumnsToFit(500)},100):e===500?window.setTimeout(function(){o.sizeColumnsToFit(-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},t.prototype.requestAngularApply=function(){var e=this;this.angularApplyTriggered||(this.angularApplyTriggered=!0,window.setTimeout(function(){e.angularApplyTriggered=!1,e.$scope.$apply()},0))},t.prototype.addAngularApplyCheck=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.requestAngularApply()}),this.addManagedListener(this.eventService,_.EVENT_VIRTUAL_COLUMNS_CHANGED,function(){return e.requestAngularApply()})},et([m("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),et([m("ctrlsService")],t.prototype,"ctrlsService",void 0),et([m("columnModel")],t.prototype,"columnModel",void 0),et([m("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),et([he("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),et([m("headerNavigationService")],t.prototype,"headerNavigationService",void 0),et([m("paginationProxy")],t.prototype,"paginationProxy",void 0),et([m("dragAndDropService")],t.prototype,"dragAndDropService",void 0),et([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),et([m("rowRenderer")],t.prototype,"rowRenderer",void 0),et([m("popupService")],t.prototype,"popupService",void 0),et([m("mouseEventService")],t.prototype,"mouseEventService",void 0),et([m("$scope")],t.prototype,"$scope",void 0),t}(V);/**
|
|
881
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
882
|
+
* @version v26.2.1
|
|
883
|
+
* @link http://www.ag-grid.com/
|
|
884
|
+
* @license MIT
|
|
885
|
+
*/var hS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),tt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},fS=function(i){hS(t,i);function t(e){var o=i.call(this)||this;return o.element=e,o}return t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this,o=["keydown","keypress"];o.forEach(function(r){var n=e.processKeyboardEvent.bind(e,r);e.addManagedListener(e.element,r,n)})},t.prototype.addMouseListeners=function(){var e=this,o=rs("touchstart")?"touchstart":"mousedown",r=["dblclick","contextmenu","mouseover","mouseout","click",o];r.forEach(function(n){var s=e.processMouseEvent.bind(e,n);e.addManagedListener(e.element,n,s)})},t.prototype.processMouseEvent=function(e,o){if(!(!this.mouseEventService.isEventFromThisGrid(o)||Et(o))){var r=this.getRowForEvent(o),n=this.mouseEventService.getRenderedCellForEvent(o);e==="contextmenu"?this.handleContextMenuMouseEvent(o,null,r,n):(n&&n.onMouseEvent(e,o),r&&r.onMouseEvent(e,o))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(bo()){var o=new lt(this.element),r=function(n){var s=e.getRowForEvent(n.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(n.touchEvent);e.handleContextMenuMouseEvent(null,n.touchEvent,s,a)};this.addManagedListener(o,lt.EVENT_LONG_TAP,r),this.addDestroyFunc(function(){return o.destroy()})}},t.prototype.getRowForEvent=function(e){for(var o=Ao(e);o;){var r=this.gridOptionsWrapper.getDomData(o,qt.DOM_DATA_KEY_ROW_CTRL);if(r)return r;o=o.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,o,r,n){var s=r?r.getRowNode():null,a=n?n.getColumn():null,u=null;if(a){var p=e||o;n.dispatchCellContextMenuEvent(p),u=this.valueService.getValue(a,s)}var g=this.ctrlsService.getGridBodyCtrl(),y=n?n.getGui():g.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,o,s,a,u,y)},t.prototype.processKeyboardEvent=function(e,o){var r=sn(this.gridOptionsWrapper,o,Yt.DOM_DATA_KEY_CELL_CTRL),n=sn(this.gridOptionsWrapper,o,qt.DOM_DATA_KEY_ROW_CTRL);o.defaultPrevented||(r?this.processCellKeyboardEvent(r,e,o):n&&n.isFullWidth()&&this.processFullWidthRowKeyboardEvent(n,e,o))},t.prototype.processCellKeyboardEvent=function(e,o,r){var n=e.getRowNode(),s=e.getColumn(),a=e.isEditing(),u=!wn(this.gridOptionsWrapper,r,n,s,a);if(u)switch(o){case"keydown":var p=!a&&this.navigationService.handlePageScrollingKey(r);p||e.onKeyDown(r),this.doGridOperations(r,e.isEditing());break;case"keypress":e.onKeyPress(r);break}if(o==="keydown"){var g=e.createEvent(r,_.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(g)}if(o==="keypress"){var y=e.createEvent(r,_.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(y)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,o,r){var n=e.getRowNode(),s=this.focusService.getFocusedCell(),a=s&&s.column,u=!wn(this.gridOptionsWrapper,r,n,a,!1);if(u){var p=r.keyCode;if(o==="keydown")switch(p){case W.UP:case W.DOWN:e.onKeyboardNavigate(r);break;case W.TAB:e.onTabKeyDown(r)}}if(o==="keydown"){var g=e.createRowEvent(_.EVENT_CELL_KEY_DOWN,r);this.eventService.dispatchEvent(g)}if(o==="keypress"){var y=e.createRowEvent(_.EVENT_CELL_KEY_PRESS,r);this.eventService.dispatchEvent(y)}},t.prototype.doGridOperations=function(e,o){if(!(!e.ctrlKey&&!e.metaKey)&&!o&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case W.A:return this.onCtrlAndA(e);case W.C:return this.onCtrlAndC(e);case W.V:return this.onCtrlAndV();case W.D:return this.onCtrlAndD(e);case W.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case W.Y:return this.undoRedoService.redo()}},t.prototype.onCtrlAndA=function(e){var o=this,r=o.pinnedRowModel,n=o.paginationProxy,s=o.rangeService,a=D.PINNED_BOTTOM,u=D.PINNED_TOP;if(s&&n.isRowsToRender()){var p=[r.isEmpty(u),r.isEmpty(a)],g=p[0],y=p[1],C=g?null:u,E=void 0,S=void 0;y?(E=null,S=this.paginationProxy.getRowCount()-1):(E=a,S=r.getPinnedBottomRowData().length-1);var b=this.columnModel.getAllDisplayedColumns();if(v(b))return;s.setCellRange({rowStartIndex:0,rowStartPinned:C,rowEndIndex:S,rowEndPinned:E,columnStart:b[0],columnEnd:le(b)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){!this.clipboardService||this.gridOptionsWrapper.isEnableCellTextSelection()||(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){oe.isRegistered(l.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){oe.isRegistered(l.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},tt([m("mouseEventService")],t.prototype,"mouseEventService",void 0),tt([m("valueService")],t.prototype,"valueService",void 0),tt([he("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),tt([m("ctrlsService")],t.prototype,"ctrlsService",void 0),tt([m("navigationService")],t.prototype,"navigationService",void 0),tt([m("focusService")],t.prototype,"focusService",void 0),tt([m("undoRedoService")],t.prototype,"undoRedoService",void 0),tt([m("columnModel")],t.prototype,"columnModel",void 0),tt([m("paginationProxy")],t.prototype,"paginationProxy",void 0),tt([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),tt([he("rangeService")],t.prototype,"rangeService",void 0),tt([he("clipboardService")],t.prototype,"clipboardService",void 0),tt([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
886
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
887
|
+
* @version v26.2.1
|
|
888
|
+
* @link http://www.ag-grid.com/
|
|
889
|
+
* @license MIT
|
|
890
|
+
*/var gS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ko=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vS=function(i){gS(t,i);function t(e){var o=i.call(this)||this;return o.centerContainerCon=e,o}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,_.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this.onCenterViewportResized.bind(this);this.centerContainerCon.registerViewportResizeListener(e),this.gridBodyCon.registerBodyViewportResizeListener(e)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCon.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCon.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCon.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCon.getBodyViewportElement(),o=ur(e);if(this.bodyHeight!==o){this.bodyHeight=o;var r={type:_.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCon.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCon.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();return e||this.centerContainerCon.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCon.getCenterWidth(),o=this.centerContainerCon.getViewportScrollLeft();this.columnModel.setViewportPosition(e,o)},ko([m("ctrlsService")],t.prototype,"ctrlsService",void 0),ko([m("columnModel")],t.prototype,"columnModel",void 0),ko([m("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),ko([m("columnApi")],t.prototype,"columnApi",void 0),ko([m("gridApi")],t.prototype,"gridApi",void 0),ko([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
891
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
892
|
+
* @version v26.2.1
|
|
893
|
+
* @link http://www.ag-grid.com/
|
|
894
|
+
* @license MIT
|
|
895
|
+
*/var yS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),rd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},mS=function(i){yS(t,i);function t(e){var o=i.call(this)||this;return o.element=e,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),o=e>0;Ce(this.element,o),o&&Dt(this.element,e)},rd([m("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),rd([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
896
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
897
|
+
* @version v26.2.1
|
|
898
|
+
* @link http://www.ag-grid.com/
|
|
899
|
+
* @license MIT
|
|
900
|
+
*/var CS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),nd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wS=function(i){CS(t,i);function t(e){var o=i.call(this)||this;return o.element=e,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),o=e>0;Ce(this.element,o),o&&Dt(this.element,e)},nd([m("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),nd([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
901
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
902
|
+
* @version v26.2.1
|
|
903
|
+
* @link http://www.ag-grid.com/
|
|
904
|
+
* @license MIT
|
|
905
|
+
*/var _S=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),id=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ES=function(i){_S(t,i);function t(e,o){var r=i.call(this)||this;return r.eContainer=e,r.eWrapper=o,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),o=e!=null?e+"px":"";this.eContainer.style.height=o,this.eWrapper&&(this.eWrapper.style.height=o)},id([m("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),id([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
906
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
907
|
+
* @version v26.2.1
|
|
908
|
+
* @link http://www.ag-grid.com/
|
|
909
|
+
* @license MIT
|
|
910
|
+
*/var RS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ca=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},SS=function(i){RS(t,i);function t(e){var o=i.call(this)||this;return o.eContainer=e,o}return t.prototype.postConstruct=function(){var e=this;if(!(!this.gridOptionsWrapper.isEnableRangeSelection()||f(this.rangeService))){var o={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(o),this.addDestroyFunc(function(){return e.dragService.removeDragSource(o)})}},Ca([he("rangeService")],t.prototype,"rangeService",void 0),Ca([m("dragService")],t.prototype,"dragService",void 0),Ca([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
911
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
912
|
+
* @version v26.2.1
|
|
913
|
+
* @link http://www.ag-grid.com/
|
|
914
|
+
* @license MIT
|
|
915
|
+
*/var OS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),vo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PS=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o};(function(i){i.LEFT="left",i.RIGHT="right",i.CENTER="center",i.FULL_WIDTH="fullWidth",i.TOP_LEFT="topLeft",i.TOP_RIGHT="topRight",i.TOP_CENTER="topCenter",i.TOP_FULL_WITH="topFullWidth",i.BOTTOM_LEFT="bottomLeft",i.BOTTOM_RIGHT="bottomRight",i.BOTTOM_CENTER="bottomCenter",i.BOTTOM_FULL_WITH="bottomFullWidth"})(l.RowContainerName||(l.RowContainerName={}));var DS=Rt([[l.RowContainerName.CENTER,"ag-center-cols-container"],[l.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[l.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[l.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[l.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[l.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[l.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[l.RowContainerName.TOP_FULL_WITH,"ag-floating-top-full-width-container"],[l.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[l.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[l.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[l.RowContainerName.BOTTOM_FULL_WITH,"ag-floating-bottom-full-width-container"]]),AS=Rt([[l.RowContainerName.CENTER,"ag-center-cols-viewport"],[l.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[l.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),TS=Rt([[l.RowContainerName.CENTER,"ag-center-cols-clipper"]]),Vn=function(i){OS(t,i);function t(e){var o=i.call(this)||this;return o.name=e,o}return t.getRowContainerCssClasses=function(e){var o=DS.get(e),r=AS.get(e),n=TS.get(e);return{container:o,viewport:r,wrapper:n}},t.getPinned=function(e){switch(e){case l.RowContainerName.BOTTOM_LEFT:case l.RowContainerName.TOP_LEFT:case l.RowContainerName.LEFT:return D.PINNED_LEFT;case l.RowContainerName.BOTTOM_RIGHT:case l.RowContainerName.TOP_RIGHT:case l.RowContainerName.RIGHT:return D.PINNED_RIGHT;default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_ROWS_CHANGED,this.onDisplayedRowsChanged.bind(this)),this.forContainers([l.RowContainerName.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new vS(e))}),this.registerWithCtrlsService()},t.prototype.registerWithCtrlsService=function(){switch(this.name){case l.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case l.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case l.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case l.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case l.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case l.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case l.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case l.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case l.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this);break}},t.prototype.forContainers=function(e,o){e.indexOf(this.name)>=0&&o()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,o,r,n){var s=this;this.comp=e,this.eContainer=o,this.eViewport=r,this.eWrapper=n,this.createManagedBean(new fS(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var a=[l.RowContainerName.TOP_CENTER,l.RowContainerName.TOP_LEFT,l.RowContainerName.TOP_RIGHT],u=[l.RowContainerName.BOTTOM_CENTER,l.RowContainerName.BOTTOM_LEFT,l.RowContainerName.BOTTOM_RIGHT],p=[l.RowContainerName.CENTER,l.RowContainerName.LEFT,l.RowContainerName.RIGHT],g=PS(a,u,p),y=[l.RowContainerName.CENTER,l.RowContainerName.LEFT,l.RowContainerName.RIGHT,l.RowContainerName.FULL_WIDTH],C=[l.RowContainerName.CENTER,l.RowContainerName.TOP_CENTER,l.RowContainerName.BOTTOM_CENTER],E=[l.RowContainerName.LEFT,l.RowContainerName.BOTTOM_LEFT,l.RowContainerName.TOP_LEFT],S=[l.RowContainerName.RIGHT,l.RowContainerName.BOTTOM_RIGHT,l.RowContainerName.TOP_RIGHT];this.forContainers(E,function(){return s.createManagedBean(new mS(s.eContainer))}),this.forContainers(S,function(){return s.createManagedBean(new wS(s.eContainer))}),this.forContainers(y,function(){return s.createManagedBean(new ES(s.eContainer,s.eWrapper))}),this.forContainers(g,function(){return s.createManagedBean(new SS(s.eContainer))}),this.forContainers(C,function(){return s.createManagedBean(new ca(function(b){return s.comp.setContainerWidth(b+"px")}))})},t.prototype.listenOnDomOrder=function(){var e=this,o=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,o),o()},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([l.RowContainerName.TOP_CENTER,l.RowContainerName.BOTTOM_CENTER],function(){var o=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",o)})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([l.RowContainerName.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([l.RowContainerName.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){if(this.name===l.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=o==0?"100%":"calc(100% + "+o+"px)";this.comp.setViewportHeight(r)}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,o=function(r){e.dragService.isDragging()&&r.cancelable&&r.preventDefault()};this.eContainer.addEventListener("touchmove",o,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",o)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,o)},t.prototype.getCenterWidth=function(){return fn(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return cr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var o=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return o()})},t.prototype.isViewportVisible=function(){return Fo(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Ts(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return cr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();return e||Ts(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},t.prototype.setCenterViewportScrollLeft=function(e){vn(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,o=this.name===l.RowContainerName.TOP_FULL_WITH||this.name===l.RowContainerName.BOTTOM_FULL_WITH||this.name===l.RowContainerName.FULL_WIDTH,r=function(a){var u=a.isFullWidth(),p=e.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT,g=e.embedFullWidthRows||p,y=o?!g&&u:g||!u;return y},n=this.getRowCtrls(),s=n.filter(r);this.comp.setRowCtrls(s)},t.prototype.getRowCtrls=function(){switch(this.name){case l.RowContainerName.TOP_CENTER:case l.RowContainerName.TOP_LEFT:case l.RowContainerName.TOP_RIGHT:case l.RowContainerName.TOP_FULL_WITH:return this.rowRenderer.getTopRowCtrls();case l.RowContainerName.BOTTOM_CENTER:case l.RowContainerName.BOTTOM_LEFT:case l.RowContainerName.BOTTOM_RIGHT:case l.RowContainerName.BOTTOM_FULL_WITH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},vo([m("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),vo([m("dragService")],t.prototype,"dragService",void 0),vo([m("ctrlsService")],t.prototype,"ctrlsService",void 0),vo([m("columnModel")],t.prototype,"columnModel",void 0),vo([m("resizeObserverService")],t.prototype,"resizeObserverService",void 0),vo([m("rowRenderer")],t.prototype,"rowRenderer",void 0),vo([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
916
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
917
|
+
* @version v26.2.1
|
|
918
|
+
* @link http://www.ag-grid.com/
|
|
919
|
+
* @license MIT
|
|
920
|
+
*/var bS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),yo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},NS=`<div class="ag-root ag-unselectable" role="grid" unselectable="on">
|
|
921
|
+
<ag-header-root ref="gridHeader" unselectable="on"></ag-header-root>
|
|
922
|
+
<div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">
|
|
923
|
+
<ag-row-container ref="topLeftContainer" name="`+l.RowContainerName.TOP_LEFT+`"></ag-row-container>
|
|
924
|
+
<ag-row-container ref="topCenterContainer" name="`+l.RowContainerName.TOP_CENTER+`"></ag-row-container>
|
|
925
|
+
<ag-row-container ref="topRightContainer" name="`+l.RowContainerName.TOP_RIGHT+`"></ag-row-container>
|
|
926
|
+
<ag-row-container ref="topFullWidthContainer" name="`+l.RowContainerName.TOP_FULL_WITH+`"></ag-row-container>
|
|
927
|
+
</div>
|
|
928
|
+
<div class="ag-body-viewport" ref="eBodyViewport" role="presentation">
|
|
929
|
+
<ag-row-container ref="leftContainer" name="`+l.RowContainerName.LEFT+`"></ag-row-container>
|
|
930
|
+
<ag-row-container ref="centerContainer" name="`+l.RowContainerName.CENTER+`"></ag-row-container>
|
|
931
|
+
<ag-row-container ref="rightContainer" name="`+l.RowContainerName.RIGHT+`"></ag-row-container>
|
|
932
|
+
<ag-row-container ref="fullWidthContainer" name="`+l.RowContainerName.FULL_WIDTH+`"></ag-row-container>
|
|
933
|
+
</div>
|
|
934
|
+
<div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">
|
|
935
|
+
<ag-row-container ref="bottomLeftContainer" name="`+l.RowContainerName.BOTTOM_LEFT+`"></ag-row-container>
|
|
936
|
+
<ag-row-container ref="bottomCenterContainer" name="`+l.RowContainerName.BOTTOM_CENTER+`"></ag-row-container>
|
|
937
|
+
<ag-row-container ref="bottomRightContainer" name="`+l.RowContainerName.BOTTOM_RIGHT+`"></ag-row-container>
|
|
938
|
+
<ag-row-container ref="bottomFullWidthContainer" name="`+l.RowContainerName.BOTTOM_FULL_WITH+`"></ag-row-container>
|
|
939
|
+
</div>
|
|
940
|
+
<ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
|
|
941
|
+
<ag-overlay-wrapper></ag-overlay-wrapper>
|
|
942
|
+
</div>`,sd=function(i){bS(t,i);function t(){return i.call(this,NS)||this}return t.prototype.init=function(){var e=this,o=function(n,s){var a=n+"px";s.style.minHeight=a,s.style.height=a},r={setRowAnimationCssOnBodyViewport:function(n,s){return e.setRowAnimationCssOnBodyViewport(n,s)},setColumnCount:function(n){return Mp(e.getGui(),n)},setRowCount:function(n){return Lp(e.getGui(),n)},setTopHeight:function(n){return o(n,e.eTop)},setBottomHeight:function(n){return o(n,e.eBottom)},setTopDisplay:function(n){return e.eTop.style.display=n},setBottomDisplay:function(n){return e.eBottom.style.display=n},setColumnMovingCss:function(n,s){return e.addOrRemoveCssClass(td,s)},updateLayoutClasses:function(n,s){ee(e.eBodyViewport,l.LayoutCssClasses.AUTO_HEIGHT,s.autoHeight),ee(e.eBodyViewport,l.LayoutCssClasses.NORMAL,s.normal),ee(e.eBodyViewport,l.LayoutCssClasses.PRINT,s.print),e.addOrRemoveCssClass(l.LayoutCssClasses.AUTO_HEIGHT,s.autoHeight),e.addOrRemoveCssClass(l.LayoutCssClasses.NORMAL,s.normal),e.addOrRemoveCssClass(l.LayoutCssClasses.PRINT,s.print)},setAlwaysVerticalScrollClass:function(n,s){return ee(e.eBodyViewport,ed,s)},registerBodyViewportResizeListener:function(n){var s=e.resizeObserverService.observeResize(e.eBodyViewport,n);e.addDestroyFunc(function(){return s()})},setPinnedTopBottomOverflowY:function(n){return e.eTop.style.overflowY=e.eBottom.style.overflowY=n},setCellSelectableCss:function(n,s){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(a){return ee(a,Zc,s)})}};this.ctrl=this.createManagedBean(new od),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Ip(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,o){ee(this.eBodyViewport,l.RowAnimationCssClasses.ANIMATION_ON,o),ee(this.eBodyViewport,l.RowAnimationCssClasses.ANIMATION_OFF,!o)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},yo([m("resizeObserverService")],t.prototype,"resizeObserverService",void 0),yo([he("rangeService")],t.prototype,"rangeService",void 0),yo([x("eBodyViewport")],t.prototype,"eBodyViewport",void 0),yo([x("eTop")],t.prototype,"eTop",void 0),yo([x("eBottom")],t.prototype,"eBottom",void 0),yo([x("gridHeader")],t.prototype,"headerRootComp",void 0),yo([k],t.prototype,"init",null),t}(se);/**
|
|
943
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
944
|
+
* @version v26.2.1
|
|
945
|
+
* @link http://www.ag-grid.com/
|
|
946
|
+
* @license MIT
|
|
947
|
+
*/(function(i){i[i.SINGLE_SHEET=0]="SINGLE_SHEET",i[i.MULTI_SHEET=1]="MULTI_SHEET"})(l.ExcelFactoryMode||(l.ExcelFactoryMode={}));/**
|
|
948
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
949
|
+
* @version v26.2.1
|
|
950
|
+
* @link http://www.ag-grid.com/
|
|
951
|
+
* @license MIT
|
|
952
|
+
*/(function(i){i.EVERYTHING="group",i.FILTER="filter",i.SORT="sort",i.MAP="map",i.AGGREGATE="aggregate",i.PIVOT="pivot",i.NOTHING="nothing"})(l.ClientSideRowModelSteps||(l.ClientSideRowModelSteps={}));/**
|
|
953
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
954
|
+
* @version v26.2.1
|
|
955
|
+
* @link http://www.ag-grid.com/
|
|
956
|
+
* @license MIT
|
|
957
|
+
*/var de=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ad=function(){function i(){this.detailGridInfoMap={},this.destroyCalled=!1}return i.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},i.prototype.registerSideBarComp=function(t){this.sideBarComp=t},i.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case D.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case D.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case D.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},i.prototype.__getAlignedGridService=function(){return this.alignedGridsService},i.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},i.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},i.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},i.prototype.forEachDetailGridInfo=function(t){var e=0;ve(this.detailGridInfoMap,function(o,r){h(r)&&(t(r,e),e++)})},i.prototype.getDataAsCsv=function(t){if(oe.assertRegistered(l.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},i.prototype.exportDataAsCsv=function(t){oe.assertRegistered(l.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},i.prototype.getDataAsExcel=function(t){if(oe.assertRegistered(l.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var e=t&&t.exportMode||"xlsx";if(this.excelCreator.getFactoryMode(e)===l.ExcelFactoryMode.MULTI_SHEET){console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");return}return this.excelCreator.getDataAsExcel(t)}},i.prototype.exportDataAsExcel=function(t){if(oe.assertRegistered(l.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var e=t&&t.exportMode||"xlsx";if(this.excelCreator.getFactoryMode(e)===l.ExcelFactoryMode.MULTI_SHEET){console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");return}this.excelCreator.exportDataAsExcel(t)}},i.prototype.getSheetDataForExcel=function(t){if(oe.assertRegistered(l.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var e=t&&t.exportMode||"xlsx";return this.excelCreator.setFactoryMode(l.ExcelFactoryMode.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},i.prototype.getMultipleSheetsAsExcel=function(t){if(oe.assertRegistered(l.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},i.prototype.exportMultipleSheetsAsExcel=function(t){if(oe.assertRegistered(l.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},i.prototype.setEnterpriseDatasource=function(t){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},i.prototype.setGridAriaProperty=function(t,e){if(t){var o=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-"+t;e===null?o.removeAttribute(r):o.setAttribute(r,e)}},i.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+D.ROW_MODEL_TYPE_SERVER_SIDE+"'")},i.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+D.ROW_MODEL_TYPE_INFINITE+"'")},i.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+D.ROW_MODEL_TYPE_VIEWPORT+"'")},i.prototype.setRowData=function(t){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var e=this.immutableService.createTransactionForRowData(t);if(!e)return;var o=e[0],r=e[1],n=this.clientSideRowModel.updateRowData(o,r);n&&this.rowRenderer.refreshFullWidthRows(n.update)}else this.selectionService.reset(),this.clientSideRowModel.setRowData(t);else console.warn("cannot call setRowData unless using normal row model")},i.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},i.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},i.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},i.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},i.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},i.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},i.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},i.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},i.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},i.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},i.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},i.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},i.prototype.setColumnDefs=function(t,e){e===void 0&&(e="api"),this.columnModel.setColumnDefs(t,e)},i.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",t,!0)},i.prototype.expireValueCache=function(){this.valueCache.expire()},i.prototype.getVerticalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getVScrollPosition()},i.prototype.getHorizontalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getHScrollPosition()},i.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},i.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},i.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},i.prototype.refreshCells=function(t){if(t===void 0&&(t={}),Array.isArray(t)){console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.");return}this.rowRenderer.refreshCells(t)},i.prototype.flashCells=function(t){t===void 0&&(t={}),this.rowRenderer.flashCells(t)},i.prototype.redrawRows=function(t){t===void 0&&(t={});var e=t?t.rowNodes:void 0;this.rowRenderer.redrawRows(e)},i.prototype.refreshView=function(){console.warn("AG Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},i.prototype.refreshRows=function(t){console.warn("since AG Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:t})},i.prototype.rowDataChanged=function(t){console.warn("AG Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},i.prototype.softRefreshView=function(){console.error("AG Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},i.prototype.refreshGroupRows=function(){console.warn("AG Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},i.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},i.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(t){return t.refresh()})},i.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},i.prototype.isAdvancedFilterPresent=function(){return console.warn("AG Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},i.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},i.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},i.prototype.getModel=function(){return this.rowModel},i.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},i.prototype.onGroupExpandedOrCollapsed=function(t){f(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),h(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:l.ClientSideRowModelSteps.MAP})},i.prototype.refreshInMemoryRowModel=function(t){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},i.prototype.refreshClientSideRowModel=function(t){f(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=l.ClientSideRowModelSteps.EVERYTHING,o={group:l.ClientSideRowModelSteps.EVERYTHING,filter:l.ClientSideRowModelSteps.FILTER,map:l.ClientSideRowModelSteps.MAP,aggregate:l.ClientSideRowModelSteps.AGGREGATE,sort:l.ClientSideRowModelSteps.SORT,pivot:l.ClientSideRowModelSteps.PIVOT};if(h(t)&&(e=o[t]),f(e)){console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(o).join(", "));return}var r={step:e,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(r)},i.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},i.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},i.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},i.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},i.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},i.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},i.prototype.getToolPanelInstance=function(t){if(!this.sideBarComp){console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise");return}var e=this.sideBarComp.getToolPanelInstance(t),o=this.frameworkComponentWrapper?this.frameworkComponentWrapper.unwrap(e):e;return o},i.prototype.addVirtualRowListener=function(t,e,o){typeof t!="string"&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,o)},i.prototype.addRenderedRowListener=function(t,e,o){t==="virtualRowSelected"&&console.warn(`AG Grid: event virtualRowSelected is deprecated, to register for individual row
|
|
958
|
+
selection events, add a listener directly to the row node.`),this.rowRenderer.addRenderedRowListener(t,e,o)},i.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},i.prototype.selectIndex=function(t,e,o){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,e)},i.prototype.deselectIndex=function(t,e){e===void 0&&(e=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},i.prototype.selectNode=function(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},i.prototype.deselectNode=function(t,e){e===void 0&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},i.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},i.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},i.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},i.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},i.prototype.recomputeAggregates=function(){f(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:l.ClientSideRowModelSteps.AGGREGATE})},i.prototype.sizeColumnsToFit=function(){this.gridBodyCon.sizeColumnsToFit()},i.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},i.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},i.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},i.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},i.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},i.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},i.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},i.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},i.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},i.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},i.prototype.ensureColumnVisible=function(t){this.gridBodyCon.getScrollFeature().ensureColumnVisible(t)},i.prototype.ensureIndexVisible=function(t,e){this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,e)},i.prototype.ensureNodeVisible=function(t,e){e===void 0&&(e=null),this.gridBodyCon.getScrollFeature().ensureNodeVisible(t,e)},i.prototype.forEachLeafNode=function(t){f(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},i.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},i.prototype.forEachNodeAfterFilter=function(t){f(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},i.prototype.forEachNodeAfterFilterAndSort=function(t){f(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},i.prototype.getFilterApiForColDef=function(t){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(t)},i.prototype.getFilterInstance=function(t,e){var o=this,r=this.columnModel.getPrimaryColumn(t);if(r){var n=this.filterManager.getFilterComponent(r,"NO_UI"),s=n&&n.resolveNow(null,function(u){return u}),a=this.frameworkComponentWrapper?this.frameworkComponentWrapper.unwrap(s):s;return e&&(a?setTimeout(e,0,a):n&&n.then(function(u){var p=o.frameworkComponentWrapper?o.frameworkComponentWrapper.unwrap(u):u;e(p)})),a}},i.prototype.getFilterApi=function(t){return console.warn("AG Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(t)},i.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},i.prototype.getStatusPanel=function(t){if(this.statusBarService){var e=this.statusBarService.getStatusPanel(t),o=this.frameworkComponentWrapper?this.frameworkComponentWrapper.unwrap(e):e;return o}},i.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},i.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},i.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},i.prototype.onSortChanged=function(){this.sortController.onSortChanged()},i.prototype.setSortModel=function(t,e){console.warn("AG Grid: as of version 24.0.0, setSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.applyColumnState() instead.");var o=[];t&&t.forEach(function(r,n){o.push({colId:r.colId,sort:r.sort,sortIndex:n})}),this.columnModel.applyColumnState({state:o,defaultState:{sort:null}})},i.prototype.getSortModel=function(){console.warn("AG Grid: as of version 24.0.0, getSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.getColumnState() instead.");var t=this.columnModel.getColumnState(),e=t.filter(function(n){return n.sort!=null}),o={};e.forEach(function(n){var s=n.colId,a=n.sortIndex;o[s]=a});var r=e.map(function(n){return{colId:n.colId,sort:n.sort}});return r.sort(function(n,s){return o[n.colId]-o[s.colId]}),r},i.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},i.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},i.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},i.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},i.prototype.setFocusedCell=function(t,e,o){this.focusService.setFocusedCell(t,e,o,!0)},i.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(q.PROP_SUPPRESS_ROW_DRAG,t)},i.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(q.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},i.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(q.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},i.prototype.addRowDropZone=function(t){this.gridBodyCon.getRowDragFeature().addRowDropZone(t)},i.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},i.prototype.getRowDropZoneParams=function(t){return this.gridBodyCon.getRowDragFeature().getRowDropZone(t)},i.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(q.PROP_HEADER_HEIGHT,t)},i.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(q.PROP_DOM_LAYOUT,t)},i.prototype.setEnableCellTextSelection=function(t){this.gridBodyCon.setCellTextSelection(t)},i.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(q.PROP_FILL_HANDLE_DIRECTION,t)},i.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GROUP_HEADER_HEIGHT,t)},i.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(q.PROP_FLOATING_FILTERS_HEIGHT,t)},i.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},i.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},i.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(q.PROP_DOES_EXTERNAL_FILTER_PASS,t)},i.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(q.PROP_NAVIGATE_TO_NEXT_CELL,t)},i.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(q.PROP_TAB_TO_NEXT_CELL,t)},i.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(q.PROP_TAB_TO_NEXT_HEADER,t)},i.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(q.PROP_NAVIGATE_TO_NEXT_HEADER,t)},i.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GROUP_ROW_AGG_NODES,t)},i.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},i.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_CHILD_COUNT,t)},i.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PROCESS_ROW_POST_CREATE,t)},i.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_ROW_NODE_ID,t)},i.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_ROW_CLASS,t)},i.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_FULL_WIDTH_CELL,t)},i.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_ROW_SELECTABLE,t)},i.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_ROW_MASTER,t)},i.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(q.PROP_POST_SORT,t)},i.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_DOCUMENT,t)},i.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_CONTEXT_MENU_ITEMS,t)},i.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_MAIN_MENU_ITEMS,t)},i.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},i.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(q.PROP_SEND_TO_CLIPBOARD,t)},i.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},i.prototype.setProcessSecondaryColDef=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PROCESS_TO_SECONDARY_COLDEF,t)},i.prototype.setProcessSecondaryColGroupDef=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,t)},i.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(q.PROP_POST_PROCESS_POPUP,t)},i.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(q.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},i.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_CHART_TOOLBAR_ITEMS,t)},i.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PAGINATION_NUMBER_FORMATTER,t)},i.prototype.setGetServerSideStoreParams=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_SERVER_SIDE_STORE_PARAMS,t)},i.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},i.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},i.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(q.PROP_IS_SERVER_SIDE_GROUP,t)},i.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},i.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_ROW_STYLE,t)},i.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GET_ROW_HEIGHT,t)},i.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(q.PROP_PIVOT_HEADER_HEIGHT,t)},i.prototype.isSideBarVisible=function(){return this.sideBarComp?this.sideBarComp.isDisplayed():!1},i.prototype.setSideBarVisible=function(t){if(!this.sideBarComp){t&&console.warn("AG Grid: sideBar is not loaded");return}this.sideBarComp.setDisplayed(t)},i.prototype.setSideBarPosition=function(t){if(!this.sideBarComp){console.warn("AG Grid: sideBar is not loaded");return}this.sideBarComp.setSideBarPosition(t)},i.prototype.openToolPanel=function(t){if(!this.sideBarComp){console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise");return}this.sideBarComp.openToolPanel(t)},i.prototype.closeToolPanel=function(){if(!this.sideBarComp){console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise");return}this.sideBarComp.close()},i.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},i.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},i.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",_c.parse(t))},i.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(q.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},i.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},i.prototype.doLayout=function(){var t="AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically";we(function(){return console.warn(t)},"doLayoutDeprecated")},i.prototype.resetRowHeights=function(){h(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},i.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},i.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(q.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},i.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},i.prototype.getValue=function(t,e){var o=this.columnModel.getPrimaryColumn(t);return f(o)&&(o=this.columnModel.getGridColumn(t)),f(o)?null:this.valueService.getValue(o,e)},i.prototype.addEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,o)},i.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},i.prototype.removeEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,o)},i.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},i.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},i.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},i.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Uu.bind(window,this,"Grid API"),100)},i.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},i.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode(function(t){return t.quickFilterAggregateText=null})},i.prototype.getRangeSelections=function(){return console.warn(`AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.
|
|
959
|
+
We had to change how cell selections works a small bit to allow charting to integrate. The return type of
|
|
960
|
+
getCellRanges() is a bit different, please check the AG Grid documentation.`),null},i.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},i.prototype.camelCaseToHumanReadable=function(t){return ls(t)},i.prototype.addRangeSelection=function(t){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},i.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},i.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},i.prototype.undoCellEditing=function(){this.undoRedoService.undo()},i.prototype.redoCellEditing=function(){this.undoRedoService.redo()},i.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},i.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},i.prototype.getChartModels=function(){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.getChartModels")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},i.prototype.getChartRef=function(t){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.getChartRef")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},i.prototype.getChartImageDataURL=function(t){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},i.prototype.createRangeChart=function(t){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},i.prototype.createCrossFilterChart=function(t){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},i.prototype.restoreChart=function(t,e){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.restoreChart")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},i.prototype.createPivotChart=function(t){if(oe.assertRegistered(l.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&oe.assertRegistered(l.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},i.prototype.copySelectedRowsToClipboard=function(t,e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t,e)},i.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},i.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},i.prototype.showColumnMenuAfterButtonClick=function(t,e){var o=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(o,e,"columnMenu")},i.prototype.showColumnMenuAfterMouseClick=function(t,e){var o=this.columnModel.getGridColumn(t);if(o||(o=this.columnModel.getPrimaryColumn(t)),!o){console.error("AG Grid: column '"+t+"' not found");return}this.menuFactory.showMenuAfterMouseEvent(o,e)},i.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},i.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(q.PROP_POPUP_PARENT,t)},i.prototype.tabToNextCell=function(){return this.navigationService.tabToNextCell(!1)},i.prototype.tabToPreviousCell=function(){return this.navigationService.tabToNextCell(!0)},i.prototype.getCellRendererInstances=function(t){return t===void 0&&(t={}),this.rowRenderer.getCellRendererInstances(t)},i.prototype.getCellEditorInstances=function(t){return t===void 0&&(t={}),this.rowRenderer.getCellEditorInstances(t)},i.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},i.prototype.stopEditing=function(t){t===void 0&&(t=!1),this.rowRenderer.stopEditing(t)},i.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(!e){console.warn("AG Grid: no column found for "+t.colKey);return}var o={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e},r=t.rowPinned==null;r&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex);var n=this.navigationService.getCellByPosition(o);n&&n.startRowOrCellEdit(t.keyPress,t.charPress)},i.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},i.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},i.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},i.prototype.applyServerSideTransaction=function(t){if(!this.serverSideTransactionManager){console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.");return}return this.serverSideTransactionManager.applyTransaction(t)},i.prototype.applyServerSideTransactionAsync=function(t,e){if(!this.serverSideTransactionManager){console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.");return}return this.serverSideTransactionManager.applyTransactionAsync(t,e)},i.prototype.retryServerSideLoads=function(){if(!this.serverSideRowModel){console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.");return}this.serverSideRowModel.retryLoads()},i.prototype.flushServerSideAsyncTransactions=function(){if(!this.serverSideTransactionManager){console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.");return}return this.serverSideTransactionManager.flushAsyncTransactions()},i.prototype.applyTransaction=function(t){if(!this.clientSideRowModel){console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1");return}var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e},i.prototype.updateRowData=function(t){var e="AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.";return we(function(){return console.warn(e)},"updateRowData deprecated"),this.applyTransaction(t)},i.prototype.applyTransactionAsync=function(t,e){if(!this.clientSideRowModel){console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.");return}this.clientSideRowModel.batchUpdateRowData(t,e)},i.prototype.flushAsyncTransactions=function(){if(!this.clientSideRowModel){console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.");return}this.clientSideRowModel.flushAsyncTransactions()},i.prototype.batchUpdateRowData=function(t,e){var o="AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.";we(function(){return console.warn(o)},"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},i.prototype.insertItemsAtIndex=function(t,e,o){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},i.prototype.removeItems=function(t,e){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=t.map(function(r){return r.data});this.updateRowData({add:null,addIndex:null,update:null,remove:o})},i.prototype.addItems=function(t,e){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},i.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},i.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},i.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},i.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},i.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},i.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},i.prototype.purgeEnterpriseCache=function(t){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(t)},i.prototype.purgeServerSideCache=function(t){t===void 0&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},i.prototype.refreshServerSideStore=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},i.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},i.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},i.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},i.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},i.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},i.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},i.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},i.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},i.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},i.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},i.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},i.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},i.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},i.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},i.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},i.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},i.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},i.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},i.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},i.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},i.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},i.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},i.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},i.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},i.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},i.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},i.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},i.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},i.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},de([he("immutableService")],i.prototype,"immutableService",void 0),de([he("csvCreator")],i.prototype,"csvCreator",void 0),de([he("excelCreator")],i.prototype,"excelCreator",void 0),de([m("rowRenderer")],i.prototype,"rowRenderer",void 0),de([m("navigationService")],i.prototype,"navigationService",void 0),de([m("filterManager")],i.prototype,"filterManager",void 0),de([m("columnModel")],i.prototype,"columnModel",void 0),de([m("selectionService")],i.prototype,"selectionService",void 0),de([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),de([m("valueService")],i.prototype,"valueService",void 0),de([m("alignedGridsService")],i.prototype,"alignedGridsService",void 0),de([m("eventService")],i.prototype,"eventService",void 0),de([m("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),de([m("context")],i.prototype,"context",void 0),de([m("rowModel")],i.prototype,"rowModel",void 0),de([m("sortController")],i.prototype,"sortController",void 0),de([m("paginationProxy")],i.prototype,"paginationProxy",void 0),de([m("focusService")],i.prototype,"focusService",void 0),de([m("dragAndDropService")],i.prototype,"dragAndDropService",void 0),de([he("rangeService")],i.prototype,"rangeService",void 0),de([he("clipboardService")],i.prototype,"clipboardService",void 0),de([he("aggFuncService")],i.prototype,"aggFuncService",void 0),de([m("menuFactory")],i.prototype,"menuFactory",void 0),de([he("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),de([m("valueCache")],i.prototype,"valueCache",void 0),de([m("animationFrameService")],i.prototype,"animationFrameService",void 0),de([he("statusBarService")],i.prototype,"statusBarService",void 0),de([he("chartService")],i.prototype,"chartService",void 0),de([he("undoRedoService")],i.prototype,"undoRedoService",void 0),de([he("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),de([he("ssrmTransactionManager")],i.prototype,"serverSideTransactionManager",void 0),de([m("ctrlsService")],i.prototype,"ctrlsService",void 0),de([he("frameworkComponentWrapper")],i.prototype,"frameworkComponentWrapper",void 0),de([k],i.prototype,"init",null),de([Ne],i.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),i=de([Y("gridApi")],i),i}();/**
|
|
961
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
962
|
+
* @version v26.2.1
|
|
963
|
+
* @link http://www.ag-grid.com/
|
|
964
|
+
* @license MIT
|
|
965
|
+
*/var FS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ld=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},IS=function(i,t){return function(e,o){t(e,o,i)}},ud=function(i){FS(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,o){if(typeof e=="function"){var r=e;return r(o)}else if(typeof e=="string"){var n=e;return this.evaluateExpression(n,o)}else console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,o){try{var r=this.createExpressionFunction(e),n=r(o.value,o.context,o.oldValue,o.newValue,o.value,o.node,o.data,o.colDef,o.rowIndex,o.api,o.columnApi,o.getValue,o.column,o.columnGroup);return n}catch(s){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",o),console.log("Exception = "+s),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var o=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",o);return this.expressionToFunctionCache[e]=r,r},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},ld([IS(0,xe("loggerFactory"))],t.prototype,"setBeans",null),t=ld([Y("expressionService")],t),t}(V);/**
|
|
966
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
967
|
+
* @version v26.2.1
|
|
968
|
+
* @link http://www.ag-grid.com/
|
|
969
|
+
* @license MIT
|
|
970
|
+
*/var LS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),pd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},cd=function(i){LS(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return t.prototype.getTemplate=function(e,o){var r=this.templateCache[e];if(r)return r;var n=this.waitingCallbacks[e],s=this;if(!n){n=[],this.waitingCallbacks[e]=n;var a=new XMLHttpRequest;a.onload=function(){s.handleHttpResult(this,e)},a.open("GET",e),a.send()}return o&&n.push(o),null},t.prototype.handleHttpResult=function(e,o){if(e.status!==200||e.response===null){console.warn("Unable to get template error "+e.status+" - "+o);return}this.templateCache[o]=e.response||e.responseText;for(var r=this.waitingCallbacks[o],n=0;n<r.length;n++){var s=r[n];s()}if(this.$scope){var a=this;window.setTimeout(function(){a.$scope.$apply()},0)}},pd([m("$scope")],t.prototype,"$scope",void 0),t=pd([Y("templateService")],t),t}(V);/**
|
|
971
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
972
|
+
* @version v26.2.1
|
|
973
|
+
* @link http://www.ag-grid.com/
|
|
974
|
+
* @license MIT
|
|
975
|
+
*/var MS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),yt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},GS=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},Uo=function(i){MS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}e=t,t.addKeyboardModeEvents=function(o,r){var n=e.instancesMonitored.get(o);n&&n.length>0?n.indexOf(r)===-1&&n.push(r):(e.instancesMonitored.set(o,[r]),o.addEventListener("keydown",e.toggleKeyboardMode),o.addEventListener("mousedown",e.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(o,r){var n=e.instancesMonitored.get(o),s=[];n&&n.length&&(s=GS(n).filter(function(a){return a!==r}),e.instancesMonitored.set(o,s)),s.length===0&&(o.removeEventListener("keydown",e.toggleKeyboardMode),o.removeEventListener("mousedown",e.toggleKeyboardMode))},t.toggleKeyboardMode=function(o){var r=e.keyboardModeActive,n=o.type==="keydown";if(!(n&&(o.ctrlKey||o.metaKey||o.altKey))&&!(r&&n||!r&&!n)){e.keyboardModeActive=n;var s=o.target.ownerDocument;if(s){var a=e.instancesMonitored.get(s);a&&a.forEach(function(u){u.dispatchEvent({type:n?_.EVENT_KEYBOARD_FOCUS:_.EVENT_MOUSE_FOCUS})})}}},t.prototype.init=function(){var o=this,r=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,r),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_GROUP_OPENED,r),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,r),this.ctrlsService.whenReady(function(n){o.gridCtrl=n.gridCtrl;var s=o.gridOptionsWrapper.getDocument();e.addKeyboardModeEvents(s,o.gridCtrl),o.addDestroyFunc(function(){return o.unregisterGridCompController(o.gridCtrl)})})},t.prototype.unregisterGridCompController=function(o){var r=this.gridOptionsWrapper.getDocument();e.removeKeyboardModeEvents(r,o)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var o=this.focusedCellPosition.column,r=this.columnModel.getGridColumn(o.getId());o!==r&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return e.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(document.activeElement,qt.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(document.activeElement,Rr.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(o,r){for(var n=o;n;){var s=this.gridOptionsWrapper.getDomData(n,r);if(s)return!1;n=n.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(o,r,n,s){s===void 0&&(s=!1);var a=this.columnModel.getGridColumn(r);if(!a){this.focusedCellPosition=null;return}this.focusedCellPosition=a?{rowIndex:o,rowPinned:c(n),column:a}:null,this.onCellFocused(s)},t.prototype.isCellFocused=function(o){return this.focusedCellPosition==null?!1:this.focusedCellPosition.column===o.column&&this.isRowFocused(o.rowIndex,o.rowPinned)},t.prototype.isRowNodeFocused=function(o){return this.isRowFocused(o.rowIndex,o.rowPinned)},t.prototype.isHeaderWrapperFocused=function(o){if(this.focusedHeaderPosition==null)return!1;var r=o.getColumnGroupChild(),n=o.getRowIndex(),s=o.getPinned(),a=this.focusedHeaderPosition,u=a.column,p=a.headerRowIndex;return r===u&&n===p&&s==u.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(o,r){this.focusedHeaderPosition={headerRowIndex:o,column:r}},t.prototype.focusHeaderPosition=function(o){var r=o.direction,n=o.fromTab,s=o.allowUserOverride,a=o.event,u=o.headerPosition;if(s){var p=this.gridOptionsWrapper,g=this.getFocusedHeader(),y=this.headerNavigationService.getHeaderRowCount();if(n){var C=p.getTabToNextHeaderFunc();if(C){var E={backwards:r==="Before",previousHeaderPosition:g,nextHeaderPosition:u,headerRowCount:y,api:p.getApi(),columnApi:p.getColumnApi()};u=C(E)}}else{var C=p.getNavigateToNextHeaderFunc();if(C&&a){var S={key:a.key,previousHeaderPosition:g,nextHeaderPosition:u,headerRowCount:y,event:a,api:p.getApi(),columnApi:p.getColumnApi()};u=C(S)}}}if(!u)return!1;if(u.headerRowIndex===-1)return this.focusGridView(u.column);this.headerNavigationService.scrollToColumn(u.column,r);var b=this.ctrlsService.getHeaderRowContainerCtrl(u.column.getPinned()),F=b.focusHeader(u.headerRowIndex,u.column,a);return F},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(o,r){return this.focusedCellPosition==null?!1:this.focusedCellPosition.rowIndex===o&&this.focusedCellPosition.rowPinned===c(r)},t.prototype.findFocusableElements=function(o,r,n){n===void 0&&(n=!1);var s=D.FOCUSABLE_SELECTOR,a=D.FOCUSABLE_EXCLUDE;r&&(a+=", "+r),n&&(a+=', [tabindex="-1"]');var u=Array.prototype.slice.apply(o.querySelectorAll(s)),p=Array.prototype.slice.apply(o.querySelectorAll(a));if(!p.length)return u;var g=function(y,C){return y.filter(function(E){return C.indexOf(E)===-1})};return g(u,p)},t.prototype.focusInto=function(o,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var s=this.findFocusableElements(o,null,n),a=r?le(s):s[0];return a?(a.focus(),!0):!1},t.prototype.findNextFocusableElement=function(o,r,n){var s=this.findFocusableElements(o,r?':not([tabindex="-1"])':null),a;r?a=so(s,function(p){return p.contains(document.activeElement)}):a=s.indexOf(document.activeElement);var u=a+(n?-1:1);return u<0||u>=s.length?null:s[u]},t.prototype.isFocusUnderManagedComponent=function(o){var r=o.querySelectorAll("."+Vt.FOCUS_MANAGED_CLASS);if(!r.length)return!1;for(var n=0;n<r.length;n++)if(r[n].contains(document.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(o,r){r===void 0&&(r=5);for(var n=0;o&&cn(o)===null&&++n<=r;)o=o.parentElement;return cn(o)===null?null:o},t.prototype.onCellFocused=function(o){var r={type:_.EVENT_CELL_FOCUSED,forceBrowserFocus:o,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=r.rowIndex=this.focusedCellPosition.rowIndex,s=r.rowPinned=this.focusedCellPosition.rowPinned;r.column=this.focusedCellPosition.column;var a=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:s});a&&(r.isFullWidthCell=a.isFullWidth())}this.eventService.dispatchEvent(r)},t.prototype.focusGridView=function(o,r){var n=r?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var s=n.rowIndex,a=n.rowPinned,u=this.getFocusedHeader();if(!o&&u&&(o=u.column),s==null||!o)return!1;if(this.navigationService.ensureCellVisible({rowIndex:s,column:o,rowPinned:a}),this.setFocusedCell(s,o,c(a),!0),this.rangeService){var p={rowIndex:s,rowPinned:a,column:o};this.rangeService.setRangeToCell(p)}return!0},t.prototype.focusNextGridCoreContainer=function(o){return this.gridCtrl.focusNextInnerContainer(o)?!0:(o||this.gridCtrl.forceFocusOutOfContainer(),!1)};var e;return t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,yt([m("columnModel")],t.prototype,"columnModel",void 0),yt([m("headerNavigationService")],t.prototype,"headerNavigationService",void 0),yt([m("columnApi")],t.prototype,"columnApi",void 0),yt([m("gridApi")],t.prototype,"gridApi",void 0),yt([m("rowRenderer")],t.prototype,"rowRenderer",void 0),yt([m("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),yt([he("rangeService")],t.prototype,"rangeService",void 0),yt([m("navigationService")],t.prototype,"navigationService",void 0),yt([m("ctrlsService")],t.prototype,"ctrlsService",void 0),yt([k],t.prototype,"init",null),t=e=yt([Y("focusService")],t),t}(V);/**
|
|
976
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
977
|
+
* @version v26.2.1
|
|
978
|
+
* @link http://www.ag-grid.com/
|
|
979
|
+
* @license MIT
|
|
980
|
+
*/var xS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Pr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Xt;(function(i){i[i.vertical=0]="vertical",i[i.horizontal=1]="horizontal"})(Xt||(Xt={}));var VS=0,dd=function(i){xS(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.popupList=[],e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){e.gridCtrl=o.gridCtrl,e.addManagedListener(e.gridCtrl,_.EVENT_KEYBOARD_FOCUS,function(){Ee(e.popupList,function(r){return Q(r.element,Uo.AG_KEYBOARD_FOCUS)})}),e.addManagedListener(e.gridCtrl,_.EVENT_MOUSE_FOCUS,function(){Ee(e.popupList,function(r){return Ie(r.element,Uo.AG_KEYBOARD_FOCUS)})})})},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var o=e.eventSource.getBoundingClientRect(),r=this.getParentRect(),n=this.keepXYWithinBounds(e.ePopup,o.top-r.top,Xt.vertical),s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a=r.right-r.left,u=a-s,p;this.gridOptionsWrapper.isEnableRtl()?(p=y(),p<0&&(p=g()),p>u&&(p=0)):(p=g(),p>u&&(p=y()),p<0&&(p=0)),e.ePopup.style.left=p+"px",e.ePopup.style.top=n+"px";function g(){return o.right-r.left-2}function y(){return o.left-r.left-s}},t.prototype.positionPopupUnderMouseEvent=function(e){var o=e.ePopup,r=e.nudgeX,n=e.nudgeY,s=this.calculatePointerAlign(e.mouseEvent),a=s.x,u=s.y;this.positionPopup({ePopup:o,x:a,y:u,nudgeX:r,nudgeY:n,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var o=this.getParentRect();return{x:e.clientX-o.left,y:e.clientY-o.top}},t.prototype.positionPopupUnderComponent=function(e){var o=e.eventSource.getBoundingClientRect(),r=e.alignSide||"left",n=this.getParentRect(),s=o.left-n.left;r==="right"&&(s-=e.ePopup.offsetWidth-o.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:s,y:o.top-n.top+o.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var o=e.eventSource.getBoundingClientRect(),r=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-r.left,y:o.top-r.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,o,r,n,s,a){var u=this.gridOptionsWrapper.getPostProcessPopupFunc();if(u){var p={column:s,rowNode:a,ePopup:o,type:e,eventSource:r,mouseEvent:n};u(p)}},t.prototype.positionPopup=function(e){var o=e.ePopup,r=e.keepWithinBounds,n=e.nudgeX,s=e.nudgeY,a=e.x,u=e.y;n&&(a+=n),s&&(u+=s),r&&(a=this.keepXYWithinBounds(o,a,Xt.horizontal),u=this.keepXYWithinBounds(o,u,Xt.vertical)),o.style.left=a+"px",o.style.top=u+"px"},t.prototype.getActivePopups=function(){return this.popupList.map(function(e){return e.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),o=this.getPopupParent();o===e.body&&(o=e.documentElement);var r=getComputedStyle(o),n=o.getBoundingClientRect();return{top:n.top+parseFloat(r.borderTopWidth)||0,left:n.left+parseFloat(r.borderLeftWidth)||0,right:n.right+parseFloat(r.borderRightWidth)||0,bottom:n.bottom+parseFloat(r.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,o,r){var n=r===Xt.vertical,s=n?"clientHeight":"clientWidth",a=n?"top":"left",u=n?"offsetHeight":"offsetWidth",p=n?"scrollTop":"scrollLeft",g=this.gridOptionsWrapper.getDocument(),y=g.documentElement,C=this.getPopupParent(),E=C.getBoundingClientRect(),S=g.documentElement.getBoundingClientRect(),b=C===g.body,F=e[u],B=n?Rs:gn,M=b?B(y)+y[p]:C[s];b&&(M-=Math.abs(S[a]-E[a]));var L=M-F;return Math.min(Math.max(o,0),Math.abs(L))},t.prototype.keepPopupPositionedRelativeTo=function(e){var o=this,r=this.getPopupParent(),n=r.getBoundingClientRect(),s=e.element.getBoundingClientRect(),a=n.top-s.top,u=n.left-s.left,p=a,g=u,y=e.ePopup.style.top,C=parseInt(y.substring(0,y.length-1),10),E=e.ePopup.style.left,S=parseInt(E.substring(0,E.length-1),10);return new Ke(function(b){o.getFrameworkOverrides().setInterval(function(){var F=r.getBoundingClientRect(),B=e.element.getBoundingClientRect(),M=B.top==0&&B.left==0&&B.height==0&&B.width==0;if(M){e.hidePopup();return}var L=F.top-B.top;if(L!=p){var j=o.keepXYWithinBounds(e.ePopup,C+a-L,Xt.vertical);e.ePopup.style.top=j+"px"}p=L;var J=F.left-B.left;if(J!=g){var ue=o.keepXYWithinBounds(e.ePopup,S+u-J,Xt.horizontal);e.ePopup.style.left=ue+"px"}g=J},200).then(function(F){var B=function(){F!=null&&window.clearInterval(F)};b(B)})})},t.prototype.addPopup=function(e){var o=this,r=e.modal,n=e.eChild,s=e.closeOnEsc,a=e.closedCallback,u=e.click,p=e.alwaysOnTop,g=e.afterGuiAttached,y=e.positionCallback,C=e.anchorToElement,E=e.ariaLabel,S=this.gridOptionsWrapper.getDocument(),b=new Ke(function(ge){return ge(function(){})});if(!S)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:b};var F=so(this.popupList,function(ge){return ge.element===n});if(F!==-1){var B=this.popupList[F];return{hideFunc:B.hideFunc,stopAnchoringPromise:B.stopAnchoringPromise}}var M=this.getPopupParent();n.style.top==null&&(n.style.top="0px"),n.style.left==null&&(n.style.left="0px");var L=document.createElement("div"),j=this.environment.getTheme().theme;j&&Q(L,j),Q(L,"ag-popup"),Q(n,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),Q(n,"ag-popup-child"),ke(n,"dialog"),uo(n,E),this.focusService.isKeyboardMode()&&Q(n,Uo.AG_KEYBOARD_FOCUS),L.appendChild(n),M.appendChild(L),p?this.setAlwaysOnTop(L,!0):this.bringPopupToFront(L);var J=!1,ue=function(ge){if(L.contains(document.activeElement)){var _e=ge.which||ge.keyCode;_e===W.ESCAPE&&ye({keyboardEvent:ge})}},te=function(ge){return ye({mouseEvent:ge})},pe=function(ge){return ye({touchEvent:ge})},ye=function(ge){ge===void 0&&(ge={});var _e=ge.mouseEvent,We=ge.touchEvent,mt=ge.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:_e,touchEvent:We},n)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:u,mouseEvent:_e,touchEvent:We})||J||(J=!0,M.removeChild(L),S.removeEventListener("keydown",ue),S.removeEventListener("mousedown",te),S.removeEventListener("touchstart",pe),S.removeEventListener("contextmenu",te),o.eventService.removeEventListener(_.EVENT_DRAG_STARTED,te),a&&a(_e||We||mt),o.popupList=o.popupList.filter(function(Oe){return Oe.element!==n}),b&&b.then(function(Oe){return Oe&&Oe()}))};return g&&g({hidePopup:ye}),window.setTimeout(function(){s&&S.addEventListener("keydown",ue),r&&(S.addEventListener("mousedown",te),o.eventService.addEventListener(_.EVENT_DRAG_STARTED,te),S.addEventListener("touchstart",pe),S.addEventListener("contextmenu",te))},0),y&&y(),C&&(b=this.keepPopupPositionedRelativeTo({element:C,ePopup:n,hidePopup:ye})),this.popupList.push({element:n,wrapper:L,hideFunc:ye,stopAnchoringPromise:b,instanceId:VS++,isAnchored:!!C}),{hideFunc:ye,stopAnchoringPromise:b}},t.prototype.hasAnchoredPopup=function(){return So(this.popupList,function(e){return e.isAnchored})},t.prototype.isEventFromCurrentPopup=function(e,o){var r=e.mouseEvent,n=e.touchEvent,s=r||n;if(!s)return!1;var a=so(this.popupList,function(g){return g.element===o});if(a===-1)return!1;for(var u=a;u<this.popupList.length;u++){var p=this.popupList[u];if(an(p.element,s))return!0}return this.isElementWithinCustomPopup(s.target)},t.prototype.isElementWithinCustomPopup=function(e){for(;e&&e!==document.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var o=e.originalMouseEvent,r=e.mouseEvent,n=e.touchEvent,s=null;if(r?s=r:n&&(s=n.touches[0]),s&&o){var a=r?r.screenX:0,u=r?r.screenY:0,p=Math.abs(o.screenX-a)<5,g=Math.abs(o.screenY-u)<5;if(p&&g)return!0}return!1},t.prototype.getWrapper=function(e){for(;!Ot(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return Ot(e,"ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,o){var r=this.getWrapper(e);r&&(ee(r,"ag-always-on-top",!!o),o&&this.bringPopupToFront(r))},t.prototype.bringPopupToFront=function(e){var o=this.getPopupParent(),r=Array.prototype.slice.call(o.querySelectorAll(".ag-popup")),n=r.length,s=Array.prototype.slice.call(o.querySelectorAll(".ag-popup.ag-always-on-top")),a=s.length,u=this.getWrapper(e);if(!(!u||n<=1||!o.contains(e))){var p=r.indexOf(u);if(a){var g=Ot(u,"ag-always-on-top");g?p!==n-1&&le(s).insertAdjacentElement("afterend",u):p!==n-a-1&&s[0].insertAdjacentElement("beforebegin",u)}else p!==n-1&&le(r).insertAdjacentElement("afterend",u);var y={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:u};this.eventService.dispatchEvent(y)}},Pr([m("environment")],t.prototype,"environment",void 0),Pr([m("focusService")],t.prototype,"focusService",void 0),Pr([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Pr([k],t.prototype,"postConstruct",null),t=Pr([Y("popupService")],t),t}(V);/**
|
|
981
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
982
|
+
* @version v26.2.1
|
|
983
|
+
* @link http://www.ag-grid.com/
|
|
984
|
+
* @license MIT
|
|
985
|
+
*/var HS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),hd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WS=function(i,t){return function(e,o){t(e,o,i)}},fd=function(i){HS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new Hn(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},hd([WS(0,xe("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=hd([Y("loggerFactory")],t),t}(V),Hn=function(){function i(t,e){this.name=t,this.isLoggingFunc=e}return i.prototype.isLogging=function(){return this.isLoggingFunc()},i.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},i}();/**
|
|
986
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
987
|
+
* @version v26.2.1
|
|
988
|
+
* @link http://www.ag-grid.com/
|
|
989
|
+
* @license MIT
|
|
990
|
+
*/var BS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Dr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gd=function(i){BS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){e.centerRowContainerCon=o.centerRowContainerCtrl})},t.prototype.getPreferredWidthForColumn=function(e,o){var r=this.getHeaderCellForColumn(e);if(!r)return-1;var n=document.createElement("span");n.style.position="fixed";var s=this.centerRowContainerCon.getContainerElement();s.appendChild(n),this.putRowCellsIntoDummyContainer(e,n),o||this.cloneItemIntoDummy(r,n);var a=n.offsetWidth;s.removeChild(n);var u=this.gridOptionsWrapper.getAutoSizePadding();return a+u},t.prototype.getHeaderCellForColumn=function(e){var o=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(r){var n=r.getHtmlElementForColumnHeader(e);n!=null&&(o=n)}),o},t.prototype.putRowCellsIntoDummyContainer=function(e,o){var r=this,n=this.rowRenderer.getAllCellsForColumn(e);n.forEach(function(s){return r.cloneItemIntoDummy(s,o)})},t.prototype.cloneItemIntoDummy=function(e,o){var r=e.cloneNode(!0);r.style.width="",r.style.position="static",r.style.left="";var n=document.createElement("div");Ot(r,"ag-header-cell")?(Q(n,"ag-header"),Q(n,"ag-header-row"),n.style.position="static"):Q(n,"ag-row");for(var s=e.parentElement;s;){if(s.classList.contains("ag-header-row")||s.classList.contains("ag-row")){for(var a=0;a<s.classList.length;a++){var u=s.classList[a];u!="ag-row-position-absolute"&&Q(n,u)}break}s=s.parentElement}n.style.display="table-row",n.appendChild(r),o.appendChild(n)},Dr([m("rowRenderer")],t.prototype,"rowRenderer",void 0),Dr([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Dr([m("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Dr([k],t.prototype,"postConstruct",null),t=Dr([Y("autoWidthCalculator")],t),t}(V);/**
|
|
991
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
992
|
+
* @version v26.2.1
|
|
993
|
+
* @link http://www.ag-grid.com/
|
|
994
|
+
* @license MIT
|
|
995
|
+
*/var kS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),wa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vd=function(i){kS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.addResizeBar=function(e){var o=this,r={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(r,!0);var n=function(){return o.dragService.removeDragSource(r)};return n},t.prototype.onDragStart=function(e,o){this.dragStartX=o.clientX,this.setResizeIcons();var r=o instanceof MouseEvent&&o.shiftKey===!0;e.onResizeStart(r)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,o){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,o){this.resizeAmount=o.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},wa([m("dragService")],t.prototype,"dragService",void 0),wa([m("ctrlsService")],t.prototype,"ctrlsService",void 0),t=wa([Y("horizontalResizeService")],t),t}(V);/**
|
|
996
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
997
|
+
* @version v26.2.1
|
|
998
|
+
* @link http://www.ag-grid.com/
|
|
999
|
+
* @license MIT
|
|
1000
|
+
*/var US=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Qt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yd=function(i){US(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.ctrlsService.registerGridCtrl(this)},t.prototype.setComp=function(e,o,r){var n=this;this.view=e,this.eGridHostDiv=o,this.eGui=r,this.mouseEventService.stampTopLevelGridCompWithGridInstance(o),this.createManagedBean(new ya(this.view)),this.addRtlSupport(),this.addManagedListener(this,_.EVENT_KEYBOARD_FOCUS,function(){n.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,_.EVENT_MOUSE_FOCUS,function(){n.view.addOrRemoveKeyboardFocusClass(!1)});var s=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return s()})},t.prototype.showDropZones=function(){return oe.isRegistered(l.ModuleNames.RowGroupingModule)},t.prototype.showSideBar=function(){return oe.isRegistered(l.ModuleNames.SideBarModule)},t.prototype.showStatusBar=function(){return oe.isRegistered(l.ModuleNames.StatusBarModule)},t.prototype.showWatermark=function(){return oe.isRegistered(l.ModuleNames.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){var e={type:_.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var o=this.view.getFocusableContainers(),r=so(o,function(s){return s.contains(document.activeElement)}),n=r+(e?-1:1);return n<0||n>=o.length?!1:n===0?this.focusGridHeader():this.focusService.focusInto(o[n])},t.prototype.focusInnerElement=function(e){var o=this.view.getFocusableContainers();if(e){if(o.length>1)return this.focusService.focusInto(le(o),!0);var r=le(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(r,!0))return!0}return this.focusGridHeader()},t.prototype.focusGridHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return e?(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}),!0):!1},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.view.forceFocusOutOfContainer(e)},Qt([m("columnApi")],t.prototype,"columnApi",void 0),Qt([m("gridApi")],t.prototype,"gridApi",void 0),Qt([m("focusService")],t.prototype,"focusService",void 0),Qt([m("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Qt([m("columnModel")],t.prototype,"columnModel",void 0),Qt([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Qt([m("mouseEventService")],t.prototype,"mouseEventService",void 0),Qt([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
1001
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1002
|
+
* @version v26.2.1
|
|
1003
|
+
* @link http://www.ag-grid.com/
|
|
1004
|
+
* @license MIT
|
|
1005
|
+
*/var jS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),md=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Cd=function(i){jS(t,i);function t(e){var o=i.call(this)||this;o.skipTabGuardFocus=!1;var r=e.comp,n=e.eTopGuard,s=e.eBottomGuard,a=e.focusInnerElement,u=e.onFocusIn,p=e.onFocusOut,g=e.shouldStopEventPropagation,y=e.onTabKeyDown,C=e.handleKeyDown,E=e.eFocusableElement;return o.comp=r,o.eTopGuard=n,o.eBottomGuard=s,o.providedFocusInnerElement=a,o.eFocusableElement=E,o.providedFocusIn=u,o.providedFocusOut=p,o.providedShouldStopEventPropagation=g,o.providedOnTabKeyDown=y,o.providedHandleKeyDown=C,o}return t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Vt(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(o){return e.onTabKeyDown(o)},handleKeyDown:function(o){return e.handleKeyDown(o)},onFocusIn:function(o){return e.onFocusIn(o)},onFocusOut:function(o){return e.onFocusOut(o)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(o){return e.addManagedListener(o,"focus",e.onFocus.bind(e))})},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}var o=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(o):this.focusInnerElement(o)},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var o=this;if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(!e.defaultPrevented){var r=this.tabGuardsAreActive();r&&this.deactivateTabGuards();var n=this.getNextFocusableElement(e.shiftKey);r&&setTimeout(function(){return o.activateTabGuards()},0),n&&(n.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){e===void 0&&(e=!1);var o=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(o.splice(0,1),o.splice(o.length-1,1)),o.length&&o[e?o.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1);var o=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,o.focus()},md([m("focusService")],t.prototype,"focusService",void 0),md([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
1006
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1007
|
+
* @version v26.2.1
|
|
1008
|
+
* @link http://www.ag-grid.com/
|
|
1009
|
+
* @license MIT
|
|
1010
|
+
*/var zS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),_a=function(i){zS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var o=[this.eTopGuard,this.eBottomGuard],r={setTabIndex:function(n){o.forEach(function(s){return n!=null?s.setAttribute("tabIndex",n):s.removeAttribute("tabIndex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new Cd({comp:r,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var o=document.createElement("div");return o.classList.add("ag-tab-guard"),o.classList.add("ag-tab-guard-"+e),ke(o,"presentation"),o},t.prototype.addTabGuards=function(e,o){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",o)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];Je(this.getFocusableElement()),this.addTabGuards.apply(this,e)},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(e,o){yn(e)||(e=e.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",e):i.prototype.appendChild.call(this,e,o)},t}(se);/**
|
|
1011
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1012
|
+
* @version v26.2.1
|
|
1013
|
+
* @link http://www.ag-grid.com/
|
|
1014
|
+
* @license MIT
|
|
1015
|
+
*/var $S=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ar=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wd=function(i){$S(t,i);function t(e){var o=i.call(this,void 0)||this;return o.eGridDiv=e,o}return t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var o={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(n){return Q(e.getGui(),n)},addOrRemoveKeyboardFocusClass:function(n){return e.addOrRemoveCssClass(Uo.AG_KEYBOARD_FOCUS,n)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(n){e.getGui().style.userSelect=n??"",e.getGui().style.webkitUserSelect=n??""},setCursor:function(n){e.getGui().style.cursor=n??""}};this.ctrl=this.createManagedBean(new yd);var r=this.createTemplate();this.setTemplate(r),this.ctrl.setComp(o,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(n){return e.ctrl.focusInnerElement(n)}})},t.prototype.insertGridIntoDom=function(){var e=this,o=this.getGui();this.eGridDiv.appendChild(o),this.addDestroyFunc(function(){e.eGridDiv.removeChild(o),e.logger.log("Grid removed from DOM")})},t.prototype.updateLayoutClasses=function(e,o){ee(this.eRootWrapperBody,l.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),ee(this.eRootWrapperBody,l.LayoutCssClasses.NORMAL,o.normal),ee(this.eRootWrapperBody,l.LayoutCssClasses.PRINT,o.print),this.addOrRemoveCssClass(l.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),this.addOrRemoveCssClass(l.LayoutCssClasses.NORMAL,o.normal),this.addOrRemoveCssClass(l.LayoutCssClasses.PRINT,o.print)},t.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",o=this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"",r=this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"",n=this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"",s=`<div class="ag-root-wrapper">
|
|
1016
|
+
`+e+`
|
|
1017
|
+
<div class="ag-root-wrapper-body" ref="rootWrapperBody">
|
|
1018
|
+
<ag-grid-body ref="gridBody"></ag-grid-body>
|
|
1019
|
+
`+o+`
|
|
1020
|
+
</div>
|
|
1021
|
+
`+r+`
|
|
1022
|
+
<ag-pagination></ag-pagination>
|
|
1023
|
+
`+n+`
|
|
1024
|
+
</div>`;return s},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(o){return Fo(o)})},Ar([m("loggerFactory")],t.prototype,"loggerFactory",void 0),Ar([x("gridBody")],t.prototype,"gridBodyComp",void 0),Ar([x("sideBar")],t.prototype,"sideBarComp",void 0),Ar([x("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),Ar([k],t.prototype,"postConstruct",null),t}(_a);/**
|
|
1025
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1026
|
+
* @version v26.2.1
|
|
1027
|
+
* @link http://www.ag-grid.com/
|
|
1028
|
+
* @license MIT
|
|
1029
|
+
*/var KS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),jo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_d=function(i){KS(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var o=e.dragSource.eElement,r=e.mouseDownListener;if(o.removeEventListener("mousedown",r),e.touchEnabled){var n=e.touchStartListener;o.removeEventListener("touchstart",n,{passive:!0})}},t.prototype.removeDragSource=function(e){var o=H(this.dragSources,function(r){return r.dragSource===e});o&&(this.removeListener(o),$(this.dragSources,o))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,o){var r=this;o===void 0&&(o=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var s=null,a=this.gridOptionsWrapper.isSuppressTouch();o&&!a&&(s=function(u){u.preventDefault(),r.onTouchStart(e,u)},e.eElement.addEventListener("touchstart",s,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:s,touchEnabled:o})},t.prototype.onTouchStart=function(e,o){var r=this;this.currentDragParams=e,this.dragging=!1;var n=o.touches[0];this.touchLastTime=n,this.touchStart=n;var s=function(y){return r.onTouchMove(y,e.eElement)},a=function(y){return r.onTouchUp(y,e.eElement)},u=function(y){y.cancelable&&y.preventDefault()},p=e.eElement,g=[{target:document,type:"touchmove",listener:u,options:{passive:!1}},{target:p,type:"touchmove",listener:s,options:{passive:!0}},{target:p,type:"touchend",listener:a,options:{passive:!0}},{target:p,type:"touchcancel",listener:a,options:{passive:!0}}];this.addTemporaryEvents(g),e.dragStartPixels===0&&this.onCommonMove(n,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,o){var r=this,n=o;if(!(e.skipMouseEvent&&e.skipMouseEvent(o))&&!n._alreadyProcessedByDragService&&(n._alreadyProcessedByDragService=!0,o.button===0)){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=o;var s=this.gridOptionsWrapper.getDocument(),a=function(C){return r.onMouseMove(C,e.eElement)},u=function(C){return r.onMouseUp(C,e.eElement)},p=function(C){return C.preventDefault()},g=s,y=[{target:g,type:"mousemove",listener:a},{target:g,type:"mouseup",listener:u},{target:g,type:"contextmenu",listener:p}];this.addTemporaryEvents(y),e.dragStartPixels===0&&this.onMouseMove(o,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(o){var r=o.target,n=o.type,s=o.listener,a=o.options;r.addEventListener(n,s,a)}),this.dragEndFunctions.push(function(){e.forEach(function(o){var r=o.target,n=o.type,s=o.listener,a=o.options;r.removeEventListener(n,s,a)})})},t.prototype.isEventNearStartEvent=function(e,o){var r=this.currentDragParams.dragStartPixels,n=h(r)?r:4;return xs(e,o,n)},t.prototype.getFirstActiveTouch=function(e){for(var o=0;o<e.length;o++)if(e[o].identifier===this.touchStart.identifier)return e[o];return null},t.prototype.onCommonMove=function(e,o,r){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,o))return;this.dragging=!0;var n={type:_.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:r};this.eventService.dispatchEvent(n),this.currentDragParams.onDragStart(o),this.currentDragParams.onDragging(o)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,o){var r=this.getFirstActiveTouch(e.touches);r&&this.onCommonMove(r,this.touchStart,o)},t.prototype.onMouseMove=function(e,o){this.onCommonMove(e,this.mouseStartEvent,o)},t.prototype.onTouchUp=function(e,o){var r=this.getFirstActiveTouch(e.changedTouches);r||(r=this.touchLastTime),this.onUpCommon(r,o)},t.prototype.onMouseUp=function(e,o){this.onUpCommon(e,o)},t.prototype.onUpCommon=function(e,o){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var r={type:_.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:o};this.eventService.dispatchEvent(r)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(n){return n()}),this.dragEndFunctions.length=0},jo([m("loggerFactory")],t.prototype,"loggerFactory",void 0),jo([m("columnApi")],t.prototype,"columnApi",void 0),jo([m("gridApi")],t.prototype,"gridApi",void 0),jo([k],t.prototype,"init",null),jo([Ne],t.prototype,"removeAllListeners",null),t=jo([Y("dragService")],t),t}(V);/**
|
|
1030
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1031
|
+
* @version v26.2.1
|
|
1032
|
+
* @link http://www.ag-grid.com/
|
|
1033
|
+
* @license MIT
|
|
1034
|
+
*/var YS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Wn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ed=function(i){YS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}e=t,t.prototype.progressSort=function(o,r,n){n===void 0&&(n="api");var s=this.getNextSortDirection(o);this.setSortForColumn(o,s,r,n)},t.prototype.setSortForColumn=function(o,r,n,s){s===void 0&&(s="api"),r!==D.SORT_ASC&&r!==D.SORT_DESC&&(r=null),o.setSort(r,s);var a=n&&!this.gridOptionsWrapper.isSuppressMultiSort();a||this.clearSortBarThisColumn(o,s),this.updateSortIndex(o),this.dispatchSortChangedEvents()},t.prototype.updateSortIndex=function(o){var r=this.getColumnsWithSortingOrdered(),n=0;r.forEach(function(a){a!==o&&(a.setSortIndex(n),n++)}),o.getSort()&&o.setSortIndex(n);var s=this.columnModel.getPrimaryAndSecondaryAndAutoColumns();s.filter(function(a){return a.getSort()==null}).forEach(function(a){return a.setSortIndex()})},t.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},t.prototype.isSortActive=function(){var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),r=o.filter(function(n){return!!n.getSort()});return r&&r.length>0},t.prototype.dispatchSortChangedEvents=function(){var o={type:_.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.clearSortBarThisColumn=function(o,r){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(n){n!==o&&n.setSort(void 0,r)})},t.prototype.getNextSortDirection=function(o){var r;if(o.getColDef().sortingOrder?r=o.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?r=this.gridOptionsWrapper.getSortingOrder():r=e.DEFAULT_SORTING_ORDER,!Array.isArray(r)||r.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+r),null;var n=r.indexOf(o.getSort()),s=n<0,a=n==r.length-1,u;return s||a?u=r[0]:u=r[n+1],e.DEFAULT_SORTING_ORDER.indexOf(u)<0?(console.warn("ag-grid: invalid sort type "+u),null):u},t.prototype.getColumnsWithSortingOrdered=function(){var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),r=o.filter(function(s){return!!s.getSort()}),n={};return o.forEach(function(s,a){return n[s.getId()]=a}),r.sort(function(s,a){var u=s.getSortIndex(),p=a.getSortIndex();if(u!=null&&p!=null)return u-p;if(u==null&&p==null){var g=n[s.getId()],y=n[a.getId()];return g>y?1:-1}else return p==null?-1:1}),r},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map(function(o){return{sort:o.getSort(),colId:o.getId()}})},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map(function(o){return{sort:o.getSort(),column:o}})};var e;return t.DEFAULT_SORTING_ORDER=[D.SORT_ASC,D.SORT_DESC,null],Wn([m("columnModel")],t.prototype,"columnModel",void 0),Wn([m("columnApi")],t.prototype,"columnApi",void 0),Wn([m("gridApi")],t.prototype,"gridApi",void 0),t=e=Wn([Y("sortController")],t),t}(V);/**
|
|
1035
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1036
|
+
* @version v26.2.1
|
|
1037
|
+
* @link http://www.ag-grid.com/
|
|
1038
|
+
* @license MIT
|
|
1039
|
+
*/var qS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Rd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Sd=function(i){qS(t,i);function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.gridInstanceId=e.gridInstanceSequence.next(),o}e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(o){o[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(o){return sn(this.gridOptionsWrapper,o,Yt.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(o){var r=this.isElementInThisGrid(o.target);return r},t.prototype.isElementInThisGrid=function(o){for(var r=o;r;){var n=r[e.GRID_DOM_KEY];if(h(n)){var s=n===this.gridInstanceId;return s}r=r.parentElement}return!1},t.prototype.getCellPositionForEvent=function(o){var r=this.getRenderedCellForEvent(o);return r?r.getCellPosition():null},t.prototype.getNormalisedPosition=function(o){var r=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_NORMAL,n=o,s,a;if(n.clientX!=null||n.clientY!=null?(s=n.clientX,a=n.clientY):(s=n.x,a=n.y),r){var u=this.ctrlsService.getGridBodyCtrl(),p=u.getScrollFeature().getVScrollPosition(),g=u.getScrollFeature().getHScrollPosition();s+=g.left,a+=p.top}return{x:s,y:a}};var e;return t.gridInstanceSequence=new po,t.GRID_DOM_KEY="__ag_grid_instance",Rd([m("ctrlsService")],t.prototype,"ctrlsService",void 0),t=e=Rd([Y("mouseEventService")],t),t}(V);/**
|
|
1040
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1041
|
+
* @version v26.2.1
|
|
1042
|
+
* @link http://www.ag-grid.com/
|
|
1043
|
+
* @license MIT
|
|
1044
|
+
*/var XS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Tr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Od=function(i){XS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getNextCellToFocus=function(e,o){for(var r=o,n=!1;!n;){switch(e){case W.UP:r=this.getCellAbove(r);break;case W.DOWN:r=this.getCellBelow(r);break;case W.RIGHT:this.gridOptionsWrapper.isEnableRtl()?r=this.getCellToLeft(r):r=this.getCellToRight(r);break;case W.LEFT:this.gridOptionsWrapper.isEnableRtl()?r=this.getCellToRight(r):r=this.getCellToLeft(r);break;default:r=null,console.warn("AG Grid: unknown key for navigation "+e);break}r?n=this.isCellGoodToFocusOn(r):n=!0}return r},t.prototype.isCellGoodToFocusOn=function(e){var o=e.column,r;switch(e.rowPinned){case D.PINNED_TOP:r=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case D.PINNED_BOTTOM:r=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:r=this.rowModel.getRow(e.rowIndex);break}if(!r)return!1;var n=o.isSuppressNavigable(r);return!n},t.prototype.getCellToLeft=function(e){if(!e)return null;var o=this.columnModel.getDisplayedColBefore(e.column);return o?{rowIndex:e.rowIndex,column:o,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var o=this.columnModel.getDisplayedColAfter(e.column);return o?{rowIndex:e.rowIndex,column:o,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var o=e.rowIndex,r=e.rowPinned;if(this.isLastRowInContainer(e))switch(r){case D.PINNED_BOTTOM:return null;case D.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(D.PINNED_BOTTOM)?{rowIndex:0,rowPinned:D.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(D.PINNED_BOTTOM)?{rowIndex:0,rowPinned:D.PINNED_BOTTOM}:null}return{rowIndex:o+1,rowPinned:r}},t.prototype.getCellBelow=function(e){if(!e)return null;var o=this.getRowBelow(e);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var o=e.rowPinned,r=e.rowIndex;if(o===D.PINNED_TOP){var n=this.pinnedRowModel.getPinnedTopRowData().length-1;return n<=r}if(o===D.PINNED_BOTTOM){var s=this.pinnedRowModel.getPinnedBottomRowData().length-1;return s<=r}var a=this.paginationProxy.getPageLastRow();return a<=r},t.prototype.getRowAbove=function(e){var o=e.rowIndex,r=e.rowPinned,n=r?o===0:o===this.paginationProxy.getPageFirstRow();return n?r===D.PINNED_TOP?null:r?this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(D.PINNED_TOP)?this.getLastFloatingTopRow():null:this.pinnedRowModel.isRowsToRender(D.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:o-1,rowPinned:r}},t.prototype.getCellAbove=function(e){if(!e)return null;var o=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null},t.prototype.getLastBodyCell=function(){var e=this.paginationProxy.getPageLastRow();return{rowIndex:e,rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return{rowIndex:e,rowPinned:D.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,o){return o?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var o=this.columnModel.getAllDisplayedColumns(),r=e.rowIndex,n=e.rowPinned,s=this.columnModel.getDisplayedColAfter(e.column);if(!s){s=o[0];var a=this.getRowBelow(e);if(f(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;r=a?a.rowIndex:null,n=a?a.rowPinned:null}return{rowIndex:r,column:s,rowPinned:n}},t.prototype.getNextTabbedCellBackwards=function(e){var o=this.columnModel.getAllDisplayedColumns(),r=e.rowIndex,n=e.rowPinned,s=this.columnModel.getDisplayedColBefore(e.column);if(!s){s=le(o);var a=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(f(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;r=a?a.rowIndex:null,n=a?a.rowPinned:null}return{rowIndex:r,column:s,rowPinned:n}},Tr([m("columnModel")],t.prototype,"columnModel",void 0),Tr([m("rowModel")],t.prototype,"rowModel",void 0),Tr([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Tr([m("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Tr([Y("cellNavigationService")],t),t}(V);/**
|
|
1045
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1046
|
+
* @version v26.2.1
|
|
1047
|
+
* @link http://www.ag-grid.com/
|
|
1048
|
+
* @license MIT
|
|
1049
|
+
*/var QS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Pd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Dd=function(i){QS(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.formatValue=function(e,o,r,n,s,a){a===void 0&&(a=!0);var u=null,p,g=e.getColDef();if(s?p=s:a&&(p=o&&o.rowPinned&&g.pinnedRowValueFormatter?g.pinnedRowValueFormatter:g.valueFormatter),p){var y={value:n,node:o,data:o?o.data:null,colDef:g,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};y.$scope=r,u=this.expressionService.evaluate(p,y)}else if(g.refData)return g.refData[n]||"";return u==null&&Array.isArray(n)&&(u=n.join(", ")),u},Pd([m("expressionService")],t.prototype,"expressionService",void 0),t=Pd([Y("valueFormatterService")],t),t}(V);/**
|
|
1050
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1051
|
+
* @version v26.2.1
|
|
1052
|
+
* @link http://www.ag-grid.com/
|
|
1053
|
+
* @license MIT
|
|
1054
|
+
*/var JS=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ad=function(i){JS(t,i);function t(e){return i.call(this,e,"ag-radio-button","radio")||this}return t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){i.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,_.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Wo);/**
|
|
1055
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1056
|
+
* @version v26.2.1
|
|
1057
|
+
* @link http://www.ag-grid.com/
|
|
1058
|
+
* @license MIT
|
|
1059
|
+
*/var ZS=["mouseover","mouseout","mouseenter","mouseleave"],Td=function(){function i(){this.isOutsideAngular=function(t){return ot(ZS,t)}}return i.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},i.prototype.setInterval=function(t,e){return new Ke(function(o){o(window.setInterval(t,e))})},i.prototype.addEventListener=function(t,e,o,r){t.addEventListener(e,o,r)},i.prototype.dispatchEvent=function(t,e,o){e()},i.prototype.frameworkComponent=function(t){return null},i}();/**
|
|
1060
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1061
|
+
* @version v26.2.1
|
|
1062
|
+
* @link http://www.ag-grid.com/
|
|
1063
|
+
* @license MIT
|
|
1064
|
+
*/var eO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),br=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bd=function(i){eO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var o={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(o)}},t.prototype.setScrollsVisible=function(e){var o=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(o){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var r={type:_.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},br([m("columnApi")],t.prototype,"columnApi",void 0),br([m("gridApi")],t.prototype,"gridApi",void 0),br([m("ctrlsService")],t.prototype,"ctrlsService",void 0),br([k],t.prototype,"postConstruct",null),t=br([Y("scrollVisibleService")],t),t}(V);/**
|
|
1065
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1066
|
+
* @version v26.2.1
|
|
1067
|
+
* @link http://www.ag-grid.com/
|
|
1068
|
+
* @license MIT
|
|
1069
|
+
*/var tO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Nd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Fd=function(i){tO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.processAllCellClasses=function(e,o,r,n){this.processClassRules(e.cellClassRules,o,r,n),this.processStaticCellClasses(e,o,r)},t.prototype.processClassRules=function(e,o,r,n){if(e!=null)for(var s=Object.keys(e),a={},u={},p=function(C){var E=s[C],S=e[E],b;typeof S=="string"?b=g.expressionService.evaluate(S,o):typeof S=="function"&&(b=S(o)),E.split(" ").forEach(function(F){F==null||F.trim()==""||(b?a[F]=!0:u[F]=!0)}),n&&Object.keys(u).forEach(n),Object.keys(a).forEach(r)},g=this,y=0;y<s.length;y++)p(y)},t.prototype.getStaticCellClasses=function(e,o){var r=e.cellClass;if(!r)return[];var n;if(typeof r=="function"){var s=e.cellClass;n=s(o)}else n=r;return typeof n=="string"&&(n=[n]),n},t.prototype.processStaticCellClasses=function(e,o,r){var n=this.getStaticCellClasses(e,o);n.forEach(function(s){r(s)})},Nd([m("expressionService")],t.prototype,"expressionService",void 0),t=Nd([Y("stylingService")],t),t}(V);/**
|
|
1070
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1071
|
+
* @version v26.2.1
|
|
1072
|
+
* @link http://www.ag-grid.com/
|
|
1073
|
+
* @license MIT
|
|
1074
|
+
*/var oO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ea=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rO=function(i){oO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setMouseOver=function(e){this.selectedColumns=e;var o={type:_.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:_.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},Ea([m("columnApi")],t.prototype,"columnApi",void 0),Ea([m("gridApi")],t.prototype,"gridApi",void 0),t=Ea([Y("columnHoverService")],t),t}(V);/**
|
|
1075
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1076
|
+
* @version v26.2.1
|
|
1077
|
+
* @link http://www.ag-grid.com/
|
|
1078
|
+
* @license MIT
|
|
1079
|
+
*/var nO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ra=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},iO=function(i){nO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){return e.gridBodyCtrl=o.gridBodyCtrl})},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var o=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===o&&e.gridBodyCtrl.setColumnMovingCss(!1)})},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var o=this.executeLaterFuncs;this.executeLaterFuncs=[],!(e.length===0&&o.length===0)&&(window.setTimeout(function(){return e.forEach(function(r){return r()})},0),window.setTimeout(function(){return o.forEach(function(r){return r()})},300))},Ra([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Ra([k],t.prototype,"postConstruct",null),t=Ra([Y("columnAnimationService")],t),t}(V);/**
|
|
1080
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1081
|
+
* @version v26.2.1
|
|
1082
|
+
* @link http://www.ag-grid.com/
|
|
1083
|
+
* @license MIT
|
|
1084
|
+
*/var sO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Sa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aO=function(i){sO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}e=t,t.prototype.createAutoGroupColumns=function(o){var r=this,n=[],s=this.gridOptionsWrapper.isTreeData(),a=this.gridOptionsWrapper.isGroupMultiAutoColumn();return s&&a&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),a=!1),a?o.forEach(function(u,p){n.push(r.createOneAutoGroupColumn(u,p))}):n.push(this.createOneAutoGroupColumn()),n},t.prototype.createOneAutoGroupColumn=function(o,r){var n=this.generateDefaultColDef(o),s;o?s=D.GROUP_AUTO_COLUMN_ID+"-"+o.getId():s=e.GROUP_AUTO_COLUMN_BUNDLE_ID;var a=this.gridOptionsWrapper.getAutoGroupColumnDef();if(rt(n,a),n=this.columnFactory.mergeColDefs(n),n.colId=s,!this.gridOptionsWrapper.isTreeData()){var u=f(n.field)&&f(n.valueGetter)&&f(n.filterValueGetter);u&&(n.filter=!1)}r&&r>0&&(n.headerCheckboxSelection=!1);var p=new fe(n,null,s,!0);return this.context.createBean(p),p},t.prototype.generateDefaultColDef=function(o){var r=this.gridOptionsWrapper.getAutoGroupColumnDef(),n=this.gridOptionsWrapper.getLocaleTextFunc(),s={headerName:n("group","Group")},a=r&&(r.cellRenderer||r.cellRendererFramework||r.cellRendererSelector);if(a||(s.cellRenderer="agGroupCellRenderer"),o){var u=o.getColDef();nt(s,{headerName:this.columnModel.getDisplayNameForColumn(o,"header"),headerValueGetter:u.headerValueGetter}),u.cellRenderer&&nt(s,{cellRendererParams:{innerRenderer:u.cellRenderer,innerRendererParams:u.cellRendererParams}}),s.showRowGroup=o.getColId()}else s.showRowGroup=!0;return s};var e;return t.GROUP_AUTO_COLUMN_BUNDLE_ID=D.GROUP_AUTO_COLUMN_ID,Sa([m("columnModel")],t.prototype,"columnModel",void 0),Sa([m("columnFactory")],t.prototype,"columnFactory",void 0),t=e=Sa([Y("autoGroupColService")],t),t}(V);/**
|
|
1085
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1086
|
+
* @version v26.2.1
|
|
1087
|
+
* @link http://www.ag-grid.com/
|
|
1088
|
+
* @license MIT
|
|
1089
|
+
*/var lO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Nr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Id=function(i){lO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,o,r,n){var s=this.rowModel.ensureRowHeightsValid(e,o,this.getPageFirstRow(),this.getPageLastRow());return s&&this.calculatePages(),s},t.prototype.onModelUpdated=function(e){this.calculatePages();var o={type:_.EVENT_PAGINATION_CHANGED,animate:e?e.animate:!1,newData:e?e.newData:!1,newPage:e?e.newPage:!1,keepRenderedRows:e?e.keepRenderedRows:!1,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:_.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(!(!this.active||this.currentPage===e)){this.currentPage=e;var o={type:_.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(o)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return f(this.topRowBounds)||f(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){var e=this.topRowBounds?this.topRowBounds.rowTop:0,o=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:o}},t.prototype.isRowPresent=function(e){if(!this.rowModel.isRowPresent(e))return!1;var o=e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex;return o},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,o){return this.rowModel.getNodesInRangeForSelection(e,o)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var o=this.rowModel.getRowBounds(e);return o.rowIndex=e,o},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var o=this.getPageForIndex(e);this.goToPage(o)}},t.prototype.isRowInPage=function(e){if(!this.active)return!0;var o=this.getPageForIndex(e.rowIndex);return o===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),o=Math.floor(e/this.pageSize);this.goToPage(o)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(this.pageSize==null||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(h(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:_.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!ln(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var o=this.pageSize*this.currentPage,r=this.pageSize*(this.currentPage+1)-1;if(r>e&&(r=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(o),r===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=n-1}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),this.masterRowCount===0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!ln(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Nr([m("rowModel")],t.prototype,"rowModel",void 0),Nr([m("columnApi")],t.prototype,"columnApi",void 0),Nr([m("gridApi")],t.prototype,"gridApi",void 0),Nr([k],t.prototype,"postConstruct",null),t=Nr([Y("paginationProxy")],t),t}(V);/**
|
|
1090
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1091
|
+
* @version v26.2.1
|
|
1092
|
+
* @link http://www.ag-grid.com/
|
|
1093
|
+
* @license MIT
|
|
1094
|
+
*/var uO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Oa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pO=function(i){uO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){e.centerRowContainerCon=o.centerRowContainerCtrl,e.addManagedListener(e.eventService,_.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()})},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),o=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(o>0){var r=Math.floor(o/e);this.gridOptionsWrapper.setProperty("paginationPageSize",r)}}},Oa([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Oa([k],t.prototype,"postConstruct",null),t=Oa([Y("paginationAutoPageSizeService")],t),t}(V);/**
|
|
1095
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1096
|
+
* @version v26.2.1
|
|
1097
|
+
* @link http://www.ag-grid.com/
|
|
1098
|
+
* @license MIT
|
|
1099
|
+
*/var cO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ld=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Md=function(i){cO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.cacheVersion=0,e}return t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,o,r){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[o]=r)},t.prototype.getValue=function(e,o){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[o]},Ld([k],t.prototype,"init",null),t=Ld([Y("valueCache")],t),t}(V);/**
|
|
1100
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1101
|
+
* @version v26.2.1
|
|
1102
|
+
* @link http://www.ag-grid.com/
|
|
1103
|
+
* @license MIT
|
|
1104
|
+
*/var dO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Bn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},hO=function(i){dO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,_.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==D.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,o){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var r=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),n=new Tn(r,this.clientSideRowModel.getRootNode());n.addParentNode(e.parent,[o]),this.clientSideRowModel.doAggregate(n)}this.rowRenderer.refreshCells()}},Bn([m("rowModel")],t.prototype,"rowModel",void 0),Bn([m("rowRenderer")],t.prototype,"rowRenderer",void 0),Bn([k],t.prototype,"init",null),t=Bn([Y("changeDetectionService")],t),t}(V);/**
|
|
1105
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1106
|
+
* @version v26.2.1
|
|
1107
|
+
* @link http://www.ag-grid.com/
|
|
1108
|
+
* @license MIT
|
|
1109
|
+
*/var fO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Fr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gO=function(i,t){return function(e,o){t(e,o,i)}},Gd=function(i){fO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.consuming=!1,e}return t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var o=this.gridOptionsWrapper.getAlignedGrids();o&&o.forEach(function(r){if(r.api){var n=r.api.__getAlignedGridService();e(n)}})}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(o){o.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){e.direction==="horizontal"&&this.fireEvent(function(o){o.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var o=this;this.onEvent(function(){var r=o.ctrlsService.getGridBodyCtrl();r.getScrollFeature().setHorizontalScrollPosition(e.left)})},t.prototype.getMasterColumns=function(e){var o=[];return e.columns?e.columns.forEach(function(r){o.push(r)}):e.column&&o.push(e.column),o},t.prototype.getColumnIds=function(e){var o=[];return e.columns?e.columns.forEach(function(r){o.push(r.getColId())}):e.column&&o.push(e.column.getColId()),o},t.prototype.onColumnEvent=function(e){var o=this;this.onEvent(function(){switch(e.type){case _.EVENT_COLUMN_MOVED:case _.EVENT_COLUMN_VISIBLE:case _.EVENT_COLUMN_PINNED:case _.EVENT_COLUMN_RESIZED:var r=e;o.processColumnEvent(r);break;case _.EVENT_COLUMN_GROUP_OPENED:var n=e;o.processGroupOpenedEvent(n);break;case _.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})},t.prototype.processGroupOpenedEvent=function(e){var o=e.columnGroup,r=null;if(o){var n=o.getGroupId();r=this.columnModel.getOriginalColumnGroup(n)}o&&!r||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnModel.setColumnGroupOpened(r,o.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var o=this,r=e.column,n=null;if(r&&(n=this.columnModel.getPrimaryColumn(r.getColId())),!(r&&!n)){var s=this.getMasterColumns(e);switch(e.type){case _.EVENT_COLUMN_MOVED:{var a=e,u=e.columnApi.getColumnState(),p=u.map(function(F){return{colId:F.colId}});this.columnModel.applyColumnState({state:p,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+a.toIndex)}break;case _.EVENT_COLUMN_VISIBLE:{var g=e,u=e.columnApi.getColumnState(),p=u.map(function(M){return{colId:M.colId,hide:M.hide}});this.columnModel.applyColumnState({state:p},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+g.visible)}break;case _.EVENT_COLUMN_PINNED:{var y=e,u=e.columnApi.getColumnState(),p=u.map(function(M){return{colId:M.colId,pinned:M.pinned}});this.columnModel.applyColumnState({state:p},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+y.pinned)}break;case _.EVENT_COLUMN_RESIZED:var C=e;s.forEach(function(F){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+F.getActualWidth());var B=[{key:F.getColId(),newWidth:F.getActualWidth()}];o.columnModel.setColumnWidths(B,!1,C.finished,"alignedGridChanged")});break}var E=this.ctrlsService.getGridBodyCtrl(),S=E.isVerticalScrollShowing(),b=this.gridOptionsWrapper.getAlignedGrids();b&&b.forEach(function(F){F.api&&F.api.setAlwaysShowVerticalScroll(S)})}},Fr([m("columnModel")],t.prototype,"columnModel",void 0),Fr([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Fr([gO(0,xe("loggerFactory"))],t.prototype,"setBeans",null),Fr([k],t.prototype,"init",null),t=Fr([Y("alignedGridsService")],t),t}(V);/**
|
|
1110
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1111
|
+
* @version v26.2.1
|
|
1112
|
+
* @link http://www.ag-grid.com/
|
|
1113
|
+
* @license MIT
|
|
1114
|
+
*/var vO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),xd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yO=function(i){vO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.adaptFunction=function(e,o){var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?r.functionAdapter(o):null},t.prototype.adaptCellRendererFunction=function(e){var o=function(){function r(){}return r.prototype.refresh=function(n){return!1},r.prototype.getGui=function(){var n=e(this.params),s=typeof n;return s==="string"||s==="number"||s==="boolean"?Pt("<span>"+n+"</span>"):n??Pt("<span></span>")},r.prototype.init=function(n){this.params=n},r}();return o},t.prototype.doesImplementIComponent=function(e){return e?e.prototype&&"getGui"in e.prototype:!1},xd([m("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=xd([Y("agComponentUtils")],t),t}(V);/**
|
|
1115
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1116
|
+
* @version v26.2.1
|
|
1117
|
+
* @link http://www.ag-grid.com/
|
|
1118
|
+
* @license MIT
|
|
1119
|
+
*/var mO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Pa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},CO=function(i){mO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},Pa([m("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Pa([k],t.prototype,"postConstruct",null),t=Pa([Y("componentMetadataProvider")],t),t}(V);/**
|
|
1120
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1121
|
+
* @version v26.2.1
|
|
1122
|
+
* @link http://www.ag-grid.com/
|
|
1123
|
+
* @license MIT
|
|
1124
|
+
*/var wO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Vd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Da=8,_O=4,Aa=4,Ta=6,EO={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:_O*5,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:Da*7,headerCellMinWidth:48,listItemHeight:Da*4,rowHeight:Da*6,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:Aa*8,headerCellMinWidth:24,listItemHeight:Aa*6,rowHeight:Aa*7,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:Ta*8,headerCellMinWidth:36,listItemHeight:Ta*4,rowHeight:Ta*7,chartMenuPanelWidth:240}},Hd={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Ir={},Wd=function(i){wO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSassVariable=function(e,o){var r="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),n=EO[r][o],s=0;Ir[e]||(Ir[e]={});var a=Ir[e][o];if(a!=null)return a;if(Hd[o]){var u=Hd[o],p=document.createElement("div");Q(p,e),p.style.position="absolute";var g=u.reduce(function(C,E){var S=document.createElement("div");return S.style.position="static",Q(S,E),C.appendChild(S),S},p);if(document.body){document.body.appendChild(p);var y=o.toLowerCase().indexOf("height")!==-1?"height":"width";s=parseInt(window.getComputedStyle(g)[y],10),document.body.removeChild(p)}}return Ir[e][o]=s||n,Ir[e][o]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv,r=null;o&&(r=e.exec(o.className),!r);)o=o.parentElement||void 0;if(!r)return{};var n=r[0],s=r[2]===void 0;if(s){var a=n.replace("ag-","ag-theme-");we(function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+a+".")},"using-old-theme")}return{theme:n,el:o,themeFamily:n.replace(/-dark$/,"")}},Vd([m("eGridDiv")],t.prototype,"eGridDiv",void 0),t=Vd([Y("environment")],t),t}(V);/**
|
|
1125
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1126
|
+
* @version v26.2.1
|
|
1127
|
+
* @link http://www.ag-grid.com/
|
|
1128
|
+
* @license MIT
|
|
1129
|
+
*/var RO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ba=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Bd=function(i){RO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){this.useAnimationFrame===!1&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,o,r){this.verifyAnimationFrameOn(r);var n={task:e,index:o,createOrder:++this.taskCount};this.addTaskToList(this[r],n),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,o){e.list.push(o),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var o=this.scrollGoingDown?1:-1;e.list.sort(function(r,n){return r.index!==n.index?o*(n.index-r.index):n.createOrder-r.createOrder}),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var o=this.createTasksP1,r=o.list,n=this.createTasksP2,s=n.list,a=this.destroyTasks,u=new Date().getTime(),p=new Date().getTime()-u,g=e<=0,y=this.ctrlsService.getGridBodyCtrl();g||p<e;){var C=y.getScrollFeature().executeAnimationFrameScroll();if(!C){var E=void 0;if(r.length)this.sortTaskList(o),E=r.pop().task;else if(s.length)this.sortTaskList(n),E=s.pop().task;else if(a.length)E=a.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(E)||E()}p=new Date().getTime()-u}r.length||s.length||a.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var o=this,r=!1;return function(){if(!o.isOn()){o.getFrameworkOverrides().setTimeout(e,0);return}r||(r=!0,o.addDestroyTask(function(){r=!1,e()}))}},ba([m("ctrlsService")],t.prototype,"ctrlsService",void 0),ba([k],t.prototype,"init",null),t=ba([Y("animationFrameService")],t),t}(V);/**
|
|
1130
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1131
|
+
* @version v26.2.1
|
|
1132
|
+
* @link http://www.ag-grid.com/
|
|
1133
|
+
* @license MIT
|
|
1134
|
+
*/var SO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),kn=function(){return kn=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},kn.apply(this,arguments)},Ye=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},kd=function(i){SO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.timeLastPageEventProcessed=0,e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){e.gridBodyCon=o.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var o=e.which||e.keyCode,r=e.altKey,n=e.ctrlKey||e.metaKey,s=this.mouseEventService.getCellPositionForEvent(e);if(!s)return!1;var a=!1;switch(o){case W.PAGE_HOME:case W.PAGE_END:!n&&!r&&(this.onHomeOrEndKey(o),a=!0);break;case W.LEFT:case W.RIGHT:n&&!r&&(this.onCtrlLeftOrRight(o,s),a=!0);break;case W.UP:case W.DOWN:n&&!r&&(this.onCtrlUpOrDown(o,s),a=!0);break;case W.PAGE_DOWN:!n&&!r&&(this.onPageDown(s),a=!0);break;case W.PAGE_UP:!n&&!r&&(this.onPageUp(s),a=!0);break}return a&&e.preventDefault(),a},t.prototype.isTimeSinceLastPageEventToRecent=function(){var e=new Date().getTime(),o=e-this.timeLastPageEventProcessed;return o<100},t.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=new Date().getTime()},t.prototype.navigateTo=function(e){var o=e.scrollIndex,r=e.scrollType,n=e.scrollColumn,s=e.focusIndex,a=e.focusColumn;if(h(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),h(o)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(o,r),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(s,a,null,!0),this.rangeService){var u={rowIndex:s,rowPinned:null,column:a};this.rangeService.setRangeToCell(u)}},t.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var o=this.ctrlsService.getGridBodyCtrl(),r=o.getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),s=r.bottom-r.top;this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(s-=n);var a=this.paginationProxy.getPixelOffset(),u=r.top+s,p=this.paginationProxy.getRowIndexAtPixel(u+a),g=p,y=this.paginationProxy.getRow(e.rowIndex).rowTop,C=y+s-a,E=this.paginationProxy.getRowIndexAtPixel(C+a),S=this.paginationProxy.getPageLastRow();E>S&&(E=S),g>S&&(g=S),this.navigateTo({scrollIndex:g,scrollType:"top",scrollColumn:null,focusIndex:E,focusColumn:e.column}),this.setTimeLastPageEventProcessed()}},t.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var o=this.ctrlsService.getGridBodyCtrl(),r=o.getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),s=r.bottom-r.top;this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(s-=n);var a=this.paginationProxy.getPixelOffset(),u=r.top,p=this.paginationProxy.getRowIndexAtPixel(u+a),g=p,y=this.paginationProxy.getRow(e.rowIndex),C=y.rowTop+y.rowHeight-s-a,E=this.paginationProxy.getRowIndexAtPixel(C+a),S=this.paginationProxy.getPageFirstRow();E<S&&(E=S),g<S&&(g=S),this.navigateTo({scrollIndex:g,scrollType:"bottom",scrollColumn:null,focusIndex:E,focusColumn:e.column}),this.setTimeLastPageEventProcessed()}},t.prototype.getIndexToFocus=function(e,o){var r=e;if(o){var n=this.paginationProxy.getRow(e);n&&n.stub&&(r-=1)}return r},t.prototype.onCtrlUpOrDown=function(e,o){var r=e===W.UP,n=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:o.column,focusIndex:this.getIndexToFocus(n,!r),focusColumn:o.column})},t.prototype.onCtrlLeftOrRight=function(e,o){var r=e===W.LEFT,n=this.columnModel.getAllDisplayedColumns(),s=this.gridOptionsWrapper.isEnableRtl(),a=r!==s?n[0]:le(n);this.navigateTo({scrollIndex:o.rowIndex,scrollType:null,scrollColumn:a,focusIndex:o.rowIndex,focusColumn:a})},t.prototype.onHomeOrEndKey=function(e){var o=e===W.PAGE_HOME,r=this.columnModel.getAllDisplayedColumns(),n=o?r[0]:le(r),s=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:n,focusIndex:this.getIndexToFocus(s,!o),focusColumn:n})},t.prototype.onTabKeyDown=function(e,o){var r=o.shiftKey,n=this.tabToNextCellCommon(e,r);if(n){o.preventDefault();return}if(r){var s=e.getRowPosition(),a=s.rowIndex,u=s.rowPinned,p=u?a===0:a===this.paginationProxy.getPageFirstRow();if(p){o.preventDefault();var g=this.headerNavigationService.getHeaderRowCount()-1,y=le(this.columnModel.getAllDisplayedColumns());this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:g,column:y},event:o})}}else e instanceof Yt&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(!1)&&o.preventDefault()},t.prototype.tabToNextCell=function(e){var o=this.focusService.getFocusedCell();if(!o)return!1;var r=this.getCellByPosition(o);return!r&&(r=this.rowRenderer.getRowByPosition(o),!r||!r.isFullWidth())?!1:this.tabToNextCellCommon(r,e)},t.prototype.tabToNextCellCommon=function(e,o){var r=e.isEditing();if(!r&&e instanceof Yt){var n=e,s=n.getRowCtrl();s&&(r=s.isEditing())}var a;return r?this.gridOptionsWrapper.isFullRowEdit()?a=this.moveToNextEditingRow(e,o):a=this.moveToNextEditingCell(e,o):a=this.moveToNextCellNotEditing(e,o),a||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,o){var r=e.getCellPosition();e.stopEditing();var n=this.findNextCellToFocusOn(r,o,!0);return n==null?!1:(n.startEditing(null,null,!0),n.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,o){var r=e.getCellPosition(),n=this.findNextCellToFocusOn(r,o,!0);if(n==null)return!1;var s=n.getCellPosition(),a=this.isCellEditable(r),u=this.isCellEditable(s),p=s&&r.rowIndex===s.rowIndex&&r.rowPinned===s.rowPinned;if(a&&e.setFocusOutOnEditor(),!p){var g=e.getRowCtrl();g.stopEditing();var y=n.getRowCtrl();y.startRowEditing()}return u?(n.setFocusInOnEditor(),n.focusCell()):n.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,o){var r=this.columnModel.getAllDisplayedColumns(),n;e instanceof qt?n=kn(kn({},e.getRowPosition()),{column:o?r[0]:le(r)}):n=e.getCellPosition();var s=this.findNextCellToFocusOn(n,o,!1);if(s instanceof Yt)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),o);return h(s)},t.prototype.findNextCellToFocusOn=function(e,o,r){for(var n=e;;){o||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,o);var s=this.gridOptionsWrapper.getTabToNextCellFunc();if(h(s)){var a={backwards:o,editing:r,previousCellPosition:e,nextCellPosition:n||null,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()},u=s(a);h(u)?(u.floating&&(we(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),u.rowPinned=u.floating),n={rowIndex:u.rowIndex,column:u.column,rowPinned:u.rowPinned}):n=null}if(!n)return null;if(n.rowIndex<0){var p=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:p+n.rowIndex,column:n.column}}),null}var g=this.gridOptionsWrapper.isFullRowEdit();if(r&&!g){var y=this.isCellEditable(n);if(!y)continue}this.ensureCellVisible(n);var C=this.getCellByPosition(n);if(!C){var E=this.rowRenderer.getRowByPosition(n);if(!E||!E.isFullWidth())continue;return E}if(!C.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(n),C}},t.prototype.isCellEditable=function(e){var o=this.lookupRowNodeForCell(e);return o?e.column.isCellEditable(o):!1},t.prototype.getCellByPosition=function(e){var o=this.rowRenderer.getRowByPosition(e);return o?o.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===D.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===D.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,o,r,n){for(var s=r,a=!1;s&&(s===r||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?o===W.LEFT&&(s=this.getLastCellOfColSpan(s)):o===W.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(o,s),a=f(s);if(a&&e&&e.keyCode===W.UP&&(s={rowIndex:-1,rowPinned:null,column:r.column}),n){var u=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(h(u)){var p={key:o,previousCellPosition:r,nextCellPosition:s||null,event:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()},g=u(p);h(g)?(g.floating&&(we(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),g.rowPinned=g.floating),s={rowPinned:g.rowPinned,rowIndex:g.rowIndex,column:g.column}):s=null}}if(s){if(s.rowIndex<0){var y=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:y+s.rowIndex,column:r.column},event:e||void 0});return}var C=this.getNormalisedPosition(s);C?this.focusPosition(C):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var o=this.getCellByPosition(e);return o?(e=o.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,o){o===void 0&&(o=!1);var r=this.columnModel.getAllDisplayedColumns(),n=this.rowRenderer.getRowByPosition(e);if(!n||!n.isFullWidth())return!1;var s={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(o?le(r):r[0])};return this.focusPosition(s),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){var o=this.rowPositionUtils.getRowNode(e);return!!o},t.prototype.getLastCellOfColSpan=function(e){var o=this.getCellByPosition(e);if(!o)return e;var r=o.getColSpanningList();return r.length===1?e:{rowIndex:e.rowIndex,column:le(r),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){f(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},Ye([m("mouseEventService")],t.prototype,"mouseEventService",void 0),Ye([m("paginationProxy")],t.prototype,"paginationProxy",void 0),Ye([m("focusService")],t.prototype,"focusService",void 0),Ye([m("animationFrameService")],t.prototype,"animationFrameService",void 0),Ye([he("rangeService")],t.prototype,"rangeService",void 0),Ye([m("columnModel")],t.prototype,"columnModel",void 0),Ye([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Ye([m("rowRenderer")],t.prototype,"rowRenderer",void 0),Ye([m("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Ye([m("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Ye([m("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Ye([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ye([k],t.prototype,"postConstruct",null),t=Ye([Y("navigationService")],t),t}(V);/**
|
|
1135
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1136
|
+
* @version v26.2.1
|
|
1137
|
+
* @link http://www.ag-grid.com/
|
|
1138
|
+
* @license MIT
|
|
1139
|
+
*/var OO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Un=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},PO=function(i,t){return function(e,o){t(e,o,i)}},DO=function(i){OO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=fp(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl(),o=e.getScrollFeature().getVScrollPosition().top,r=this.getUiBodyHeight(),n=o!==this.scrollY||r!==this.uiBodyHeight;n&&(this.scrollY=o,this.uiBodyHeight=r,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,o=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+o+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(o)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:_.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var o=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==o&&(this.divStretchOffset=o,this.eventService.dispatchEvent({type:_.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),o=e.getScrollFeature().getVScrollPosition();return o.bottom-o.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var o=this.modelHeight-this.getUiBodyHeight(),r=e/o,n=this.maxScrollY*r;return n},Un([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Un([PO(0,xe("loggerFactory"))],t.prototype,"agWire",null),Un([k],t.prototype,"postConstruct",null),t=Un([Y("rowContainerHeightService")],t),t}(V);/**
|
|
1140
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1141
|
+
* @version v26.2.1
|
|
1142
|
+
* @link http://www.ag-grid.com/
|
|
1143
|
+
* @license MIT
|
|
1144
|
+
*/var AO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ud=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},jd=function(i){AO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){var o=function(r){return r.childrenAfterGroup};this.recurseDown(e.childrenAfterGroup,o)}},t.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){var o=function(r){return r.childrenAfterFilter};this.recurseDown(e.childrenAfterGroup,o)}},t.prototype.recurseDown=function(e,o){var r=this;e&&e.forEach(function(n){if(n.group){n.hasChildren()&&r.recurseDown(o(n),o);var s;if(r.groupSelectsChildren){var a=H(o(n),"selectable",!0);s=h(a)}else s=r.isRowSelectableFunc?r.isRowSelectableFunc(n):!1;n.setRowSelectable(s)}})},Ud([k],t.prototype,"init",null),t=Ud([Y("selectableService")],t),t}(V);/**
|
|
1145
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1146
|
+
* @version v26.2.1
|
|
1147
|
+
* @link http://www.ag-grid.com/
|
|
1148
|
+
* @license MIT
|
|
1149
|
+
*/var TO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),pt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bO=function(i){TO(t,i);function t(){var e=i.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}return t.prototype.postConstruct=function(){var e=this,o=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Te(o?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Te(o?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Te(o?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Te(o?"first":"last",this.gridOptionsWrapper));var r=this.gridOptionsWrapper.isPagination(),n=r&&!this.gridOptionsWrapper.isSuppressPaginationPanel();if(!n){this.setDisplayed(!1);return}this.addManagedListener(this.eventService,_.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(function(s){var a=s.el,u=s.fn;e.addManagedListener(a,"click",u),e.addManagedListener(a,"keydown",function(p){(p.keyCode===W.ENTER||p.keyCode===W.SPACE)&&(p.preventDefault(),u())})}),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,o=this.paginationProxy.getCurrentPage(),r=e?o+1:0;this.lbCurrent.innerHTML=this.formatNumber(r)},t.prototype.formatNumber=function(e){var o=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return o?o({value:e}):cs(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=e("page","Page"),r=e("to","to"),n=e("of","of"),s=e("firstPage","First Page"),a=e("previousPage","Previous Page"),u=e("nextPage","Next Page"),p=e("lastPage","Last Page"),g=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+g+`">
|
|
1150
|
+
<span class="ag-paging-row-summary-panel" role="status">
|
|
1151
|
+
<span id="ag-`+g+`-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
|
|
1152
|
+
<span id="ag-`+g+'-to">'+r+`</span>
|
|
1153
|
+
<span id="ag-`+g+`-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
|
|
1154
|
+
<span id="ag-`+g+'-of">'+n+`</span>
|
|
1155
|
+
<span id="ag-`+g+`-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
|
|
1156
|
+
</span>
|
|
1157
|
+
<span class="ag-paging-page-summary-panel" role="presentation">
|
|
1158
|
+
<div ref="btFirst" class="ag-paging-button" role="button" aria-label="`+s+`" tabindex="0"></div>
|
|
1159
|
+
<div ref="btPrevious" class="ag-paging-button" role="button" aria-label="`+a+`" tabindex="0"></div>
|
|
1160
|
+
<span class="ag-paging-description" role="status">
|
|
1161
|
+
<span id="ag-`+g+'-start-page">'+o+`</span>
|
|
1162
|
+
<span id="ag-`+g+`-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>
|
|
1163
|
+
<span id="ag-`+g+'-of-page">'+n+`</span>
|
|
1164
|
+
<span id="ag-`+g+`-of-page-number" ref="lbTotal" class="ag-paging-number"></span>
|
|
1165
|
+
</span>
|
|
1166
|
+
<div ref="btNext" class="ag-paging-button" role="button" aria-label="`+u+`" tabindex="0"></div>
|
|
1167
|
+
<div ref="btLast" class="ag-paging-button" role="button" aria-label="`+p+`" tabindex="0"></div>
|
|
1168
|
+
</span>
|
|
1169
|
+
</div>`},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,ee(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled),fr(this.btFirst,this.previousAndFirstButtonsDisabled),ee(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),fr(this.btPrevious,this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),s=o&&e===r-1;this.nextButtonDisabled=s||n,ee(this.btNext,"ag-disabled",this.nextButtonDisabled),fr(this.btNext,this.nextButtonDisabled),this.lastButtonDisabled=!o||n||e===r-1,ee(this.btLast,"ag-disabled",this.lastButtonDisabled),fr(this.btLast,this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null,s,a;this.isZeroPagesToDisplay()?s=a=0:(s=o*e+1,a=s+o-1,r&&a>n&&(a=n)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(s),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(a)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();return e&&o===0},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),r=e?this.paginationProxy.getMasterRowCount():null;if(r===1){var n=this.paginationProxy.getRow(0),s=n&&n.group&&!(n.groupData||n.aggData);if(s){this.setTotalLabelsToZero();return}}if(e)this.lbTotal.innerHTML=this.formatNumber(o),this.lbRecordCount.innerHTML=this.formatNumber(r);else{var a=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=a,this.lbRecordCount.innerHTML=a}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},pt([m("paginationProxy")],t.prototype,"paginationProxy",void 0),pt([m("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),pt([x("btFirst")],t.prototype,"btFirst",void 0),pt([x("btPrevious")],t.prototype,"btPrevious",void 0),pt([x("btNext")],t.prototype,"btNext",void 0),pt([x("btLast")],t.prototype,"btLast",void 0),pt([x("lbRecordCount")],t.prototype,"lbRecordCount",void 0),pt([x("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),pt([x("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),pt([x("lbCurrent")],t.prototype,"lbCurrent",void 0),pt([x("lbTotal")],t.prototype,"lbTotal",void 0),pt([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1170
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1171
|
+
* @version v26.2.1
|
|
1172
|
+
* @link http://www.ag-grid.com/
|
|
1173
|
+
* @license MIT
|
|
1174
|
+
*/var NO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),FO=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},zd=50,$d=function(i){NO(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return t.prototype.observeResize=function(e,o){var r=this,n=zt(o,zd),s=function(){var g=new window.ResizeObserver(n);return g.observe(e),function(){return g.disconnect()}},a=function(){var g=Os(e),y=Ss(e),C=!0,E=function(){if(C){var S=Os(e),b=Ss(e),F=S!==g||b!==y;F&&(g=S,y=b,o()),r.doNextPolyfillTurn(E)}};return E(),function(){return C=!1}},u=this.gridOptionsWrapper.isSuppressBrowserResizeObserver(),p=!!window.ResizeObserver;return p&&!u?s():a()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){var o=function(){var r=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],r.forEach(function(n){return n()})};this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(o,zd)}},t=FO([Y("resizeObserverService")],t),t}(V);/**
|
|
1175
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1176
|
+
* @version v26.2.1
|
|
1177
|
+
* @link http://www.ag-grid.com/
|
|
1178
|
+
* @license MIT
|
|
1179
|
+
*/var IO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),zo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},$o;(function(i){i[i.Loading=0]="Loading",i[i.NoRows=1]="NoRows"})($o||($o={}));var LO=function(i){IO(t,i);function t(){var e=i.call(this,t.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e}return t.prototype.updateLayoutClasses=function(e,o){ee(this.eOverlayWrapper,l.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),ee(this.eOverlayWrapper,l.LayoutCssClasses.NORMAL,o.normal),ee(this.eOverlayWrapper,l.LayoutCssClasses.PRINT,o.print)},t.prototype.postConstruct=function(){this.createManagedBean(new ya(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,_.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){ee(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===$o.Loading),ee(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===$o.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e={api:this.gridOptionsWrapper.getApi()},o=this.userComponentFactory.getLoadingOverlayCompDetails(e),r=o.newAgStackInstance();this.showOverlay(r,$o.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e={api:this.gridOptionsWrapper.getApi()},o=this.userComponentFactory.getNoRowsOverlayCompDetails(e),r=o.newAgStackInstance();this.showOverlay(r,$o.NoRows)}},t.prototype.showOverlay=function(e,o){var r=this;this.inProgress||(this.setWrapperTypeClass(o),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(n){r.inProgress=!1,r.eOverlayWrapper.appendChild(n.getGui()),r.activeOverlay=n,r.destroyRequested&&(r.destroyRequested=!1,r.destroyActiveOverlay())}),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){if(this.inProgress){this.destroyRequested=!0;return}this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Je(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){this.destroyActiveOverlay(),i.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),o=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!o?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},t.TEMPLATE=`
|
|
1180
|
+
<div class="ag-overlay" aria-hidden="true">
|
|
1181
|
+
<div class="ag-overlay-panel">
|
|
1182
|
+
<div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>
|
|
1183
|
+
</div>
|
|
1184
|
+
</div>`,zo([m("userComponentFactory")],t.prototype,"userComponentFactory",void 0),zo([m("paginationProxy")],t.prototype,"paginationProxy",void 0),zo([m("gridApi")],t.prototype,"gridApi",void 0),zo([m("columnModel")],t.prototype,"columnModel",void 0),zo([x("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),zo([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1185
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1186
|
+
* @version v26.2.1
|
|
1187
|
+
* @link http://www.ag-grid.com/
|
|
1188
|
+
* @license MIT
|
|
1189
|
+
*/var MO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Jt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Kd=function(i){MO(t,i);function t(e){e===void 0&&(e={});var o=i.call(this,t.getTemplate(e))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=e.title,n=e.enabled,s=e.items,a=e.suppressEnabledCheckbox,u=e.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=e.cssIdentifier||"default",o.enabled=n??!0,o.items=s||[],o.alignItems=e.alignItems||"center",a!=null&&(o.suppressEnabledCheckbox=a),u!=null&&(o.suppressOpenCloseIcons=u),o}return t.getTemplate=function(e){var o=e.cssIdentifier||"default",r=e.direction||"vertical";return'<div class="ag-group ag-'+o+`-group" role="presentation">
|
|
1190
|
+
<div class="ag-group-title-bar ag-`+o+`-group-title-bar ag-unselectable" ref="eTitleBar" role="button">
|
|
1191
|
+
<span class="ag-group-title-bar-icon ag-`+o+`-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>
|
|
1192
|
+
<span class="ag-group-title-bar-icon ag-`+o+`-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>
|
|
1193
|
+
<span ref="eTitle" class="ag-group-title ag-`+o+`-group-title"></span>
|
|
1194
|
+
</div>
|
|
1195
|
+
<div ref="eToolbar" class="ag-group-toolbar ag-`+o+`-group-toolbar">
|
|
1196
|
+
<ag-checkbox ref="cbGroupEnabled"></ag-checkbox>
|
|
1197
|
+
</div>
|
|
1198
|
+
<div ref="eContainer" class="ag-group-container ag-group-container-`+r+" ag-"+o+`-group-container"></div>
|
|
1199
|
+
</div>`},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var o=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(o("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(at("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(at("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(o){switch(o.keyCode){case W.ENTER:case W.SPACE:o.preventDefault(),e.toggleGroupExpand();break;case W.RIGHT:case W.LEFT:o.preventDefault(),e.toggleGroupExpand(o.keyCode===W.RIGHT);break}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Cn(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Ce(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Ce(this.eGroupOpenedIcon,e&&this.expanded),Ce(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var o=this.getGui();this.alignItems!==e&&Ie(o,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var r="ag-group-item-alignment-"+this.alignItems;return Q(o,r),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Ce(this.eContainer,!0),this):(e=e??!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),Ce(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED}),this))},t.prototype.addItems=function(e){var o=this;e.forEach(function(r){return o.addItem(r)})},t.prototype.addItem=function(e){var o=this.eContainer,r=e instanceof se?e.getGui():e;Q(r,"ag-group-item"),Q(r,"ag-"+this.cssIdentifier+"-group-item"),o.appendChild(r),this.items.push(r)},t.prototype.hideItem=function(e,o){var r=this.items[o];ee(r,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){Q(this.eTitleBar,e)},t.prototype.setEnabled=function(e,o){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),o||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var o=this;return this.cbGroupEnabled.onValueChange(function(r){o.setEnabled(r,!0),e(r)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){ee(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(Q(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(Ie(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),ee(this.eContainer,"ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",Jt([x("eTitleBar")],t.prototype,"eTitleBar",void 0),Jt([x("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Jt([x("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Jt([x("eToolbar")],t.prototype,"eToolbar",void 0),Jt([x("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Jt([x("eTitle")],t.prototype,"eTitle",void 0),Jt([x("eContainer")],t.prototype,"eContainer",void 0),Jt([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1200
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1201
|
+
* @version v26.2.1
|
|
1202
|
+
* @link http://www.ag-grid.com/
|
|
1203
|
+
* @license MIT
|
|
1204
|
+
*/var GO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Yd=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},qd="ag-resizer-wrapper",xO='<div class="'+qd+`">
|
|
1205
|
+
<div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>
|
|
1206
|
+
<div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>
|
|
1207
|
+
<div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>
|
|
1208
|
+
<div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>
|
|
1209
|
+
<div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>
|
|
1210
|
+
<div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>
|
|
1211
|
+
<div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>
|
|
1212
|
+
<div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>
|
|
1213
|
+
</div>`,Xd=function(i){GO(t,i);function t(e,o){var r=i.call(this)||this;return r.element=e,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=nt({},{popup:!1},o),r}return t.prototype.center=function(){var e=this.offsetParent,o=e.clientHeight,r=e.clientWidth,n=r/2-this.getWidth()/2,s=o/2-this.getHeight()/2;this.offsetElement(n,s)},t.prototype.initialisePosition=function(){var e=this.config,o=e.centered,r=e.forcePopupParentAsOffsetParent,n=e.minWidth,s=e.width,a=e.minHeight,u=e.height,p=e.x,g=e.y;this.offsetParent||this.setOffsetParent();var y=0,C=0,E=!!this.element.offsetParent;if(E){var S=this.findBoundaryElement(),b=window.getComputedStyle(S);if(b.minWidth!=null){var F=S.offsetWidth-this.element.offsetWidth;C=parseInt(b.minWidth,10)-F}if(b.minHeight!=null){var B=S.offsetHeight-this.element.offsetHeight;y=parseInt(b.minHeight,10)-B}}if(this.minHeight=a||y,this.minWidth=n||C,s&&this.setWidth(s),u&&this.setHeight(u),(!s||!u)&&this.refreshSize(),o)this.center();else if(p||g)this.offsetElement(p,g);else if(E&&r&&this.boundaryEl){var M=parseFloat(this.boundaryEl.style.top),L=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(L)?0:L,isNaN(M)?0:M)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,o){if(!(!this.config.popup||e===this.movable)){this.movable=e;var r=this.moveElementDragListener||{eElement:o,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(r),this.moveElementDragListener=r):(this.dragService.removeDragSource(r),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var o=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(r){var n=e,s=!!n[r],a=o.getResizerElement(r),u={dragStartPixels:0,eElement:a,onDragStart:function(p){return o.onResizeStart(p,r)},onDragging:o.onResize.bind(o),onDragStop:function(p){return o.onResizeEnd(p,r)}};(!!o.resizable[r]!==s||!o.isAlive()&&!s)&&(s?(o.dragService.addDragSource(u),o.resizeListeners.push(u),a.style.pointerEvents="all"):a.style.pointerEvents="none")})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,o=e.height,r=e.width;r!==-1&&(this.element.style.width=r+"px"),o!==-1&&(this.element.style.height=o+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var o=this.config.popup,r=this.element,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)lo(r,e),e=Rs(r),n=!0;else if(this.positioned){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var u=this.offsetParent.clientHeight,p=o?this.position.y:s.top,g=o?0:a.top;u&&e+p>u+g&&(e=u-p)}this.getHeight()!==e&&(n?(r.style.maxHeight="unset",r.style.minHeight="unset"):o?lo(r,e):(r.style.height=e+"px",r.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var o=this.element,r=this.config.popup,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Dt(o,e),e=gn(o),n=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var s=this.offsetParent.clientWidth,a=r?this.position.x:this.element.getBoundingClientRect().left;s&&e+a>s&&(e=s-a)}this.getWidth()!==e&&(n?(o.style.maxWidth="unset",o.style.minWidth="unset"):this.config.popup?Dt(o,e):(o.style.width=e+"px",o.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))},t.prototype.offsetElement=function(e,o){e===void 0&&(e=0),o===void 0&&(o=0);var r=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:r,x:e,y:o,keepWithinBounds:!0}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top))},t.prototype.setPosition=function(e,o){this.position.x=e,this.position.y=o},t.prototype.updateDragStartPosition=function(e,o){this.dragStartPosition={x:e,y:o}},t.prototype.calculateMouseMovement=function(e){var o=e.e,r=e.isLeft,n=e.isTop,s=e.anywhereWithin,a=e.topBuffer,u=o.clientX-this.dragStartPosition.x,p=o.clientY-this.dragStartPosition.y,g=this.shouldSkipX(o,!!r,!!s,u)?0:u,y=this.shouldSkipY(o,!!n,a,p)?0:p;return{movementX:g,movementY:y}},t.prototype.shouldSkipX=function(e,o,r,n){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),u=this.boundaryEl.getBoundingClientRect(),p=this.config.popup?this.position.x:s.left,g=p<=0&&a.left>=e.clientX||a.right<=e.clientX&&a.right<=u.right;return g?!0:(o?g=n<0&&e.clientX>p+a.left||n>0&&e.clientX<p+a.left:r?g=n<0&&e.clientX>u.right||n>0&&e.clientX<p+a.left:g=n<0&&e.clientX>u.right||n>0&&e.clientX<u.right,g)},t.prototype.shouldSkipY=function(e,o,r,n){r===void 0&&(r=0);var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),u=this.boundaryEl.getBoundingClientRect(),p=this.config.popup?this.position.y:s.top,g=p<=0&&a.top>=e.clientY||a.bottom<=e.clientY&&a.bottom<=u.bottom;return g?!0:(o?g=n<0&&e.clientY>p+a.top+r||n>0&&e.clientY<p+a.top:g=n<0&&e.clientY>u.bottom||n>0&&e.clientY<u.bottom,g)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var o=new DOMParser,r=o.parseFromString(xO,"text/html").body;e.appendChild(r.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector("."+qd);e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,o){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!o.match(/top/i),isRight:!!o.match(/right/i),isBottom:!!o.match(/bottom/i),isLeft:!!o.match(/left/i)},Q(this.element,"ag-resizing"),Q(this.resizerMap[o].element,"ag-active");var r=this.config,n=r.popup,s=r.forcePopupParentAsOffsetParent;!n&&!s&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element,o=e.parentElement;return o?Array.prototype.slice.call(o.children).filter(function(r){return!Ot(r,"ag-hidden")}):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],o=0,r=0,n=0;n<e.length;n++){var s=e[n],a=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s!==this.element){var u=this.minHeight||0,p=this.minWidth||0;if(a){var g=window.getComputedStyle(s);g.minHeight&&(u=parseInt(g.minHeight,10)),g.minWidth&&(p=parseInt(g.minWidth,10))}else u=s.offsetHeight,p=s.offsetWidth;o+=u,r+=p}}return{height:o,width:r}},t.prototype.applySizeToSiblings=function(e){var o=null,r=this.getSiblings();if(r){for(var n=0;n<r.length;n++){var s=r[n];s!==o&&(e?s.style.height=s.offsetHeight+"px":s.style.width=s.offsetWidth+"px",s.style.flex="0 0 auto",s===this.element&&(o=r[n+1]))}o&&(o.style.removeProperty("height"),o.style.removeProperty("min-height"),o.style.removeProperty("max-height"),o.style.flex="1 1 auto")}},t.prototype.onResize=function(e){if(!(!this.isResizing||!this.currentResizer)){var o=this.config,r=o.popup,n=o.forcePopupParentAsOffsetParent,s=this.currentResizer,a=s.isTop,u=s.isRight,p=s.isBottom,g=s.isLeft,y=u||g,C=p||a,E=this.calculateMouseMovement({e,isLeft:g,isTop:a}),S=E.movementX,b=E.movementY,F=this.position.x,B=this.position.y,M=0,L=0;if(y&&S){var j=g?-1:1,J=this.getWidth(),ue=J+S*j,te=!1;g&&(M=J-ue,(F+M<=0||ue<=this.minWidth)&&(te=!0,M=0)),te||this.setWidth(ue)}if(C&&b){var j=a?-1:1,pe=this.getHeight(),ye=pe+b*j,ge=!1;a?(L=pe-ye,(B+L<=0||ye<=this.minHeight)&&(ge=!0,L=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&pe<ye&&this.getMinSizeOfSiblings().height+ye>this.element.parentElement.offsetHeight&&(ge=!0),ge||this.setHeight(ye)}this.updateDragStartPosition(e.clientX,e.clientY),((r||n)&&M||L)&&this.offsetElement(F+M,B+L)}},t.prototype.onResizeEnd=function(e,o){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var r={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};Ie(this.element,"ag-resizing"),Ie(this.resizerMap[o].element,"ag-active"),this.dispatchEvent(r)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,Q(this.element,"ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var o=this.position,r=o.x,n=o.y,s;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s}),u=a.movementX,p=a.movementY;this.offsetElement(r+u,n+p),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,Ie(this.element,"ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){i.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Yd([m("popupService")],t.prototype,"popupService",void 0),Yd([m("dragService")],t.prototype,"dragService",void 0),t}(V);/**
|
|
1214
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1215
|
+
* @version v26.2.1
|
|
1216
|
+
* @link http://www.ag-grid.com/
|
|
1217
|
+
* @license MIT
|
|
1218
|
+
*/var VO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Lr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Na=function(i){VO(t,i);function t(e){var o=i.call(this,t.getTemplate(e))||this;return o.closable=!0,o.config=e,o}return t.getTemplate=function(e){var o=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+o+`-panel" tabindex="-1">
|
|
1219
|
+
<div ref="eTitleBar" class="ag-panel-title-bar ag-`+o+`-panel-title-bar ag-unselectable">
|
|
1220
|
+
<span ref="eTitle" class="ag-panel-title-bar-title ag-`+o+`-panel-title-bar-title"></span>
|
|
1221
|
+
<div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-`+o+`-panel-title-bar-buttons"></div>
|
|
1222
|
+
</div>
|
|
1223
|
+
<div ref="eContentWrapper" class="ag-panel-content-wrapper ag-`+o+`-panel-content-wrapper"></div>
|
|
1224
|
+
</div>`},t.prototype.postConstruct=function(){var e=this,o=this.config,r=o.component,n=o.closable,s=o.hideTitleBar,a=o.title,u=o.minWidth,p=u===void 0?250:u,g=o.width,y=o.minHeight,C=y===void 0?250:y,E=o.height,S=o.centered,b=o.popup,F=o.x,B=o.y;this.positionableFeature=new Xd(this.getGui(),{minWidth:p,width:g,minHeight:C,height:E,centered:S,x:F,y:B,popup:b,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var M=this.getGui();r&&this.setBodyComponent(r),s?Q(this.eTitleBar,"ag-hidden"):(a&&this.setTitle(a),this.setClosable(n??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(L){if(M.contains(L.relatedTarget)||M.contains(document.activeElement)||e.eTitleBarButtons.contains(L.target)){L.preventDefault();return}var j=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");j&&j.focus()}),!(b&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,o=this.getGui();o.focus(),this.close=function(){o.parentElement.removeChild(o),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var o=this.closeButtonComp=new se(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o);var r=o.getGui();r.appendChild(Q(Te("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(o),o.addManagedListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var r=this.closeButtonComp.getGui();r.parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,o){var r=this.eTitleBarButtons,n=r.children,s=n.length;o==null&&(o=s),o=Math.max(0,Math.min(o,s));var a=e.getGui();Q(a,"ag-panel-title-bar-button"),o===0?r.insertAdjacentElement("afterbegin",a):o===s?r.insertAdjacentElement("beforeend",a):n[o-1].insertAdjacentElement("afterend",a),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return ur(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return fn(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),i.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Lr([x("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Lr([x("eTitleBar")],t.prototype,"eTitleBar",void 0),Lr([x("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Lr([x("eTitle")],t.prototype,"eTitle",void 0),Lr([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1225
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1226
|
+
* @version v26.2.1
|
|
1227
|
+
* @link http://www.ag-grid.com/
|
|
1228
|
+
* @license MIT
|
|
1229
|
+
*/var HO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),jn=function(){return jn=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},jn.apply(this,arguments)},WO=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Fa=function(i){HO(t,i);function t(e){var o=i.call(this,jn(jn({},e),{popup:!0}))||this;return o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.lastPosition={x:0,y:0,width:0,height:0},o}return t.prototype.postConstruct=function(){var e=this,o=this.getGui(),r=this.config,n=r.movable,s=r.resizable,a=r.maximizable;Q(o,"ag-dialog"),i.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",function(u){o.contains(u.relatedTarget)||e.popupService.bringPopupToFront(o)}),n&&this.setMovable(n),a&&this.setMaximizable(a),s&&this.setResizable(s)},t.prototype.renderComponent=function(){var e=this.getGui(),o=this.config,r=o.alwaysOnTop,n=o.modal,s=o.title,a=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:r,ariaLabel:s||a("ariaLabelDialog","Dialog")});u&&(this.close=u.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var o=this.lastPosition,r=o.x,n=o.y,s=o.width,a=o.height;this.setWidth(s),this.setHeight(a),this.positionableFeature.offsetElement(r,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){Ce(this.maximizeIcon,!this.isMaximized),Ce(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),i.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var o=this;if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}var r=this.eTitleBar;if(!(!r||e===this.isMaximizable)){var n=this.maximizeButtonComp=this.createBean(new se('<div class="ag-dialog-button"></span>')),s=n.getGui();s.appendChild(this.maximizeIcon=Te("maximize",this.gridOptionsWrapper)),Q(this.maximizeIcon,"ag-panel-title-bar-button-icon"),s.appendChild(this.minimizeIcon=Te("minimize",this.gridOptionsWrapper)),Q(this.minimizeIcon,"ag-panel-title-bar-button-icon"),Q(this.minimizeIcon,"ag-hidden"),n.addManagedListener(s,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addManagedListener(r,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){o.isMaximized=!1,o.refreshMaximizeIcon()})}},WO([m("popupService")],t.prototype,"popupService",void 0),t}(Na);/**
|
|
1230
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1231
|
+
* @version v26.2.1
|
|
1232
|
+
* @link http://www.ag-grid.com/
|
|
1233
|
+
* @license MIT
|
|
1234
|
+
*/var BO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ia=function(i){BO(t,i);function t(e,o,r){return o===void 0&&(o="ag-text-field"),r===void 0&&(r="text"),i.call(this,e,o,r)||this}return t.prototype.postConstruct=function(){i.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,o){var r=i.prototype.setValue.call(this,e,o);return this.eInput.value!==e&&(this.eInput.value=h(e)?e:""),r},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]"),o=function(r){r.key&&!e.test(r.key)&&r.preventDefault()};this.addManagedListener(this.eInput,"keypress",o),this.addManagedListener(this.eInput,"paste",function(r){var n=r.clipboardData.getData("text");So(n,function(s){return!e.test(s)})&&r.preventDefault()})},t}(Ht);/**
|
|
1235
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1236
|
+
* @version v26.2.1
|
|
1237
|
+
* @link http://www.ag-grid.com/
|
|
1238
|
+
* @license MIT
|
|
1239
|
+
*/var kO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Qd=function(i){kO(t,i);function t(e){return i.call(this,e,"ag-text-area",null,"textarea")||this}return t.prototype.setValue=function(e,o){var r=i.prototype.setValue.call(this,e,o);return this.eInput.value=e,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Ht);/**
|
|
1240
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1241
|
+
* @version v26.2.1
|
|
1242
|
+
* @link http://www.ag-grid.com/
|
|
1243
|
+
* @license MIT
|
|
1244
|
+
*/var UO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),zn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Jd=function(i){UO(t,i);function t(e){var o=i.call(this,e,t.TEMPLATE)||this;return o.labelAlignment="top",o}return t.prototype.init=function(){Q(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var o=this,r=At.EVENT_CHANGED;return this.addManagedListener(this.eText,r,function(){var n=parseFloat(o.eText.getValue());o.eSlider.setValue(n.toString(),!0),e(n||0)}),this.addManagedListener(this.eSlider,r,function(){var n=o.eSlider.getValue();o.eText.setValue(n,!0),e(parseFloat(n))}),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:At.EVENT_CHANGED}),this)},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE=`<div class="ag-slider">
|
|
1245
|
+
<label ref="eLabel"></label>
|
|
1246
|
+
<div class="ag-wrapper ag-slider-wrapper">
|
|
1247
|
+
<ag-input-range ref="eSlider"></ag-input-range>
|
|
1248
|
+
<ag-input-number-field ref="eText"></ag-input-number-field>
|
|
1249
|
+
</div>
|
|
1250
|
+
</div>`,zn([x("eLabel")],t.prototype,"eLabel",void 0),zn([x("eSlider")],t.prototype,"eSlider",void 0),zn([x("eText")],t.prototype,"eText",void 0),zn([k],t.prototype,"init",null),t}(js);/**
|
|
1251
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1252
|
+
* @version v26.2.1
|
|
1253
|
+
* @link http://www.ag-grid.com/
|
|
1254
|
+
* @license MIT
|
|
1255
|
+
*/var jO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Wt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},zO=function(i){jO(t,i);function t(e){var o=i.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlphaDragging=!1,o.colorChanged=!1,o.picker=e.picker,o}return t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var o=this.spectrumValRect;if(o){var r=e.clientX-o.left,n=e.clientY-o.top;r=Math.max(r,0),r=Math.min(r,o.width),n=Math.max(n,0),n=Math.min(n,o.height),this.setSpectrumValue(r/o.width,1-n/o.height)}},t.prototype.moveHueSlider=function(e){var o=this.spectrumHueRect;if(o){var r=this.spectrumHueSlider,n=r.getBoundingClientRect(),s=e.clientX-o.left;s=Math.max(s,0),s=Math.min(s,o.width),this.H=1-s/o.width,r.style.left=s+n.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var o=this.spectrumAlphaRect;if(o){var r=this.spectrumAlphaSlider,n=r.getBoundingClientRect(),s=e.clientX-o.left;s=Math.max(s,0),s=Math.min(s,o.width),this.A=s/o.width,r.style.left=s+n.width/2+"px",this.update()}},t.prototype.update=function(){var e=To.fromHSB(this.H*360,this.S,this.B,this.A),o=To.fromHSB(this.H*360,1,1),r=e.toRgbaString(),n=this.picker,s=To.fromString(n.getValue());s.toRgbaString()!==r&&(this.colorChanged=!0),n.setValue(r),this.spectrumColor.style.backgroundColor=o.toRgbaString(),this.spectrumDragger.style.backgroundColor=r},t.prototype.setSpectrumValue=function(e,o){var r=this.spectrumValRect||this.refreshSpectrumRect();if(r){var n=this.spectrumDragger,s=n.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),o=Math.max(0,o),o=Math.min(1,o),this.S=e,this.B=o,n.style.left=e*r.width-s.width/2+"px",n.style.top=(1-o)*r.height-s.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors,o=e.map(function(r,n){return'<div class="ag-recent-color" id='+n+' style="background-color: '+r+'; width: 15px; height: 15px;" recent-color="'+r+'"></div>'});this.recentColors.innerHTML=o.join("")},t.prototype.setValue=function(e){var o=To.fromString(e),r=o.toHSB(),n=r[0],s=r[1],a=r[2];this.H=(isNaN(n)?0:n)/360,this.A=o.a;var u=this.spectrumHueRect||this.refreshHueRect(),p=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-u.width+"px",this.spectrumAlphaSlider.style.left=this.A*p.width+"px",this.setSpectrumValue(s,a)},t.prototype.onRecentColorClick=function(e){var o=e.target;if(h(o.id)){var r=parseInt(o.id,10);this.setValue(t.recentColors[r]),this.destroy()}},t.prototype.addRecentColor=function(){var e=To.fromHSB(this.H*360,this.S,this.B,this.A),o=e.toRgbaString(),r=t.recentColors;!this.colorChanged||r[0]===o||(r=r.filter(function(n){return n!=o}),r=[o].concat(r),r.length>t.maxRecentColors&&(r=r.slice(0,t.maxRecentColors)),t.recentColors=r)},t.prototype.destroy=function(){this.addRecentColor(),i.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE=`<div class="ag-color-panel">
|
|
1256
|
+
<div ref="spectrumColor" class="ag-spectrum-color">
|
|
1257
|
+
<div class="ag-spectrum-sat ag-spectrum-fill">
|
|
1258
|
+
<div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">
|
|
1259
|
+
<div ref="spectrumDragger" class="ag-spectrum-dragger"></div>
|
|
1260
|
+
</div>
|
|
1261
|
+
</div>
|
|
1262
|
+
</div>
|
|
1263
|
+
<div class="ag-spectrum-tools">
|
|
1264
|
+
<div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">
|
|
1265
|
+
<div class="ag-spectrum-hue-background"></div>
|
|
1266
|
+
<div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>
|
|
1267
|
+
</div>
|
|
1268
|
+
<div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">
|
|
1269
|
+
<div class="ag-spectrum-alpha-background"></div>
|
|
1270
|
+
<div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>
|
|
1271
|
+
</div>
|
|
1272
|
+
<div ref="recentColors" class="ag-recent-colors"></div>
|
|
1273
|
+
</div>
|
|
1274
|
+
</div>`,Wt([x("spectrumColor")],t.prototype,"spectrumColor",void 0),Wt([x("spectrumVal")],t.prototype,"spectrumVal",void 0),Wt([x("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Wt([x("spectrumHue")],t.prototype,"spectrumHue",void 0),Wt([x("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Wt([x("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Wt([x("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Wt([x("recentColors")],t.prototype,"recentColors",void 0),Wt([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1275
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1276
|
+
* @version v26.2.1
|
|
1277
|
+
* @link http://www.ag-grid.com/
|
|
1278
|
+
* @license MIT
|
|
1279
|
+
*/var $O=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Zd=function(i){$O(t,i);function t(e){var o=i.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(o.value=e.color),o}return t.prototype.postConstruct=function(){i.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,o=this.getGui().getBoundingClientRect(),r=this.createBean(new Fa({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:o.right-190,y:o.top-250}));this.isPickerDisplayed=!0,Q(r.getGui(),"ag-color-dialog");var n=this.createBean(new zO({picker:this}));return n.addDestroyFunc(function(){r.isAlive()&&e.destroyBean(r)}),r.setParentComponent(this),r.setBodyComponent(n),n.setValue(this.getValue()),r.addDestroyFunc(function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,n.isAlive()&&e.destroyBean(n)),e.isAlive()&&e.getFocusableElement().focus(),e.isPickerDisplayed=!1}),r},t.prototype.setValue=function(e){return this.value===e?this:(this.eDisplayField.style.backgroundColor=e,i.prototype.setValue.call(this,e))},t.prototype.getValue=function(){return this.value},t}(Zp);/**
|
|
1280
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1281
|
+
* @version v26.2.1
|
|
1282
|
+
* @link http://www.ag-grid.com/
|
|
1283
|
+
* @license MIT
|
|
1284
|
+
*/var KO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),eh=function(i){KO(t,i);function t(e){return i.call(this,e,"ag-number-field","number")||this}return t.prototype.postConstruct=function(){var e=this;i.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var o=parseFloat(e.eInput.value),r=isNaN(o)?"":e.normalizeValue(o.toString());e.value!==r&&e.setValue(r)})},t.prototype.normalizeValue=function(e){if(e==="")return"";this.precision&&(e=this.adjustPrecision(e));var o=parseFloat(e);return this.min!=null&&o<this.min?e=this.min.toString():this.max!=null&&o>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var o=parseFloat(e).toFixed(this.precision);e=parseFloat(o).toString()}return e},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,hr(this.eInput,"min",e),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,hr(this.eInput,"max",e),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,hr(this.eInput,"step",e),this)},t.prototype.setValue=function(e,o){e=this.adjustPrecision(e);var r=this.normalizeValue(e);return e!=r?this:i.prototype.setValue.call(this,e,o)},t}(Ia);/**
|
|
1285
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1286
|
+
* @version v26.2.1
|
|
1287
|
+
* @link http://www.ag-grid.com/
|
|
1288
|
+
* @license MIT
|
|
1289
|
+
*/var YO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),th=function(i){YO(t,i);function t(e){return i.call(this,e,"ag-range-field","range")||this}return t.prototype.postConstruct=function(){i.prototype.postConstruct.call(this);var e=this.config,o=e.min,r=e.max,n=e.step;o!=null&&this.setMinValue(o),r!=null&&this.setMaxValue(r),this.setStep(n||1)},t.prototype.addInputListeners=function(){var e=this,o=st(),r=o?"change":"input";this.addManagedListener(this.eInput,r,function(n){var s=n.target.value;e.setValue(s)})},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(e,o){this.min!=null&&(e=Math.max(parseFloat(e),this.min).toString()),this.max!=null&&(e=Math.min(parseFloat(e),this.max).toString());var r=i.prototype.setValue.call(this,e,o);return this.eInput.value=e,r},t}(Ht);/**
|
|
1290
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1291
|
+
* @version v26.2.1
|
|
1292
|
+
* @link http://www.ag-grid.com/
|
|
1293
|
+
* @license MIT
|
|
1294
|
+
*/var qO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Mr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},oh=function(i){qO(t,i);function t(e){var o=i.call(this,e,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return t.prototype.postConstruct=function(){var e=this;i.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(o){e.parentCircleRect=e.eParentCircle.getBoundingClientRect()},onDragging:function(o){return e.calculateAngleDrag(o)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange(function(o){(o==null||o==="")&&(o="0"),o=e.eAngleValue.normalizeValue(o);var r=parseFloat(o);r>180&&(r=r-360),e.setValue(r)}),this.updateNumberInput(),h(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,At.EVENT_CHANGED,function(){e.eAngleValue.getInputElement().contains(document.activeElement)||e.updateNumberInput()})},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var o=this.parentCircleRect||{width:24,height:24},r=this.eChildCircle,n=o.width/2,s=o.height/2;r.style.left=n+Math.cos(e)*8+"px",r.style.top=s+Math.sin(e)*8+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,o=this.offsetY,r=Math.atan2(o,e);this.degrees=this.toDegrees(r),this.radius=Math.sqrt(e*e+o*o),this.positionChildCircle(r)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),o=this.getRadius();this.setOffsetX(Math.cos(e)*o).setOffsetY(Math.sin(e)*o)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var o=this.parentCircleRect,r=o.width/2,n=o.height/2,s=e.clientX-o.left,a=e.clientY-o.top,u=s-r,p=a-n,g=Math.atan2(p,u);this.setValue(g,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return e%=Math.PI*2,e<-Math.PI?e+=Math.PI*2:e>=Math.PI&&(e-=Math.PI*2),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e?this:(this.radius=e,this.calculateCartesian(),this)},t.prototype.onValueChange=function(e){var o=this;return this.addManagedListener(this,At.EVENT_CHANGED,function(){e(o.degrees)}),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,o){var r;return o?r=e:r=this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(r),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(r),this.dispatchEvent({type:At.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Dt(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),i.prototype.destroy.call(this)},t.TEMPLATE=`<div class="ag-angle-select">
|
|
1295
|
+
<div ref="eLabel"></div>
|
|
1296
|
+
<div class="ag-wrapper ag-angle-select-wrapper">
|
|
1297
|
+
<div ref="eAngleSelectField" class="ag-angle-select-field">
|
|
1298
|
+
<div ref="eParentCircle" class="ag-angle-select-parent-circle">
|
|
1299
|
+
<div ref="eChildCircle" class="ag-angle-select-child-circle"></div>
|
|
1300
|
+
</div>
|
|
1301
|
+
</div>
|
|
1302
|
+
<ag-input-number-field ref="eAngleValue"></ag-input-number-field>
|
|
1303
|
+
</div>
|
|
1304
|
+
</div>`,Mr([x("eLabel")],t.prototype,"eLabel",void 0),Mr([x("eParentCircle")],t.prototype,"eParentCircle",void 0),Mr([x("eChildCircle")],t.prototype,"eChildCircle",void 0),Mr([x("eAngleValue")],t.prototype,"eAngleValue",void 0),Mr([m("dragService")],t.prototype,"dragService",void 0),t}(js);/**
|
|
1305
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1306
|
+
* @version v26.2.1
|
|
1307
|
+
* @link http://www.ag-grid.com/
|
|
1308
|
+
* @license MIT
|
|
1309
|
+
*/var XO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),rh=function(i){XO(t,i);function t(e){return i.call(this,e,"ag-toggle-button")||this}return t.prototype.setValue=function(e,o){return i.prototype.setValue.call(this,e,o),ee(this.getGui(),"ag-selected",this.getValue()),this},t}(Wo);/**
|
|
1310
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1311
|
+
* @version v26.2.1
|
|
1312
|
+
* @link http://www.ag-grid.com/
|
|
1313
|
+
* @license MIT
|
|
1314
|
+
*/var QO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),$n=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},nh=function(i){QO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getFirstRow=function(){var e=0,o;return this.pinnedRowModel.getPinnedTopRowCount()?o=D.PINNED_TOP:this.rowModel.getRowCount()?(o=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(o=D.PINNED_BOTTOM),o===void 0?null:{rowIndex:e,rowPinned:o}},t.prototype.getLastRow=function(){var e,o=null,r=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return r?(o=D.PINNED_BOTTOM,e=r-1):this.rowModel.getRowCount()?(o=null,e=this.paginationProxy.getPageLastRow()):n&&(o=D.PINNED_TOP,e=n-1),e===void 0?null:{rowIndex:e,rowPinned:o}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case D.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case D.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,o){return!e&&!o?!0:e&&!o||!e&&o?!1:e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned},t.prototype.before=function(e,o){switch(e.rowPinned){case D.PINNED_TOP:if(o.rowPinned!==D.PINNED_TOP)return!0;break;case D.PINNED_BOTTOM:if(o.rowPinned!==D.PINNED_BOTTOM)return!1;break;default:if(h(o.rowPinned))return o.rowPinned!==D.PINNED_TOP;break}return e.rowIndex<o.rowIndex},$n([m("rowModel")],t.prototype,"rowModel",void 0),$n([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),$n([m("paginationProxy")],t.prototype,"paginationProxy",void 0),t=$n([Y("rowPositionUtils")],t),t}(V);/**
|
|
1315
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1316
|
+
* @version v26.2.1
|
|
1317
|
+
* @link http://www.ag-grid.com/
|
|
1318
|
+
* @license MIT
|
|
1319
|
+
*/var JO=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ZO=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ih=function(i){JO(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.createId=function(e){var o=e.rowIndex,r=e.rowPinned,n=e.column;return this.createIdFromValues(o,n,r)},t.prototype.createIdFromValues=function(e,o,r){return e+"."+(r??"null")+"."+o.getId()},t.prototype.equals=function(e,o){var r=e.column===o.column,n=e.rowPinned===o.rowPinned,s=e.rowIndex===o.rowIndex;return r&&n&&s},t=ZO([Y("cellPositionUtils")],t),t}(V);/**
|
|
1320
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1321
|
+
* @version v26.2.1
|
|
1322
|
+
* @link http://www.ag-grid.com/
|
|
1323
|
+
* @license MIT
|
|
1324
|
+
*/var eP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Gr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},sh=function(i){eP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){var o=e===D.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return v(o)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,o){var r=o===D.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(v(r))return 0;for(var n=0;n<r.length;n++){var s=r[n],a=s.rowTop+s.rowHeight-1;if(a>=e)return n}return r.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var o={type:_.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var o={type:_.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.createNodesFromData=function(e,o){var r=this,n=[];if(e){var s=0;e.forEach(function(a,u){var p=new ae(r.beans);p.data=a;var g=o?ae.ID_PREFIX_TOP_PINNED:ae.ID_PREFIX_BOTTOM_PINNED;p.id=g+u,p.rowPinned=o?D.PINNED_TOP:D.PINNED_BOTTOM,p.setRowTop(s),p.setRowHeight(r.gridOptionsWrapper.getRowHeightForNode(p).height),p.setRowIndex(u),s+=p.rowHeight,n.push(p)})}return n},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){v(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){v(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||e.length===0)return 0;var o=le(e);return o.rowTop+o.rowHeight},Gr([m("columnApi")],t.prototype,"columnApi",void 0),Gr([m("gridApi")],t.prototype,"gridApi",void 0),Gr([m("beans")],t.prototype,"beans",void 0),Gr([k],t.prototype,"init",null),t=Gr([Y("pinnedRowModel")],t),t}(V);/**
|
|
1325
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1326
|
+
* @version v26.2.1
|
|
1327
|
+
* @link http://www.ag-grid.com/
|
|
1328
|
+
* @license MIT
|
|
1329
|
+
*/var tP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Kn=function(){function i(t){this.cellValueChanges=t}return i}(),La=function(i){tP(t,i);function t(e,o,r){var n=i.call(this,e)||this;return n.initialRange=o,n.finalRange=r,n}return t}(Kn),ah=function(){function i(t){this.actionStack=[],this.maxStackSize=t||i.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return i.prototype.pop=function(){return this.actionStack.pop()},i.prototype.push=function(t){var e=t.cellValueChanges&&t.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},i.prototype.clear=function(){this.actionStack=[]},i.prototype.getCurrentStackSize=function(){return this.actionStack.length},i.DEFAULT_STACK_SIZE=10,i}();/**
|
|
1330
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1331
|
+
* @version v26.2.1
|
|
1332
|
+
* @link http://www.ag-grid.com/
|
|
1333
|
+
* @license MIT
|
|
1334
|
+
*/var oP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Zt=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rP=function(i){oP(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isFilling=!1,e.onCellValueChanged=function(o){var r={column:o.column,rowIndex:o.rowIndex,rowPinned:o.rowPinned},n=e.activeCellEdit!==null&&e.cellPositionUtils.equals(e.activeCellEdit,r),s=e.activeRowEdit!==null&&e.rowPositionUtils.sameRow(e.activeRowEdit,r),a=n||s||e.isPasting||e.isFilling;if(a){var u=o.rowPinned,p=o.rowIndex,g=o.column,y=o.oldValue,C=o.value,E={rowPinned:u,rowIndex:p,columnId:g.getColId(),newValue:C,oldValue:y};e.cellValueChanges.push(E)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return t.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new ah(e),this.redoStack=new ah(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,_.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_ROW_DRAG_END,this.clearStacks))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();!e||!e.cellValueChanges||(this.processAction(e,function(o){return o.oldValue}),e instanceof La?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},t.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();!e||!e.cellValueChanges||(this.processAction(e,function(o){return o.newValue}),e instanceof La?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},t.prototype.processAction=function(e,o){var r=this;e.cellValueChanges.forEach(function(n){var s=n.rowIndex,a=n.rowPinned,u=n.columnId,p={rowIndex:s,rowPinned:a},g=r.getRowNode(p);g.displayed&&g.setDataValue(u,o(n))})},t.prototype.processRangeAndCellFocus=function(e,o){var r;if(o){var n=o.startRow,s=o.endRow;r={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:o.startColumn.getColId()},this.setLastFocusedCell(r);var a={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:o.startColumn,columns:o.columns};this.gridApi.addCellRange(a);return}var u=e[0],p=u.rowIndex,g=u.rowPinned,y={rowIndex:p,rowPinned:g},C=this.getRowNode(y);r={rowPinned:u.rowPinned,rowIndex:C.rowIndex,columnId:u.columnId},this.setLastFocusedCell(r)},t.prototype.setLastFocusedCell=function(e){var o=e.rowIndex,r=e.columnId,n=e.rowPinned;this.gridApi.ensureIndexVisible(o),this.gridApi.ensureColumnVisible(r),oe.isRegistered(l.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(o,r,n,!0)},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_ROW_EDITING_STARTED,function(o){e.activeRowEdit={rowIndex:o.rowIndex,rowPinned:o.rowPinned}}),this.addManagedListener(this.eventService,_.EVENT_ROW_EDITING_STOPPED,function(){var o=new Kn(e.cellValueChanges);e.pushActionsToUndoStack(o),e.activeRowEdit=null})},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_CELL_EDITING_STARTED,function(o){e.activeCellEdit={column:o.column,rowIndex:o.rowIndex,rowPinned:o.rowPinned}}),this.addManagedListener(this.eventService,_.EVENT_CELL_EDITING_STOPPED,function(){e.activeCellEdit=null;var o=!e.activeRowEdit&&!e.isPasting&&!e.isFilling;if(o){var r=new Kn(e.cellValueChanges);e.pushActionsToUndoStack(r)}})},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,_.EVENT_PASTE_END,function(){var o=new Kn(e.cellValueChanges);e.pushActionsToUndoStack(o),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_FILL_START,function(){e.isFilling=!0}),this.addManagedListener(this.eventService,_.EVENT_FILL_END,function(o){var r=new La(e.cellValueChanges,o.initialRange,o.finalRange);e.pushActionsToUndoStack(r),e.isFilling=!1})},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case D.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case D.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Zt([m("focusService")],t.prototype,"focusService",void 0),Zt([m("gridApi")],t.prototype,"gridApi",void 0),Zt([m("rowModel")],t.prototype,"rowModel",void 0),Zt([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Zt([m("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Zt([m("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Zt([k],t.prototype,"init",null),t=Zt([Y("undoRedoService")],t),t}(V);/**
|
|
1335
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1336
|
+
* @version v26.2.1
|
|
1337
|
+
* @link http://www.ag-grid.com/
|
|
1338
|
+
* @license MIT
|
|
1339
|
+
*/var nP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ma=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},lh=function(i){nP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.findHeader=function(e,o){var r,n,s;if(e.column instanceof Fe?(n="getDisplayedGroup"+o,r=this.columnModel[n](e.column)):(s="getDisplayedCol"+o,r=this.columnModel[s](e.column)),r)return{column:r,headerRowIndex:e.headerRowIndex}},t.prototype.findColAtEdgeForHeaderRow=function(e,o){var r=this.columnModel.getAllDisplayedColumns(),n=r[o==="start"?0:r.length-1];if(n){var s=this.ctrlsService.getHeaderRowContainerCtrl(n.getPinned()),a=s.getRowType(e);if(console.log("level="+e+" type = "+a),a==l.HeaderRowType.COLUMN_GROUP){var u=this.columnModel.getColumnGroupAtLevel(n,e);return{headerRowIndex:e,column:u}}return{headerRowIndex:a==null?-1:e,column:n}}},Ma([m("columnModel")],t.prototype,"columnModel",void 0),Ma([m("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Ma([Y("headerPositionUtils")],t),t}(V);/**
|
|
1340
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1341
|
+
* @version v26.2.1
|
|
1342
|
+
* @link http://www.ag-grid.com/
|
|
1343
|
+
* @license MIT
|
|
1344
|
+
*/var iP=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},sP=function(){function i(){}return i.prototype.buildColumnDefs=function(t,e,o){var r=this,n=[],s={};return t.forEach(function(a){for(var u=r.createDefFromColumn(a,e,o),p=!0,g=u,y=a.getOriginalParent();y;){var C=null;if(y.isPadding()){y=y.getOriginalParent();continue}var E=s[y.getGroupId()];if(E){E.children.push(g),p=!1;break}C=r.createDefFromGroup(y),C&&(C.children=[g],s[C.groupId]=C,g=C,y=y.getOriginalParent())}p&&n.push(g)}),n},i.prototype.createDefFromGroup=function(t){var e=tn(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},i.prototype.createDefFromColumn=function(t,e,o){var r=tn(t.getColDef());return r.colId=t.getColId(),r.width=t.getActualWidth(),r.rowGroup=t.isRowGroupActive(),r.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,r.pivot=t.isPivotActive(),r.pivotIndex=t.isPivotActive()?o.indexOf(t):null,r.aggFunc=t.isValueActive()?t.getAggFunc():null,r.hide=t.isVisible()?void 0:!0,r.pinned=t.isPinned()?t.getPinned():null,r.sort=t.getSort()?t.getSort():null,r.sortIndex=t.getSortIndex()!=null?t.getSortIndex():null,r},i=iP([Y("columnDefFactory")],i),i}();/**
|
|
1345
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1346
|
+
* @version v26.2.1
|
|
1347
|
+
* @link http://www.ag-grid.com/
|
|
1348
|
+
* @license MIT
|
|
1349
|
+
*/var Ga=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aP=function(){function i(){}return i.prototype.getInitialRowClasses=function(t){var e=[];return h(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),Yi(e,this.processClassesFromGridOptions(t.rowNode,t.scope)),Yi(e,this.preProcessRowClassRules(t.rowNode,t.scope)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned===D.PINNED_LEFT&&e.push("ag-cell-last-left-pinned"),t.pinned===D.PINNED_RIGHT&&e.push("ag-cell-first-right-pinned")),e},i.prototype.processClassesFromGridOptions=function(t,e){var o=[],r=function(p){typeof p=="string"?o.push(p):Array.isArray(p)&&p.forEach(function(g){return o.push(g)})},n=this.gridOptionsWrapper.getRowClass();if(n){if(typeof n=="function")return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];r(n)}var s=this.gridOptionsWrapper.getRowClassFunc();if(s){var a={data:t.data,node:t,rowIndex:t.rowIndex,$scope:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()},u=s(a);r(u)}return o},i.prototype.preProcessRowClassRules=function(t,e){var o=[];return this.processRowClassRules(t,e,function(r){o.push(r)},function(r){}),o},i.prototype.processRowClassRules=function(t,e,o,r){var n={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),$scope:e,context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),n,o,r)},i.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},Ga([m("stylingService")],i.prototype,"stylingService",void 0),Ga([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),i=Ga([Y("rowCssClassCalculator")],i),i}();/**
|
|
1350
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1351
|
+
* @version v26.2.1
|
|
1352
|
+
* @link http://www.ag-grid.com/
|
|
1353
|
+
* @license MIT
|
|
1354
|
+
*/var lP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Yn=function(i){lP(t,i);function t(e){var o=i.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=e,o}return t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){var o=this.isRequestMostRecentAndLive(e);o&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,o){this.successCommon(e,o)},t.prototype.pageLoaded=function(e,o,r){this.successCommon(e,{rowData:o,rowCount:r})},t.prototype.isRequestMostRecentAndLive=function(e){var o=e===this.version,r=this.isAlive();return o&&r},t.prototype.successCommon=function(e,o){this.dispatchLoadCompleted();var r=this.isRequestMostRecentAndLive(e);r&&(this.state=t.STATE_LOADED,this.processServerResult(o))},t.prototype.dispatchLoadCompleted=function(e){e===void 0&&(e=!0);var o={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(o)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(V);/**
|
|
1355
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1356
|
+
* @version v26.2.1
|
|
1357
|
+
* @link http://www.ag-grid.com/
|
|
1358
|
+
* @license MIT
|
|
1359
|
+
*/var uP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),xa=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pP=function(i,t){return function(e,o){t(e,o,i)}},uh=function(i){uP(t,i);function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.activeBlockLoadsCount=0,o.blocks=[],o.active=!0,o}e=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var o=this.gridOptionsWrapper.getBlockLoadDebounceMillis();o&&o>0&&(this.checkBlockToLoadDebounce=X.debounce(this.performCheckBlocksToLoad.bind(this),o))},t.prototype.setBeans=function(o){this.logger=o.create("RowNodeBlockLoader")},t.prototype.addBlock=function(o){this.blocks.push(o),o.addEventListener(Yn.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(o){X.removeFromArray(this.blocks,o)},t.prototype.destroy=function(){i.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.activeBlockLoadsCount==0&&this.dispatchEvent({type:e.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active){if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.logger.log("checkBlockToLoad: max loads exceeded");return}var o=null;this.blocks.forEach(function(r){r.getState()===Yn.STATE_WAITING_TO_LOAD&&(o=r)}),o&&(o.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var o={};return this.blocks.forEach(function(r){var n=r.getBlockStateJson(),s=n.id,a=n.state;o[s]=a}),o},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+","+(" blocks = "+JSON.stringify(this.getBlockState())))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0};var e;return t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",xa([k],t.prototype,"postConstruct",null),xa([pP(0,xe("loggerFactory"))],t.prototype,"setBeans",null),t=e=xa([Y("rowNodeBlockLoader")],t),t}(V);/**
|
|
1360
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1361
|
+
* @version v26.2.1
|
|
1362
|
+
* @link http://www.ag-grid.com/
|
|
1363
|
+
* @license MIT
|
|
1364
|
+
*/var qn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ph=function(){function i(){}return i.prototype.doFullSort=function(t,e){var o=function(n,s){return{currentPos:s,rowNode:n}},r=t.map(o);return r.sort(this.compareRowNodes.bind(this,e)),r.map(function(n){return n.rowNode})},i.prototype.compareRowNodes=function(t,e,o){for(var r=e.rowNode,n=o.rowNode,s=0,a=t.length;s<a;s++){var u=t[s],p=u.sort===D.SORT_DESC,g=this.getValue(r,u.column),y=this.getValue(n,u.column),C=void 0,E=this.getComparator(u,r);E?C=E(g,y,r,n,p):C=X.defaultComparator(g,y,this.gridOptionsWrapper.isAccentedSort());var S=!isNaN(C);if(S&&C!==0)return u.sort===D.SORT_ASC?C:C*-1}return e.currentPos-o.currentPos},i.prototype.getComparator=function(t,e){var o=t.column,r=o.getColDef().comparator;if(r!=null)return r;if(e.rowGroupColumn)return e.rowGroupColumn.getColDef().comparator;if(o.getColDef().showRowGroup){var n=!e.group&&o.getColDef().field;if(n){var s=this.columnModel.getPrimaryColumn(n);if(s)return s.getColDef().comparator}}},i.prototype.getValue=function(t,e){return this.valueService.getValue(e,t,!1,!1)},qn([m("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),qn([m("valueService")],i.prototype,"valueService",void 0),qn([m("columnModel")],i.prototype,"columnModel",void 0),i=qn([Y("rowNodeSorter")],i),i}();/**
|
|
1365
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1366
|
+
* @version v26.2.1
|
|
1367
|
+
* @link http://www.ag-grid.com/
|
|
1368
|
+
* @license MIT
|
|
1369
|
+
*/var cP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),dP=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ch=function(i){cP(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.ready=!1,e.readyCallbacks=[],e}return t.prototype.checkReady=function(){if(this.ready=this.gridCtrl!=null&&this.gridBodyCtrl!=null&&this.centerRowContainerCtrl!=null&&this.leftRowContainerCtrl!=null&&this.rightRowContainerCtrl!=null&&this.bottomCenterRowContainerCtrl!=null&&this.bottomLeftRowContainerCtrl!=null&&this.bottomRightRowContainerCtrl!=null&&this.topCenterRowContainerCtrl!=null&&this.topLeftRowContainerCtrl!=null&&this.topRightRowContainerCtrl!=null&&this.centerHeaderRowContainerCtrl!=null&&this.leftHeaderRowContainerCtrl!=null&&this.rightHeaderRowContainerCtrl!=null&&this.fakeHScrollCtrl!=null&&this.gridHeaderCtrl!=null,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach(function(o){return o(e)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,o){switch(o){case D.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case D.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e;break}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case D.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case D.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t=dP([Y("ctrlsService")],t),t}(V);/**
|
|
1370
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1371
|
+
* @version v26.2.1
|
|
1372
|
+
* @link http://www.ag-grid.com/
|
|
1373
|
+
* @license MIT
|
|
1374
|
+
*/var hP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),fP=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gP=function(i){hP(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.registry={},e}return t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var o=this.registry[e];if(o!=null)return new o},t=fP([Y("ctrlsFactory")],t),t}(V);/**
|
|
1375
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1376
|
+
* @version v26.2.1
|
|
1377
|
+
* @link http://www.ag-grid.com/
|
|
1378
|
+
* @license MIT
|
|
1379
|
+
*/var vP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Xn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},yP=function(i){vP(t,i);function t(){return i.call(this)||this}return t.prototype.setComp=function(e,o,r,n){this.view=e,this.eViewport=r,this.eContainer=n,this.eGui=o,this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var s=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,s),this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,s),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.addActiveListenerToggles=function(){var e=this,o=["mouseenter","mousedown","touchstart"],r=["mouseleave","mouseup","touchend"];o.forEach(function(n){return e.addManagedListener(e.eGui,n,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),r.forEach(function(n){return e.addManagedListener(e.eGui,n,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=yp()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,function(o){o.direction==="horizontal"&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)}),this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL_END,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)})},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),o=this.columnModel.getDisplayedColumnsRightWidth(),r=!this.enableRtl&&e,n=this.gridOptionsWrapper.getScrollbarWidth();r&&(o+=n),this.view.setRightSpacerFixedWidth(o),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",o<=n);var s=this.columnModel.getDisplayedColumnsLeftWidth(),a=this.enableRtl&&e;a&&(s+=n),this.view.setLeftSpacerFixedWidth(s),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",s<=n)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),o=this.invisibleScrollbar,r=this.gridOptionsWrapper.isSuppressHorizontalScroll(),n=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,s=n===0&&o?15:n,a=r?0:s,u=st()&&e;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",o),this.view.setHeight(a),this.view.setViewportHeight(a+(u?1:0)),this.view.setContainerHeight(a)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},Xn([m("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Xn([m("columnModel")],t.prototype,"columnModel",void 0),Xn([m("ctrlsService")],t.prototype,"ctrlsService",void 0),Xn([k],t.prototype,"postConstruct",null),t}(V);/**
|
|
1380
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1381
|
+
* @version v26.2.1
|
|
1382
|
+
* @link http://www.ag-grid.com/
|
|
1383
|
+
* @license MIT
|
|
1384
|
+
*/var mP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),xr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},CP=function(i){mP(t,i);function t(){return i.call(this,t.TEMPLATE)||this}return t.prototype.postConstruct=function(){var e=this,o={addOrRemoveCssClass:function(n,s){return e.addOrRemoveCssClass(n,s)},setHeight:function(n){return lo(e.getGui(),n)},setContainerHeight:function(n){return lo(e.eContainer,n)},setViewportHeight:function(n){return lo(e.eViewport,n)},setRightSpacerFixedWidth:function(n){return Dt(e.eRightSpacer,n)},setLeftSpacerFixedWidth:function(n){return Dt(e.eLeftSpacer,n)},includeLeftSpacerScrollerCss:function(n,s){return ee(e.eLeftSpacer,n,s)},includeRightSpacerScrollerCss:function(n,s){return ee(e.eRightSpacer,n,s)}},r=this.createManagedBean(new yP);r.setComp(o,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new ca(function(n){return e.eContainer.style.width=n+"px"}))},t.TEMPLATE=`<div class="ag-body-horizontal-scroll" aria-hidden="true">
|
|
1385
|
+
<div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>
|
|
1386
|
+
<div class="ag-body-horizontal-scroll-viewport" ref="eViewport">
|
|
1387
|
+
<div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>
|
|
1388
|
+
</div>
|
|
1389
|
+
<div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>
|
|
1390
|
+
</div>`,xr([x("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),xr([x("eRightSpacer")],t.prototype,"eRightSpacer",void 0),xr([x("eViewport")],t.prototype,"eViewport",void 0),xr([x("eContainer")],t.prototype,"eContainer",void 0),xr([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1391
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1392
|
+
* @version v26.2.1
|
|
1393
|
+
* @link http://www.ag-grid.com/
|
|
1394
|
+
* @license MIT
|
|
1395
|
+
*/var wP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Va=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},_P=function(i){wP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,q.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_PRINT,o=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),r=e?0:this.columnModel.getDisplayedColumnsRightWidth();o!=this.leftWidth&&(this.leftWidth=o,this.eventService.dispatchEvent({type:_.EVENT_LEFT_PINNED_WIDTH_CHANGED})),r!=this.rightWidth&&(this.rightWidth=r,this.eventService.dispatchEvent({type:_.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Va([m("columnModel")],t.prototype,"columnModel",void 0),Va([k],t.prototype,"postConstruct",null),t=Va([Y("pinnedWidthService")],t),t}(V);/**
|
|
1396
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1397
|
+
* @version v26.2.1
|
|
1398
|
+
* @link http://www.ag-grid.com/
|
|
1399
|
+
* @license MIT
|
|
1400
|
+
*/var EP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),RP=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},dh=function(i){EP(t,i);function t(e){var o=i.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=e,o}return t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,o=this.getGui(),r=this.params,n=function(s){wn(e.gridOptionsWrapper,s,r.node,r.column,!0)||r.onKeyDown(s)};this.addManagedListener(o,"keydown",n)},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",RP([k],t.prototype,"postConstruct",null),t}(Mo);/**
|
|
1401
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1402
|
+
* @version v26.2.1
|
|
1403
|
+
* @link http://www.ag-grid.com/
|
|
1404
|
+
* @license MIT
|
|
1405
|
+
*/var SP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ha=function(){return Ha=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Ha.apply(this,arguments)},hh=function(i){SP(t,i);function t(e,o,r,n,s,a,u){var p=i.call(this)||this;p.scope=null,p.rendererVersion=0,p.editorVersion=0,p.scope=e,p.beans=o,p.column=r.getColumn(),p.rowNode=r.getRowNode(),p.rowCtrl=r.getRowCtrl(),p.autoHeightCell=n,p.eRow=a,p.setTemplate('<div comp-id="'+p.getCompId()+'"/>');var g=p.getGui(),y=g.style;p.eCellValue=g;var C=function(S,b,F){var B=F||g;b!=null&&b!=""?B.setAttribute(S,b):B.removeAttribute(S)},E={addOrRemoveCssClass:function(S,b){return p.addOrRemoveCssClass(S,b)},setUserStyles:function(S){return As(g,S)},setAriaSelected:function(S){return Lo(g,S)},setAriaExpanded:function(S){return Cn(g,S)},getFocusableElement:function(){return p.getFocusableElement()},setLeft:function(S){return y.left=S},setWidth:function(S){return y.width=S},setAriaColIndex:function(S){return Ls(p.getGui(),S)},setHeight:function(S){return y.height=S},setZIndex:function(S){return y.zIndex=S},setTabIndex:function(S){return C("tabindex",S.toString())},setRole:function(S){return ke(g,S)},setColId:function(S){return C("col-id",S)},setTitle:function(S){return C("title",S)},setUnselectable:function(S){return C("unselectable",S,p.eCellValue)},setTransition:function(S){return y.transition=S||""},setIncludeSelection:function(S){return p.includeSelection=S},setIncludeRowDrag:function(S){return p.includeRowDrag=S},setIncludeDndSource:function(S){return p.includeDndSource=S},setForceWrapper:function(S){return p.forceWrapper=S},setRenderDetails:function(S,b,F){return p.setRenderDetails(S,b,F)},setEditDetails:function(S,b,F){return p.setEditDetails(S,b,F)},getCellEditor:function(){return p.cellEditor||null},getCellRenderer:function(){return p.cellRenderer||null},getParentOfValue:function(){return p.eCellValue}};return p.cellCtrl=r,r.setComp(E,p.scope,p.getGui(),s,u),p}return t.prototype.setRenderDetails=function(e,o,r){var n=this.cellEditor&&!this.cellEditorPopupWrapper;if(!n){this.firstRender=this.firstRender==null;var s=this.isUsingAngular1Template(),a=this.setupControlsWrapper();if(e){var u=r||a,p=u?!1:this.refreshCellRenderer(e);p||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),s?this.insertValueUsingAngular1Template():this.insertValueWithoutCellRenderer(o)}},t.prototype.setEditDetails=function(e,o,r){e?this.createCellEditorInstance(e,o,r):this.destroyEditor()},t.prototype.removeControlsWrapper=function(){this.eCellValue=this.getGui(),this.eCellWrapper=null,this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.setupControlsWrapper=function(){var e=this.includeRowDrag||this.includeDndSource||this.includeSelection||this.forceWrapper,o=!0,r=!1;return this.addOrRemoveCssClass("ag-cell-value",!e),e&&!this.eCellWrapper?(this.addControlsWrapper(),o):!e&&this.eCellWrapper?(this.removeControlsWrapper(),o):r},t.prototype.addControlsWrapper=function(){var e=this.getGui();e.innerHTML=`<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">
|
|
1406
|
+
<span ref="eCellValue" class="ag-cell-value" role="presentation"></span>
|
|
1407
|
+
</div>`,this.eCellValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.forceWrapper||this.eCellValue.setAttribute("unselectable","on");var o=this.eCellValue.id="cell-"+this.getCompId(),r=[];this.includeRowDrag&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue),r.push(this.checkboxSelectionComp.getCheckboxId())),r.push(o),mn(this.getGui(),r.join(" "))},t.prototype.createCellEditorInstance=function(e,o,r){var n=this,s=this.editorVersion,a=e.newAgStackInstance();if(a){var u=e.params;a.then(function(g){return n.afterCellEditorCreated(s,g,u,o,r)});var p=f(this.cellEditor);p&&u.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var o=e!=null?ft(e):null;o!=null?this.eCellValue.innerHTML=o:Je(this.eCellValue)},t.prototype.insertValueUsingAngular1Template=function(){var e=this,o=this.column.getColDef(),r=o.template,n=o.templateUrl,s;r!=null?s=r:n!=null&&(s=this.beans.templateService.getTemplate(n,function(){return e.cellCtrl.refreshCell({forceRefresh:!0})})),s!=null&&(this.eCellValue.innerHTML=s,this.updateAngular1ScopeAndCompile())},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),xt(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),xt(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;var o=this.cellRenderer.refresh(e.params);return o===!0||o===void 0},t.prototype.createCellRendererInstance=function(e){var o=this,r=this.beans.gridOptionsWrapper.isAngularCompileRows(),n=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),s=!r&&!n&&!this.autoHeightCell,a=this.rendererVersion,u=e.componentClass,p=function(){var g=o.rendererVersion!==a||!o.isAlive();if(!g){var y=e.newAgStackInstance(),C=o.afterCellRendererCreated.bind(o,a,u);y&&y.then(C)}};s&&this.firstRender?this.beans.animationFrameService.createTask(p,this.rowNode.rowIndex,"createTasksP2"):p()},t.prototype.isUsingAngular1Template=function(){var e=this.column.getColDef(),o=e.template!=null||e.templateUrl!=null;return o},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,o,r){var n=!this.isAlive()||e!==this.rendererVersion;if(n){this.beans.context.destroyBean(r);return}this.cellRenderer=r,this.cellRendererClass=o,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null&&(Je(this.eCellValue),this.eCellValue.appendChild(this.cellRendererGui),this.updateAngular1ScopeAndCompile())},t.prototype.afterCellEditorCreated=function(e,o,r,n,s){var a=e!==this.editorVersion;if(a){this.beans.context.destroyBean(o);return}var u=o.isCancelBeforeStart&&o.isCancelBeforeStart();if(u){this.beans.context.destroyBean(o),this.cellCtrl.stopEditing();return}if(!o.getGui){console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),this.beans.context.destroyBean(o);return}this.cellEditor=o,this.cellEditorGui=o.getGui();var p=n||o.isPopup!==void 0&&o.isPopup();p?(n||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(r,s)):this.addInCellEditor(),o.afterGuiAttached&&o.afterGuiAttached()},t.prototype.addInCellEditor=function(){var e=this.getGui();e.contains(document.activeElement)&&e.focus(),this.destroyRenderer(),this.removeControlsWrapper(),this.clearCellElement(),this.cellEditorGui&&e.appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,o){var r=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new dh(e));var s=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&s.appendChild(this.cellEditorGui);var a=this.beans.popupService,u=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus();o??(n.getPopupPosition&&n.getPopupPosition());var p={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:s,keepWithinBounds:!0},g=o==="under"?a.positionPopupUnderComponent.bind(a,p):a.positionPopupOverComponent.bind(a,p),y=this.beans.gridOptionsWrapper.getLocaleTextFunc(),C=a.addPopup({modal:u,eChild:s,closeOnEsc:!0,closedCallback:function(){r.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:g,ariaLabel:y("ariaLabelCellEditor","Cell Editor")});C&&(this.hideEditorPopup=C.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControlsWrapper(),this.angularCompiledElement&&(this.angularCompiledElement.remove(),this.angularCompiledElement=void 0),i.prototype.destroy.call(this)},t.prototype.clearCellElement=function(){var e=this.getGui();e.contains(document.activeElement)&&!st()&&e.focus({preventScroll:!0}),Je(e)},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=Ha({},this.rowNode.data),this.angularCompiledElement&&this.angularCompiledElement.remove(),this.angularCompiledElement=this.beans.$compile(this.eCellValue.children)(this.scope),this.beans.ctrlsService.getGridBodyCtrl().requestAngularApply())},t}(se);/**
|
|
1408
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1409
|
+
* @version v26.2.1
|
|
1410
|
+
* @link http://www.ag-grid.com/
|
|
1411
|
+
* @license MIT
|
|
1412
|
+
*/var OP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),PP=function(i){OP(t,i);function t(e,o,r){var n=i.call(this)||this;n.cellComps={},n.beans=o,n.rowCtrl=e,n.setTemplate('<div comp-id="'+n.getCompId()+'" style="'+n.getInitialStyle()+'"/>');var s=n.getGui(),a=s.style,u={setDisplay:function(p){p==null?a.removeProperty("display"):a.setProperty("display","none")},setDomOrder:function(p){return n.domOrder=p},setCellCtrls:function(p){return n.setCellCtrls(p)},showFullWidth:function(p){return n.showFullWidth(p)},getFullWidthCellRenderer:function(){return n.getFullWidthCellRenderer()},addOrRemoveCssClass:function(p,g){return n.addOrRemoveCssClass(p,g)},setAriaExpanded:function(p){return Cn(s,p)},setUserStyles:function(p){return As(s,p)},setAriaSelected:function(p){return Lo(s,p)},setAriaLabel:function(p){uo(s,p??"")},setHeight:function(p){return a.height=p},setTop:function(p){return a.top=p},setTransform:function(p){return a.transform=p},setRowIndex:function(p){return s.setAttribute("row-index",p)},setRole:function(p){return ke(s,p)},setAriaRowIndex:function(p){return Is(n.getGui(),p)},setRowId:function(p){return s.setAttribute("row-id",p)},setRowBusinessKey:function(p){return s.setAttribute("row-business-key",p)},setTabIndex:function(p){return s.setAttribute("tabindex",p.toString())}};return e.setComp(u,n.getGui(),r),n}return t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),o=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+o},t.prototype.showFullWidth=function(e){var o=this,r=function(s){if(o.isAlive()){var a=s.getGui();o.getGui().appendChild(a),o.rowCtrl.getRowType()===Me.FullWidthDetail&&o.rowCtrl.setupDetailRowAutoHeight(a),o.setFullWidthRowComp(s)}else o.beans.context.destroyBean(s)},n=e.newAgStackInstance(this.rowCtrl.getFullWidthCellRendererType());n&&n.then(r)},t.prototype.setCellCtrls=function(e){var o=this,r=nt({},this.cellComps);e.forEach(function(s){var a=s.getInstanceId(),u=o.cellComps[a];u==null?o.newCellComp(s):r[a]=null});var n=_t(r).filter(function(s){return s!=null});this.destroyCells(n),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var o=this;if(this.domOrder){var r=[];e.forEach(function(n){var s=o.cellComps[n.getInstanceId()];s&&r.push(s.getGui())}),Ds(this.getGui(),r)}},t.prototype.newCellComp=function(e){var o=new hh(this.rowCtrl.getScope(),this.beans,e,!1,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=o,this.getGui().appendChild(o.getGui())},t.prototype.destroy=function(){i.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=_t(this.cellComps).filter(function(o){return o!=null});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var o=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){o.fullWidthCellRenderer=o.beans.context.destroyBean(o.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var o=this;e.forEach(function(r){if(r){var n=r.getCtrl().getInstanceId();o.cellComps[n]===r&&(r.detach(),r.destroy(),o.cellComps[n]=null)}})},t}(se);/**
|
|
1413
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1414
|
+
* @version v26.2.1
|
|
1415
|
+
* @link http://www.ag-grid.com/
|
|
1416
|
+
* @license MIT
|
|
1417
|
+
*/var DP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Wa=function(){return Wa=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Wa.apply(this,arguments)},Ko=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};function AP(){var i=se.elementGettingCreated.getAttribute("name"),t=Vn.getRowContainerCssClasses(i),e,o=i===l.RowContainerName.CENTER,r=i===l.RowContainerName.TOP_CENTER||i===l.RowContainerName.BOTTOM_CENTER;return o?e='<div class="'+t.wrapper+`" ref="eWrapper" role="presentation" unselectable="on">
|
|
1418
|
+
<div class="`+t.viewport+`" ref="eViewport" role="presentation">
|
|
1419
|
+
<div class="`+t.container+`" ref="eContainer" role="rowgroup" unselectable="on"></div>
|
|
1420
|
+
</div>
|
|
1421
|
+
</div>`:r?e='<div class="'+t.viewport+`" ref="eViewport" role="presentation" unselectable="on">
|
|
1422
|
+
<div class="`+t.container+`" ref="eContainer" role="presentation" unselectable="on"></div>
|
|
1423
|
+
</div>`:e='<div class="'+t.container+'" ref="eContainer" role="presentation" unselectable="on"></div>',e}var fh=function(i){DP(t,i);function t(){var e=i.call(this,AP())||this;return e.rowComps={},e.name=se.elementGettingCreated.getAttribute("name"),e}return t.prototype.postConstruct=function(){var e=this,o={setViewportHeight:function(n){return e.eViewport.style.height=n},setRowCtrls:function(n){return e.setRowCtrls(n)},setDomOrder:function(n){e.domOrder=n},setContainerWidth:function(n){return e.eContainer.style.width=n}},r=this.createManagedBean(new Vn(this.name));r.setComp(o,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var o=this,r=Wa({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var n=function(s){var a=s.getInstanceId(),u=r[a];if(u)o.rowComps[a]=u,delete r[a],o.ensureDomOrder(u.getGui());else{var p=o.newRowComp(s);o.rowComps[a]=p,o.appendRow(p.getGui())}};e.forEach(n),_t(r).forEach(function(s){o.eContainer.removeChild(s.getGui()),s.destroy()})},t.prototype.appendRow=function(e){this.domOrder?Ep(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Ps(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.newRowComp=function(e){var o=Vn.getPinned(this.name),r=new PP(e,this.beans,o);return r},Ko([m("beans")],t.prototype,"beans",void 0),Ko([x("eViewport")],t.prototype,"eViewport",void 0),Ko([x("eContainer")],t.prototype,"eContainer",void 0),Ko([x("eWrapper")],t.prototype,"eWrapper",void 0),Ko([k],t.prototype,"postConstruct",null),Ko([Ne],t.prototype,"preDestroy",null),t}(se);/**
|
|
1424
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1425
|
+
* @version v26.2.1
|
|
1426
|
+
* @link http://www.ag-grid.com/
|
|
1427
|
+
* @license MIT
|
|
1428
|
+
*/var TP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Qn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},bP=function(i){TP(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.events=[],e}return t.prototype.postConstruct=function(){this.rowModel.getType()==D.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var o=this;this.events.push(e),this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(function(){o.clientSideRowModel&&o.clientSideRowModel.onRowGroupOpened(),o.events.forEach(function(r){return o.eventService.dispatchEvent(r)}),o.events=[]})),this.dispatchExpandedDebounced()},Qn([m("animationFrameService")],t.prototype,"animationFrameService",void 0),Qn([m("rowModel")],t.prototype,"rowModel",void 0),Qn([k],t.prototype,"postConstruct",null),t=Qn([Y("rowNodeEventThrottle")],t),t}(V);/**
|
|
1429
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1430
|
+
* @version v26.2.1
|
|
1431
|
+
* @link http://www.ag-grid.com/
|
|
1432
|
+
* @license MIT
|
|
1433
|
+
*/var NP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Vr=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},gh=function(i){NP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,o){var r=this;this.showPopup(e,function(n){r.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:o,ePopup:n})},o.target)},t.prototype.showMenuAfterButtonClick=function(e,o,r){var n=this;this.showPopup(e,function(s){n.popupService.positionPopupUnderComponent({type:r,eventSource:o,ePopup:s,keepWithinBounds:!0,column:e})},o)},t.prototype.showPopup=function(e,o,r){var n=this,s=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),a=document.createElement("div");ke(a,"presentation"),Q(a,"ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",function(E){return n.trapFocusWithin(E,a)}),s.guiPromise.then(function(E){return a.appendChild(E)});var u,p=r||this.ctrlsService.getGridBodyCtrl().getGui(),g=function(E){e.setMenuVisible(!1,"contextMenu");var S=E instanceof KeyboardEvent;if(n.tabListener&&(n.tabListener=n.tabListener()),S&&r&&Fo(r)){var b=n.focusService.findTabbableParent(r);b&&b.focus()}},y=this.gridOptionsWrapper.getLocaleTextFunc(),C=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:g,positionCallback:function(){return o(a)},anchorToElement:p,ariaLabel:y("ariaLabelColumnMenu","Column Menu")});C&&(this.hidePopup=u=C.hideFunc),s.filterPromise.then(function(E){o(a),E.afterGuiAttached&&E.afterGuiAttached({container:"columnMenu",hidePopup:u})}),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,o){e.keyCode!==W.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(o,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(o,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Vr([m("filterManager")],t.prototype,"filterManager",void 0),Vr([m("popupService")],t.prototype,"popupService",void 0),Vr([m("focusService")],t.prototype,"focusService",void 0),Vr([m("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Vr([Y("menuFactory")],t),t}(V);/**
|
|
1434
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1435
|
+
* @version v26.2.1
|
|
1436
|
+
* @link http://www.ag-grid.com/
|
|
1437
|
+
* @license MIT
|
|
1438
|
+
*/var Ba=function(){function i(t,e,o){if(!e){console.error("AG Grid: no gridOptions provided to the grid");return}this.gridOptions=e,new vh().create(t,e,function(r){var n=new wd(t);r.createBean(n)},o)}return i.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},i}(),vh=function(){function i(){}return i.prototype.create=function(t,e,o,r){var n=this,s=!!e.debug,a=this.getRegisteredModules(r),u=this.createBeansList(e.rowModelType,a),p=this.createProvidedBeans(t,e,r);if(u){var g={providedBeanInstances:p,beanClasses:u,debug:s},y=new Hn("AG Grid",function(){return e.debug}),C=new Hn("Context",function(){return g.debug}),E=new qu(g,C),S=E.getBean("beans");this.registerModuleUserComponents(S,a),this.registerStackComponents(S,a),this.registerControllers(S,a),o(E),S.ctrlsService.whenReady(function(){n.setColumnsAndData(S),n.dispatchGridReadyEvent(S,e);var b=oe.isRegistered(l.ModuleNames.EnterpriseCoreModule);y.log("initialised successfully, enterprise = "+b)})}},i.prototype.registerControllers=function(t,e){e.forEach(function(o){o.controllers&&o.controllers.forEach(function(r){return t.ctrlsFactory.register(r)})})},i.prototype.registerStackComponents=function(t,e){var o=this.createAgStackComponentsList(e);t.agStackComponentsRegistry.setupComponents(o)},i.prototype.getRegisteredModules=function(t){var e=t?t.modules:null,o=oe.getRegisteredModules(),r=[],n={};function s(a,u){function p(g){n[g.moduleName]||(n[g.moduleName]=!0,r.push(g),oe.register(g,a))}p(u),u.dependantModules&&u.dependantModules.forEach(s.bind(null,a))}return e&&e.forEach(s.bind(null,!0)),o&&o.forEach(s.bind(null,!oe.isPackageBased())),r},i.prototype.registerModuleUserComponents=function(t,e){var o=this.extractModuleEntity(e,function(r){return r.userComponents?r.userComponents:[]});o.forEach(function(r){t.userComponentRegistry.registerDefaultComponent(r.componentName,r.componentClass)})},i.prototype.createProvidedBeans=function(t,e,o){var r=o?o.frameworkOverrides:null;f(r)&&(r=new Td);var n={gridOptions:e,eGridDiv:t,$scope:o?o.$scope:null,$compile:o?o.$compile:null,globalEventListener:o?o.globalEventListener:null,frameworkOverrides:r};return o&&o.providedBeanInstances&&nt(n,o.providedBeanInstances),n},i.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:Wo},{componentName:"AgRadioButton",componentClass:Ad},{componentName:"AgToggleButton",componentClass:rh},{componentName:"AgInputTextField",componentClass:Ia},{componentName:"AgInputTextArea",componentClass:Qd},{componentName:"AgInputNumberField",componentClass:eh},{componentName:"AgInputRange",componentClass:th},{componentName:"AgSelect",componentClass:zs},{componentName:"AgSlider",componentClass:Jd},{componentName:"AgAngleSelect",componentClass:oh},{componentName:"AgColorPicker",componentClass:Zd},{componentName:"AgGridBody",componentClass:sd},{componentName:"AgHeaderRoot",componentClass:Kc},{componentName:"AgPagination",componentClass:bO},{componentName:"AgOverlayWrapper",componentClass:LO},{componentName:"AgGroupComponent",componentClass:Kd},{componentName:"AgPanel",componentClass:Na},{componentName:"AgDialog",componentClass:Fa},{componentName:"AgRowContainer",componentClass:fh},{componentName:"AgFakeHorizontalScroll",componentClass:CP}],o=this.extractModuleEntity(t,function(r){return r.agStackComponents?r.agStackComponents:[]});return e=e.concat(o),e},i.prototype.createBeansList=function(t,e){var o=this.getRowModelClass(t,e);if(o){var r=[o,sa,nh,ih,lh,pO,ad,yc,yO,CO,$d,wc,DO,vd,sh,_d,pp,Gt,q,dd,Oc,Yc,sp,Ic,Id,Tc,ud,tp,cd,Gd,kd,Md,qc,fd,up,gd,gh,ze,Pc,Uo,Sd,Wd,Od,Dd,Fd,bd,Ed,rO,iO,jd,aO,hO,Bd,rP,dp,sP,aP,uh,ph,ch,_P,bP,gP],n=this.extractModuleEntity(e,function(a){return a.beans?a.beans:[]});r.push.apply(r,n);var s=[];return r.forEach(function(a){s.indexOf(a)<0&&s.push(a)}),s}},i.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],t.map(e))},i.prototype.setColumnsAndData=function(t){var e=t.gridOptionsWrapper.getColumnDefs();t.columnModel.setColumnDefs(e||[],"gridInitializing"),t.rowModel.start()},i.prototype.dispatchGridReadyEvent=function(t,e){var o={type:_.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.eventService.dispatchEvent(o)},i.prototype.getRowModelClass=function(t,e){t||(t=D.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};e.forEach(function(n){ve(n.rowModels,function(s,a){o[s]=a})});var r=o[t];if(h(r))return r;t===D.ROW_MODEL_TYPE_INFINITE&&console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+l.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("AG Grid: could not find matching row model for rowModelType "+t),t===D.ROW_MODEL_TYPE_VIEWPORT&&console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+l.ModuleNames.ViewportRowModelModule+" is registered.';"),t===D.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+l.ModuleNames.ServerSideRowModelModule+" is registered.';"),t===D.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+l.ModuleNames.ClientSideRowModelModule+" is registered.';")},i}();/**
|
|
1439
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1440
|
+
* @version v26.2.1
|
|
1441
|
+
* @link http://www.ag-grid.com/
|
|
1442
|
+
* @license MIT
|
|
1443
|
+
*/function FP(i){var t=i.module("agGrid",[]);t.directive("agGrid",function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",IP],scope:!0}})}function IP(i,t,e,o){var r,n=o.agGrid;if(r=t.$eval(n),!r){console.warn("WARNING - grid options for AG Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope");return}var s=i[0],a={$scope:t,$compile:e},u=new Ba(s,r,a),p=n+".quickFilterText",g=t.$watch(p,function(y){r.api.setQuickFilter(y)});t.$on("$destroy",function(){g(),u&&u.destroy(),u=null})}/**
|
|
1444
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1445
|
+
* @version v26.2.1
|
|
1446
|
+
* @link http://www.ag-grid.com/
|
|
1447
|
+
* @license MIT
|
|
1448
|
+
*/var yh=!1;function LP(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!yh){yh=!0,(typeof document>"u"||!document.registerElement)&&console.error("AG Grid: unable to find document.registerElement() function, unable to initialise AG Grid as a Web Component");var i=Object.create(HTMLElement.prototype);it.ALL_PROPERTIES.forEach(function(e){Object.defineProperty(i,e,{set:function(o){this.__agGridSetProperty(e,o)},get:function(){return this.__agGridGetProperty(e)},enumerable:!0,configurable:!0})});var t=i;t.__agGridSetProperty=function(e,o){this.__attributes||(this.__attributes={}),this.__attributes[e]=o;var r={};r[e]={currentValue:o},this.onChange(r)},t.onChange=function(e){this._initialised&&it.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var o=this.globalEventListener.bind(this);this._gridOptions=it.copyAttributesToGridOptions(e,this);var r={globalEventListener:o};this._agGrid=new Ba(this,this._gridOptions,r),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var o=this.attributes[e];this.setPropertyFromAttribute(o)}},t.setPropertyFromAttribute=function(e){var o=MP(e.nodeName),r=e.nodeValue;it.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=r)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var o=this.attributes[e];this.setPropertyFromAttribute(o)},t.globalEventListener=function(e,o){var r=e.toLowerCase(),n=new Event(r),s=n;s.agGridDetails=o,this.dispatchEvent(n);var a="on"+r;typeof this[a]=="function"&&this[a](n)},document.registerElement("ag-grid",{prototype:i})}}function MP(i){if(typeof i=="string"){var t=i.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return t}else return i}/**
|
|
1449
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1450
|
+
* @version v26.2.1
|
|
1451
|
+
* @link http://www.ag-grid.com/
|
|
1452
|
+
* @license MIT
|
|
1453
|
+
*/var GP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Jn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},xP=function(i){GP(t,i);function t(e){var o=i.call(this,t.getTemplate(e.cssClass))||this;return o.items=[],o.params=e,e.items&&e.items.forEach(function(r){return o.addItem(r)}),o}return t.prototype.postConstruct=function(){this.createManagedBean(new Vt(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+`">
|
|
1454
|
+
<div ref="eHeader" role="tablist" class="ag-tabs-header `+(e?e+"-header":"")+`"></div>
|
|
1455
|
+
<div ref="eBody" role="presentation" class="ag-tabs-body `+(e?e+"-body":"")+`"></div>
|
|
1456
|
+
</div>`},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case W.RIGHT:case W.LEFT:if(!this.eHeader.contains(document.activeElement))return;var o=this.items.indexOf(this.activeItem),r=e.keyCode===W.RIGHT?Math.min(o+1,this.items.length-1):Math.max(o-1,0);if(o===r)return;e.preventDefault();var n=this.items[r];this.showItemWrapper(n),n.eHeaderButton.focus();break;case W.UP:case W.DOWN:e.stopPropagation();break}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var o=this,r=o.focusService,n=o.eHeader,s=o.eBody,a=o.activeItem,u=document.activeElement;if(e.preventDefault(),n.contains(u))r.focusInto(s,e.shiftKey);else if(r.isFocusUnderManagedComponent(s))a.eHeaderButton.focus();else{var p=r.findNextFocusableElement(s,!1,e.shiftKey);p?p.focus():a.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var o=document.createElement("span");ke(o,"tab"),o.setAttribute("tabIndex","-1"),o.appendChild(e.title),Q(o,"ag-tab"),this.eHeader.appendChild(o),uo(o,e.titleLabel);var r={tabbedItem:e,eHeaderButton:o};this.items.push(r),o.addEventListener("click",this.showItemWrapper.bind(this,r))},t.prototype.showItem=function(e){var o=H(this.items,function(r){return r.tabbedItem===e});o&&this.showItemWrapper(o)},t.prototype.showItemWrapper=function(e){var o=this;if(this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem===e){Yu(this.params.onActiveItemClicked);return}Je(this.eBody),e.tabbedItem.bodyPromise.then(function(r){o.eBody.appendChild(r);var n=!o.focusService.isKeyboardMode();o.focusService.focusInto(o.eBody,!1,n),e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(o.afterAttachedParams)}),this.activeItem&&Ie(this.activeItem.eHeaderButton,"ag-tab-selected"),Q(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e},Jn([m("focusService")],t.prototype,"focusService",void 0),Jn([x("eHeader")],t.prototype,"eHeader",void 0),Jn([x("eBody")],t.prototype,"eBody",void 0),Jn([k],t.prototype,"postConstruct",null),t}(se);/**
|
|
1457
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1458
|
+
* @version v26.2.1
|
|
1459
|
+
* @link http://www.ag-grid.com/
|
|
1460
|
+
* @license MIT
|
|
1461
|
+
*/function VP(i){return new Ke(function(t){var e=new XMLHttpRequest;e.open("GET",i.url),e.send(),e.onreadystatechange=function(){e.readyState===4&&e.status===200&&t(JSON.parse(e.responseText))}})}/**
|
|
1462
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1463
|
+
* @version v26.2.1
|
|
1464
|
+
* @link http://www.ag-grid.com/
|
|
1465
|
+
* @license MIT
|
|
1466
|
+
*/(function(i){i.Applied="Applied",i.StoreNotFound="StoreNotFound",i.StoreLoading="StoreLoading",i.StoreWaitingToLoad="StoreWaitingToLoad",i.StoreLoadingFailed="StoreLoadingFailed",i.StoreWrongType="StoreWrongType",i.Cancelled="Cancelled"})(l.ServerSideTransactionResultStatus||(l.ServerSideTransactionResultStatus={}));/**
|
|
1467
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1468
|
+
* @version v26.2.1
|
|
1469
|
+
* @link http://www.ag-grid.com/
|
|
1470
|
+
* @license MIT
|
|
1471
|
+
*/var HP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Zn=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},WP=function(i){HP(t,i);function t(e,o,r){e===void 0&&(e="default"),o===void 0&&(o="listbox");var n=i.call(this,t.getTemplate(e))||this;return n.cssIdentifier=e,n.ariaRole=o,n.listName=r,n.renderedRows=new Map,n.rowHeight=20,n.isDestroyed=!1,n}return t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(o){return e.onFocusIn(o)},onFocusOut:function(o){return e.onFocusOut(o)},focusInnerElement:function(o){return e.focusInnerElement(o)},onTabKeyDown:function(o){return e.onTabKeyDown(o)},handleKeyDown:function(o){return e.handleKeyDown(o)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=e("ariaDefaultListName",this.listName||"List"),r=this.eContainer;ke(r,this.ariaRole),uo(r,o)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),o=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(o)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var o=e.target;return Ot(o,"ag-virtual-list-item")&&(this.lastFocusedRowIndex=bp(o)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case W.UP:case W.DOWN:this.navigate(e.keyCode===W.UP)&&e.preventDefault();break}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(this.lastFocusedRowIndex==null)return!1;var o=this.lastFocusedRowIndex+(e?-1:1);return o<0||o>=this.model.getRowCount()?!1:(this.focusRow(o),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var o=this;this.ensureIndexVisible(e),window.setTimeout(function(){var r=o.renderedRows.get(e);r&&r.eDiv.focus()},10)},t.prototype.getComponentAt=function(e){var o=this.renderedRows.get(e);return o&&o.rowComponent},t.getTemplate=function(e){return`
|
|
1472
|
+
<div class="ag-virtual-list-viewport ag-`+e+`-virtual-list-viewport" role="presentation">
|
|
1473
|
+
<div class="ag-virtual-list-container ag-`+e+`-virtual-list-container" ref="eContainer"></div>
|
|
1474
|
+
</div>`},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var o=this.model.getRowCount();if(typeof e!="number"||e<0||e>=o){console.warn("invalid row index for ensureIndexVisible: "+e);return}var r=e*this.rowHeight,n=r+this.rowHeight,s=this.getGui(),a=s.scrollTop,u=s.offsetHeight,p=a+u,g=a>r,y=p<n;if(g)s.scrollTop=r;else if(y){var C=n-u;s.scrollTop=C}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){var e=this;if(!(this.model==null||this.isDestroyed)){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",Ku(function(){return e.eContainer.clientHeight>=o*e.rowHeight},function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())})}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(o,r){return e.removeRow(r)})},t.prototype.drawVirtualRows=function(){var e=this.getGui(),o=e.scrollTop,r=o+e.offsetHeight,n=Math.floor(o/this.rowHeight),s=Math.floor(r/this.rowHeight);this.ensureRowsRendered(n,s)},t.prototype.ensureRowsRendered=function(e,o){var r=this;this.renderedRows.forEach(function(s,a){(a<e||a>o)&&a!==r.lastFocusedRowIndex&&r.removeRow(a)});for(var n=e;n<=o;n++)this.renderedRows.has(n)||n<this.model.getRowCount()&&this.insertRow(n)},t.prototype.insertRow=function(e){var o=this,r=this.model.getRow(e),n=document.createElement("div");if(Q(n,"ag-virtual-list-item"),Q(n,"ag-"+this.cssIdentifier+"-virtual-list-item"),ke(n,this.ariaRole==="tree"?"treeitem":"option"),Np(n,this.model.getRowCount()),Fp(n,e+1),n.setAttribute("tabindex","-1"),typeof this.model.isRowSelected=="function"){var s=this.model.isRowSelected(e);Lo(n,!!s),Hp(n,s)}n.style.height=this.rowHeight+"px",n.style.top=this.rowHeight*e+"px";var a=this.componentCreator(r,n);a.addGuiEventListener("focusin",function(){return o.lastFocusedRowIndex=e}),n.appendChild(a.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",n):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",n):this.eContainer.appendChild(n),this.renderedRows.set(e,{rowComponent:a,eDiv:n})},t.prototype.removeRow=function(e){var o=this.renderedRows.get(e);this.eContainer.removeChild(o.eDiv),this.destroyBean(o.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()})},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,i.prototype.destroy.call(this))},Zn([m("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Zn([m("focusService")],t.prototype,"focusService",void 0),Zn([x("eContainer")],t.prototype,"eContainer",void 0),Zn([k],t.prototype,"postConstruct",null),t}(_a);/**
|
|
1475
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1476
|
+
* @version v26.2.1
|
|
1477
|
+
* @link http://www.ag-grid.com/
|
|
1478
|
+
* @license MIT
|
|
1479
|
+
*/function BP(i,t,e,o,r){r===void 0&&(r=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var n=h(e)&&e.group,s=h(o)&&o.group,a=n&&s,u=!n&&!s;return a?G(e.key,o.key,r):u?G(i,t,r):n?1:-1}/**
|
|
1480
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1481
|
+
* @version v26.2.1
|
|
1482
|
+
* @link http://www.ag-grid.com/
|
|
1483
|
+
* @license MIT
|
|
1484
|
+
*/var kP=function(){function i(){}return i.prototype.wrap=function(t,e,o,r,n){var s=this;o===void 0&&(o=[]);var a=this.createWrapper(t,r,n);return e.forEach(function(u){s.createMethod(a,u,!0)}),o.forEach(function(u){s.createMethod(a,u,!1)}),a},i.prototype.unwrap=function(t){return t},i.prototype.createMethod=function(t,e,o){t.addMethod(e,this.createMethodProxy(t,e,o))},i.prototype.createMethodProxy=function(t,e,o){return function(){return t.hasMethod(e)?t.callMethod(e,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},i}();/**
|
|
1485
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1486
|
+
* @version v26.2.1
|
|
1487
|
+
* @link http://www.ag-grid.com/
|
|
1488
|
+
* @license MIT
|
|
1489
|
+
*/(function(i){i.Column="column",i.GroupedColumn="groupedColumn",i.StackedColumn="stackedColumn",i.NormalizedColumn="normalizedColumn",i.Bar="bar",i.GroupedBar="groupedBar",i.StackedBar="stackedBar",i.NormalizedBar="normalizedBar",i.Line="line",i.Scatter="scatter",i.Bubble="bubble",i.Pie="pie",i.Doughnut="doughnut",i.Area="area",i.StackedArea="stackedArea",i.NormalizedArea="normalizedArea",i.Histogram="histogram"})(l.ChartType||(l.ChartType={}));/**
|
|
1490
|
+
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
1491
|
+
* @version v26.2.1
|
|
1492
|
+
* @link http://www.ag-grid.com/
|
|
1493
|
+
* @license MIT
|
|
1494
|
+
*/var Yo=typeof pl>"u"?{}:pl;Yo.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,Yo.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,Yo.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,Yo.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,Yo.Node=typeof Node>"u"?{}:Node,Yo.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var mh=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},UP=function(){function i(t,e,o,r,n,s,a,u){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=e,this.eventService=o,this.columnModel=r,this.gridApi=n,this.columnApi=s,this.beans=u,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=i.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return i.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i.prototype.getCopyOfNodesMap=function(){return X.cloneObject(this.allNodesMap)},i.prototype.getRowNode=function(t){return this.allNodesMap[t]},i.prototype.setRowData=function(t){var e=this;if(typeof t=="string"){console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");return}var o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map(function(n){return e.createNode(n,e.rootNode,i.TOP_LEVEL)}):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)},i.prototype.updateRowData=function(t,e){var o={remove:[],update:[],add:[]},r=[];return this.executeRemove(t,o,r),this.executeUpdate(t,o,r),this.executeAdd(t,o),this.updateSelection(r),e&&X.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},i.prototype.updateSelection=function(t){var e=t.length>0;if(e&&t.forEach(function(r){r.setSelected(!1,!1,!0)}),this.selectionService.updateGroupsFromChildrenSelections(),e){var o={type:_.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},i.prototype.executeAdd=function(t,e){var o=this,r=t.add,n=t.addIndex;if(!X.missingOrEmpty(r)){var s=r.map(function(y){return o.createNode(y,o.rootNode,i.TOP_LEVEL)}),a=typeof n=="number"&&n>=0;if(a){var u=this.rootNode.allLeafChildren,p=u.slice(0,n),g=u.slice(n,u.length);this.rootNode.allLeafChildren=mh(p,s,g)}else this.rootNode.allLeafChildren=mh(this.rootNode.allLeafChildren,s);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=s}},i.prototype.executeRemove=function(t,e,o){var r=this,n=t.remove;if(!X.missingOrEmpty(n)){var s={};n.forEach(function(a){var u=r.lookupRowNode(a);u&&(u.isSelected()&&o.push(u),u.clearRowTopAndRowIndex(),s[u.id]=!0,delete r.allNodesMap[u.id],e.remove.push(u))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(a){return!s[a.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},i.prototype.executeUpdate=function(t,e,o){var r=this,n=t.update;X.missingOrEmpty(n)||n.forEach(function(s){var a=r.lookupRowNode(s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&o.push(a),r.setMasterForRow(a,s,i.TOP_LEVEL,!1),e.update.push(a))})},i.prototype.lookupRowNode=function(t){var e=this.gridOptionsWrapper.getRowNodeIdFunc(),o;if(X.exists(e)){var r=e(t);if(o=this.allNodesMap[r],!o)return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(o=X.find(this.rootNode.allLeafChildren,function(n){return n.data===t}),!o)return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowNodeId to help the Grid find matching row data"),null;return o},i.prototype.createNode=function(t,e,o){var r=new ae(this.beans);return r.group=!1,this.setMasterForRow(r,t,o,!0),e&&!this.suppressParentsInRowNodes&&(r.parent=e),r.level=o,r.setDataAndId(t,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},i.prototype.setMasterForRow=function(t,e,o,r){if(this.doingTreeData)t.setMaster(!1),r&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),r){var n=this.columnModel.getRowGroupColumns(),s=n?n.length:0,a=o+s;t.expanded=t.master?this.isExpanded(a):!1}},i.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return e===-1?!0:t<e},i.TOP_LEVEL=0,i.ROOT_NODE_ID="ROOT_NODE_ID",i}(),jP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),He=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ft;(function(i){i[i.Normal=0]="Normal",i[i.AfterFilter=1]="AfterFilter",i[i.AfterFilterAndSort=2]="AfterFilterAndSort",i[i.PivotNodes=3]="PivotNodes"})(Ft||(Ft={}));var zP=function(i){jP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.EVERYTHING}),o=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new ae(this.beans),this.nodeManager=new UP(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,o,r,n){var s,a=!1;do{s=!1;for(var u=this.getRowIndexAtPixel(e),p=this.getRowIndexAtPixel(o),g=Math.max(u,r),y=Math.min(p,n),C=g;C<=y;C++){var E=this.getRow(C);if(E.rowHeightEstimated){var S=this.gridOptionsWrapper.getRowHeightForNode(E);E.setRowHeight(S.height),s=!0,a=!0}}s&&this.setRowTopAndRowIndex()}while(s);return a},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),o=0,r=new Set,n=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_NORMAL,s=0;s<this.rowsToDisplay.length;s++){var a=this.rowsToDisplay[s];if(a.id!=null&&r.add(a.id),a.rowHeight==null){var u=this.gridOptionsWrapper.getRowHeightForNode(a,n,e);a.setRowHeight(u.height,u.estimated)}a.setRowTop(o),a.setRowIndex(s),o+=a.rowHeight}return r},t.prototype.clearRowTopAndRowIndex=function(e,o){var r=e.isActive(),n=function(a){a&&a.id!=null&&!o.has(a.id)&&a.clearRowTopAndRowIndex()},s=function(a){if(n(a),n(a.detailNode),n(a.sibling),a.hasChildren()&&a.childrenAfterGroup){var u=a.level==-1,p=r&&!u&&!a.expanded;p||a.childrenAfterGroup.forEach(s)}};s(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,o,r){var n=this;r===void 0&&(r=0);var s=this.getRowIndexAtPixel(o),a=this.getRow(s);return a===e[0]?!1:(e.forEach(function(u){X.removeFromArray(n.rootNode.allLeafChildren,u)}),e.forEach(function(u,p){X.insertIntoArray(n.rootNode.allLeafChildren,u,Math.max(s+r,0)+p)}),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},t.prototype.highlightRowAtPixel=function(e,o){var r=o!=null?this.getRowIndexAtPixel(o):null,n=r!=null?this.getRow(r):null;if(!n||!e||n===e||o==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var s=this.getHighlightPosition(o,n);this.lastHighlightedRow&&this.lastHighlightedRow!==n&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),n.setHighlighted(s),this.lastHighlightedRow=n},t.prototype.getHighlightPosition=function(e,o){if(!o){var r=this.getRowIndexAtPixel(e);if(o=this.getRow(r||0),!o)return l.RowHighlightPosition.Below}var n=o.rowTop,s=o.rowHeight;return e-n<s/2?l.RowHighlightPosition.Above:l.RowHighlightPosition.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;return e?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){var o=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(o)return e;var r=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;r.expanded&&r.childrenAfterSort&&r.childrenAfterSort.length>0;)r=r.childrenAfterSort[0];return r.rowIndex},t.prototype.getRowBounds=function(e){if(X.missing(this.rowsToDisplay))return null;var o=this.rowsToDisplay[e];return o?{rowTop:o.rowTop,rowHeight:o.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var o=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.FILTER,keepRenderedRows:!0,animate:o})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return D.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:l.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:l.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var o=X.missingOrEmpty(e),r=new Tn(!1,this.rootNode);return(o||this.gridOptionsWrapper.isTreeData())&&r.setInactive(),r},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()||e.rowNodeTransactions==null)return!1;var o=X.filter(e.rowNodeTransactions,function(n){return n.add!=null&&n.add.length>0||n.remove!=null&&n.remove.length>0}),r=o==null||o.length==0;return r},t.prototype.refreshModel=function(e){var o=this;if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var r=this.createChangePath(e.rowNodeTransactions);switch(e.step){case l.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,r,!!e.afterColumnsChanged);case l.ClientSideRowModelSteps.FILTER:this.doFilter(r);case l.ClientSideRowModelSteps.PIVOT:this.doPivot(r);case l.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(r);case l.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,r);case l.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(r,n);var s={type:_.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(s),this.$scope&&window.setTimeout(function(){o.$scope.$apply()},0)}},t.prototype.isEmpty=function(){var e=X.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return X.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return X.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,o){var r=!o,n=!1,s,a=[],u=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(p){var g=r&&!n;r||(p===o||p===e)&&(r=!0);var y=p.group&&u;if(!y){var C=r&&!n,E=p.isParentOfNode(s);(C||E)&&a.push(p)}g&&(p===o||p===e)&&(n=!0,p===o?s=o:s=e)}),a},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var o=0,r=this.rowsToDisplay.length-1;if(e<=0)return 0;var n=X.last(this.rowsToDisplay);if(n.rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var s=Math.floor((o+r)/2),a=this.rowsToDisplay[s];if(this.isRowInPixel(a,e))return s;a.rowTop<e?o=s+1:a.rowTop>e&&(r=s-1)}},t.prototype.isRowInPixel=function(e,o){var r=e.rowTop,n=e.rowTop+e.rowHeight,s=r<=o&&n>o;return s},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(o,r){return e(o,r)})},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Ft.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Ft.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Ft.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Ft.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,o,r,n){if(!e)return n;for(var s=0;s<e.length;s++){var a=e[s];if(o(a,n++),a.hasChildren()){var u=null;switch(r){case Ft.Normal:u=a.childrenAfterGroup;break;case Ft.AfterFilter:u=a.childrenAfterFilter;break;case Ft.AfterFilterAndSort:u=a.childrenAfterSort;break;case Ft.PivotNodes:u=a.leafGroup?null:a.childrenAfterSort;break}u&&(n=this.recursivelyWalkNodesAndCallback(u,o,r,n))}}return n},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.expandOrCollapseAll=function(e){var o=this.gridOptionsWrapper.isTreeData();this.rootNode&&r(this.rootNode.childrenAfterGroup);function r(a){a&&a.forEach(function(u){var p=o?X.exists(u.childrenAfterGroup):u.group;p&&(u.expanded=e,r(u.childrenAfterGroup))})}this.refreshModel({step:l.ClientSideRowModelSteps.MAP});var n=e?"expandAll":"collapseAll",s={api:this.gridApi,columnApi:this.columnApi,type:_.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(s)},t.prototype.doSort=function(e,o){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:o})},t.prototype.doRowGrouping=function(e,o,r,n,s){this.groupStage?(o?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:o,rowNodeOrder:r,changedPath:n}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:s}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(n)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},t.prototype.restoreGroupState=function(e){e&&X.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(o,r){typeof e[r]=="boolean"&&(o.expanded=e[r])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return X.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(o,r){return e[r]=o.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){var o=typeof e=="string"&&e.indexOf(ae.ID_PREFIX_ROW_GROUP)==0;if(o){var r=void 0;return this.forEachNode(function(n){n.id===e&&(r=n)}),r}else return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var o=this.getGroupState();this.nodeManager.setRowData(e);var r={type:_.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,groupState:o,newData:!0})},t.prototype.batchUpdateRowData=function(e,o){var r=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var n=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){r.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:o})},t.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var o=[],r=[],n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(a){var u=e.nodeManager.updateRowData(a.rowDataTransaction,void 0);r.push(u),a.callback&&o.push(a.callback.bind(null,u)),typeof a.rowDataTransaction.addIndex=="number"&&(n=!0)}),this.commonUpdateRowData(r,void 0,n),o.length>0&&window.setTimeout(function(){o.forEach(function(a){return a()})},0),r.length>0){var s={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:_.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:r};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,o){this.valueCache.onDataChanged();var r=this.nodeManager.updateRowData(e,o),n=typeof e.addIndex=="number";return this.commonUpdateRowData([r],o,n),r},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!e){var o={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var r=0;r<this.rootNode.allLeafChildren.length;r++){var n=this.rootNode.allLeafChildren[r];o[n.id]=r}return o}},t.prototype.commonUpdateRowData=function(e,o,r){r&&(o=this.createRowNodeOrder()),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:o,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:_.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode(function(o){o.setRowHeight(o.rowHeight,!0);var r=o.detailNode;r&&r.setRowHeight(r.rowHeight,!0),e=!0}),e&&this.onRowHeightChanged()},He([m("columnModel")],t.prototype,"columnModel",void 0),He([m("$scope")],t.prototype,"$scope",void 0),He([m("selectionService")],t.prototype,"selectionService",void 0),He([m("valueCache")],t.prototype,"valueCache",void 0),He([m("columnApi")],t.prototype,"columnApi",void 0),He([m("gridApi")],t.prototype,"gridApi",void 0),He([m("animationFrameService")],t.prototype,"animationFrameService",void 0),He([m("beans")],t.prototype,"beans",void 0),He([m("filterStage")],t.prototype,"filterStage",void 0),He([m("sortStage")],t.prototype,"sortStage",void 0),He([m("flattenStage")],t.prototype,"flattenStage",void 0),He([he("groupStage")],t.prototype,"groupStage",void 0),He([he("aggregationStage")],t.prototype,"aggregationStage",void 0),He([he("pivotStage")],t.prototype,"pivotStage",void 0),He([k],t.prototype,"init",null),t=He([Y("rowModel")],t),t}(V),$P=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ka=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},KP=function(i){$P(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=e.rowNode,r=e.changedPath;this.filterService.filter(r),this.selectableService.updateSelectableAfterFiltering(o)},ka([m("selectableService")],t.prototype,"selectableService",void 0),ka([m("filterService")],t.prototype,"filterService",void 0),t=ka([Y("filterStage")],t),t}(V),YP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ei=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},qP=function(i){YP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=this.sortController.getSortOptions(),r=X.exists(o)&&o.length>0,n=r&&X.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),s=n?this.calculateDirtyNodes(e.rowNodeTransactions):null,a=X.missingOrEmpty(this.columnModel.getValueColumns()),u=X.some(o,function(p){return!!p.column.getColDef().showRowGroup});this.sortService.sort(o,r,n,s,e.changedPath,a,u)},t.prototype.calculateDirtyNodes=function(e){var o={},r=function(n){n&&n.forEach(function(s){return o[s.id]=!0})};return e&&e.forEach(function(n){r(n.add),r(n.update),r(n.remove)}),o},ei([m("sortService")],t.prototype,"sortService",void 0),ei([m("sortController")],t.prototype,"sortController",void 0),ei([m("columnModel")],t.prototype,"columnModel",void 0),t=ei([Y("sortStage")],t),t}(V),XP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ua=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},QP=function(i){XP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=e.rowNode,r=[],n={value:0},s=this.columnModel.isPivotMode(),a=s&&o.leafGroup,u=a?[o]:o.childrenAfterSort;this.recursivelyAddToRowsToDisplay(u,r,n,s,0);var p=r.length>0,g=!a&&p&&this.gridOptionsWrapper.isGroupIncludeTotalFooter();return g&&(this.ensureFooterNodeExists(o),this.addRowNodeToRowsToDisplay(o.sibling,r,n,0)),r},t.prototype.recursivelyAddToRowsToDisplay=function(e,o,r,n,s){if(!X.missingOrEmpty(e))for(var a=this.gridOptionsWrapper.isGroupHideOpenParents(),u=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),p=!u&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),g=0;g<e.length;g++){var y=e[g],C=y.hasChildren(),E=n&&!C,S=u&&C&&y.childrenAfterGroup.length===1,b=p&&C&&y.leafGroup&&y.childrenAfterGroup.length===1,F=n&&y.leafGroup,B=a&&y.expanded&&!F,M=!E&&!B&&!S&&!b;if(M&&this.addRowNodeToRowsToDisplay(y,o,r,s),!(n&&y.leafGroup)){if(C){var L=S||b;if(y.expanded||L){var j=L?s:s+1;this.recursivelyAddToRowsToDisplay(y.childrenAfterSort,o,r,n,j),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(y),this.addRowNodeToRowsToDisplay(y.sibling,o,r,s))}}else if(y.master&&y.expanded){var J=this.createDetailNode(y);this.addRowNodeToRowsToDisplay(J,o,r,s)}}}},t.prototype.addRowNodeToRowsToDisplay=function(e,o,r,n){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn();o.push(e),e.setUiLevel(s?0:n)},t.prototype.ensureFooterNodeExists=function(e){if(!X.exists(e.sibling)){var o=new ae(this.beans);Object.keys(e).forEach(function(r){o[r]=e[r]}),o.footer=!0,o.setRowTop(null),o.setRowIndex(null),o.oldRowTop=null,X.exists(o.id)&&(o.id="rowGroupFooter_"+o.id),o.sibling=e,e.sibling=o}},t.prototype.createDetailNode=function(e){if(X.exists(e.detailNode))return e.detailNode;var o=new ae(this.beans);return o.detail=!0,o.selectable=!1,o.parent=e,X.exists(e.id)&&(o.id="detail_"+e.id),o.data=e.data,o.level=e.level+1,e.detailNode=o,o},Ua([m("columnModel")],t.prototype,"columnModel",void 0),Ua([m("beans")],t.prototype,"beans",void 0),t=Ua([Y("flattenStage")],t),t}(V),JP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ti=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ZP=function(i){JP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,o,r,n,s,a,u){var p=this,g=this.gridOptionsWrapper.isGroupMaintainOrder(),y=X.some(this.columnModel.getAllGridColumns(),function(E){return E.isRowGroupActive()}),C=function(E){if(p.pullDownGroupDataForHideOpenParents(E.childrenAfterFilter,!0),o){var S=g&&y&&!E.leafGroup&&!u;S?E.childrenAfterSort=E.childrenAfterFilter.slice(0):E.childrenAfterSort=r?p.doDeltaSort(E,e,n,s,a):p.rowNodeSorter.doFullSort(E.childrenAfterFilter,e)}else E.childrenAfterSort=E.childrenAfterFilter.slice(0);E.sibling&&(E.sibling.childrenAfterSort=E.childrenAfterSort),p.updateChildIndexes(E),p.postSortFunc&&p.postSortFunc(E.childrenAfterSort)};s&&s.forEachChangedNodeDepthFirst(C),this.updateGroupDataForHideOpenParents(s)},t.prototype.mapNodeToSortedNode=function(e,o){return{currentPos:o,rowNode:e}},t.prototype.doDeltaSort=function(e,o,r,n,s){var a=e.childrenAfterSort.filter(function(y){var C=!r[y.id],E=s||n&&n.canSkip(y);return C&&E}).map(this.mapNodeToSortedNode.bind(this)),u={};a.forEach(function(y){return u[y.rowNode.id]=y.rowNode});var p=e.childrenAfterFilter.filter(function(y){return!u[y.id]}).map(this.mapNodeToSortedNode.bind(this));p.sort(this.rowNodeSorter.compareRowNodes.bind(this,o));var g;return p.length===0?g=a:a.length===0?g=p:g=this.mergeSortedArrays(o,a,p),g.map(function(y){return y.rowNode})},t.prototype.mergeSortedArrays=function(e,o,r){for(var n=[],s=0,a=0;s<o.length&&a<r.length;){var u=this.rowNodeSorter.compareRowNodes(e,o[s],r[a]);u<0?n.push(o[s++]):n.push(r[a++])}for(;s<o.length;)n.push(o[s++]);for(;a<r.length;)n.push(r[a++]);return n},t.prototype.updateChildIndexes=function(e){if(!X.missing(e.childrenAfterSort))for(var o=e.childrenAfterSort,r=0;r<o.length;r++){var n=o[r],s=r===0,a=r===e.childrenAfterSort.length-1;n.setFirstChild(s),n.setLastChild(a),n.setChildIndex(r)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var o=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){var r="AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).";return X.doOnce(function(){return console.warn(r)},"sortService.hideOpenParentsWithTreeData"),!1}var n=function(s){o.pullDownGroupDataForHideOpenParents(s.childrenAfterSort,!1),s.childrenAfterSort.forEach(function(a){a.hasChildren()&&n(a)})};e&&e.executeFromRootNode(function(s){return n(s)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,o){var r=this;!this.gridOptionsWrapper.isGroupHideOpenParents()||X.missing(e)||e.forEach(function(n){var s=r.columnModel.getGroupDisplayColumns();s.forEach(function(a){var u=a.getColDef().showRowGroup;if(typeof u!="string"){console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}var p=u,g=r.columnModel.getPrimaryColumn(p),y=g===n.rowGroupColumn;if(!y)if(o)n.setGroupValue(a.getId(),void 0);else{var C=n.getFirstChildOfFirstChild(g);C&&n.setGroupValue(a.getId(),C.key)}})})},ti([m("columnModel")],t.prototype,"columnModel",void 0),ti([m("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),ti([k],t.prototype,"init",null),t=ti([Y("sortService")],t),t}(V),eD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ja=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},tD=function(i){eD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var o=this.filterManager.isAnyFilterPresent();this.filterNodes(o,e)},t.prototype.filterNodes=function(e,o){var r=this,n=function(p,g){p.hasChildren()?(e&&!g?p.childrenAfterFilter=p.childrenAfterGroup.filter(function(y){var C=y.childrenAfterFilter&&y.childrenAfterFilter.length>0,E=y.data&&r.filterManager.doesRowPassFilter({rowNode:y});return C||E}):p.childrenAfterFilter=p.childrenAfterGroup,r.setAllChildrenCount(p)):(p.childrenAfterFilter=p.childrenAfterGroup,p.setAllChildrenCount(null)),p.sibling&&(p.sibling.childrenAfterFilter=p.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(p,g){if(p.childrenAfterGroup)for(var y=0;y<p.childrenAfterGroup.length;y++){var C=p.childrenAfterGroup[y],E=g||r.filterManager.doesRowPassFilter({rowNode:C});C.childrenAfterGroup?s(p.childrenAfterGroup[y],E):n(C,E)}n(p,g)},a=function(p){return s(p,!1)};o.executeFromRootNode(a)}else{var u=function(p){return n(p,!1)};o.forEachChangedNodeDepthFirst(u,!0)}},t.prototype.setAllChildrenCountTreeData=function(e){var o=0;e.childrenAfterFilter.forEach(function(r){o++,o+=r.allChildrenCount}),e.setAllChildrenCount(o)},t.prototype.setAllChildrenCountGridGrouping=function(e){var o=0;e.childrenAfterFilter.forEach(function(r){r.group?o+=r.allChildrenCount:o++}),e.setAllChildrenCount(o)},t.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},ja([m("filterManager")],t.prototype,"filterManager",void 0),ja([k],t.prototype,"postConstruct",null),t=ja([Y("filterService")],t),t}(V),oD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),za=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rD=function(i){oD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(X.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var o=this.gridOptionsWrapper.getRowNodeIdFunc();if(!o||X.missing(o)){console.error("AG Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!");return}var r={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder(),a=s?null:{};return X.exists(e)&&e.forEach(function(u,p){var g=o(u),y=n[g];if(a&&(a[g]=p),y){var C=y.data!==u;C&&r.update.push(u),n[g]=void 0}else r.add.push(u)}),X.iterateObject(n,function(u,p){p&&r.remove.push(p.data)}),[r,a]},za([m("rowModel")],t.prototype,"rowModel",void 0),za([k],t.prototype,"postConstruct",null),t=za([Y("immutableService")],t),t}(V),nD={moduleName:l.ModuleNames.ClientSideRowModelModule,beans:[KP,qP,QP,ZP,tD,rD],rowModels:{clientSide:zP}},iD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),$a=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ch=function(i){iD(t,i);function t(e,o,r){var n=i.call(this,e)||this;return n.parentCache=o,n.params=r,n.startRow=e*r.blockSize,n.endRow=n.startRow+r.blockSize,n}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,o,r){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),X.exists(o)?e.setDataAndId(o,r.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,o=this.createLoadParams();if(X.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(o)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()};return e},t.prototype.forEachNode=function(e,o,r){var n=this;this.rowNodes.forEach(function(s,a){var u=n.startRow+a;u<r&&e(s,o.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,o){o===void 0&&(o=!1),o||(this.lastAccessed=this.params.lastAccessedSequence.next());var r=e-this.startRow;return this.rowNodes[r]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var o=this.startRow+e,r=new ae(this.beans);r.setRowHeight(this.params.rowHeight),r.uiLevel=0,r.setRowIndex(o),r.setRowTop(this.params.rowHeight*o),this.rowNodes.push(r)}},t.prototype.processServerResult=function(e){var o=this;this.rowNodes.forEach(function(n,s){var a=e.rowData?e.rowData[s]:void 0;o.setDataAndId(n,a,o.startRow+s)});var r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},$a([m("beans")],t.prototype,"beans",void 0),$a([k],t.prototype,"postConstruct",null),$a([Ne],t.prototype,"destroyRowNodes",null),t}(Yn),sD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),oi=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aD=function(i,t){return function(e,o){t(e,o,i)}},lD=function(i){sD(t,i);function t(e){var o=i.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,o){o===void 0&&(o=!1);var r=Math.floor(e/this.params.blockSize),n=this.blocks[r];if(!n){if(o)return;n=this.createBlock(r)}return n.getRow(e)},t.prototype.createBlock=function(e){var o=this.createBean(new Ch(e,this,this.params));return this.blocks[o.getId()]=o,this.blockCount++,this.purgeBlocksIfNeeded(o),this.params.rowNodeBlockLoader.addBlock(o),o},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(o){return o.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(o){return e.destroyBlock(o)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,o){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+o),this.checkRowCount(e,o),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,r=this.getBlocksInOrder().filter(function(p){return p!=e}),n=function(p,g){return g.getLastAccessed()-p.getLastAccessed()};r.sort(n);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,u=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(p,g){var y=p.getState()===Ch.STATE_WAITING_TO_LOAD&&g>=u,C=s?g>=a:!1;if(y||C){if(o.isBlockCurrentlyDisplayed(p)||o.isBlockFocused(p))return;o.removeBlockFromCache(p)}})},t.prototype.isBlockFocused=function(e){var o=this.focusService.getFocusCellToUseAfterRefresh();if(!o||o.rowPinned!=null)return!1;var r=e.getStartRow(),n=e.getEndRow(),s=o.rowIndex>=r&&o.rowIndex<n;return s},t.prototype.isBlockCurrentlyDisplayed=function(e){var o=e.getStartRow(),r=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(o,r)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,o){if(typeof o=="number"&&o>=0)this.rowCount=o,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var r=(e.getId()+1)*this.params.blockSize,n=r+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,o){this.rowCount=e,X.exists(o)&&(this.lastRowIndexKnown=o),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var o=this,r=new po;this.getBlocksInOrder().forEach(function(n){return n.forEachNode(e,r,o.rowCount)})},t.prototype.getBlocksInOrder=function(){var e=function(r,n){return r.getId()-n.getId()},o=X.getAllValuesInObject(this.blocks).sort(e);return o},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:_.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,o=[];this.getBlocksInOrder().forEach(function(r){var n=r.getId()*e.params.blockSize;n>=e.rowCount&&o.push(r)}),o.length>0&&o.forEach(function(r){return e.destroyBlock(r)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(o){return e.removeBlockFromCache(o)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,o){var r=this,n=[],s=-1,a=!1,u=new po;X.missing(e)&&(a=!0);var p=!1;this.getBlocksInOrder().forEach(function(y){if(!p){if(a&&s+1!==y.getId()){p=!0;return}s=y.getId(),y.forEachNode(function(C){var E=C===e||C===o;(a||E)&&n.push(C),E&&(a=!a)},u,r.rowCount)}});var g=p||a;return g?[]:n},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,oi([m("rowRenderer")],t.prototype,"rowRenderer",void 0),oi([m("focusService")],t.prototype,"focusService",void 0),oi([aD(0,xe("loggerFactory"))],t.prototype,"setBeans",null),oi([Ne],t.prototype,"destroyAllBlocks",null),t}(V),uD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),It=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pD=function(i){uD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,o,r,n){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsWrapper.getDefaultGroupOrderComparator()!=null){var e="AG Grid: defaultGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.";X.doOnce(function(){return console.warn(e)},"IRM.DefaultGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,_.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!X.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return D.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,o){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,o):[]},t.prototype.reset=function(){if(this.datasource){var e=X.exists(this.gridOptionsWrapper.getRowNodeIdFunc());e||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},t.prototype.createModelUpdatedEvent=function(){return{type:_.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:this.defaultIfInvalid(e,2),initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new po},this.infiniteCache=this.createBean(new lD(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,o){return e>0?e:o},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var o=void 0;return this.forEachNode(function(r){r.id===e&&(o=r)}),o},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var o=Math.floor(e/this.rowHeight),r=this.getRowCount()-1;return o>r?r:o}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var o=this.getRowNode(e.id);return!!o},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,o){this.infiniteCache&&this.infiniteCache.setRowCount(e,o)},It([m("filterManager")],t.prototype,"filterManager",void 0),It([m("sortController")],t.prototype,"sortController",void 0),It([m("selectionService")],t.prototype,"selectionService",void 0),It([m("gridApi")],t.prototype,"gridApi",void 0),It([m("columnApi")],t.prototype,"columnApi",void 0),It([m("rowRenderer")],t.prototype,"rowRenderer",void 0),It([m("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),It([k],t.prototype,"init",null),It([Ne],t.prototype,"destroyDatasource",null),t=It([Y("rowModel")],t),t}(V),cD={moduleName:l.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:pD}},wh=function(){function i(){}return i.prototype.setBeans=function(t){this.beans=t},i.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?t+"."+e:t},i.prototype.getMergedParamsAndData=function(t){var e=this.mergeDefaultParams(t),o=this.beans.gridSerializer.serialize(this.createSerializingSession(e),e);return{mergedParams:e,data:o}},i.prototype.mergeDefaultParams=function(t){var e=this.getDefaultExportParams(),o={};return X.assign(o,e),X.assign(o,t),o},i}(),_h=function(){function i(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,n=t.processCellCallback,s=t.processHeaderCallback,a=t.processGroupHeaderCallback,u=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsWrapper=r,this.processCellCallback=n,this.processHeaderCallback=s,this.processGroupHeaderCallback=a,this.processRowGroupCallback=u}return i.prototype.prepare=function(t){this.groupColumns=X.filter(t,function(e){return!!e.getColDef().showRowGroup})},i.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},i.prototype.extractRowCellValue=function(t,e,o,r,n){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?n.rowGroupIndex:0,a=n&&n.group&&(e===s&&this.groupColumns.indexOf(t)!==-1||e===0&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())),u;a?u=this.createValueForGroupNode(n):u=this.valueService.getValue(t,n);var p=this.processCell(o,n,t,u,this.processCellCallback,r);return p??""},i.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},i.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,e.push(t.key);return e.reverse().join(" -> ")},i.prototype.processCell=function(t,e,o,r,n,s){return n?n({accumulatedRowIndex:t,column:o,node:e,value:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:s}):r??""},i}(),Eh=function(){function i(){}return i.download=function(t,e){var o=document.defaultView||window;if(!o){console.warn("AG Grid: There is no `window` associated with the current `document`");return}if(o.navigator.msSaveOrOpenBlob)o.navigator.msSaveOrOpenBlob(e,t);else{var r=document.createElement("a"),n=o.URL.createObjectURL(e);r.setAttribute("href",n),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(r),o.setTimeout(function(){o.URL.revokeObjectURL(n)},0)}},i}(),dD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Rh=`\r
|
|
1495
|
+
`,hD=function(i){dD(t,i);function t(e){var o=i.call(this,e)||this;o.isFirstLine=!0,o.result="";var r=e.suppressQuotes,n=e.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return t.prototype.addCustomContent=function(e){var o=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Rh),this.result+=e):e.forEach(function(r){o.beginNewLine(),r.forEach(function(n,s){s!==0&&(o.result+=o.columnSeparator),o.result+=o.putInQuotes(n.data.value||""),n.mergeAcross&&o.appendEmptyCells(n.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,o,r){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var o=1;o<=e;o++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,o){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,o,r){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,o,o,D.EXPORT_TYPE_CSV,r))},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var o;typeof e=="string"?o=e:typeof e.toString=="function"?o=e.toString():(console.warn("unknown value type during csv conversion"),o="");var r=o.replace(/"/g,'""');return'"'+r+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=Rh),this.isFirstLine=!1},t}(_h),fD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),qo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Sh=function(i){fD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getDefaultExportParams=function(){return this.gridOptionsWrapper.getDefaultExportParams("csv")},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var o=this.getMergedParamsAndData(e),r=o.mergedParams,n=o.data,s=new Blob(["\uFEFF",n],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"});return Eh.download(this.getFileName(r.fileName),s),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getMergedParamsAndData(e).data},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var o=this,r=o.columnModel,n=o.valueService,s=o.gridOptionsWrapper,a=e,u=a.processCellCallback,p=a.processHeaderCallback,g=a.processGroupHeaderCallback,y=a.processRowGroupCallback,C=a.suppressQuotes,E=a.columnSeparator;return new hD({columnModel:r,valueService:n,gridOptionsWrapper:s,processCellCallback:u||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:g||void 0,processRowGroupCallback:y||void 0,suppressQuotes:C||!1,columnSeparator:E||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},qo([m("columnModel")],t.prototype,"columnModel",void 0),qo([m("valueService")],t.prototype,"valueService",void 0),qo([m("gridSerializer")],t.prototype,"gridSerializer",void 0),qo([m("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),qo([k],t.prototype,"postConstruct",null),t=qo([Y("csvCreator")],t),t}(wh),gD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Xo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i[i.HEADER_GROUPING=0]="HEADER_GROUPING",i[i.HEADER=1]="HEADER",i[i.BODY=2]="BODY"})(l.RowType||(l.RowType={}));var Oh=function(i){gD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.serialize=function(e,o){o===void 0&&(o={});var r=this.getColumnsToExport(o.allColumns,o.columnKeys),n=X.compose(this.prepareSession(r),this.prependContent(o),this.exportColumnGroups(o,r),this.exportHeaders(o,r),this.processPinnedTopRows(o,r),this.processRows(o,r),this.processPinnedBottomRows(o,r),this.appendContent(o));return n(e).parse()},t.prototype.processRow=function(e,o,r,n){var s=o.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsWrapper,u=a.getContext(),p=a.getApi(),g=a.getColumnApi(),y=a.isGroupRemoveSingleChildren(),C=a.isGroupHideOpenParents(),E=a.isGroupRemoveLowestSingleChildren(),S=this.columnModel.isPivotMode()?n.leafGroup:!n.group,b=o.skipGroups||o.skipRowGroups,F=E&&n.leafGroup,B=n.allChildrenCount===1&&(y||F);if(b&&o.skipGroups&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!S&&(o.skipRowGroups||B||C)||o.onlySelected&&!n.isSelected()||o.skipPinnedTop&&n.rowPinned==="top"||o.skipPinnedBottom&&n.rowPinned==="bottom")){var M=n.level===-1;if(!(M&&!n.leafGroup)){var L=s({node:n,api:p,context:u});if(!L){var j=e.onNewBodyRow();if(r.forEach(function(ue,te){j.onColumn(ue,te,n)}),o.getCustomContentBelowRow){var J=o.getCustomContentBelowRow({node:n,api:p,columnApi:g,context:u});J&&e.addCustomContent(J)}}}}},t.prototype.appendContent=function(e){return function(o){var r=e.customFooter||e.appendContent;return r&&(e.customFooter&&X.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),o.addCustomContent(r)),o}},t.prototype.prependContent=function(e){return function(o){var r=e.customHeader||e.prependContent;return r&&(e.customHeader&&X.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),o.addCustomContent(r)),o}},t.prototype.prepareSession=function(e){return function(o){return o.prepare(e),o}},t.prototype.exportColumnGroups=function(e,o){var r=this;return function(n){if(e.skipColumnGroupHeaders)e.columnGroups&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")},"gridSerializer-columnGroups");else{var s=new ss,a=r.displayedGroupCreator.createDisplayedGroups(o,r.columnModel.getGridBalancedTree(),s,null);r.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,o){return function(r){if(!e.skipHeader&&!e.skipColumnHeaders){var n=r.onNewHeaderRow();o.forEach(function(s,a){n.onColumn(s,a,void 0)})}else e.skipHeader&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");return r}},t.prototype.processPinnedTopRows=function(e,o){var r=this;return function(n){var s=r.processRow.bind(r,n,e,o);return r.pinnedRowModel.forEachPinnedTopRow(s),n}},t.prototype.processRows=function(e,o){var r=this;return function(n){var s=r.rowModel,a=s.getType(),u=a===D.ROW_MODEL_TYPE_CLIENT_SIDE,p=a===D.ROW_MODEL_TYPE_SERVER_SIDE,g=!u&&e.onlySelected,y=r.processRow.bind(r,n,e,o);if(r.columnModel.isPivotMode())u?s.forEachPivotNode(y):s.forEachNode(y);else if(e.onlySelectedAllPages||g){var C=r.selectionService.getSelectedNodes();C.forEach(y)}else u||p?s.forEachNodeAfterFilterAndSort(y):s.forEachNode(y);return n}},t.prototype.processPinnedBottomRows=function(e,o){var r=this;return function(n){var s=r.processRow.bind(r,n,e,o);return r.pinnedRowModel.forEachPinnedBottomRow(s),n}},t.prototype.getColumnsToExport=function(e,o){e===void 0&&(e=!1);var r=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);if(e&&!r){var n=this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([D.GROUP_AUTO_COLUMN_ID]):[];return n.concat(this.columnModel.getAllPrimaryColumns()||[])}return this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,o,r){var n=[];e.forEach(function(s){var a=s;a.getChildren&&a.getChildren().forEach(function(u){return n.push(u)})}),e.length>0&&e[0]instanceof Fe&&this.doAddHeaderHeader(o,e,r),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,o,r)},t.prototype.doAddHeaderHeader=function(e,o,r){var n=this,s=e.onNewHeaderGroupingRow(),a=0;o.forEach(function(u){var p=u,g;r?g=r({columnGroup:p,api:n.gridOptionsWrapper.getApi(),columnApi:n.gridOptionsWrapper.getColumnApi(),context:n.gridOptionsWrapper.getContext()}):g=n.columnModel.getDisplayNameForColumnGroup(p,"header"),s.onColumn(g||"",a++,p.getLeafColumns().length-1)})},Xo([m("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Xo([m("columnModel")],t.prototype,"columnModel",void 0),Xo([m("rowModel")],t.prototype,"rowModel",void 0),Xo([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Xo([m("selectionService")],t.prototype,"selectionService",void 0),t=Xo([Y("gridSerializer")],t),t}(V),Ph={moduleName:l.ModuleNames.CsvExportModule,beans:[Sh,Oh]},ri=`\r
|
|
1496
|
+
`,vD=function(){function i(){}return i.createHeader=function(t){t===void 0&&(t={});var e="<?",o="?>",r=["version"];t.version||(t.version="1.0"),t.encoding&&r.push("encoding"),t.standalone&&r.push("standalone");var n=r.map(function(s){return s+'="'+t[s]+'"'}).join(" ");return e+"xml "+n+" "+o},i.createXml=function(t,e){var o=this,r="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(s){Object.keys(s.map).forEach(function(a){r+=o.returnAttributeIfPopulated(s.prefix+a,s.map[a],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(s){r+=o.returnAttributeIfPopulated(s,t.properties.rawMap[s],e)}));var n="<"+t.name+r;return!t.children&&t.textNode==null?n+"/>"+ri:t.textNode!=null?n+">"+t.textNode+"</"+t.name+">"+ri:(n+=">"+ri,t.children&&t.children.forEach(function(s){n+=o.createXml(s,e)}),n+"</"+t.name+">"+ri)},i.returnAttributeIfPopulated=function(t,e,o){if(!e&&e!==""&&e!==0)return"";var r=e;return typeof e=="boolean"&&o&&(r=o(e))," "+t+'="'+r+'"'},i}(),yD=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),mD=function(){function i(){}return i.addFolders=function(t){t.forEach(this.addFolder.bind(this))},i.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},i.addFile=function(t,e,o){o===void 0&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},i.getContent=function(t){t===void 0&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},i.clearStream=function(){this.folders=[],this.files=[]},i.buildFileStream=function(t){t===void 0&&(t="");for(var e=this.folders.concat(this.files),o=e.length,r="",n=0,s=0,a=0,u=e;a<u.length;a++){var p=u[a],g=this.getHeader(p,n),y=g.fileHeader,C=g.folderHeader,E=g.content;n+=y.length+E.length,s+=C.length,t+=y+E,r+=C}var S=this.buildFolderEnd(o,s,n);return t+r+S},i.getHeader=function(t,e){var o=t.content,r=t.path,n=t.created,s=t.isBase64,a=X.utf8_encode,u=X.decToHex,p=a(r),g=p!==r,y=this.convertTime(n),C=this.convertDate(n),E="";if(g){var S=u(1,1)+u(this.getFromCrc32Table(p),4)+p;E="up"+u(S.length,2)+S}var b=o?this.getConvertedContent(o,s):{size:0,content:""},F=b.size,B=b.content,M=`
|
|
1497
|
+
\0`+(g?"\0\b":"\0\0")+"\0\0"+u(y,2)+u(C,2)+u(F?this.getFromCrc32Table(B):0,4)+u(F,4)+u(F,4)+u(p.length,2)+u(E.length,2),L="PK"+M+p+E,j="PK\0"+M+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+u(e,4)+p+E;return{fileHeader:L,folderHeader:j,content:B||""}},i.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},i.buildFolderEnd=function(t,e,o){var r=X.decToHex;return"PK\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(o,4)+"\0\0"},i.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},i.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=t.charCodeAt(r);for(var n=-1,s=0,a=0,u=0,r=0;r<e;r++)s=o[r],a=(n^s)&255,u=yD[a],n=n>>>8^u;return n^-1},i.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},i.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},i.folders=[],i.files=[],i}();oe.register(nD,!1),oe.register(cD,!1),oe.register(Ph,!1),l.AbstractHeaderCellCtrl=Rr,l.AgAbstractField=At,l.AgAngleSelect=oh,l.AgCheckbox=Wo,l.AgColorPicker=Zd,l.AgDialog=Fa,l.AgGroupComponent=Kd,l.AgInputNumberField=eh,l.AgInputRange=th,l.AgInputTextArea=Qd,l.AgInputTextField=Ia,l.AgPanel=Na,l.AgPromise=Ke,l.AgRadioButton=Ad,l.AgSelect=zs,l.AgSlider=Jd,l.AgStackComponentsRegistry=dp,l.AgToggleButton=rh,l.AlignedGridsService=Gd,l.AnimateShowChangeCellRenderer=cc,l.AnimateSlideCellRenderer=dc,l.AnimationFrameService=Bd,l.AutoScrollService=Qc,l.AutoWidthCalculator=gd,l.Autowired=m,l.BaseComponentWrapper=kP,l.BaseCreator=wh,l.BaseGridSerializingSession=_h,l.Bean=Y,l.BeanStub=V,l.Beans=sa,l.BodyDropPivotTarget=Vc,l.BodyDropTarget=Hc,l.CellComp=hh,l.CellCtrl=Yt,l.CellNavigationService=Od,l.CellPositionUtils=ih,l.ChangedPath=Tn,l.CheckboxSelectionComponent=ea,l.ColDefUtil=hs,l.Color=To,l.Column=fe,l.ColumnApi=Pc,l.ColumnFactory=tp,l.ColumnGroup=Fe,l.ColumnKeyCreator=re,l.ColumnModel=sp,l.ColumnUtils=up,l.Component=se,l.ComponentUtil=it,l.Constants=D,l.Context=qu,l.CssClassApplier=ha,l.CsvCreator=Sh,l.CsvExportModule=Ph,l.CtrlsService=ch,l.CustomTooltipFeature=Ws,l.DateFilter=Ys,l.DisplayedGroupCreator=pp,l.Downloader=Eh,l.DragAndDropService=ze,l.DragService=_d,l.Environment=Wd,l.EventService=Gt,l.Events=_,l.ExpressionService=ud,l.FilterManager=Yc,l.FloatingFilterMapper=Wc,l.FocusService=Uo,l.Grid=Ba,l.GridApi=ad,l.GridBodyComp=sd,l.GridBodyCtrl=od,l.GridComp=wd,l.GridCoreCreator=vh,l.GridCtrl=yd,l.GridHeaderComp=Kc,l.GridHeaderCtrl=Lc,l.GridOptionsWrapper=q,l.GridSerializer=Oh,l.GroupCellRenderer=ta,l.GroupCellRendererCtrl=gc,l.GroupInstanceIdCreator=ss,l.HeaderCellCtrl=Uc,l.HeaderFilterCellComp=bc,l.HeaderFilterCellCtrl=kc,l.HeaderGroupCellCtrl=jc,l.HeaderNavigationService=Ic,l.HeaderPositionUtils=lh,l.HeaderRowComp=Fc,l.HeaderRowContainerComp=Gn,l.HeaderRowContainerCtrl=$c,l.HeaderRowCtrl=Mn,l.HorizontalResizeService=vd,l.KeyCode=W,l.LargeTextCellEditor=ac,l.Logger=Hn,l.LoggerFactory=fd,l.ManagedFocusFeature=Vt,l.ModuleRegistry=oe,l.MouseEventService=Sd,l.MoveColumnFeature=Gc,l.NavigationService=kd,l.NumberFilter=Xs,l.NumberSequence=po,l.Optional=he,l.PaginationProxy=Id,l.PinnedRowModel=sh,l.PopupComponent=Mo,l.PopupEditorWrapper=dh,l.PopupSelectCellEditor=uc,l.PopupService=dd,l.PopupTextCellEditor=pc,l.PositionableFeature=Xd,l.PostConstruct=k,l.PreConstruct=ts,l.PreDestroy=Ne,l.PropertyKeys=St,l.ProvidedColumnGroup=Re,l.ProvidedFilter=vr,l.Qualifier=xe,l.QuerySelector=i_,l.RefSelector=x,l.ResizeObserverService=$d,l.RowContainerComp=fh,l.RowContainerCtrl=Vn,l.RowCtrl=qt,l.RowNode=ae,l.RowNodeBlock=Yn,l.RowNodeBlockLoader=uh,l.RowNodeSorter=ph,l.RowPositionUtils=nh,l.RowRenderer=Tc,l.ScalarFilter=je,l.ScrollVisibleService=bd,l.SelectCellEditor=Zs,l.SelectableService=jd,l.SelectionService=Oc,l.SetLeftFeature=In,l.SimpleFilter=Ue,l.SortController=Ed,l.StandardMenuFactory=gh,l.StylingService=Fd,l.TabGuardComp=_a,l.TabGuardCtrl=Cd,l.TabbedLayout=xP,l.TemplateService=cd,l.TextCellEditor=On,l.TextFilter=Sn,l.TextFloatingFilter=sc,l.Timer=t_,l.TouchListener=lt,l.UserComponentFactory=wc,l.UserComponentRegistry=yc,l.ValueCache=Md,l.ValueFormatterService=Dd,l.ValueService=qc,l.VanillaFrameworkOverrides=Td,l.VirtualList=WP,l.XmlFactory=vD,l.ZipContainer=mD,l._=X,l.defaultGroupComparator=BP,l.initialiseAgGridWithAngular1=FP,l.initialiseAgGridWithWebComponents=LP,l.simpleHttpRequest=VP,l.stringToArray=hp})(wt);var jt=globalThis&&globalThis.__assign||function(){return jt=Object.assign||function(l){for(var c,h=1,f=arguments.length;h<f;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(l[v]=c[v])}return l},jt.apply(this,arguments)},nm=function(){function l(){}return l.getComponentDefinition=function(c,h){var f;return typeof c=="string"?(f=this.searchForComponentInstance(h,c),f.template?f=jt({},d.defineComponent(f)):f={extends:d.defineComponent(f)}):f={extends:d.defineComponent(jt({},c))},f||console.error("Could not find component with name of "+c+". Is it in Vue.components?"),f.extends&&f.extends.setup&&(f.setup=f.extends.setup),f},l.createComponentParams=function(c,h){var f={params:Object.freeze(c),parent:h};return h.componentDependencies&&h.componentDependencies.forEach(function(v){return f[v]=h[v]}),f},l.createAndMountComponent=function(c,h,f){var v=l.getComponentDefinition(c,f);if(v){var w=l.createComponentParams(h,f),R=null,O=d.defineComponent(jt(jt({},v),{data:function(){return jt(jt({},w),v.data?v.data():{})},created:function(){R=this.$root,v.created&&v.created.bind(this)()}})),P=document.createElement("div"),T=d.createApp(O);return T.mount(P),{mountedComponent:T,componentInstance:R}}},l.searchForComponentInstance=function(c,h,f){f===void 0&&(f=10);for(var v=null,w=c.$parent,R=0;!v&&w&&w.$options&&++R<f;)v=w.$options.components[h],w=w.$parent;return v||(console.error("Could not find component with name of "+h+". Is it in Vue.components?"),null)},l}(),Iu=globalThis&&globalThis.__extends||function(){var l=function(c,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},l(c,h)};return function(c,h){l(c,h);function f(){this.constructor=c}c.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),im=globalThis&&globalThis.__decorate||function(l,c,h,f){var v=arguments.length,w=v<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,h):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(l,c,h,f);else for(var O=l.length-1;O>=0;O--)(R=l[O])&&(w=(v<3?R(w):v>3?R(c,h,w):R(c,h))||w);return v>3&&w&&Object.defineProperty(c,h,w),w},sm=function(l){Iu(c,l);function c(h){var f=l.call(this)||this;return f.parent=h,f}return c.prototype.createWrapper=function(h){var f=this,v=function(R){Iu(O,R);function O(){return R!==null&&R.apply(this,arguments)||this}return O.prototype.init=function(P){R.prototype.init.call(this,P)},O.prototype.hasMethod=function(P){return w.getFrameworkComponentInstance()[P]!=null},O.prototype.callMethod=function(P,T){var N=this.getFrameworkComponentInstance(),G=w.getFrameworkComponentInstance();return G[P].apply(N,T)},O.prototype.addMethod=function(P,T){w[P]=T},O.prototype.overrideProcessing=function(P){return f.parent.autoParamsRefresh&&P==="refresh"},O.prototype.processMethod=function(P,T){return P==="refresh"&&(this.getFrameworkComponentInstance().params=T[0]),this.hasMethod(P)?this.callMethod(P,T):P==="refresh"},O.prototype.createComponent=function(P){return f.createComponent(h,P)},O}(am),w=new v;return w},c.prototype.createComponent=function(h,f){return nm.createAndMountComponent(h,f,this.parent)},c.prototype.createMethodProxy=function(h,f,v){return function(){return h.overrideProcessing(f)?h.processMethod(f,arguments):h.hasMethod(f)?h.callMethod(f,arguments):(v&&console.warn("AG Grid: Framework component is missing the method "+f+"()"),null)}},c.prototype.destroy=function(){this.parent=null},c=im([wt.Bean("frameworkComponentWrapper")],c),c}(wt.BaseComponentWrapper),am=function(){function l(){}return l.prototype.getGui=function(){return this.componentInstance.$el},l.prototype.destroy=function(){this.mountedComponent.unmount()},l.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},l.prototype.init=function(c){var h=this.createComponent(c),f=h.mountedComponent,v=h.componentInstance;this.mountedComponent=f,this.componentInstance=v},l}(),Lu=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Mu=function(l){return"on"+l.charAt(0).toUpperCase()+l.substring(1,l.length)},lm=function(){var l={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},c=wt.ComponentUtil.EVENTS.map(function(v){return Mu(Lu(v))});c.reduce(function(v,w){return v[w]=void 0,v},l);var h={rowDataModel:function(v,w){this.processChanges("rowData",v,w)}};wt.ComponentUtil.ALL_PROPERTIES.forEach(function(v){l[v]={},h[v]=function(w,R){this.processChanges(v,w,R)}});var f={prop:"rowDataModel",event:"data-model-changed"};return[l,h,f]},Gu=function(){function l(){}return l.hasChildColumns=function(c){return c&&c.default&&c.default.length>0},l.mapChildColumnDefs=function(c){return c.default.map(function(h){return l.toColDef(h)})},l.toColDef=function(c){var h=l.createColDefFromGridColumn(c);return c.children&&c.children.length>0&&(h.children=l.getChildColDefs(c.children)),h},l.getChildColDefs=function(c){return c.map(function(h){return l.createColDefFromGridColumn(h)})},l.createColDefFromGridColumn=function(c){var h={};return l.assign(h,c.data.attrs),delete h.children,wt.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(f){var v=h;v[f]===""&&(v[f]=!0)}),h},l.assign=function(c,h){return[h].reduce(function(f,v){return Object.keys(v).forEach(function(w){f[w]=v[w]}),f},c)},l}(),um=globalThis&&globalThis.__extends||function(){var l=function(c,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},l(c,h)};return function(c,h){l(c,h);function f(){this.constructor=c}c.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),pm=globalThis&&globalThis.__decorate||function(l,c,h,f){var v=arguments.length,w=v<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,h):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(l,c,h,f);else for(var O=l.length-1;O>=0;O--)(R=l[O])&&(w=(v<3?R(w):v>3?R(c,h,w):R(c,h))||w);return v>3&&w&&Object.defineProperty(c,h,w),w},$i=lm(),cm=$i[0],dm=$i[1],hm=$i[2],fm=function(l){um(c,l);function c(){var f=l!==null&&l.apply(this,arguments)||this;return f.gridCreated=!1,f.isDestroyed=!1,f.gridReadyFired=!1,f.emitRowModel=null,f}h=c,c.prototype.render=function(){return d.h("div")},c.prototype.globalEventListener=function(f,v){this.isDestroyed||(f==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(f))},c.prototype.processChanges=function(f,v,w){if(this.gridCreated){if(this.skipChange(f,v,w))return;var R={};R[f]={currentValue:v,previousValue:w},wt.ComponentUtil.processOnChange(R,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},c.prototype.mounted=function(){var f=this;this.emitRowModel=this.debounce(function(){f.$emit(h.DATA_MODEL_ATTR_NAME,Object.freeze(f.getRowData()))},20);var v=new sm(this),w=xv(wt.ComponentUtil.copyAttributesToGridOptions(or(this.gridOptions),this));this.checkForBindingConflicts(),w.rowData=this.getRowDataBasedOnBindings(),Gu.hasChildColumns(this.$slots)&&(w.columnDefs=Gu.mapChildColumnDefs(this.$slots));var R={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:v},modules:this.modules};new wt.Grid(this.$el,w,R),this.gridCreated=!0},c.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},c.prototype.checkForBindingConflicts=function(){var f=this;(f.rowData||this.gridOptions.rowData)&&f.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},c.prototype.getRowData=function(){var f=[];return this.gridOptions.api.forEachNode(function(v){f.push(v.data)}),f},c.prototype.updateModelIfUsed=function(f){this.gridReadyFired&&this.$attrs[h.DATA_MODEL_ATTR_NAME]&&h.ROW_DATA_EVENTS.indexOf(f)!==-1&&this.emitRowModel&&this.emitRowModel()},c.prototype.getRowDataBasedOnBindings=function(){var f=this,v=f.rowDataModel;return v||(f.rowData?f.rowData:f.gridOptions.rowData)},c.prototype.skipChange=function(f,v,w){if(this.gridReadyFired&&f==="rowData"&&this.$attrs[h.DATA_MODEL_ATTR_NAME]){if(v===w)return!0;if(v&&w){var R=v,O=w;if(R.length===O.length){for(var P=0;P<R.length;P++)if(R[P]!==O[P])return!1;return!0}}}return!1},c.prototype.debounce=function(f,v){var w;return function(){var R=function(){f()};window.clearTimeout(w),w=window.setTimeout(R,v)}};var h;return c.VERSION="Vue 3+",c.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],c.DATA_MODEL_ATTR_NAME=Mu(Lu("data-model-changed")),c=h=pm([wt.Bean("agGridVue"),rm({props:cm,watch:dm,model:hm})],c),c}(Fu);const gm=rf(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:fm},Symbol.toStringTag,{value:"Module"})));(function(l){function c(h){for(var f in h)l.hasOwnProperty(f)||(l[f]=h[f])}c(gm)})(Du);const vm=d.defineComponent({props:{gridApi:{type:Object,default:{}},storageColumnsKey:{type:String,default:""},columnDefs:{type:Array,default:[]},columnUpdate:{type:Number,default:0}},setup(l){const c=d.ref(),h=d.reactive({show:!1,left:"",top:"",bottom:"auto",columns:[]});d.watch(()=>l.columnUpdate,()=>{h.columns=l.columnDefs.map(P=>({...P,show:!P.hide}))}),h.columns=l.columnDefs.map(P=>({...P,show:!P.hide}));function f(){h.columns.forEach(T=>{T.hide=!T.show}),w(h.columns);const P=h.columns.map(T=>({field:T.field,headerName:T.headerName,width:T.width,minWidth:T.minWidth,hide:T.hide}));localStorage.setItem(l.storageColumnsKey,JSON.stringify(P))}function v(){h.columns.forEach(P=>{P.rowGroup?(P.hide=!0,P.show=!1):(P.hide=!1,P.show=!0)}),w(h.columns),localStorage.removeItem(l.storageColumnsKey)}function w(P){l.gridApi.setColumnDefs(P),h.show=!1}function R(){h.show=!1}function O(){setTimeout(()=>{const P=document.querySelector(`.${l.storageColumnsKey} .ag-header`);P&&(P.oncontextmenu=T=>{h.left=T.pageX+"px",h.top=T.pageY+"px",setTimeout(()=>{h.show=!0,d.nextTick(()=>{const N=c.value.clientHeight,G=document.documentElement.clientHeight;N+20>G-T.pageY&&(h.top="auto",h.bottom="10px")})}),T.preventDefault()})},1e3),document.removeEventListener("click",R,!1),document.removeEventListener("contextmenu",R,!1),document.addEventListener("click",R,!1),document.addEventListener("contextmenu",R,!1)}return O(),d.onActivated(()=>{O()}),{elColumnCheckedPanel:c,...d.toRefs(h),confirm:f,reset:v}}}),iA="",ym=(l=>(d.pushScopeId("data-v-d092a466"),l=l(),d.popScopeId(),l))(()=>d.createElementVNode("p",{class:"header-checked-header"}," 自定义字段显示信息 ",-1)),mm={class:"header-checked-body"},Cm={class:"header-checked-footer"};function wm(l,c,h,f,v,w){const R=d.resolveComponent("el-checkbox"),O=d.resolveComponent("el-button");return d.withDirectives((d.openBlock(),d.createElementBlock("div",{ref:"elColumnCheckedPanel",style:d.normalizeStyle({left:l.left,top:l.top,bottom:l.bottom}),class:"header-checked",onClick:c[0]||(c[0]=d.withModifiers(()=>{},["stop"]))},[ym,d.createElementVNode("div",mm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.columns,(P,T)=>d.withDirectives((d.openBlock(),d.createBlock(R,{key:P.headerName+T,modelValue:P.show,"onUpdate:modelValue":N=>P.show=N,label:P.headerName},null,8,["modelValue","onUpdate:modelValue","label"])),[[d.vShow,P.headerName!==" "]])),128))]),d.createElementVNode("div",Cm,[d.createVNode(O,{type:"default",size:"small",onClick:l.reset,style:{"margin-right":"4px"}},{default:d.withCtx(()=>[d.createTextVNode("还原")]),_:1},8,["onClick"]),d.createVNode(O,{type:"primary",size:"small",onClick:l.confirm},{default:d.withCtx(()=>[d.createTextVNode("确定")]),_:1},8,["onClick"])])],4)),[[d.vShow,l.show]])}const _m=Pe(vm,[["render",wm],["__scopeId","data-v-d092a466"]]),Em=d.defineComponent({components:{AgGridVue:Du.AgGridVue,ColumnCheck:_m},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(l,c){var Be;const h=eo();let f=null;const v=l.componentOption;let w=-1,R={};const O=d.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(Be=v.configFlag)==null?void 0:Be.headerClass},columnDefs:v.columns,configFlag:{rowHeight:30,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:v.pageInfo,rowData:d.computed(()=>(v.data.result.length&&setTimeout(()=>{O.showTable=!0},300),v.data.result)),totalNum:d.computed(()=>Number(v.data.totalNum)),storageColumnsKey:d.computed(()=>(v.status||"")+(v.key||"")),gridApi:null,columnUpdate:0});v.configFlag&&Object.keys(v.configFlag).forEach(z=>{O.configFlag[z]=v.configFlag[z]}),O.configFlag.isRowClick&&d.watch(()=>l.tableComp.data.result,()=>{w=-1}),O.configFlag.checkboxSelection&&(O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...v.columns]),O.configFlag.total&&d.watch(()=>l.tableComp.data.result,()=>{P()});function P(){const z=[];let A={};O.columnDefs.map((ie,$)=>{A.type="total",$===0?A[ie.field]="总计":ie.showTotal?A[ie.field]=T(l.tableComp.data.result,ie.field):A[ie.field]=""}),z.push(A),f.setPinnedBottomRowData(z)}function T(z,A){let ie=0;for(let $=0;$<z.length;$++)ie=Gy(ie,parseFloat(z[$][A]?z[$][A]:0));return ie}d.watch(()=>v.columns,()=>{const z=v.columns.filter(A=>A.rowGroup?A:(A.hide=A.hide?A.hide:!1,!A.hide));O.configFlag.checkboxSelection?O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...z]:O.columnDefs=z,N(),O.columnUpdate=Date.now(),setTimeout(()=>{O.configFlag.sizeColumnsToFit&&f.sizeColumnsToFit()})});function N(){let z=localStorage.getItem(O.storageColumnsKey);z&&(JSON.parse(z).forEach((ie,$)=>{for(let Mt=0,Ro=O.columnDefs.length;Mt<Ro;Mt++){const io=O.columnDefs[Mt];if(io.headerName===ie.headerName){io.index=$,io.width=ie.width,io.minWidth=ie.minWidth,io.hide=ie.hide||!1;break}}}),O.columnDefs.sort((ie,$)=>ie.index-$.index))}N();function G(z){let A=z.api.getColumnDefs();A=A.map((ie,$)=>(ie.hide&&(O.columnDefs[$].hide=!0),{field:ie.field,headerName:ie.headerName,width:ie.width,minWidth:ie.minWidth,hide:ie.hide})),localStorage.setItem(O.storageColumnsKey,JSON.stringify(A)),O.columnUpdate=Date.now()}function H(z){const A=l.getRowStyle?l.getRowStyle(z):{},ie=z.api.getRowNode(z.rowIndex);return typeof O.configFlag.checkboxSelection=="function"&&(ie.selectable=O.configFlag.checkboxSelection(z)),z.node.isClicked===void 0?A:z.node.isClicked?{"background-color":"#ffe48d",...A}:{"background-color":"",...A}}function U(z){c.emit("onRowSelected",z)}function Z(){c.emit("onViewportChanged")}function re(z){f=O.gridApi=z.api,O.configFlag.sizeColumnsToFit&&z.api.sizeColumnsToFit(),c.emit("onGridReady",z.api)}function K(z){var A=z.api.getSelectedRows();v.onSelectionChanged&&v.onSelectionChanged(A)}function me(z){if(!z.rowPinned&&w!==z.rowIndex&&O.configFlag.isRowClick){if(w>-1){const ie=z.api.getRowNode(w);ie.isClicked=!1,ie.setData(R)}const A=z.api.getRowNode(z.rowIndex);A.isClicked=!0,A.setData(z.data),v.onRowClickedFn&&v.onRowClickedFn(z,v),w=z.rowIndex,R=z.data}}function De(z){O.configFlag.onCellClicked&&O.configFlag.onCellClicked({field:z.colDef.field,data:z.data,rowIndex:z.rowIndex,tableComp:v},z)}function le(z){v.pageInfo.pageSize=z,h.dispatch("tableQuery",{tableComp:v})}function ce(z){v.pageInfo.currentPage=z,v.pageInfo.pageNum=z,h.dispatch("tableQuery",{tableComp:v})}return{...d.toRefs(O),onGridReady:re,dragStopped:G,sizeChange:le,onSelectionChanged:K,currentChange:ce,viewportChanged:Z,onRowSelected:U,onRowClicked:me,onCellClicked:De,getRowStyle:H}}}),Rm={style:{display:"flex","justify-content":"end"}};function Sm(l,c,h,f,v,w){const R=d.resolveComponent("ag-grid-vue"),O=d.resolveComponent("el-pagination"),P=d.resolveComponent("ColumnCheck");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(R,{class:d.normalizeClass(["ag-theme-alpine",[l.storageColumnsKey]]),style:d.normalizeStyle({opacity:l.showTable?1:0}),headerHeight:"22",rowHeight:l.configFlag.rowHeight,columnDefs:l.columnDefs,defaultColDef:l.defaultColDef,rowData:l.rowData,rowSelection:"multiple",rowMultiSelectWithClick:l.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:l.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(l.configFlag.suppressRowClickSelection||!l.configFlag.suppressRowClickSelection&&l.configFlag.suppressRowClickSelection!==!1),onGridReady:l.onGridReady,onSelectionChanged:l.onSelectionChanged,getRowStyle:l.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:l.configFlag.groupSelectsChildren,onViewportChanged:l.viewportChanged,onRowSelected:l.onRowSelected,onRowClicked:l.onRowClicked,onDragStopped:l.dragStopped,onCellClicked:l.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),d.renderSlot(l.$slots,l.configFlag.slotName),d.createElementVNode("div",Rm,[l.pageInfo?(d.openBlock(),d.createBlock(O,{key:0,style:{"margin-top":"5px"},total:l.totalNum,pageNum:l.pageInfo.currentPage,pageSize:l.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:l.sizeChange,onCurrentChange:l.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):d.createCommentVNode("",!0)]),d.createVNode(P,{gridApi:l.gridApi,storageColumnsKey:l.storageColumnsKey,columnDefs:l.columnDefs,columnUpdate:l.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const Om=Pe(Em,[["render",Sm]]),Pm=d.defineComponent({name:"CardText",components:{},props:{componentOption:{type:Array}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),aA="",Dm={class:"cardTextRow"},Am={class:"cardTextStyle",style:{"text-align":"center"}},Tm={key:0};function bm(l,c,h,f,v,w){const R=d.resolveComponent("el-button"),O=d.resolveComponent("el-card");return d.openBlock(),d.createElementBlock("div",Dm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(P,T)=>(d.openBlock(),d.createBlock(O,{shadow:"hover",style:{width:"200px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(N,G)=>(d.openBlock(),d.createElementBlock("div",Am,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(N.valuekey,(H,U)=>(d.openBlock(),d.createElementBlock("span",null,[H.type=="text"?(d.openBlock(),d.createElementBlock("span",Tm,d.toDisplayString(P[H.key]),1)):d.createCommentVNode("",!0),H.type=="btn"?(d.openBlock(),d.createBlock(R,{key:1,size:"small",style:d.normalizeStyle(H.style),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(H.key),1)]),_:2},1032,["style"])):d.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])}const Nm=Pe(Pm,[["render",bm],["__scopeId","data-v-26a53675"]]),Fm=d.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Object}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Im=["src"];function Lm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",{style:d.normalizeStyle(l.componentOption.style)},[d.createElementVNode("img",{style:{width:"100%",height:"100%"},src:l.componentOption.value[0],alt:""},null,8,Im)],4)}const Mm=Pe(Fm,[["render",Lm]]),Gm=d.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Array}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),xm=["src"];function Vm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,R=>(d.openBlock(),d.createElementBlock("img",{style:d.normalizeStyle(l.componentOption.style||"width: 80px; height: 80px; margin-right: 10px"),src:R,alt:""},null,12,xm))),256))])}const Hm=Pe(Gm,[["render",Vm]]),Wm=d.defineComponent({name:"TagArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Bm={class:"container"},km={key:1},Um={key:2},jm={class:"componentOptionTextStyle",style:{"text-align":"center"}},zm={key:0},$m={key:1};function Km(l,c,h,f,v,w){const R=d.resolveComponent("el-tag");return d.openBlock(),d.createElementBlock("div",Bm,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),l.componentOption.multipleValues?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("span",km,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,O=>(d.openBlock(),d.createBlock(R,{style:{"margin-right":"5px"}},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(O),1)]),_:2},1024))),256))])),l.componentOption.multipleValues?(d.openBlock(),d.createElementBlock("span",Um,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(O,P)=>(d.openBlock(),d.createBlock(R,{style:{"margin-right":"5px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(T,N)=>(d.openBlock(),d.createElementBlock("span",jm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(T.valuekey,(G,H)=>(d.openBlock(),d.createElementBlock("span",null,[G.type=="text"?(d.openBlock(),d.createElementBlock("span",zm,d.toDisplayString(O[G.key]),1)):d.createCommentVNode("",!0),G.type=="array"?(d.openBlock(),d.createElementBlock("span",$m,d.toDisplayString(O[G.key])+" ",1)):d.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])):d.createCommentVNode("",!0)])}const Ym=Pe(Wm,[["render",Km]]),qm=d.defineComponent({name:"tag",props:{componentOption:{type:Object}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}});function Xm(l,c,h,f,v,w){const R=d.resolveComponent("el-tag");return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),d.createVNode(R,null,{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(l.componentOption.value),1)]),_:1})])}const Qm=Pe(qm,[["render",Xm]]),lA="",Jm=d.defineComponent({name:"text",props:{componentOption:{type:Object}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),uA="";function Zm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(l.componentOption.value),1)])}const eC=Pe(Jm,[["render",Zm],["__scopeId","data-v-b6dacdbb"]]),tC=d.defineComponent({name:"TextArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),oC={class:"container"},rC={key:1},nC={style:{"margin-right":"5px"}},iC={key:2},sC={style:{"margin-right":"5px"}},aC={class:"componentOptionTextStyle",style:{"text-align":"center"}},lC={key:0};function uC(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",oC,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),l.componentOption.multipleValues?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("span",rC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,R=>(d.openBlock(),d.createElementBlock("span",nC,d.toDisplayString(R),1))),256))])),l.componentOption.multipleValues?(d.openBlock(),d.createElementBlock("span",iC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(R,O)=>(d.openBlock(),d.createElementBlock("span",sC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(P,T)=>(d.openBlock(),d.createElementBlock("span",aC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(P.valuekey,(N,G)=>(d.openBlock(),d.createElementBlock("span",null,[N.type=="text"?(d.openBlock(),d.createElementBlock("span",lC,d.toDisplayString(R[N.key]),1)):d.createCommentVNode("",!0)]))),256))]))),256))]))),256))])):d.createCommentVNode("",!0)])}const pC=Pe(tC,[["render",uC]]),cC=d.defineComponent({props:{componentOption:{type:Object},pageKey:{type:String,required:!0},configOption:{type:Array},data:{type:Object,default:{}}},setup(l,c){console.log(1111111111,l.componentOption.key.value);let h=d.ref();const f=eo(),v=d.reactive({data:{},formGroup:[],buttonGroup:[],formData:{},dialog:!0});function w(){v.dialog=!0}function R(){return!1}function O(){h.value.formRef.validate(P=>{if(P){if(l.popupData.data.submitBefore&&l.popupData.data.submitBefore()===!1)return;f.commit("setLoading",!0);const T=v.data.params(l.selectedRows,v.formData);let N=v.data.method=="GET"?"params":"data";nr({url:f.state.baseUrl+v.data.url,[N]:T||{},method:v.data.method||"POST"}).then(G=>{Lt.success("操作成功"),c.emit("onSuccess",G)}).catch(G=>{console.log(G)}).finally(()=>{f.commit("setLoading",!1)})}})}return{...d.toRefs(v),formRef:h,store:f,showDialog:w,submit:O,closeDialog:R}}});function dC(l,c,h,f,v,w){const R=d.resolveComponent("el-dialog");return d.openBlock(),d.createBlock(R,{modelValue:l.dialog,"onUpdate:modelValue":c[0]||(c[0]=O=>l.dialog=O),title:l.componentOption.label,width:l.componentOption.width||30,"before-close":l.handleClose,top:l.componentOption.top||"15vh",modal:l.componentOption.modal||!0,"show-close":l.componentOption.showClose||!0,"close-on-press-escape":l.componentOption.escape||!0,"close-on-click-modal":l.componentOption.clickModal||!0,center:l.componentOption.center||!1},{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{componentOption:l.componentOption})]),_:3},8,["modelValue","title","width","before-close","top","modal","show-close","close-on-press-escape","close-on-click-modal","center"])}const hC=Pe(cC,[["render",dC]]),fC=d.defineComponent({name:"RowItem",components:{Card:Th,Form:My,ButtonGroup:ky,AgGridTable:Om,CardText:Nm,ImageOne:Mm,ImageList:Hm,TagArr:Ym,Text:eC,Tag:Qm,TextArr:pC,Dialog:hC},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}}});function gC(l,c,h,f,v,w){const R=d.resolveComponent("RowItem",!0),O=d.resolveComponent("el-col"),P=d.resolveComponent("el-row");return d.openBlock(),d.createBlock(P,null,{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.configOption,(T,N)=>(d.openBlock(),d.createBlock(O,{style:d.normalizeStyle(T.style||""),class:d.normalizeClass(T.class||""),span:T.span||24,offset:T.offset||0,key:N},{default:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(T.type),{pageKey:l.pageKey,componentOption:T},{default:d.withCtx(()=>[T.children&&T.children.length?(d.openBlock(),d.createBlock(R,{key:0,pageKey:l.pageKey,configOption:T.children},null,8,["pageKey","configOption"])):d.createCommentVNode("",!0)]),_:2},1032,["pageKey","componentOption"]))]),_:2},1032,["style","class","span","offset"]))),128))]),_:1})}const vC=Pe(fC,[["render",gC]]),yC=d.defineComponent({name:"Page",props:{pageKey:{type:String,required:!0},configOption:{type:Array,defaule:[],required:!0},data:{type:Object,default:{}}},components:{RowItem:vC},setup({configOption:l,data:c}){c&&h(l,c);function h(v,w){v.forEach(R=>{var O;if(R.children)h(R.children,w);else if(R.relation)if(Array.isArray(R.relation))R.value="",R.relation.forEach(P=>{const T=P.split(".");R.value+=" "+f(T,w)});else{const P=(O=R.relation)==null?void 0:O.split(".");R.value=f(P,w)}})}function f(v,w){if(v.length===1)return w;if(v.length===2)return w[v[1]];if(v.length===3)return w[v[1]][v[2]];if(v.length===4)return w[v[1]][v[2]][v[3]];if(v.length===5)return w[v[1]][v[2]][v[3]][v[4]]}return{}}}),pA="";function mC(l,c,h,f,v,w){const R=d.resolveComponent("RowItem");return d.openBlock(),d.createBlock(R,{pageKey:l.pageKey,configOption:l.configOption},null,8,["pageKey","configOption"])}const CC=Pe(yC,[["render",mC],["__scopeId","data-v-6a413dd6"]]);function wC(l,c){l.component("DfsPageConfig",CC)}return wC});
|