@adaptabletools/adaptable 11.1.6 → 11.1.7
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/bundle.cjs.js +2 -2
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/bundle.cjs.js
CHANGED
|
@@ -285,7 +285,7 @@ The error may be correlated with this previous error:
|
|
|
285
285
|
Error: ${n}`),[]}}getQueryableColumnIds(){let t=this.getExpressionOptions().queryableColumns;if(!!t){if(typeof t=="function")return t();{let n=t;if(n&&De.IsNotNullOrEmpty(n))return n}}}getModuleExpressionFunctionMap(){return this.getExpressionOptions().moduleExpressionFunctions}getAdaptableQueryExpression(t){var n,r,o,a;return(a=(o=(r=(n=t.BooleanExpression)!=null?n:t.ScalarExpression)!=null?r:t.ObservableExpression)!=null?o:t.AggregatedBooleanExpression)!=null?a:t.AggregatedScalarExpression}};s();var vM=class extends je{getFlashingCellState(){return this.getAdaptableState().FlashingCell}mergeFlashingCellDefinitionWithDefaults(t){let n=this.adaptable.adaptableOptions.flashingCellOptions;return n&&(!t.DownChangeStyle&&n.defaultDownChangeStyle&&(t.DownChangeStyle=n.defaultDownChangeStyle),!t.UpChangeStyle&&n.defaultUpChangeStyle&&(t.UpChangeStyle=n.defaultUpChangeStyle),!t.NeutralChangeStyle&&n.defaultNeutralChangeStyle&&(t.NeutralChangeStyle=n.defaultNeutralChangeStyle),!t.FlashDuration&&n.defaultFlashDuration&&(t.FlashDuration=n.defaultFlashDuration),!t.FlashTarget&&n.defaultFlashTarget&&(t.FlashTarget=n.defaultFlashTarget)),t}getFlashingCellDefinitions(){return this.getFlashingCellState().FlashingCellDefinitions.map(n=>this.mergeFlashingCellDefinitionWithDefaults(n))}getFlashingCellDefinitionById(t){var n;return(n=this.getFlashingCellDefinitions())==null?void 0:n.find(r=>(r==null?void 0:r.Uuid)===t)}getActiveFlashingCellDefinitions(){return this.getFlashingCellDefinitions().filter(t=>!t.IsSuspended)}getFlashingCellFlashTarget(t){var n;return(n=t.FlashTarget)!=null?n:"cell"}showFlashingCell(t){this.addUidToAdaptableObject(t);let n={adaptableApi:this.adaptable.api,flashingCell:t};if(this.adaptable.api.eventApi.emitSync("FlashingCellDisplayed",n).reduce((a,i)=>a&&i!==!1,!0)){this.dispatchAction(Xj(t));let{FlashDuration:a}=t.flashingCellDefinition;a&&a!=="always"&&setTimeout(()=>{this.dispatchAction(Tb(t))},a)}}addFlashingCellDefinition(t){return this.dispatchAction(jp(t)),this.getFlashingCellDefinitionById(t.Uuid)}setFlashingCellDefinitions(t){this.dispatchAction(Nne(t))}editFlashingCellDefinition(t){return this.dispatchAction(Gf(t)),this.getFlashingCellDefinitionById(t.Uuid)}suspendFlashingCellDefinition(t){return this.dispatchAction(mE(t)),this.getFlashingCellDefinitionById(t.Uuid)}unSuspendFlashingCellDefinition(t){return this.dispatchAction(fE(t)),this.getFlashingCellDefinitionById(t.Uuid)}addFlashingCellDefinitions(t){return t.forEach(n=>{this.addFlashingCellDefinition(n)}),t==null?void 0:t.map(n=>this.getFlashingCellDefinitionById(n==null?void 0:n.Uuid))}editFlashingCellDefinitions(t){return t.forEach(n=>{this.editFlashingCellDefinition(n)}),t==null?void 0:t.map(n=>this.getFlashingCellDefinitionById(n==null?void 0:n.Uuid))}getFlashingCellPredicateDefs(){return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope("flashingcell")}getFlashingCellPredicateDefsForScope(t){return this.getFlashingCellPredicateDefs().filter(n=>this.adaptable.api.scopeApi.isScopeInScope(t,n.columnScope))}};s();var AM=class extends je{isChartingEnabled(){return this.adaptable.canGenerateCharts()}};s();var xM=class extends je{showSettingsPanel(t){let n=this.adaptable.ModuleService.getModuleInfoByModule(t);if(!n){Bt(`${t} module does not exist`);return}this.dispatchAction(Rn(t,n.Popup))}showCustomSettingsPanel(t){this.dispatchAction(Rn(null,t))}};var RM=class{constructor(t){this.adaptable=t;this.adaptable=t,this.applicationApi=new bM(t),this.alertApi=new HR(t),this.flashingCellApi=new vM(t),this.predicateApi=new UR(t),this.pluginsApi=new WR(t),this.bulkUpdateApi=new zR(t),this.calculatedColumnApi=new jR(t),this.cellSummaryApi=new YR(t),this.columnApi=new gM(t),this.conditionalStyleApi=new rE(t),this.configApi=new dF(t),this.customSortApi=new pF(t),this.dashboardApi=new cF(t),this.dataSourceApi=new fF(t),this.eventApi=new hF(t),this.exportApi=new gF(t),this.formatColumnApi=new bF(t),this.freeTextColumnApi=new CF(t),this.gridApi=new yF(t),this.layoutApi=new nM(t),this.plusMinusApi=new rM(t),this.quickSearchApi=new oM(t),this.scheduleApi=new mM(t),this.shortcutApi=new aM(t),this.smartEditApi=new iM(t),this.filterApi=new lM(t),this.systemStatusApi=new sM(t),this.settingsPanelApi=new xM(t),this.themeApi=new uM(t),this.userInterfaceApi=new dM(t),this.queryApi=new fM(t),this.queryLanguageApi=new SM(t),this.toolPanelApi=new mF(t),this.teamSharingApi=new hM(t),this.scopeApi=new CM(t),this.dataChangeHistoryApi=new yM(t),this.chartingApi=new AM(t),this.internalApi=new cM(t)}destroy(t){this.adaptable.destroy(t)}};s();var AW,oAe=()=>{let e=typeof globalThis!="undefined"?globalThis:window,t=e?e.document:null;if(AW!=null)return AW;let n;if(t){let r=t.createElement("div"),o=r.style;o.position="absolute",o.boxSizing="content-box",o.width="200px",o.height="200px",o.top="-99999px",o.overflow="scroll",o.MsOverflowStyle="scrollbar",t.body.appendChild(r),n=r.offsetWidth-r.clientWidth,t.body.removeChild(r)}else n=0;return AW=n};s();s();s();var ayt=(e,t)=>lyt(e.revision,t.revision),Oc=class{constructor(t){this.map=new Map;this.length=0;this.revision=0;this.visit=t=>{this.map.forEach((n,r)=>this.visitKey(r,this.map,[],t))};this.visitDepthFirst=t=>{this.visitWithNext([],t)};this.visitWithNext=(t,n,r=this.map)=>{if(!r)return;let o=0;r.forEach((a,i)=>{let l=r.get(i);if(!l)return;let{map:u}=l,d=[...t,i],c=u?()=>this.visitWithNext(d,n,u):void 0;l.hasOwnProperty("value")?(n(l.value,d,o,c),o++):c==null||c()})};t&&t.forEach(n=>{let[r,o]=n;this.set(r,o)})}static clone(t){let n=new Oc;return t.visit((r,o)=>{n.set(o,r.value)}),n}set(t,n){let r=this.map;if(!t.length)throw"Cannot set given keys - please provide a non-empty keys array.";for(let o=0,a=t.length;o<a;o++){let i=t[o];if(o===a-1){let u=r.has(i)?r.get(i):{};u.revision=this.revision++,u.value=n,r.set(i,u),this.length++}else{let u=r.has(i)?r.get(i):{};u.map||(u.map=new Map,r.set(i,u)),r=u.map}}return this}get(t){var r;let n=this.map;if(!t.length)throw"Cannot get given keys - please provide a non-empty keys array.";for(let o=0,a=t.length;o<a;o++){let i=t[o];if(o===a-1)return(r=n.get(i))==null?void 0:r.value;{let u=n.get(i);if(!u||!u.map)return;n=u.map}}}get size(){return this.length}clear(){let t=n=>{n.forEach((r,o)=>{let{map:a}=r;a&&t(a)}),n.clear()};t(this.map),this.length=0,this.revision=0}delete(t){t=[...t];let n=this.map;if(!t.length)throw"Cannot delete given keys - please provide a non-empty keys array.";let r=[n],o=!1;for(let a=0,i=t.length;a<i;a++){let l=t[a];if(a===i-1){let d=n.get(l);d&&(d.hasOwnProperty("value")&&(delete d.value,delete d.revision,o=!0,this.length--),d.map&&d.map.size===0&&delete d.map,d.map||n.delete(l));break}else{let d=n.get(l);if(!d||!d.map){o=!1;break}n=d.map,r.push(n)}}for(;r.length;){let a=r.pop(),i=t.pop();if(i&&(a==null?void 0:a.size)===0){let l=r[r.length-1],u=l==null?void 0:l.get(i);u&&(delete u.map,u.hasOwnProperty("value")||l.delete(i))}}return o}has(t){let n=this.map;if(!t.length)throw"Cannot find existing given keys - please provide a non-empty keys array.";for(let r=0,o=t.length;r<o;r++){let a=t[r];if(r===o-1){let l=n.get(a);return!!l&&l.hasOwnProperty("value")}else{let l=n.get(a);if(!l||!l.map)return!1;n=l.map}}return!1}visitKey(t,n,r,o){let a=n.get(t);if(!a)return;let{map:i}=a,l=[...r,t],u=iyt(()=>{i&&i.forEach((d,c)=>{this.visitKey(c,i,l,o)})});a.hasOwnProperty("value")&&o(a,l,u),u()}getArray(t){let n=[];return this.visit((r,o)=>{n.push(t(R(g({},r),{keys:o})))}),n}values(){return this.sortedIterator(t=>t.value)}keys(){return this.sortedIterator(n=>n.keys)}entries(){return this.sortedIterator(t=>[t.keys,t.value])}topDownEntries(){return this.getArray(t=>[t.keys,t.value])}topDownKeys(){return this.getArray(t=>t.keys)}topDownValues(){return this.getArray(t=>t.value)}sortedIterator(t){let n=[];this.visit((o,a)=>{n.push(R(g({},o),{keys:a}))}),n.sort(ayt);function*r(){for(let o=0,a=n.length;o<a;o++)yield t(n[o])}return r()}};function iyt(e){let t=!1,n=null;return()=>(t||(t=!0,n=e()),n)}var lyt=(e,t)=>e-t;function aAe(e){return e}function iAe(e,t){let{groupBy:n=[],defaultToKey:r=aAe,reducers:o}=e,a=n.length,i=new Oc,l=[],u=sAe(o),d=g({},u);for(let m=0,f=t.length;m<f;m++){let h=t[m];for(let b=0;b<a;b++){let{field:C,toKey:y}=n[b],v=(y||r)(h[C],h);if(l.push(v),!i.has(l)){let P={items:[],reducerResults:g({},u)};i.set(l,P)}let{items:S,reducerResults:I}=i.get(l);S.push(h),o&&EM(h,o,I)}o&&EM(h,o,d),l.length=0}return o&&i.visitDepthFirst((m,f,h,b)=>{IM(o,m.reducerResults,m.items),b==null||b()}),o&&IM(o,d,t),{deepMap:i,aggregateParams:e,initialData:t,reducerResults:d}}function lAe(e,t){let{groupBy:n=[],defaultToKey:r=aAe,reducers:o}=e,a=n.length,i=new Oc,l=[],u=sAe(o),d=g({},u);for(let m=0,f=t.length;m<f;m++){let h=t[m];for(let b=0;b<a;b++){let{field:C,toKey:y}=n[b],v=(y||r)(h[C],h);if(l.push(v),!i.has(l)){let P={items:[],reducerResults:g({},u)};i.set(l,P)}let{items:S,reducerResults:I}=i.get(l);S.push(h),o&&EM(h,o,I)}o&&EM(h,o,d),u=g({},i.get(l).reducerResults),l.length=0}return o&&i.visitDepthFirst((m,f,h,b)=>{IM(o,m.reducerResults,m.items),b==null||b()}),o&&IM(o,d,t),{deepMap:i,aggregateParams:e,initialData:t,reducerResults:d}}function sAe(e){if(!e||!Object.keys(e).length)return{};let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n].initialValue);return t}function EM(e,t,n){var r,o;if(!(!t||!Object.keys(t).length)){for(let a in t)if(t.hasOwnProperty(a)){let i=t[a];if(typeof i.reducer!="function")continue;let l=n[a],u=i.field?e[i.field]:(o=(r=i.getter)==null?void 0:r.call(i,e))!=null?o:null;n[a]=i.reducer(l,u,e)}}}function IM(e,t,n){if(e){for(let r in e)if(e.hasOwnProperty(r)){let o=e[r];o.done&&(t[r]=o.done(t[r],n))}}return t}var PM=class{constructor(t){this.adaptableApi=t;this.aggregatedScalarCalculatedColumnsMap=new Map;this.adaptableApi=t,this.adaptableApi.internalApi.getDataService().on("CellDataChanged",n=>{if(n.trigger==="aggChange")return;let r=[];this.aggregatedScalarCalculatedColumnsMap.forEach(o=>{o.getColumnDependencies().includes(n.column.columnId)&&(o.refreshAggregatedColumnValue(),r.push(o.getCalculatedColumnId()))}),r.length&&this.adaptableApi.gridApi.refreshCells(null,r)})}getCalculatedColumnDataType(t){try{if(t.AggregatedScalarExpression)return"Number";let n=this.adaptableApi.gridApi.getFirstRowNode(),r=this.adaptableApi.internalApi.getQueryLanguageService().evaluateScalarExpression(t.ScalarExpression,Or,n);if(r instanceof Date)return"Date";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String";if(typeof r=="number")return"Number"}catch(n){return nt(`Invalid CalculatedColumn expression ${this.adaptableApi.queryLanguageApi.getAdaptableQueryExpression(t)} :: ${n}`),"Number"}}isCalculatedColumnQueryValid(t){if(t.ScalarExpression)try{let n=this.adaptableApi.gridApi.getFirstRowNode();return this.adaptableApi.internalApi.getQueryLanguageService().evaluateScalarExpression(t.ScalarExpression,Or,n),!0}catch(n){return!1}return t.AggregatedScalarExpression?this.adaptableApi.internalApi.getQueryLanguageService().validateAggregatedScalar(t.AggregatedScalarExpression,Or).isValid:!1}evaluateCalculatedColumnQuery(t,n){var r,o,a,i,l;try{if(this.adaptableApi.gridApi.isGroupRowNode(n))return;if((r=t==null?void 0:t.Query)!=null&&r.ScalarExpression)return this.adaptableApi.internalApi.getQueryLanguageService().evaluateScalarExpression(t.Query.ScalarExpression,Or,n);if((o=t==null?void 0:t.Query)!=null&&o.AggregatedScalarExpression){let u=this.aggregatedScalarCalculatedColumnsMap.get(t.Uuid);return u==null?void 0:u.getAggregatedColumnValue(n)}}catch(u){return Bt(`Invalid CalculatedColumn expression ${(l=(a=t==null?void 0:t.Query)==null?void 0:a.ScalarExpression)!=null?l:(i=t==null?void 0:t.Query)==null?void 0:i.AggregatedScalarExpression} :: ${u}`),null}}createAggregatedScalarCalculatedColumn(t){var n;if(this.destroyAggregatedScalarCalculatedColumn(t),(n=t.Query)!=null&&n.AggregatedScalarExpression){let r=this.adaptableApi.internalApi.getQueryLanguageService().evaluateAggregatedScalarExpression(t.Query.AggregatedScalarExpression,Or),o=new xW(r.value,t,this.adaptableApi);this.aggregatedScalarCalculatedColumnsMap.set(t.Uuid,o)}}destroyAggregatedScalarCalculatedColumn(t){this.aggregatedScalarCalculatedColumnsMap.delete(t.Uuid)}destroy(){}},xW=class{constructor(t,n,r){this.expressionEvaluation=t;this.calculatedColumn=n;this.adaptableApi=r;this.aggregationResult=this.computeAggregatedValue(t),this.aggregationReducerName=Object.keys(t.aggregationParams.reducers)[0]}getAggregatedColumnValue(t){let n=this.getAggregationValue(t);return this.expressionEvaluation.rowValueGetter?this.expressionEvaluation.rowValueGetter(t,n):n}refreshAggregatedColumnValue(){this.aggregationResult=this.computeAggregatedValue(this.expressionEvaluation)}getCalculatedColumnId(){return this.calculatedColumn.ColumnId}getColumnDependencies(){return this.expressionEvaluation.columnDependencies}computeAggregatedValue(t){let n=this.adaptableApi.gridApi.getGridData();if(t.cumulateOver){let r=t.cumulateOver;n.sort((a,i)=>a[r]<i[r]?-1:a[r]>i[r]?1:0),t.aggregationParams.groupBy||(t.aggregationParams.groupBy=[]);let o=this.adaptableApi.internalApi.getAdaptableOptions().primaryKey;return t.aggregationParams.groupBy.push({field:o}),lAe(t.aggregationParams,n)}else return iAe(t.aggregationParams,n)}getAggregationValue(t){var n,r;if((n=this.expressionEvaluation.aggregationParams.groupBy)!=null&&n.length){let a=this.expressionEvaluation.aggregationParams.groupBy.map(i=>i.field).map(i=>this.adaptableApi.gridApi.getRawValueFromRowNode(t,i));return(r=this.aggregationResult.deepMap.get(a))==null?void 0:r.reducerResults[this.aggregationReducerName]}return this.aggregationResult.reducerResults[this.aggregationReducerName]}};s();var DM=class{constructor(t){this.adaptable=t;this.on=(t,n)=>this.emitter.on(t,n);this.emit=(t,n)=>this.emitter.emit(t,n);this.adaptable=t,this.emitter=new Hl,this.dataChangeLogSubject$=new HA,this.dataChangeLog$=this.dataChangeLogSubject$.asObservable(),this.undoChangeLog=new Map,this.undoChangeTimers=new Map}CreateDataChangedEvent(t){t.newValue!=t.oldValue&&(this.emitter.emitSync("CellDataChanged",t),this.adaptable.api.gridApi.fireCellChangedEvent(t),this.logDataChange(t))}logUndoChange(t){let{primaryKeyValue:n,column:r,oldValue:o,newValue:a}=t,i=this.getUndoChangeKey(n,r.columnId,o,a);this.undoChangeLog.set(i,t);let u=setTimeout(()=>{Lr(`Undo change was NOT handled, this should NOT happen: PK(${t.primaryKeyValue}) Col(${t.column}) RevertedValue(${t.newValue}) NewValue(${t.oldValue})`),this.extractUndoChange(t)},2e3);this.undoChangeTimers.set(i,u)}extractUndoChange(t){let{primaryKeyValue:n,column:r,oldValue:o,newValue:a}=t,i=this.getUndoChangeKey(n,r.columnId,a,o),l=this.undoChangeLog.get(i);this.undoChangeLog.delete(i);let u=this.undoChangeTimers.get(i);return u&&clearTimeout(u),l}destroy(){this.emitter.clearListeners(),this.emitter=null}getUndoChangeKey(t,n,r,o){return JSON.stringify({primaryKeyValue:t,columnId:n,previousValue:r,newValue:o})}logDataChange(t){let n=this.extractDataChangeLogEntry(t);this.dataChangeLogSubject$.next(n)}extractDataChangeLogEntry(t){let n=t.rowData?sn.cloneObject(t.rowData):null,r=n?{data:n}:null;return R(g({},t),{rowNode:r,rowData:n})}};s();var dAe=A(Eb());s();s();function syt(e=3988292384){var t=new Array,n,r,o;for(n=0;n<256;n++){for(o=n,r=8;r>0;r--)(o&1)==1?o=o>>>1^e:o=o>>>1;t[n]=o}return t}function uyt(){return 4294967295}function dyt(e,t,n){return t=t>>>8^e[n^t&255],t}function pyt(e){return e=~e,e=e<0?4294967295+e+1:e,e}function RW(e,t=3988292384){var n=syt(t),r=0,o;for(r=uyt(),o=0;o<e.length;o++)r=dyt(n,r,e.charCodeAt(o));return r=pyt(r),`${r}`}var TM=()=>new Error("Invalid License"),cyt=e=>{var r;let t=e.reduce((o,a)=>(o.set(a.name,a.value),o),new Map),n={count:t.get("DeveloperCount")?Number(t.get("DeveloperCount")):0,start:new Date(t.get("StartDate")),end:new Date(t.get("EndDate")),owner:t.get("Owner"),timestamp:t.get("TS")?Number(t.get("TS")):0,trial:t.get("Trial")==="true",ref:(r=t.get("Ref"))!=null?r:""};if(!n.start||!n.end||!n.owner||typeof n.trial!="boolean"||!n.ref)throw TM();return n},uAe=e=>{let t="",n=e.split("|").map(l=>{let[u,d]=l.split("=");return u==="C"&&(t=d),{name:u,value:d}});if(!t)throw TM();let r=t.split(",").reverse(),o=r.pop();r.forEach((l,u)=>{let d=n[u];if(RW(d.value)!==l)throw TM()});let a=[...n];a.pop();let i=a.map(l=>`${l.name}=${l.value}`).join("|");if(RW(i)!==o)throw TM();return n=n.map(l=>R(g({},l),{value:decodeURI(l.value)})),cyt(n)};var myt="sales@adaptabletools.com",fyt=10,hyt=1e3*60*60*24;var gyt=/(https):\/\/\d+\-\d+\-\d+\-(sandpack\.codesandbox\.io)/g,byt=/(https):\/\/\S+(\.csb\.app)/g,Cyt=/(https):\/\/\S+(\.adaptabletools\.com)/g,EW=typeof window!="undefined"?window.location.origin:"",yyt=()=>{let[e,t,n]=Array.from(gyt.exec(EW)||[]);return t==="https"&&n==="sandpack.codesandbox.io"},Syt=()=>{let[e,t,n]=Array.from(byt.exec(EW)||[]);return t==="https"&&n===".csb.app"},vyt=()=>{let[e,t,n]=Array.from(Cyt.exec(EW)||[]);return t==="https"&&n===".adaptabletools.com"},wM=class{constructor(t,n,r){this.adaptable=t;this.adaptable=t;let o=null;if(n)try{o=uAe(n)}catch(a){o=a}!yyt()&&!Syt()&&!vyt()&&this.handleLicenseValidation(o,this.getValidityType(o,r))}getValidityType(t,n){if(!t)return"NO_LICENSE";if(t instanceof Error)return"INVALID_LICENSE";let r=new Date(n.publishedAt),o=new Date(t.end),a=new Date,i=o<a,l=t.trial,u=o>r,d=null;return i?u?l?d="NON_PRODUCTION_EXPIRED_IN_SCOPE":d="COMMERCIAL_EXPIRED_IN_SCOPE":l?d="NON_PRODUCTION_EXPIRED_OUT_OF_SCOPE":d="COMMERCIAL_EXPIRED_OUT_OF_SCOPE":l?d="NON_PRODUCTION_VALID":d="COMMERCIAL_VALID",d}handleLicenseValidation(t,n){var i;let r=new Date;r.setHours(0,0,0,0);let o=0;!(t instanceof Error)&&(t==null?void 0:t.end)&&(o=Math.floor((((i=t==null?void 0:t.end)==null?void 0:i.getTime())-r.getTime())/hyt),o=(0,dAe.default)(o,0,1/0));let a=(l,u=Uve,d=myt,c=o)=>l.replace("[LINK]",u).replace("[EMAIL]",d).replace("[DAYS]",`${c}`);switch(n){case"NO_LICENSE":case"NON_PRODUCTION_EXPIRED_OUT_OF_SCOPE":ci(a("This instance of AdapTable does not have a license, and some functionality has therefore been removed. In order to use a fully-featured version of AdapTable, please contact [EMAIL]. You can learn more about the different AdapTable license options at [LINK]."),"Error"),this.showNotification("No AdapTable License found."),this.showWatermark("This instance of AdapTable does not have a license, and some functionality has therefore been removed."),this.disableStatePersistence();break;case"INVALID_LICENSE":ci(a("This instance of AdapTable seems to use a corrupted License, and some functionality has therefore been removed. In order to use a fully-featured version of AdapTable, please contact [EMAIL]. You can learn more about the different AdapTable license options at [LINK]."),"Error"),this.showNotification("Corrupted AdapTable License found."),this.showWatermark("This instance of AdapTable has a corrupted License, and some functionality has therefore been removed."),this.disableStatePersistence();break;case"NON_PRODUCTION_VALID":ci(a("This AdapTable trial license expires in [DAYS] days. Please contact [EMAIL] to upgrade to a commercial version of AdapTable. You can learn more about the different AdapTable license options at [LINK]."),"Info");break;case"NON_PRODUCTION_EXPIRED_IN_SCOPE":ci(a("This AdapTable trial license has now expired. Please contact [EMAIL] to upgrade to a commercial version of AdapTable. You can learn more about the different AdapTable license options at [LINK]."),"Warning"),this.showWatermark("AdapTable License has expired");break;case"COMMERCIAL_VALID":o<=fyt&&ci(a("This AdapTable license expires in [DAYS] days. Please contact [EMAIL] to renew (giving you access to Support and Updates)"),"Info");break;case"COMMERCIAL_EXPIRED_IN_SCOPE":ci(a("This AdapTable license has expired. Please contact [EMAIL] if you wish to renew (giving you access to Support and Updates)"),"Warning");break;case"COMMERCIAL_EXPIRED_OUT_OF_SCOPE":ci(a("This AdapTable license has expired. Adaptable version was published after the license expired. Please contact [EMAIL] if you wish to renew your license."),"Error"),this.showNotification("Adaptable License has expired"),this.showWatermark("Adaptable License has expired");break}}showNotification(t){this.adaptable.api.internalApi.dispatchReduxAction(ar({alertType:"generic",header:"License Error",message:t,alertDefinition:it.CreateInternalAlertDefinitionForMessages("Error")}))}showWatermark(t){this.adaptable.api.internalApi.dispatchReduxAction(iY(t))}disableStatePersistence(){this.adaptable.api.internalApi.dispatchReduxAction(lY())}destroy(){}};s();var OM=class{constructor(t){this.adaptableApi=t;let n=t.internalApi.getAdaptableOptions().teamSharingOptions;if(n.updateInterval>0){let r=n.updateInterval*6e4;this.updateCheckTimerId=setInterval(()=>{this.adaptableApi.teamSharingApi.checkForUpdates()},r)}}buildSharedEntityWithDependencies(t,n,r){let o=this.adaptableApi.internalApi.getAdaptableOptions().userName,a=new Date().getTime(),i=[];return this.createSharedEntity(t,n,r,o,a,i),i}getSharedEntityDependants(t,n){return n.filter(r=>r.EntityDependencyIds.includes(t))}updateActiveSharedEntity(t,n,r){let o=r.find(h=>h.Type==="Active"&&h.Entity.Uuid===t.Uuid);if(!o)return[r,[]];o=R(g({},o),{Entity:t,ChangedAt:Date.now(),ChangedBy:n,Revision:o.Revision+1});let a=[],i=this.getSharedEntityDependencies(o,r),l=this.getTeamSharingReferences(t,o.Module),u=l.map(h=>h.Reference.Uuid);a.push(...i.filter(h=>u.includes(h.Entity.Uuid)).map(h=>h.Uuid));let d=l.filter(h=>!i.map(b=>b.Entity.Uuid).includes(h.Reference.Uuid)),c=[];d.forEach(h=>{this.createSharedEntity(h.Reference,h.Module,{description:o.Description,type:o.Type},o.UserName,Date.now(),c)}),a.push(...c.map(h=>h.Uuid)),o.EntityDependencyIds=a;let m=r.map(h=>h.Uuid===o.Uuid?o:h);m.push(...c);let f=[o,...c];return[m,f]}buildSharedEntityImportActions(t){let n=!1,r=l=>{let{Module:u,Entity:d}=l,c=this.adaptableApi.internalApi.getModuleService().getTeamSharingAction(u);return c!=null&&c.ModuleEntities.some(m=>m.Uuid===d.Uuid)?(n=!0,c==null?void 0:c.EditAction(d)):c==null?void 0:c.AddAction(d)},o=this.adaptableApi.teamSharingApi.getSharedEntities();return[this.getSharedEntityDependencyTree(t,o).map(l=>({sharedEntity:l,importAction:r(l)})),n]}getSharedEntityLocalAndRemoteRevisions(t,n){var a,i,l,u;let r=(i=(a=this.adaptableApi.teamSharingApi.getTeamSharingState().ActiveSharedEntityMap[t])==null?void 0:a.Revision)!=null?i:-1,o=(u=(l=n.find(d=>d.Entity.Uuid===t))==null?void 0:l.Revision)!=null?u:-1;return[r,o]}getStaleActiveSharedEntities(){let t=this.adaptableApi.teamSharingApi.getSharedEntities(),n=this.adaptableApi.teamSharingApi.getTeamSharingState().ActiveSharedEntityMap,r={};return t.filter(o=>o.Type==="Active").forEach(o=>{var i,l;let a=(l=(i=n[o.Entity.Uuid])==null?void 0:i.Revision)!=null?l:Number.MAX_VALUE;o.Revision>a&&(r[o.Uuid]={sharedEntity:o,sharedRevision:o.Revision,importedRevision:n[o.Entity.Uuid].Revision})}),r}showUpdateNotifications(){let{updateNotification:t}=this.adaptableApi.internalApi.getAdaptableOptions().teamSharingOptions;!t||Object.values(this.getStaleActiveSharedEntities()).forEach(n=>{let r=`Active share ${n.sharedEntity.Module} has a new Revision: ${n.sharedEntity.Revision}`;(t==="Alert"||t==="AlertWithNotification")&&this.adaptableApi.alertApi.showAlert("TeamSharing",r,"Info",{DisplayNotification:t==="AlertWithNotification"}),t==="SystemStatus"&&this.adaptableApi.systemStatusApi.setInfoSystemStatus(`TeamSharing: ${r}`),this.adaptableApi.teamSharingApi.fireTeamSharingEntityChangedEvent(n.sharedEntity)})}destroy(){clearTimeout(this.updateCheckTimerId)}createSharedEntity(t,n,r,o,a,i){let l={Uuid:yt(),Entity:t,EntityDependencyIds:[],Module:n,Description:r.description,UserName:o,Timestamp:a,ChangedBy:o,ChangedAt:a,Revision:1,Type:r.type};return this.getTeamSharingReferences(t,n).forEach(d=>{let c=this.createSharedEntity(d.Reference,d.Module,r,o,a,i);c.Description=`${r.description} (Dependency of ${l.Module})`,l.EntityDependencyIds.push(c.Uuid)}),i.push(l),l}getSharedEntityDependencyTree(t,n){let r=new Map;return r.set(t.Uuid,t),t.EntityDependencyIds.forEach(o=>{let a=n.find(i=>i.Uuid===o);a&&this.getSharedEntityDependencyTree(a,n).forEach(i=>{r.has(i.Uuid)||r.set(i.Uuid,i)})}),Array.from(r.values())}getTeamSharingReferences(t,n){return this.adaptableApi.internalApi.getModuleService().getModuleById(n).getTeamSharingReferences(t)}getSharedEntityDependencies(t,n){return t.EntityDependencyIds.map(r=>n.find(o=>o.Uuid===r)).filter(r=>!!r)}};s();var EAe=A(RAe());var FM=class{constructor(t){this.adaptableApi=t;this.adaptableApi=t}CreateSystemReport(t){switch(t){case Mo:return{Uuid:yt(),Name:Mo,ReportColumnScope:"VisibleColumns",ReportRowScope:"VisibleRows",Query:void 0,IsReadOnly:!0};case Dp:return{Uuid:yt(),Name:Dp,ReportColumnScope:"AllColumns",ReportRowScope:"AllRows",Query:void 0,IsReadOnly:!0};case Tp:return{Uuid:yt(),Name:Tp,ReportColumnScope:"VisibleColumns",ReportRowScope:"VisibleRows",Query:void 0,IsReadOnly:!0};case Sl:return{Uuid:yt(),Name:Sl,ReportColumnScope:"SelectedColumns",ReportRowScope:"SelectedCellRows",Query:void 0,IsReadOnly:!0};case Cu:return{Uuid:yt(),Name:Cu,ReportColumnScope:"VisibleColumns",ReportRowScope:"SelectedRows",Query:void 0,IsReadOnly:!0}}}IsSystemReport(t){return t==null||t==Dp||t==Tp||t==Sl||t==Cu||t==Mo}IsSystemReportActive(t){return t==Sl||t==Cu?this.adaptableApi.gridApi.isGridSelectable():t===Mo?this.adaptableApi.exportApi.getAvailableExportDestinations().includes("Excel"):!0}IsSystemExportDestinationActive(t){return t==="Excel"?this.adaptableApi.exportApi.canExportToExcel():!0}GetReportColumnScopeShortDescription(t){var n,r;switch(t.ReportColumnScope){case"AllColumns":return["[All Columns]"];case"VisibleColumns":return["[Visible Columns]"];case"SelectedColumns":return["[Selected Columns]"];case"ScopeColumns":return"ColumnIds"in(t==null?void 0:t.Scope)?(r=(n=t.Scope.ColumnIds).map)==null?void 0:r.call(n,o=>{var a;return(a=this.adaptableApi.columnApi.getFriendlyNameFromColumnId(o))!=null?a:o}):["[Bespoke Columns]"];case"CustomColumns":return["[Custom Columns]"]}}GetReportColumnScopeLongDescription(t){switch(t.ReportColumnScope){case"AllColumns":return"[All Columns]";case"VisibleColumns":return"[Visible Columns]";case"SelectedColumns":return"[Selected Columns]";case"ScopeColumns":return this.adaptableApi.scopeApi.getScopeDescription(t.Scope);case"CustomColumns":return"[Custom Columns]"}}GetReportExpressionDescription(t,n){var r;if(this.IsSystemReport(t.Name)){if(t.Name==Dp)return"[All Data]";if(t.Name==Tp)return"[All Current Data]";if(t.Name==Sl)return"[Selected Cells Data]";if(t.Name==Cu)return"[Selected Rows Data]";if(t.Name==Mo)return"[Current Data as WYSIWYG]"}else switch(t.ReportRowScope){case"AllRows":return"[All Rows]";case"VisibleRows":return"[Visible Rows]";case"SelectedRows":return"[Selected Rows]";case"ExpressionRows":return(r=t.Query)==null?void 0:r.BooleanExpression;case"CustomRows":return"[Custom Rows]"}}GetReportColumnsForReport(t,n=!1){let r=[],o=this.adaptableApi.columnApi.getColumns();switch(t.ReportColumnScope){case"AllColumns":r=o;break;case"VisibleColumns":r=o.filter(i=>i.visible);break;case"SelectedColumns":let a=this.adaptableApi.gridApi.getSelectedCellInfo().columns.map(i=>i.columnId);r=o.filter(i=>a.includes(i.columnId));break;case"ScopeColumns":"ColumnIds"in t.Scope?r=t.Scope.ColumnIds.map(i=>this.adaptableApi.columnApi.getColumnFromId(i)).filter(i=>i):r=this.adaptableApi.scopeApi.getColumnsForScope(t.Scope);break;case"CustomColumns":break}return n&&!r.find(i=>i.columnId===this.adaptableApi.internalApi.getAdaptableOptions().primaryKey)&&!!this.adaptableApi.columnApi.getPrimaryKeyColumn()&&r.push(this.adaptableApi.columnApi.getPrimaryKeyColumn()),r}getReportData(t,n=!1){var i,l;let r=this.GetReportColumnsForReport(t,n).map(u=>({columnId:u.columnId,friendlyName:u.friendlyName,dataType:u.dataType}));if(De.IsNullOrEmpty(r)&&t.ReportRowScope!=="CustomRows")return{columns:[],rows:[]};let o={columns:r,rows:[]},a=r.map(u=>u.columnId);switch(t.ReportRowScope){case"AllRows":this.adaptableApi.internalApi.forAllRowNodesDo(b=>{b.group||o.rows.push(this.getRowObjectForColumnIds(b,a))});break;case"VisibleRows":this.adaptableApi.internalApi.forAllVisibleRowNodesDo(b=>{b.group||o.rows.push(this.getRowObjectForColumnIds(b,a))});break;case"ExpressionRows":this.adaptableApi.internalApi.forAllRowNodesDo(b=>{var C;this.adaptableApi.internalApi.getQueryLanguageService().evaluateBooleanExpression((C=t.Query)==null?void 0:C.BooleanExpression,kr,b)&&o.rows.push(this.getRowObjectForColumnIds(b,a))});break;case"SelectedCellRows":let u=this.adaptableApi.gridApi.getSelectedCellInfo(),{gridCells:d}=u,c=(0,EAe.default)(d,"primaryKeyValue");this.adaptableApi.internalApi.forAllVisibleRowNodesDo(b=>{let C=this.adaptableApi.gridApi.getPrimaryKeyValueForRowNode(b),y=c[C];if(y){let v=y.map(P=>P.column.columnId),S=a.filter(P=>v.includes(P)),I=this.getRowObjectForColumnIds(b,S);n&&(I[this.adaptableApi.internalApi.getAdaptableOptions().primaryKey]=C),o.rows.push(I)}});break;case"SelectedRows":let m=this.adaptableApi.gridApi.getSelectedRowInfo(),f=(l=(i=m==null?void 0:m.gridRows)==null?void 0:i.filter(b=>b.rowInfo.isGroup==!1).map(b=>b.primaryKeyValue))!=null?l:[];f.length&&this.adaptableApi.internalApi.forAllRowNodesDo(b=>{let C=this.adaptableApi.gridApi.getPrimaryKeyValueForRowNode(b);f.includes(C)&&o.rows.push(this.getRowObjectForColumnIds(b,a))});break;case"CustomRows":return this.adaptableApi.exportApi.runCustomReport(t.Name)}return o}getReportDataAsArray(t,n=!1){let r=this.getReportData(t,n);return this.convertReportDataToArray(r)}convertReportDataToArray(t){return[t.columns.map(n=>n.friendlyName),...t.rows.map(n=>t.columns.map(r=>n[r.columnId]))]}getRowObjectForColumnIds(t,n){return n.reduce((r,o)=>(r[o]=this.getCellExportValueFromRowNode(t,o),r),{})}PublishLiveLiveDataChangedEvent(t,n,r){let o={adaptableApi:this.adaptableApi,reportDestination:t,liveDataTrigger:n,liveReport:r};this.adaptableApi.eventApi.emit("LiveDataChanged",o)}getCellExportValueFromRowNode(t,n){return this.getCellExportValueFromRawValue(this.adaptableApi.gridApi.getRawValueFromRowNode(t,n),n)}getCellExportValueFromRawValue(t,n){if(Qe.IsNullOrEmpty(t))return t;let r=this.adaptableApi.columnApi.getColumnDataTypeFromColumnId(n);if(r==="Date"&&!!this.getCustomExportDateFormat()){let a=this.getCustomExportDateFormat();return Yr.DateFormatter(t,{Pattern:a})}let o=this.computeCellExportValueFormat(r);return this.getCellExportValueFromRawValueByType(t,n,o)}getReportFileName(t){let n=Qe.ReplaceEmptySpacesWithUnderscore(t);return this.adaptableApi.internalApi.getAdaptableOptions().exportOptions.appendFileTimestamp&&(n=`${n}_${go(new Date,{Pattern:"yyyyMMdd_HHmmss"})}`),n}destroy(){}getCustomExportDateFormat(){return this.adaptableApi.internalApi.getAdaptableOptions().exportOptions.exportDateFormat}getCellExportValueFromRawValueByType(t,n,r="rawValue"){return r==="rawValue"?t:this.adaptableApi.gridApi.getFormattedValueFromRawValue(n,t)}computeCellExportValueFormat(t){let n=this.adaptableApi.internalApi.getAdaptableOptions().exportOptions;if(n.exportFormatType==="rawValue"||n.exportFormatType==="formattedValue")return n.exportFormatType;switch(t){case"String":return n.exportFormatType.string;case"Number":case"NumberArray":return n.exportFormatType.number;case"Date":return n.exportFormatType.date;default:return"rawValue"}}};s();var MM=class{constructor(t){this.adaptableApi=t;this.adaptableApi=t}createModuleMenus(){let t=[],n=[];this.getModuleCollection().forEach(r=>{let o=r.addModuleMenuItem("ModuleMenu");sn.objectExists(o)&&t.findIndex(i=>i.module==o.module)==-1&&t.push(o);let a=r.addModuleMenuItem("ModuleButton");sn.objectExists(a)&&n.findIndex(i=>i.module==a.module)==-1&&n.push(a)}),this.adaptableApi.internalApi.setModuleDropdownMenuItems(t),this.adaptableApi.internalApi.setModuleButtonMenuItems(n)}isModuleAvailable(t){let n=this.getModuleCollection().get(t);return n?n.isModuleAvailable():!1}isModuleEditable(t){let n=this.getModuleCollection().get(t);return n?n.isModuleEditable():!1}getTeamSharingAction(t){let n=this.getModuleCollection().get(t);if(!!n)return n.getTeamSharingAction()}getModuleById(t){return this.getModuleCollection().get(t)}getModuleInfoByModule(t){let n=this.getModuleById(t);return n?n.moduleInfo:void 0}getModuleInfoByFriendlyName(t){for(let n of this.getModuleCollection().values()){let r=n.moduleInfo;if(r&&r.FriendlyName==t)return r}}getPopupMaxWidth(t){var n;return(n=this.getModuleById(t))==null?void 0:n.getPopupMaxWidth()}getModuleCollection(){return this.adaptableApi.internalApi.getModules()}getModuleDocumentationPageByModule(t){let n=`${il}/`,r=n+"guide/";switch(t){case"Alert":return r+"handbook-alerting";case"BulkUpdate":return n+"handbook-editing#bulk-update";case"CalculatedColumn":return r+"handbook-calculated-column";case"CellSummary":return r+"handbook-summarising#cell-summary-information";case"ConditionalStyle":return r+"handbook-conditional-styling";case"CustomSort":return r+"handbook-sorting";case"Dashboard":return r+"ui-dashboard";case"DataSource":return r+"handbook-data-sources";case"DataChangeHistory":return r+"handbook-monitoring#data-change-history";case"Export":return r+"handbook-exporting";case"Filter":return r+"handbook-filtering";case"FlashingCell":return r+"handbook-cell-flashing";case"FormatColumn":return r+"handbook-column-formatting";case"FreeTextColumn":return r+"handbook-freetext-column";case"GridInfo":return r+"handbook-monitoring#grid-info-panel";case"Layout":return r+"handbook-layouts";case"PlusMinus":return r+"handbook-editing#plus-minus";case"Query":return r+"handbook-querying";case"QuickSearch":return r+"handbook-searching";case"Schedule":return r+"handbook-scheduling";case"Shortcut":return r+"handbook-editing#shortcuts";case"SmartEdit":return r+"handbook-editing#smart-edit";case"StateManagement":return r+"dev-guide-adaptable-state";case"SystemStatus":return r+"handbook-notifying";case"TeamSharing":return n+"handbook-collaborating";case"Theme":return r+"handbook-theming";case"ToolPanel":return r+"ui-tool-panel";case"Glue42":return r+"integrations-glue42";case"IPushPull":return r+"integrations-ipushpull";case"OpenFin":return r+"integrations-openfin";default:return"good"}}destroy(){}};s();var NM=class{constructor(t){this.adaptableApi=t;this.adaptableApi=t}getValidationRulesForDataChange(t){if(t.oldValue==t.newValue)return[];let n=this.adaptableApi.alertApi.getAlertDefinitionsWithPreventEdit().filter(o=>this.adaptableApi.scopeApi.isColumnInScope(t.column,o.Scope)),r=[];return Ee.IsNotEmpty(n)&&n.forEach(o=>{o.Rule.BooleanExpression?t.rowNode!=null&&this.adaptableApi.internalApi.getQueryLanguageService().evaluateBooleanExpression(o.Rule.BooleanExpression,wr,t.rowNode)&&r.push(o):this.IsAlertDefinitionTriggered(o,t)&&r.push(o)}),r}performValidation(t){let n=this.getValidationRulesForDataChange(t);if(n.length>0){let r={alertType:"cellChanged",header:"Alert",message:"Perform Edit Alert Fired",alertDefinition:n[0],cellDataChangedInfo:t};return this.adaptableApi.alertApi.publishAlertFiredEvent(r),!1}return!0}IsAlertDefinitionTriggered(t,n){return this.adaptableApi.predicateApi.handlePredicate(t.Rule.Predicate,{value:n.newValue,oldValue:n.oldValue,displayValue:this.adaptableApi.gridApi.getDisplayValueFromRowNode(n.rowNode,n.column.columnId),node:n.rowNode,column:n.column},!1)}performServerValidation(t,n){return()=>(this.adaptableApi.internalApi.getAdaptableOptions().editOptions.validateOnServer(t).then(r=>{var o,a;if(r.NewValue===void 0&&(r.NewValue=t.newValue),r.NewValue!==t.newValue){t.newValue=r.NewValue;let i=(o=t.rowNode)==null?void 0:o.data;if(!i)return;i[(a=this.adaptableApi.columnApi.getAgGridColumnFieldForAdaptableColumn(t.column.columnId))!=null?a:t.column.columnId]=r.NewValue,this.adaptableApi.gridApi.updateGridData([i]),Qe.IsNotNullOrEmpty(r.ValidationMessage)&&this.adaptableApi.internalApi.getAdaptableOptions().editOptions.displayServerValidationMessages&&this.adaptableApi.alertApi.showAlertInfo("Server Validation Message",r.ValidationMessage)}n.onServerValidationCompleted()}),!1)}createValidationDescription(t){return this.adaptableApi.scopeApi.getScopeDescription(t.Scope)+" "+this.adaptableApi.predicateApi.predicateToString(t.Rule.Predicate)}createValidationMessage(t){let n=this.createValidationDescription(t);return t.Rule.BooleanExpression&&(n+=" when "+t.Rule.BooleanExpression),n}destroy(){}};s();var _M=class{constructor(t){this.adaptableApi=t;this.adaptableApi=t}setModulesEntitlements(){this.adaptableApi.internalApi.getModuleService().getModuleCollection().forEach(t=>{t.setModuleEntitlement()})}isModuleHiddenEntitlement(t){return this.getEntitlementAccessLevelForModule(t)=="Hidden"}isModuleFullEntitlement(t){return this.getEntitlementAccessLevelForModule(t)=="Full"}isModuleReadOnlyEntitlement(t){return this.getEntitlementAccessLevelForModule(t)=="ReadOnly"}getEntitlementAccessLevelForModule(t){let n=this.adaptableApi.internalApi.getAdaptableOptions(),r=n.entitlementOptions;if(r){let o=typeof r.defaultAccessLevel=="function"?r.defaultAccessLevel(n.userName,n.adaptableId):r.defaultAccessLevel,a=r.moduleEntitlements;if(a)if(typeof a=="function"){let i=a(t,n.userName,n.adaptableId,o);return i!=null?i:o}else{let i=a.find(l=>l.adaptableModule===t);if(i)return i.accessLevel}return o}return"Full"}isGridInfoSectionVisible(t){return this.isModuleHiddenEntitlement("GridInfo")?!1:this.adaptableApi.internalApi.getAdaptableOptions().userInterfaceOptions.gridInfoSections.includes(t)}destroy(){}};s();var LM=class{constructor(t){this.adaptableApi=t;this.cacheBooleanValidation=new Map;this.cacheObservableValidation=new Map;this.cacheAggregatedBooleanValidation=new Map;this.cacheAggregatedScalarValidation=new Map;this.cacheModuleSpecificExpressionFunctions=new Map}evaluateBooleanExpression(t,n,r){let o=this.getModuleExpressionFunctions(n),a=this.getBooleanAndScalarFunctions(o);return _p(t,{node:r,api:this.adaptableApi,functions:a})}evaluateScalarExpression(t,n,r){return this.evaluateBooleanExpression(t,n,r)}evaluateAggregatedScalarExpression(t,n){let r=this.getModuleExpressionFunctions(n).aggregatedScalarFunctions;return _p(t,{node:null,api:this.adaptableApi,functions:r})}evaluateObservableExpression(t,n){let r=this.getModuleExpressionFunctions(n),o=this.getBooleanAndScalarFunctions(r);return _p(t,{node:t,api:this.adaptableApi,functions:r.observableFunctions,whereClauseFunctions:o})}evaluateAggregatedBooleanExpression(t,n){let r=this.getModuleExpressionFunctions(n),o=this.getBooleanAndScalarFunctions(r);return _p(t,{node:t,api:this.adaptableApi,functions:r.aggregatedBooleanFunctions,whereClauseFunctions:o})}validateBoolean(t="",n,r={force:!1}){var a;let o=this.getExpressionCacheKey(t,n);try{if(this.cacheBooleanValidation.has(o))return this.cacheBooleanValidation.get(o);let i=t.trim();if(i===""){let b={isValid:!1,errorMessage:"empty boolean expression"};return this.cacheBooleanValidation.set(o,b),b}let l=(a=r==null?void 0:r.force)!=null?a:!1;if(!this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.performExpressionValidation&&!l){let b={isValid:!0,errorMessage:""};return this.cacheBooleanValidation.set(o,b),b}let{ast:u}=Np(i.trim()),d=u[u.length-1],c=this.getModuleExpressionFunctions(n),m=this.getBooleanAndScalarFunctions(c);if(d.type===void 0||m[d.type]===void 0){let b={isValid:!1,errorMessage:`provided function ${d==null?void 0:d.type} cannot be handled`};return this.cacheBooleanValidation.set(o,b),b}if(!m[d.type].isPredicate){let b={isValid:!1,errorMessage:`provided function ${d==null?void 0:d.type} is not a predicate`};return this.cacheBooleanValidation.set(o,b),b}let f=this.adaptableApi.gridApi.getFirstRowNode();this.evaluateBooleanExpression(i,n,f);let h={isValid:!0,errorMessage:""};return this.cacheBooleanValidation.set(o,h),h}catch(i){let l={isValid:!1,errorMessage:i};return this.cacheBooleanValidation.set(o,l),l}}validateObservable(t="",n){let r=this.getExpressionCacheKey(t,n);if(this.cacheObservableValidation.has(r))return this.cacheObservableValidation.get(r);let o=t.trim();if(o===""){let a={isValid:!1,errorMessage:"empty observable expression"};return this.cacheObservableValidation.set(r,a),a}try{let a=this.evaluateObservableExpression(o,n);if(!Sx(a)){let l={isValid:!1,errorMessage:"provided observable expression does not evaluate to an Observable"};return this.cacheObservableValidation.set(r,l),l}let i={isValid:!0,errorMessage:""};return this.cacheObservableValidation.set(r,i),i}catch(a){let i={isValid:!1,errorMessage:a};return this.cacheObservableValidation.set(r,i),i}}validateAggregatedBoolean(t="",n){let r=this.getExpressionCacheKey(t,n);if(this.cacheAggregatedBooleanValidation.has(r))return this.cacheAggregatedBooleanValidation.get(r);let o=t.trim();if(o===""){let a={isValid:!1,errorMessage:"empty AggregatedBoolean expression"};return this.cacheAggregatedBooleanValidation.set(r,a),a}try{let a=this.evaluateAggregatedBooleanExpression(o,n);if(!Sx(a)){let l={isValid:!1,errorMessage:"provided AggregatedBoolean expression does not evaluate to an Observable"};return this.cacheAggregatedBooleanValidation.set(r,l),l}let i={isValid:!0,errorMessage:""};return this.cacheAggregatedBooleanValidation.set(r,i),i}catch(a){let i={isValid:!1,errorMessage:a};return this.cacheAggregatedBooleanValidation.set(r,i),i}}validateAggregatedScalar(t="",n){let r=this.getExpressionCacheKey(t,n);if(this.cacheAggregatedScalarValidation.has(r))return this.cacheAggregatedScalarValidation.get(r);let o=t.trim();if(o===""){let a={isValid:!1,errorMessage:"empty AggregatedScalar expression"};return this.cacheAggregatedScalarValidation.set(r,a),a}try{if(this.evaluateAggregatedScalarExpression(o,n).type!=="aggregation"){let l={isValid:!1,errorMessage:"provided AggregatedScalar expression does not evaluate to a supported aggregation"};return this.cacheAggregatedScalarValidation.set(r,l),l}let i={isValid:!0,errorMessage:""};return this.cacheAggregatedScalarValidation.set(r,i),i}catch(a){let i={isValid:!1,errorMessage:a};return this.cacheAggregatedScalarValidation.set(r,i),i}}getColumnsFromExpression(t=""){return this.getNodesFromExpression(t,"COL")}getNamedQueryNamesFromExpression(t=""){return this.getNodesFromExpression(t,"QUERY")}getModuleExpressionFunctions(t){var a,i,l,u,d,c,m;if(!t)return Lr("QueryLanguageService.getModuleExpressionFunctions() was called with an undefined 'module' param, this should never happen"),{booleanFunctions:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultBooleanFunctions,scalarFunctions:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultScalarFunctions,observableFunctions:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultObservableFunctions,aggregatedBooleanFunctions:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultAggregatedBooleanFunctions,aggregatedScalarFunctions:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultAggregatedScalarFunctions};let n=this.cacheModuleSpecificExpressionFunctions.get(t);if(n)return n;let r=(i=(a=this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.moduleExpressionFunctions)==null?void 0:a[t])!=null?i:{},o={booleanFunctions:(l=r.booleanFunctions)!=null?l:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultBooleanFunctions,scalarFunctions:(u=r.scalarFunctions)!=null?u:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultScalarFunctions,observableFunctions:(d=r.observableFunctions)!=null?d:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultObservableFunctions,aggregatedBooleanFunctions:(c=r.aggregatedBooleanFunctions)!=null?c:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultAggregatedBooleanFunctions,aggregatedScalarFunctions:(m=r.aggregatedScalarFunctions)!=null?m:this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions.defaultAggregatedScalarFunctions};return this.cacheModuleSpecificExpressionFunctions.set(t,o),o}destroy(){}getBooleanAndScalarFunctions(t){return g(g({},t.booleanFunctions),t.scalarFunctions)}getExpressionCacheKey(t,n){return`${n}::${t}`}getNodesFromExpression(t,n){let r=new Set,o=i=>{if(typeof i!="object")return!1;if(Array.isArray(i))return i.map(o);i.args.map(o),i.type===n&&r.add(String(i.args[0]))},{ast:a}=Np(t.trim());return o(a),Array.from(r.values())}};s();var kM=class{constructor(t){this.adaptableApi=t;this.reactiveAlertsMap=new Map;this.onReactiveAlertTriggered=t=>this.emitter.on("ReactiveAlertTriggered",t);this.emitter=new Hl}createReactiveAlert(t){if(this.deleteReactiveAlert(t),!t.Rule.ObservableExpression&&!t.Rule.AggregatedBooleanExpression)return;if(!this.isValidExpression(t.Rule)){nt("Could NOT create reactive alert due to invalid Rule definition!",t.Rule);return}let r=this.evaluateReactiveExpression(t.Rule),o=jk([Qi(t),r]).subscribe(([a,i])=>{let l={alertDefinition:a,dataChangeLogEntry:i,type:"alert"};this.emitter.emitSync("ReactiveAlertTriggered",l)});this.reactiveAlertsMap.set(t.Uuid,{definition:t,subscription:o})}deleteReactiveAlert(t){if(this.reactiveAlertsMap.has(t.Uuid)){let n=this.reactiveAlertsMap.get(t.Uuid);n==null||n.subscription.unsubscribe(),this.reactiveAlertsMap.delete(t.Uuid)}}destroy(){this.emitter.clearListeners(),this.emitter=null,this.reactiveAlertsMap.forEach(t=>t.subscription.unsubscribe())}isValidExpression(t){return t.ObservableExpression?this.adaptableApi.queryLanguageApi.isValidObservableExpression(t.ObservableExpression,wr,"Invalid Alert rule with observable expression "):t.AggregatedBooleanExpression?this.adaptableApi.queryLanguageApi.isValidAggregatedBooleanExpression(t.AggregatedBooleanExpression,wr,"Invalid Alert rule with aggregation expression "):!1}evaluateReactiveExpression(t){return t.ObservableExpression?this.adaptableApi.internalApi.getQueryLanguageService().evaluateObservableExpression(t.ObservableExpression,wr):this.adaptableApi.internalApi.getQueryLanguageService().evaluateAggregatedBooleanExpression(t.AggregatedBooleanExpression,wr)}};s();var ea=A(require("react"));s();s();var lu=A(require("react")),Zq=A(J());s();var zs=A(require("react")),BM=A(J());s();var IAe=A(require("react")),Fc=({icon:e,className:t})=>{if(!e)return null;let n=e.style&&e.style.width?e.style.width:"var(--ab-cmp-simple-button__width)",r=e.style&&e.style.height?e.style.height:"var(--ab-cmp-simple-button__height)";return IAe.createElement("img",{className:t,src:e.src,style:{width:n,height:r}})};var Wyt=e=>{var i;let t="ab-Adaptable-Popup__TopBar",r=(i=$e().api.internalApi.getAdaptableOptions().userInterfaceOptions)==null?void 0:i.applicationIcon,o=zs.createElement(zs.Fragment,null),a=`${t}__Icon`;return e.icon==="ConfigurationIcon"?o=zs.createElement(Ct,{className:a,name:"settings"}):e.icon==="ApplicationIcon"&&r?o=zs.createElement(Fc,{className:a,icon:r}):typeof e.icon=="object"&&e.icon.src&&(o=zs.createElement(Fc,{className:a,icon:e.icon})),zs.createElement(BM.Flex,{flex:0,className:t},o,zs.createElement(BM.Text,{className:`${t}__Title`},e.children))},PAe=Wyt;s();var es=A(require("react"));s();var DAe=A(require("react")),VM=(e,t)=>{DAe.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])};var TAe=e=>{let t=Rt(),n=es.useCallback(r=>{if((r.ctrlKey||r.metaKey)&&(r.code==="ArrowUp"||r.code==="ArrowDown")){let o=r.code==="ArrowUp",a=e.menuItems.findIndex(l=>l!=="-"&&(l.module===e.activeItem||l.label===e.activeItem)),i=null;if(o){let l=e.menuItems[a-1]!=="-"?e.menuItems[a-1]:e.menuItems[a-2];i=l||e.menuItems[e.menuItems.length-1]}else{let l=e.menuItems[a+1]!=="-"?e.menuItems[a+1]:e.menuItems[a+2];i=l||e.menuItems[0]}i&&i!=="-"&&t(i.reduxAction)}},[e.activeItem,e.menuItems]);return VM("keydown",n),es.createElement("nav",{className:"ab-Adaptable-Popup__Navigation"},es.createElement("ul",{className:"ab-Adaptable-Popup__Navigation__List"},e.menuItems.map((r,o)=>{var d,c,m,f;let a="ab-Adaptable-Popup__Navigation__List__Item";if(r==="-")return es.createElement("li",{key:`separator-${o}`,className:`${a}__Separator`});let i=e.activeItem===r.module||r.label===e.activeItem,l=He(a,i&&`${a}--active`),u=(f=(m=(c=(d=e.customSettingsPanels)==null?void 0:d.find)==null?void 0:c.call(d,h=>h.name===r.label))==null?void 0:m.icon)!=null?f:null;return es.createElement("li",{className:l,key:r.label},es.createElement("button",{type:"button",className:`${a}__Button`,onClick:()=>{t(r.reduxAction)}},r.icon&&es.createElement(Ct,{className:`${a}__Icon`,name:r.icon}),u&&es.createElement(Fc,{icon:u}),r.label))})))};s();var IW=A(require("react")),qyt=IW.createContext({hidePopup:()=>{}});var wAe=qyt;s();var nPe=A(require("react"));s();s();var rs=A(require("react"));s();function zyt(e){return ba.getObjValues(e).filter(t=>typeof t=="string")}function Qyt(e){return ba.getObjValues(e).filter(t=>typeof t=="number")}function jyt(e){return Object.keys(e).map(t=>e[t])}function Yyt(e){switch(e){case"XLarge":return"x-large";case"Large":return"large";case"Medium":return"medium";case"Small":return"small";case"XSmall":return"x-small"}}var ba={getNames:zyt,getValues:Qyt,getObjValues:jyt,getCssFontSizeFromFontSizeEnum:Yyt};s();var Ja=A(require("react"));s();s();var xr=require("react"),ZAe=require("react"),pS=require("react"),exe=require("react"),Ti=require("react"),nxe=require("react"),rxe=require("react"),oxe=require("react"),YM=require("react"),o$t=require("react"),KM=require("react"),lxe=require("react"),sxe=require("react"),uxe=require("react"),dg=require("react"),Di=require("react"),JM=require("react"),ZM=require("react"),YW=require("react"),kW=require("react"),og=require("react"),xd=require("react"),fxe=require("react"),gxe=require("react"),HM=require("react"),gS=require("react"),yxe=require("react"),_c=require("react"),tN=require("react"),Mc=require("react"),pg=require("react"),ag=require("react"),cg=require("react"),Nc=require("react"),mg=require("react"),bS=require("react"),Axe=require("react"),Bo=require("react"),Ixe=require("react-dom"),ng=require("react"),yS=require("react"),nN=require("react"),ig=require("react"),Pxe=require("react"),fg=require("react"),rN=require("react"),Ys=require("react"),BW=require("react"),cS=require("react"),wxe=require("react"),aN=require("react"),Oxe=require("react"),Fxe=require("react"),iN=require("react"),Ks=require("react"),mS=require("react"),_xe=require("react"),lN=require("react"),Qs=require("react"),Rd=require("react"),Ad=require("react"),Lxe=require("react"),sN=require("react"),lg=require("react"),SS=require("react"),js=require("react"),ug=require("react"),Gxe=require("react"),VW=require("react"),hg=require("react"),Hxe=require("react"),GW=require("react"),zxe=require("react"),$s=require("react"),Qxe=require("react"),jxe=require("react"),Bc=require("react"),XW=require("react"),Kyt=Object.create,QM=Object.defineProperty,$yt=Object.defineProperties,Xyt=Object.getOwnPropertyDescriptor,Jyt=Object.getOwnPropertyDescriptors,Zyt=Object.getOwnPropertyNames,UM=Object.getOwnPropertySymbols,eSt=Object.getPrototypeOf,HW=Object.prototype.hasOwnProperty,$Ae=Object.prototype.propertyIsEnumerable,OAe=(e,t,n)=>t in e?QM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t)=>{for(var n in t||(t={}))HW.call(t,n)&&OAe(e,n,t[n]);if(UM)for(var n of UM(t))$Ae.call(t,n)&&OAe(e,n,t[n]);return e},fr=(e,t)=>$yt(e,Jyt(t)),tSt=e=>QM(e,"__esModule",{value:!0}),jM=(e,t)=>{var n={};for(var r in e)HW.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&UM)for(var r of UM(e))t.indexOf(r)<0&&$Ae.call(e,r)&&(n[r]=e[r]);return n},vS=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},nSt=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Zyt(t))!HW.call(e,r)&&r!=="default"&&QM(e,r,{get:()=>t[r],enumerable:!(n=Xyt(t,r))||n.enumerable});return e},UW=e=>nSt(tSt(QM(e!=null?Kyt(eSt(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),rSt=(e,t,n)=>new Promise((r,o)=>{var a=u=>{try{l(n.next(u))}catch(d){o(d)}},i=u=>{try{l(n.throw(u))}catch(d){o(d)}},l=u=>u.done?r(u.value):Promise.resolve(u.value).then(a,i);l((n=n.apply(e,t)).next())}),oSt=vS({"node_modules/ms/index.js"(e,t){var n=1e3,r=n*60,o=r*60,a=o*24,i=a*7,l=a*365.25;t.exports=function(f,h){h=h||{};var b=typeof f;if(b==="string"&&f.length>0)return u(f);if(b==="number"&&isFinite(f))return h.long?c(f):d(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function u(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(!!h){var b=parseFloat(h[1]),C=(h[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return b*l;case"weeks":case"week":case"w":return b*i;case"days":case"day":case"d":return b*a;case"hours":case"hour":case"hrs":case"hr":case"h":return b*o;case"minutes":case"minute":case"mins":case"min":case"m":return b*r;case"seconds":case"second":case"secs":case"sec":case"s":return b*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function d(f){var h=Math.abs(f);return h>=a?Math.round(f/a)+"d":h>=o?Math.round(f/o)+"h":h>=r?Math.round(f/r)+"m":h>=n?Math.round(f/n)+"s":f+"ms"}function c(f){var h=Math.abs(f);return h>=a?m(f,h,a,"day"):h>=o?m(f,h,o,"hour"):h>=r?m(f,h,r,"minute"):h>=n?m(f,h,n,"second"):f+" ms"}function m(f,h,b,C){var y=h>=b*1.5;return Math.round(f/b)+" "+C+(y?"s":"")}}}),aSt=vS({"node_modules/debug/src/common.js"(e,t){function n(r){a.debug=a,a.default=a,a.coerce=m,a.disable=u,a.enable=l,a.enabled=d,a.humanize=oSt(),a.destroy=f,Object.keys(r).forEach(h=>{a[h]=r[h]}),a.names=[],a.skips=[],a.formatters={};function o(h){let b=0;for(let C=0;C<h.length;C++)b=(b<<5)-b+h.charCodeAt(C),b|=0;return a.colors[Math.abs(b)%a.colors.length]}a.selectColor=o;function a(h){let b,C=null;function y(...v){if(!y.enabled)return;let S=y,I=Number(new Date),P=I-(b||I);S.diff=P,S.prev=b,S.curr=I,b=I,v[0]=a.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let T=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(_,M)=>{if(_==="%%")return"%";T++;let x=a.formatters[M];if(typeof x=="function"){let D=v[T];_=x.call(S,D),v.splice(T,1),T--}return _}),a.formatArgs.call(S,v),(S.log||a.log).apply(S,v)}return y.namespace=h,y.useColors=a.useColors(),y.color=a.selectColor(h),y.extend=i,y.destroy=a.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>C===null?a.enabled(h):C,set:v=>{C=v}}),typeof a.init=="function"&&a.init(y),y}function i(h,b){let C=a(this.namespace+(typeof b>"u"?":":b)+h);return C.log=this.log,C}function l(h){a.save(h),a.names=[],a.skips=[];let b,C=(typeof h=="string"?h:"").split(/[\s,]+/),y=C.length;for(b=0;b<y;b++)!C[b]||(h=C[b].replace(/\*/g,".*?"),h[0]==="-"?a.skips.push(new RegExp("^"+h.substr(1)+"$")):a.names.push(new RegExp("^"+h+"$")))}function u(){let h=[...a.names.map(c),...a.skips.map(c).map(b=>"-"+b)].join(",");return a.enable(""),h}function d(h){if(h[h.length-1]==="*")return!0;let b,C;for(b=0,C=a.skips.length;b<C;b++)if(a.skips[b].test(h))return!1;for(b=0,C=a.names.length;b<C;b++)if(a.names[b].test(h))return!0;return!1}function c(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function m(h){return h instanceof Error?h.stack||h.message:h}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}t.exports=n}}),iSt=vS({"node_modules/debug/src/browser.js"(e,t){e.formatArgs=r,e.save=o,e.load=a,e.useColors=n,e.storage=i(),e.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let d="color: "+this.color;u.splice(1,0,d,"color: inherit");let c=0,m=0;u[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(c++,f==="%c"&&(m=c))}),u.splice(m,0,d)}e.log=console.debug||console.log||(()=>{});function o(u){try{u?e.storage.setItem("debug",u):e.storage.removeItem("debug")}catch{}}function a(){let u;try{u=e.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=p.DEBUG),u}function i(){try{return localStorage}catch{}}t.exports=aSt()(e);var{formatters:l}=t.exports;l.j=function(u){try{return JSON.stringify(u)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}}}),XAe=vS({"node_modules/binary-search/index.js"(e,t){t.exports=function(n,r,o,a,i){var l,u;if(a===void 0)a=0;else if(a=a|0,a<0||a>=n.length)throw new RangeError("invalid lower bound");if(i===void 0)i=n.length-1;else if(i=i|0,i<a||i>=n.length)throw new RangeError("invalid upper bound");for(;a<=i;)if(l=a+(i-a>>>1),u=+o(n[l],r,l,n),u<0)a=l+1;else if(u>0)i=l-1;else return l;return~a}}}),lSt=vS({"node_modules/decamelize/index.js"(e,t){"use strict";var n=(r,o)=>(r=r.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,a=>a.toLowerCase()),r.replace(/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,(a,i,l)=>i+o+l.toLowerCase()));t.exports=(r,{separator:o="_",preserveConsecutiveUppercase:a=!1}={})=>{if(!(typeof r=="string"&&typeof o=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(r.length<2)return a?r:r.toLowerCase();let i=`$1${o}$2`,l=r.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,i);return a?n(l,o):l.replace(/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,i).toLowerCase()}}}),mr=(...e)=>e.filter(t=>!!`${t}`).join(" "),JAe="ITable",Xs={rootClassName:JAe},PW;function WW(){return PW||(PW=(0,ZAe.createContext)(null))}function WM(){let e=null,t=[],n=r=>{e=r;for(let o=0,a=t.length;o<a;o++)t[o](r)};return n.get=()=>e,n.onChange=r=>(t.push(r),()=>{t=t.filter(o=>o!==r)}),n.destroy=()=>{n(null),t.length=0},n}function sSt(e){return e!==void 0}function Ca(e,t){let n=t[e];return sSt(n)}function qW(e){let t=new Map;return e.forEach((n,r)=>{let o=n.columnGroup,a=0;for(;o;){let i=e.get(o);if(!i)break;a++,o=i.columnGroup}t.set(r,a)}),t}function uSt(e){var t,n,r,o,a,i;let{props:l}=e,u=(t=Ca("columnGroups",l)?l.columnGroups:l.defaultColumnGroups)!=null?t:new Map,d=l.pivotColumnGroups,c=(n=Ca("collapsedColumnGroups",l)?l.collapsedColumnGroups:l.defaultCollapsedColumnGroups)!=null?n:new Map,m=d||u,f=qW(m),h=new Map,b=l.pivotColumns;return{rowHeightComputed:typeof l.rowHeight=="number"?l.rowHeight:0,headerHeight:typeof l.headerHeight=="number"?l.headerHeight:0,domRef:(0,pS.createRef)(),bodyDOMRef:(0,pS.createRef)(),portalDOMRef:(0,pS.createRef)(),bodySizeRef:(0,pS.createRef)(),onRowHeightChange:WM(),onHeaderHeightChange:WM(),bodySize:{width:0,height:0},scrollPosition:{scrollTop:0,scrollLeft:0},draggingColumnId:null,columns:l.columns,pivotColumns:b,pivotColumnGroups:d,generatedColumns:h,columnOrder:(r=Ca("columnOrder",l)?l.columnOrder:l.defaultColumnOrder)!=null?r:!0,computedColumnGroups:m,columnGroups:u,collapsedColumnGroups:c,columnGroupsDepthsMap:f,columnGroupsMaxDepth:Math.max(...f.values(),0),columnVisibility:(o=Ca("columnVisibility",l)?l.columnVisibility:l.defaultColumnVisibility)!=null?o:new Map,columnPinning:(a=Ca("columnPinning",l)?l.columnPinning:l.defaultColumnPinning)!=null?a:new Map,columnAggregations:(i=Ca("columnAggregations",l)?l.columnAggregations:l.defaultColumnAggregations)!=null?i:new Map,columnShifts:null,computedPivotColumns:void 0}}function dSt(e){var t,n,r,o,a,i,l,u,d,c;let{props:m,state:f,updated:h}=e,b=(t=m.virtualizeColumns)!=null?t:!0,C=(n=m.header)!=null?n:!0,y=f.pivotColumnGroups||f.columnGroups,v=C&&b&&(!y||y?.size===0),S=h?.columnGroups||h?.pivotColumnGroups?qW(y):f.columnGroupsDepthsMap,I=(r=m.pivotTotalColumnPosition)!=null?r:"end";return{groupColumn:m.groupColumn,onReady:m.onReady,domProps:m.domProps,showZebraRows:(o=m.showZebraRows)!=null?o:!0,virtualizeColumns:b,virtualizeHeader:v,header:C,rowStyle:m.rowStyle,rowProps:m.rowProps,rowClassName:m.rowClassName,groupRenderStrategy:(a=m.groupRenderStrategy)!=null?a:"multi-column",pivotTotalColumnPosition:I,columnMinWidth:(i=m.columnMinWidth)!=null?i:30,columnMaxWidth:(l=m.columnMaxWidth)!=null?l:2e3,columnDefaultWidth:(u=m.columnDefaultWidth)!=null?u:300,draggableColumns:(d=m.draggableColumns)!=null?d:!0,pivotColumn:m.pivotColumn,pivotRowLabelsColumn:m.pivotRowLabelsColumn,sortable:(c=m.sortable)!=null?c:!0,columnGroupsDepthsMap:S,columnGroupsMaxDepth:Math.max(...S.values(),0),computedColumnGroups:y,licenseKey:m.licenseKey||globalThis.InfiniteTableLicenseKey||"",rowHeightCSSVar:typeof m.rowHeight=="string"?m.rowHeight:"",headerHeightCSSVar:typeof m.headerHeight=="string"?m.headerHeight:""}}var txe=(e,t)=>{let n=window.ResizeObserver,r=new n(o=>{var a;let i=o[0],{width:l,height:u}=i.contentRect;if((a=i.borderBoxSize)!=null&&a[0])u=i.borderBoxSize[0].blockSize,l=i.borderBoxSize[0].inlineSize;else{let d=e.getBoundingClientRect();u=d.height,l=d.width}t({width:l,height:u})});return r.observe(e),()=>{r.disconnect()}},zW=(e,t,n={earlyAttach:!1})=>{let r=(0,Ti.useRef)({width:0,height:0}),o=a=>{let i;return e.current&&(i=txe(e.current,l=>{l={width:Math.round(l.width),height:Math.round(l.height)};let u=r.current;(u.width!==l.width||u.height!==l.height)&&(r.current=l,a(l))})),()=>{i&&i()}};(0,Ti.useEffect)(()=>n.earlyAttach?()=>{}:o(t),[e.current,t,n.earlyAttach]),(0,Ti.useLayoutEffect)(()=>n.earlyAttach?o(t):()=>{},[e.current,t,n.earlyAttach])},pSt=e=>{let t=(0,Ti.useMemo)(()=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box"}),[]),{notifyOnMount:n,earlyAttach:r}=e,o=(0,Ti.useRef)(!0),a=(0,Ti.useRef)(null),i=(0,Ti.useCallback)(l=>{if(o.current&&!n){o.current=!1;return}e.onResize(l)},[e.onResize]);return zW(a,i,{earlyAttach:r||!1}),(0,exe.createElement)("div",{ref:a,style:t})};pSt.defaultProps={notifyOnMount:!0,earlyAttach:!1};var Js=()=>{let e=WW();return(0,nxe.useContext)(e)},cSt=e=>{let{availableSize:t,items:n,minSize:r,maxSize:o}=e;if(t<0)throw"The provided availableSize cannot be negative!";let a=0,i=0,l=0;n.forEach((T,O)=>{var _,M,x,D,N,q;let F=(M=(_=T.maxSize)!=null?_:o)!=null?M:void 0,k=(D=(x=T.maxSize)!=null?x:r)!=null?D:void 0;if(T.size!=null&&(F!=null&&T.size>F&&(T.size=F),k!=null&&T.size<k&&(T.size=k)),T.size==null&&T.flex==null)throw`Items must specify either a size or a flex property. Item at index ${O} doesn't have either of those.`;T.flex!=null&&(l+=1),i+=(N=T.flex)!=null?N:0,a+=(q=T.size)!=null?q:0});let u=Math.max(t-a,0),d=u/i,c={},m={},f=0;n.forEach((T,O)=>{var _,M,x,D;if(T.flex!=null){let N=d*T.flex,q=(M=(_=T.maxSize)!=null?_:o)!=null?M:void 0,F=(D=(x=T.maxSize)!=null?x:r)!=null?D:void 0,k=!1,Y=0;q!=null&&N>q&&(c[O]=!0,k=!0,Y=q),F!=null&&N<F&&(m[O]=!0,k=!0,Y=F),k&&(f+=1,l-=1,i-=T.flex,u-=Y)}}),f&&(d=u/i);let h=[],b=0,C=u,y=i,v=0,S=0,I=[];return{items:n.map((T,O)=>{var _,M,x,D,N;let q=Xe({},T),F=(M=(_=T.maxSize)!=null?_:o)!=null?M:void 0,k=(D=(x=T.minSize)!=null?x:r)!=null?D:void 0,Y=0,Z=c[O],oe=m[O],ae=Z||oe,ee=(N=T.size)!=null?N:0;if(T.flex!=null){if(ae)oe&&(Y=k),Z&&(Y=F);else{b+=1;let Se=se=>(F!=null&&se>F&&(se=F),k!=null&&se<k&&(se=k),se);b===l?Y=Se(C):(Y=Se(Math.round(T.flex*d)),S+=Y,C=u-S,y-=T.flex,d=C/y)}ee=Y,q.flexSize=Y}return h.push(Y),I.push(ee),q.computedSize=ee,v+=ee,q}),flexSizes:h,computedSizes:I,remainingSize:Math.round(t-v)}},FAe=["start",void 0,"end"],mSt=(e,t)=>(t.size>0&&e.sort((n,r)=>{let o=t.get(n),a=t.get(r);return o===!0&&(o="start"),a===!0&&(a="start"),o==a?0:FAe.indexOf(o)-FAe.indexOf(a)}),e),fSt=(e,t,n)=>!e.has(n)||e.get(n)!==!1,DW=(e,t)=>{let n=t.get(e);return n==="start"||n===!0?"start":n==="end"?"end":!1},hSt=({columns:e,generatedColumns:t,bodySize:n,columnMinWidth:r,columnMaxWidth:o,columnDefaultWidth:a,sortable:i,sortInfo:l,setSortInfo:u,multiSort:d,draggableColumns:c,columnOrder:m,columnPinning:f,columnVisibility:h,columnVisibilityAssumeVisible:b})=>{let C=0,y=mSt(m===!0?Array.from(t.keys()).concat(...e.keys()):m,f),v=y.filter(fSt.bind(null,h,b)),S=v.map(se=>{let X=e.get(se);if(!X&&(X=t.get(se),!X))throw`Column with id "${se}" specified in columnOrder array cannot be found in the columns map.`;return X}),I=(l??[]).reduce((se,X,ye)=>(X.id&&(se[X.id]={sortInfo:X,index:ye}),X.field&&(se[X.field]={sortInfo:X,index:ye}),se),{}),P=cSt({availableSize:n.width,maxSize:o,minSize:r,items:S.map(se=>{var X,ye;let ue=se.flex!=null?void 0:(X=se.width)!=null?X:a;return!ue&&se.flex==null&&(ue=(ye=se.minWidth)!=null?ye:r),{size:ue,flex:se.flex,minSize:se.minWidth,maxSize:se.maxWidth}})}),{computedSizes:T}=P,O=[],_=[],M=[],x=[],D=new Map,N=0,q=0,F=0,k=null,Y=[],Z=0,oe=0,ae=0;S.forEach((se,X)=>{let ye=v[X],ue=T[X],fe=Y[X]=DW(ye,f);fe==="start"?Z+=ue:fe==="end"?ae+=ue:oe+=ue});let ee=n.width-ae;return S.forEach((se,X)=>{var ye,ue,fe,Te,ke,et,ce,dn,Be;let w=v[X],V=v[X+1],L=I[w]?I[w]:se.field&&(ye=I[se.field])!=null?ye:null,ge=(ue=L?.sortInfo)!=null?ue:null,Me=!!ge,Ve=Me&&ge.dir===1,rt=Me&&!Ve,At=(fe=L?.index)!=null?fe:-1,Ft=T[X],Pn=()=>{let gr=ge,kn;gr?rt?kn=null:kn=fr(Xe({},ge),{dir:-1}):kn={dir:1,id:w,field:se.field,type:se.type},se.field&&kn&&!kn.field&&(kn.field=se.field);let rn=l?[...l]:[];d?At===-1?kn&&rn.push(kn):rn=rn.map((dr,pr)=>pr===At?kn:dr).filter(dr=>dr!=null):rn=kn?[kn]:[],u(rn)},wn=DW(w,f),xn=X===v.length-1,fo=wn==="start"?q:wn==="end"?F:C-q,Jn=wn==="start"||wn===!1?C:ee+F,Ne=wn!==k,nn=xn||wn!==DW(V,f),It=fr(Xe({align:"start",verticalAlign:"center"},se),{computedWidth:Ft,computedAbsoluteOffset:Jn,computedPinningOffset:fo,computedOffset:C,computedSortable:(ke=(Te=se.sortable)!=null?Te:i)!=null?ke:!0,computedSortInfo:ge,computedSortIndex:At,computedMultiSort:d,computedSorted:Me,computedSortedAsc:Ve,computedSortedDesc:rt,computedVisibleIndex:X,computedPinned:wn,computedDraggable:(ce=(et=se.draggable)!=null?et:c)!=null?ce:!0,computedFirstInCategory:Ne,computedLastInCategory:nn,computedFirst:X===0,computedLast:xn,toggleSort:Pn,id:w,header:(Be=(dn=se.header)!=null?dn:se.name)!=null?Be:se.field});C+=Ft,D.set(It.id,It),x.push(It),wn==="start"&&(O.push(It),q+=It.computedWidth),wn==="end"&&(_.push(It),F+=It.computedWidth),wn||(M.push(It),N+=It.computedWidth),k=wn}),{computedRemainingSpace:n.width-(Z+ae+oe),computedPinnedStartColumnsWidth:q,computedPinnedEndColumnsWidth:F,computedUnpinnedColumnsWidth:N,computedColumnOrder:y,computedPinnedStartColumns:O,computedPinnedEndColumns:_,computedUnpinnedOffset:q,computedPinnedEndOffset:q+N,computedUnpinnedColumns:M,computedVisibleColumns:x,computedVisibleColumnsMap:D}},QW=()=>{let[e,t]=(0,YM.useState)(0);return[e,(0,YM.useCallback)(()=>{t(n=>n+1)},[t])]};function qM(e,t){let{set:n,delete:r,clear:o}=e;return t.set&&(e.set=(a,i)=>(n.call(e,a,i),t.set(a,i),e)),t.delete&&(e.delete=a=>{let i=r.call(e,a);return t.delete(a),i}),(t.clear||t.beforeClear)&&(e.clear=()=>{t.beforeClear&&t.beforeClear(e);let a=o.call(e);return t.clear&&t.clear(),a}),()=>{n&&(e.set=n),r&&(e.delete=r),o&&(e.clear=o)}}var axe=e=>{let t=0;return()=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{t=0,e()})}},TW=e=>{let[t,n]=QW();return(0,oxe.useEffect)(()=>{let r=axe(n);return qM(e,{set:r,clear:r,delete:r})},[e]),t},gSt=({columns:e,generatedColumns:t,bodySize:n,columnMinWidth:r,columnMaxWidth:o,columnDefaultWidth:a,sortable:i,draggableColumns:l,sortInfo:u,multiSort:d,setSortInfo:c,columnOrder:m,columnPinning:f,columnVisibility:h,columnVisibilityAssumeVisible:b})=>{let C=TW(e),y=TW(h),v=TW(f),{computedRemainingSpace:S,computedColumnOrder:I,computedVisibleColumns:P,computedVisibleColumnsMap:T,computedPinnedStartColumns:O,computedPinnedEndColumns:_,computedUnpinnedColumns:M,computedPinnedStartColumnsWidth:x,computedPinnedEndColumnsWidth:D,computedUnpinnedColumnsWidth:N,computedUnpinnedOffset:q,computedPinnedEndOffset:F}=(0,rxe.useMemo)(()=>hSt({columns:e,generatedColumns:t,bodySize:n,columnMinWidth:r,columnMaxWidth:o,columnDefaultWidth:a,sortable:i,sortInfo:u,setSortInfo:c,multiSort:d,draggableColumns:l,columnOrder:m,columnPinning:f,columnVisibility:h,columnVisibilityAssumeVisible:b??!0}),[e,t,n.width,r,o,a,i,u,c,d,m,h,b,f,C,y,v]);return{columns:e,computedRemainingSpace:S,computedUnpinnedOffset:q,computedPinnedEndOffset:F,computedPinnedStartColumnsWidth:x,computedPinnedEndColumnsWidth:D,computedUnpinnedColumnsWidth:N,computedPinnedStartColumns:O,computedPinnedEndColumns:_,computedUnpinnedColumns:M,computedVisibleColumns:P,computedVisibleColumnsMap:T,computedColumnOrder:I}},ixe=(e,t)=>e-t,wW;function $M(){return wW||(wW=(0,uxe.createContext)({getState:()=>null,componentState:null,componentActions:null}))}function bSt(){let e=$M();return(0,sxe.useContext)(e).componentActions}var CSt=iSt(),dxe=CSt("InfiniteTable"),XM=e=>{let t=dxe.extend(e);return t.log=console.log.bind(console),t},ySt=e=>{let t=dxe.extend(`${e}:error`);return t.log=console.error.bind(console),t},hS=()=>hS;hS.extend=()=>hS;var jW=class{constructor(e){this.debug=hS,this.error=hS}},SSt=e=>e&&e.substr(0,1).toUpperCase()+e.substr(1),Lc=e=>{let t=(0,JM.useRef)(e);return t.current=e,(0,JM.useCallback)(()=>t.current,[])},LW=(e,t)=>{let n=(0,ZM.useRef)(t===void 0?e:t);return(0,ZM.useLayoutEffect)(()=>{n.current=e}),n.current},vSt=(e,t,n)=>{let o=`on${SSt(t)}Change`,a=e[o];typeof a=="function"&&a(n)},ASt=XM("rerender"),OW;function pxe(){return OW||(OW=(0,Di.createContext)(null))}function xSt(e,t,n){return Object.keys(t).reduce((r,o)=>{let a=o;return Object.defineProperty(r,o,{set:l=>{let u=n();vSt(u,o,l),!Ca(o,u)&&e({propertyName:o,payload:l})}}),r},{})}function cxe(e){return(0,dg.memo)(function(n){var r;let o=e.getParentState,a=(r=o?.())!=null?r:null,[{state:i,initialState:l}]=(0,Di.useState)(()=>{let S=e.getInitialState({props:n,parentState:a});if(e.deriveReadOnlyState){let I=e.deriveReadOnlyState({props:n,state:S,updated:null,parentState:a});return{state:Xe(Xe({},S),I),initialState:S,readOnlyState:I}}return{initialState:S,readOnlyState:{},state:S}}),u=Lc(n),d=(S,I)=>{let P=S,T=null;if(I.propertyName&&(T={[I.propertyName]:I.payload}),I.newControlledProps&&(T=I.payload),T!==null&&(S=Xe(Xe({},S),T)),e.deriveReadOnlyState){let _=e.deriveReadOnlyState({props:u(),state:S,updated:T,parentState:a});S=Xe(Xe({},S),_)}return e.concludeReducer?e.concludeReducer({previousState:P,state:S,updated:T,parentState:a}):S},[c,m]=(0,Di.useReducer)(d,i),f=(0,Di.useMemo)(()=>{var S,I;return(I=(S=e.getReducerActions)==null?void 0:S.call(e,m))!=null?I:{}},[m]),h=(0,Di.useMemo)(()=>{let S=xSt(m,l,u);return Object.assign(S,f)},[m,f]),b=pxe(),C=Lc(c),y=(0,Di.useMemo)(()=>({componentState:c,componentActions:h,getComponentState:C,updateStateProperty:(S,I)=>{m({propertyName:S,payload:I})}}),[c,h,C]),v=LW(n);return(0,Di.useEffect)(()=>{let S=n,I={},P=0;for(var T in i){let O=T;if(i.hasOwnProperty(T)&&Ca(O,n)){let _=v[O],M=S[O];if(_!==M){if(e.onControlledPropertyChange){let x=e.onControlledPropertyChange(T,M,_);typeof x=="function"&&(M=x(M,_))}I[O]=M,P++}}}P>0&&(ASt("Triggered by new values for the following props",I),m({newControlledProps:!0,payload:I}))}),(0,dg.createElement)(b.Provider,{value:y},n.children)})}function Vc(){let e=pxe();return(0,dg.useContext)(e)}function RSt(){let{componentState:{columnAggregations:e},getComponentState:t}=Vc(),n=bSt();(0,lxe.useEffect)(()=>{function r(){let o=[],a=t();e.forEach((i,l)=>{var u;let d=(u=a.columns.get(l))==null?void 0:u.field,c=Xe({getter:m=>d?m[d]:m},i);o.push(c)}),n.aggregationReducers=o}return r(),qM(e,{clear:r,delete:r,set:r})},[e])}function mxe(){let e=$M();return(0,YW.useContext)(e).componentState}function sg(){let e=$M();return(0,YW.useContext)(e)}function ESt(){let{componentState:{computedColumnGroups:e,collapsedColumnGroups:t},componentActions:n,getComponentState:r}=Vc();(0,kW.useEffect)(()=>{let a=axe(()=>{n.columnGroupsDepthsMap=qW(e)});return qM(e,{clear:a,delete:a,set:a})},[e]),(0,kW.useEffect)(()=>qM(t,{set:(o,a)=>{let i=o.slice(1),{columnVisibility:l}=r();i.forEach(u=>{l.set(u,!1)}),l.delete(a)},beforeClear:o=>{let{columnVisibility:a}=r();[...o.keys()].forEach(l=>{l.slice(1).forEach(d=>{a.delete(d)})})},delete:o=>{let{columnVisibility:a}=r();o.slice(1).forEach(l=>{a.delete(l)})}}),[t])}function ISt(e){let t=[];return Array.isArray(e.data)?t=e.data:t=e,{originalDataArray:t}}function PSt(e){return rSt(this,null,function*(){return typeof e=="function"&&(e=e()),ISt(yield e)})}function DSt(e){return{originalDataArray:e}}function TSt(){let{componentActions:e,componentState:{data:t}}=Vc(),n=r=>{let o={originalDataArray:[]};typeof r=="function"&&(r=r()),Array.isArray(r)?(o=DSt(r),e.originalDataArray=o.originalDataArray):(e.loading=!0,PSt(r).then(a=>{e.originalDataArray=a.originalDataArray,e.loading=!1}))};(0,fxe.useLayoutEffect)(()=>{n(t)},[t])}var hxe=e=>(e=e??[],Array.isArray(e)?e:[e]);function bxe(e){let t=!1,n=null;return()=>(t||(t=!0,n=e()),n)}function MAe(e){return(0,gxe.useMemo)(()=>bxe(e),[])()}var wSt=(e,t)=>ixe(e.revision,t.revision),fS=class{constructor(e){this.map=new Map,this.length=0,this.revision=0,this.visit=t=>{this.map.forEach((n,r)=>this.visitKey(r,this.map,[],t))},this.visitDepthFirst=t=>{this.visitWithNext([],t)},this.visitWithNext=(t,n,r=this.map)=>{if(!r)return;let o=0;r.forEach((a,i)=>{let l=r.get(i);if(!l)return;let{map:u}=l,d=[...t,i],c=u?()=>this.visitWithNext(d,n,u):void 0;l.hasOwnProperty("value")?(n(l.value,d,o,c),o++):c?.()})},e&&e.forEach(t=>{let[n,r]=t;this.set(n,r)})}set(e,t){let n=this.map;if(!e.length)throw"Cannot set given keys - please provide a non-empty keys array.";for(let r=0,o=e.length;r<o;r++){let a=e[r];if(r===o-1){let l=n.has(a)?n.get(a):{};l.revision=this.revision++,l.value=t,n.set(a,l),this.length++}else{let l=n.has(a)?n.get(a):{};l.map||(l.map=new Map,n.set(a,l)),n=l.map}}return this}get(e){var t;let n=this.map;if(!e.length)throw"Cannot get given keys - please provide a non-empty keys array.";for(let r=0,o=e.length;r<o;r++){let a=e[r];if(r===o-1)return(t=n.get(a))==null?void 0:t.value;{let l=n.get(a);if(!l||!l.map)return;n=l.map}}}get size(){return this.length}clear(){let e=t=>{t.forEach((n,r)=>{let{map:o}=n;o&&e(o)}),t.clear()};e(this.map),this.length=0,this.revision=0}delete(e){e=[...e];let t=this.map;if(!e.length)throw"Cannot delete given keys - please provide a non-empty keys array.";let n=[t],r=!1;for(let o=0,a=e.length;o<a;o++){let i=e[o];if(o===a-1){let u=t.get(i);u&&(u.hasOwnProperty("value")&&(delete u.value,delete u.revision,r=!0,this.length--),u.map&&u.map.size===0&&delete u.map,u.map||t.delete(i));break}else{let u=t.get(i);if(!u||!u.map){r=!1;break}t=u.map,n.push(t)}}for(;n.length;){let o=n.pop(),a=e.pop();if(a&&o?.size===0){let i=n[n.length-1],l=i?.get(a);l&&(delete l.map,l.hasOwnProperty("value")||i.delete(a))}}return r}has(e){let t=this.map;if(!e.length)throw"Cannot find existing given keys - please provide a non-empty keys array.";for(let n=0,r=e.length;n<r;n++){let o=e[n];if(n===r-1){let i=t.get(o);return!!i&&i.hasOwnProperty("value")}else{let i=t.get(o);if(!i||!i.map)return!1;t=i.map}}return!1}visitKey(e,t,n,r){let o=t.get(e);if(!o)return;let{map:a}=o,i=[...n,e],l=bxe(()=>{a&&a.forEach((u,d)=>{this.visitKey(d,a,i,r)})});o.hasOwnProperty("value")&&r(o,i,l),l()}getArray(e){let t=[];return this.visit((n,r)=>{t.push(e(fr(Xe({},n),{keys:r})))}),t}values(){return this.sortedIterator(e=>e.value)}keys(){return this.sortedIterator(t=>t.keys)}entries(){return this.sortedIterator(e=>[e.keys,e.value])}topDownEntries(){return this.getArray(e=>[e.keys,e.value])}topDownKeys(){return this.getArray(e=>e.keys)}topDownValues(){return this.getArray(e=>e.value)}sortedIterator(e){let t=[];this.visit((r,o)=>{t.push(fr(Xe({},r),{keys:o}))}),t.sort(wSt);function*n(){for(let r=0,o=t.length;r<o;r++)yield e(t[r])}return n()}},eN=class{constructor(e){this.update(e instanceof eN?e.getState():e)}getState(){var e,t,n,r;return{expandedRows:this.expandedAll?!0:(t=(e=this.expandedMap)==null?void 0:e.topDownKeys())!=null?t:[],collapsedRows:this.collapsedAll?!0:(r=(n=this.collapsedMap)==null?void 0:n.topDownKeys())!=null?r:[]}}destroy(){var e,t;(e=this.expandedMap)==null||e.clear(),(t=this.collapsedMap)==null||t.clear(),delete this.expandedMap,delete this.collapsedMap}update(e){var t,n,r,o;this.initialState=e;let{collapsedRows:a,expandedRows:i}=this.initialState;if(this.collapsedAll=a===!0,this.expandedAll=i===!0,this.collapsedAll&&this.expandedAll)throw"Cannot have both collapsedRows and expandedRows be true!";a!==!0&&((t=this.collapsedMap)==null||t.clear(),this.collapsedMap=(n=this.collapsedMap)!=null?n:new fS(a.map(l=>[l,!0]))),i!==!0&&((r=this.expandedMap)==null||r.clear(),this.expandedMap=(o=this.expandedMap)!=null?o:new fS(i.map(l=>[l,!0])))}areAllCollapsed(){return this.collapsedAll&&(this.expandedMap?this.expandedMap.size===0:!0)}areAllExpanded(){return this.expandedAll&&(this.collapsedMap?this.collapsedMap.size===0:!0)}collapseAll(){this.update({collapsedRows:!0,expandedRows:[]})}expandAll(){this.update({expandedRows:!0,collapsedRows:[]})}isGroupRowExpanded(e){var t,n;if(this.expandedAll===!0){if(this.collapsedAll===!0)throw'Cannot have both expandedRows and collapsedRows be "true"';return!((t=this.collapsedMap)!=null&&t.has(e))}return(n=this.expandedMap)==null?void 0:n.has(e)}isGroupRowCollapsed(e){return!this.isGroupRowExpanded(e)}setGroupRowExpanded(e,t){var n;if(t!==this.isGroupRowExpanded(e)){if(t){if(this.collapsedAll===!0){if(!this.expandedMap)throw`No expandedMap found when trying to expand group row ${e.join(",")}`;this.expandedMap.set(e,!0)}else if(this.expandedAll===!0){if(!this.collapsedMap)throw`No collapsedMap found when trying to expand group row ${e.join(",")}`;this.collapsedMap.delete(e)}}else if(this.expandedAll===!0){if(!this.collapsedMap)throw`No collapsedMap found when trying to collapse group row ${e.join(",")}`;this.collapsedMap.set(e,!0)}else if(this.collapsedAll===!0){if(!this.expandedMap)throw`No expandedMap found when trying to collapse group row ${e.join(",")}`;(n=this.expandedMap)==null||n.delete(e)}}}collapseGroupRow(e){this.setGroupRowExpanded(e,!1)}expandGroupRow(e){this.setGroupRowExpanded(e,!0)}toggleGroupRow(e){this.setGroupRowExpanded(e,!this.isGroupRowExpanded(e))}};function OSt(e){var t,n,r,o,a;let{props:i}=e,l=[],u=[],d=hxe(Ca("sortInfo",i)?i.sortInfo:i.defaultSortInfo),c=i.groupRowsState||i.defaultGroupRowsState||new eN({expandedRows:!0,collapsedRows:[]}),m=Date.now();return{data:i.data,loading:(n=(t=i.loading)!=null?t:i.defaultLoading)!=null?n:!1,dataArray:l,originalDataArray:u,sortInfo:d,groupRowsState:c,updatedAt:m,groupedAt:0,sortedAt:0,reducedAt:m,pivotColumns:void 0,pivotColumnGroups:void 0,groupRowsBy:Ca("groupRowsBy",i)?(r=i.groupRowsBy)!=null?r:[]:(o=i.defaultGroupRowsBy)!=null?o:[],pivotBy:Ca("pivotBy",i)?(a=i.pivotBy)!=null?a:[]:i.defaultPivotBy,aggregationReducers:void 0,pivotTotalColumnPosition:"end"}}function FSt(e){var t;let{props:n,state:r}=e,o=Ca("sortInfo",n)?n.sortInfo:(t=n.defaultSortInfo)!=null?t:null;return{multiSort:Array.isArray(o),sortInfo:hxe(r.sortInfo),primaryKey:n.primaryKey,groupDeepMap:void 0,postSortDataArray:void 0,postGroupDataArray:void 0}}var MSt={number:function(e,t){return e-t},string:function(e,t){return e=`${e}`,t=`${t}`,e.localeCompare(t)}},Cxe=MSt,zM=(e,t,n)=>(t.sort(LSt(e,n)),t);zM.knownTypes=Cxe;var NSt=e=>{if(!e)return;let t=e.field;var n=e.dir<0?-1:e.dir>0?1:0;if(!n)return;let r=e.fn;return!r&&e.type&&(r=zM.knownTypes[e.type],r||console.warn(`Unknown sort type "${e.type}" - please pass one of ${Object.keys(zM.knownTypes).join(", ")}`)),r||(r=Cxe.string),(o,a)=>{let i=t?o[t]:o,l=t?a[t]:a;return n*r(i,l)}},_St=e=>e.map(NSt).filter(t=>t instanceof Function),LSt=(e,t)=>{let n=_St(e);return(r,o)=>{t&&(r=t(r),o=t(o));let a=0,i=0,l,u=n.length;for(;i<u;i++)if(l=n[i],!!l&&(a=l(r,o),a!==0))return a;return a}};function kSt(e){return e}function BSt(e){return!e||!e.length?[]:e.map(t=>t.initialValue)}function FW(e,t,n){!t||!t.length||t.forEach((r,o)=>{let a=n[o];n[o]=r.reducer(a,r.getter(e),e)})}function VSt(e,t){let{groupBy:n,defaultToKey:r=kSt,pivot:o,reducers:a}=e,i=n.length,l=o?new fS:void 0,u=new fS,d=[],c=[],m=BSt(a),f=[...m];for(let b=0,C=t.length;b<C;b++){let y=t[b];for(let v=0;v<i;v++){let{field:S,toKey:I}=n[v],P=(I||r)(y[S],y);if(d.push(P),!u.has(d)){let M={items:[],reducerResults:[...m]};o&&(M.pivotDeepMap=new fS),u.set(d,M)}let{items:T,reducerResults:O,pivotDeepMap:_}=u.get(d);if(T.push(y),a&&FW(y,a,O),o){for(let M=0,x=o.length;M<x;M++){let{field:D,toKey:N}=o[M],q=(N||r)(y[D],y);c.push(q),_.has(c)||(l.set(c,!0),_?.set(c,{reducerResults:[...m],items:[]}));let{reducerResults:F,items:k}=_.get(c);k.push(y),a&&FW(y,a,F)}c.length=0}}a&&FW(y,a,f),d.length=0}a&&u.visitDepthFirst((b,C,y,v)=>{MW(a,b.reducerResults,b.items),o&&b.pivotDeepMap.visitDepthFirst(({items:S,reducerResults:I},P,T,O)=>{MW(a,I,S),O?.()}),v?.()}),a&&MW(a,f,t);let h={deepMap:u,groupParams:e,initialData:t,reducerResults:f};return o&&(h.topLevelPivotColumns=l,h.pivot=o),h}function GSt(e,t){let{groupBy:n,groupKeys:r,collapsed:o}=e,a=r.length,{items:i,reducerResults:l,pivotDeepMap:u}=t;return{data:null,groupCount:i.length,groupData:i,groupKeys:r,id:r,collapsed:o,indexInGroup:e.indexInGroup,indexInAll:e.indexInAll,value:r[r.length-1],groupBy:n.slice(0,a),isGroupRow:!0,pivotValuesMap:u,groupNesting:a,reducerResults:l}}function MW(e,t,n){return e&&e.length&&e?.forEach((r,o)=>{r.done&&(t[o]=r.done(t[o],n))}),t}function HSt(e,t,n){let{groupParams:r,deepMap:o,pivot:a}=e,{groupBy:i}=r,l=i.map(c=>c.field),u=[],d=[];return o.visitDepthFirst((c,m,f,h)=>{var b;let C=c.items,y=m.length,v=(b=n?.isGroupRowCollapsed(m))!=null?b:!1,S=GSt({groupBy:l,indexInGroup:f,indexInAll:u.length,groupKeys:m,collapsed:v},c);if(u.push(S),d.push(S),!v){if(h)h();else if(!a){let I=u.length;u.push(...C.map((P,T)=>({id:t(P),data:P,isGroupRow:!1,collapsed:!1,parentGroupKeys:m,indexInGroup:T,indexInAll:I+T,groupBy:l,groupNesting:y})))}}d.pop()}),{data:u}}function USt(e,t,n){let r=t.length,o=new Map([["labels",{header:"Row labels",valueGetter:l=>{var u;let{enhancedData:d}=l;return d.groupKeys?d.groupKeys[((u=d.groupKeys)==null?void 0:u.length)-1]:null}}]]),a=new Map;return e.visitDepthFirst((l,u,d,c)=>{if(u=[...u],n==="end"&&c?.(),u.length===r){let m=u.slice(0,-1),f=m.join("/");o.set(`${u.join("/")}`,{pivotBy:t,pivotColumn:!0,pivotGroupKeys:u,sortable:!1,columnGroup:m.length?`${f}`:void 0,header:u[u.length-1],valueGetter:({enhancedData:h})=>{var b,C,y;return(y=(C=(b=h.pivotValuesMap)==null?void 0:b.get(u))==null?void 0:C.reducerResults[0])!=null?y:null}})}else{let m=u.join("/"),f=u.slice(0,-1);a.set(m,{columnGroup:f.length?f.join("/"):void 0,header:u.join(" >> ")}),n!==!1&&o.set(`${u.join("/")}-total`,{columnGroup:f.length?f.join("/"):void 0,header:`${u.join("/")} total `,pivotTotalColumn:!0,pivotGroupKeys:u,pivotBy:t,sortable:!1,valueGetter:({enhancedData:h})=>{var b,C,y;return(y=(C=(b=h.pivotValuesMap)==null?void 0:b.get(u))==null?void 0:C.reducerResults[0])!=null?y:null}})}(n==="start"||n===!1)&&c?.()}),o.size===1&&o.set("single",{header:"Reduced",valueGetter:({enhancedData:l})=>{var u;return(u=l.reducerResults)==null?void 0:u[0]}}),{columns:o,columnGroups:a}}var NAe=(e,t)=>{if(!e)return!1;for(var n=0,r=t.length;n<r;n++)if(e.hasOwnProperty(t[n]))return!0;return!1};function WSt(e,t,n){return{data:e,collapsed:!0,id:t,indexInAll:n,indexInGroup:n}}function qSt(e){var t;let{state:n,previousState:r,updated:o}=e,a=n.sortInfo,i=a?.length,l=NAe(o,["originalDataArray","sortInfo"]),u=i&&(l||!n.lastSortDataArray),d=n.groupRowsBy,c=n.pivotBy,m=d.length||c,f=NAe(o,["originalDataArray","groupRowsBy","groupRowsState","pivotBy","aggregationReducers","pivotTotalColumnPosition","sortInfo"]),h=m&&(f||!n.lastGroupDataArray),b=Date.now(),C=n.originalDataArray,y=n.dataArray;i&&(C=u?zM(a,[...C]):n.lastSortDataArray,n.lastSortDataArray=C,n.sortedAt=b),n.postSortDataArray=C,n.groupDeepMap=void 0;let v=S=>S[n.primaryKey];if(m){if(h){let S=VSt({groupBy:d,pivot:c,reducers:n.aggregationReducers},C);y=HSt(S,v,n.groupRowsState).data,n.groupDeepMap=S.deepMap;let P=c?USt(S.topLevelPivotColumns,c,(t=n.pivotTotalColumnPosition)!=null?t:"end"):void 0;n.pivotColumns=P?.columns,n.pivotColumnGroups=P?.columnGroups}else y=n.lastGroupDataArray;n.lastGroupDataArray=y,n.groupedAt=b}else n.groupDeepMap=void 0,n.pivotColumns=void 0,r.postSortDataArray!=n.postSortDataArray&&(y=C.map((I,P)=>WSt(I,v(I),P)));return n.postGroupDataArray=y,y!==n.dataArray&&(n.updatedAt=b),n.dataArray=y,n.reducedAt=b,globalThis.state=n,n}var _Ae;(function(e){e.INIT="INIT"})(_Ae||(_Ae={}));function zSt(e){let{children:t}=e,n=mxe();return typeof t=="function"&&(t=t(n)),(0,xd.createElement)(xd.Fragment,null,t)}var QSt=cxe({getInitialState:OSt,concludeReducer:qSt,deriveReadOnlyState:FSt});function jSt({children:e}){let t=$M(),{componentState:n,componentActions:r}=Vc(),o=Lc(n),a={componentState:n,componentActions:r,getState:o};return TSt(),(0,xd.createElement)(t.Provider,{value:a},(0,xd.createElement)(zSt,{children:e}))}function Gc(e){return(0,xd.createElement)(QSt,Xe({},e),(0,xd.createElement)(jSt,{children:e.children}))}var Jt=(e,t)=>`it__${e}=${t}`,ut={variables:{space:["--it-space-0","--it-space-1","--it-space-2","--it-space-3","--it-space-4","--it-space-5","--it-space-6","--it-space-7","--it-space-8","--it-space-9","--it-space-10"],borderRadius:"--it__border-radius",fontSize:["--it-font-size-0","--it-font-size-1","--it-font-size-2","--it-font-size-3","--it-font-size-4","--it-font-size-5","--it-font-size-6","--it-font-size-7"]},alignItems:{center:Jt("align-items","center"),stretch:Jt("align-items","stretch")},justifyContent:{center:Jt("justify-content","center"),"flex-start":Jt("justify-content","flex-start"),flexStart:Jt("justify-content","flex-start"),"flex-end":Jt("justify-content","flex-end"),flexEnd:Jt("justify-content","flex-end")},overflow:{hidden:Jt("overflow","hidden"),visible:Jt("overflow","visible"),auto:Jt("overflow","auto")},overflowX:{hidden:Jt("overflow-x","hidden"),visible:Jt("overflow-x","visible"),auto:Jt("overflow-x","auto")},overflowY:{hidden:Jt("overflow-y","hidden"),visible:Jt("overflow-y","visible"),auto:Jt("overflow-y","auto")},cursor:{pointer:Jt("cursor","pointer")},height:{0:Jt("height","0"),"100%":Jt("height","100%")},width:{0:Jt("width","0"),"100%":Jt("width","100%")},top:{0:Jt("top","0"),"100%":Jt("top","100%")},left:{0:Jt("left","0"),"100%":Jt("left","100%")},transform:{translate3D000:Jt("transform","translate3D000")},willChange:{transform:Jt("will-change","transform")},position:{relative:Jt("position","relative"),absolute:Jt("position","absolute"),fixed:Jt("position","fixed")},display:{flex:Jt("display","flex")},flexFlow:{row:Jt("flex-flow","row"),column:Jt("flex-flow","column")},whiteSpace:{nowrap:Jt("white-space","nowrap")},textOverflow:{ellipsis:Jt("text-overflow","ellipsis")},userSelect:{none:Jt("user-select","none")}},AS=`${ut.whiteSpace.nowrap} ${ut.textOverflow.ellipsis} ${ut.overflow.hidden}`;function KW(e){var t;let{size:n=24}=e,r=Xe({},e.style),[o,a]=(0,yxe.useState)((t=e.expanded)!=null?t:e.defaultExpanded);o&&(r.transform="rotate(90deg)");let i=()=>{var l;(l=e.onChange)==null||l.call(e,!o),Ca("expanded",e)||a(!o)};return(0,gS.useEffect)(()=>{Ca("expanded",e)&&a(e.expanded)},[e.expanded]),(0,gS.createElement)("svg",{"data-name":"expander-icon",xmlns:"http://www.w3.org/2000/svg",height:`${n}px`,viewBox:"0 0 24 24",width:`${n}px`,style:r,onClick:i,className:mr(e.className,"ITableIcon","ITableIcon-expander",`ITableIcon-expander--${o?"expanded":"collapsed"}`)},(0,gS.createElement)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}))}function YSt(e,t){if(!e)return;let{pivotColumn:n,pivotRowLabelsColumn:r,pivotBy:o,groupRowsBy:a,pivotTotalColumnPosition:i,toggleGroupRow:l}=t,u=new Map;return e.forEach((d,c)=>{if(d.pivotTotalColumn&&i===!1)return;let m=Xe({},d);n&&(typeof n=="function"?m=Xe(Xe({},m),n({column:m,pivotBy:o,groupRowsBy:a})):m=Xe(Xe({},m),n));let f=!m.pivotColumn&&!m.pivotTotalColumn;r&&f&&(typeof r=="function"?m=Xe(Xe({},m),r({column:m,pivotBy:o,groupRowsBy:a})):m=Xe(Xe({},m),r)),f&&!m.render&&(m.render=h=>{var b;let{value:C,enhancedData:y,column:v,groupRowsBy:S}=h;v.renderValue&&(C=v.renderValue(h));let I=(((b=y.groupKeys)==null?void 0:b.length)||0)<S.length;return(0,HM.createElement)("div",{className:mr(ut.display.flex,ut.alignItems.center),style:{paddingInlineStart:`calc(${y.groupNesting-1} * var(--ITableRow-group-column-nesting))`}},I?(0,HM.createElement)(KW,{expanded:!y.collapsed,onChange:()=>{l(y.groupKeys)}}):null,(0,HM.createElement)("div",{className:AS},C??null))}),!m.render&&m.renderValue&&(m.render=h=>m.renderValue(h)),u.set(c,m)}),u}function KSt(e,t,n){let{groupBy:r,groupIndex:o}=e,a=Xe({header:`Group by ${r.field}`,groupByField:r.field,sortable:!1,render:i=>{let{value:l,enhancedData:u,column:d}=i;return!u.isGroupRow||o+1!==u.groupNesting?null:(d.renderValue&&(l=d.renderValue(i)),(0,_c.createElement)("div",{className:mr(ut.display.flex,ut.alignItems.center)},(0,_c.createElement)(KW,{expanded:!u.collapsed,onChange:()=>{t(u.groupKeys)}}),(0,_c.createElement)("div",{className:AS},l??null)))}},r.column);return n&&(typeof n=="function"?a=Xe(Xe({},a),n(e,t)):a=Xe(Xe({},a),n)),a}function $St(e,t,n){let r={header:"Group",groupByField:e.groupRowsBy.map(o=>o.field),sortable:!1,render:o=>{let{value:a,enhancedData:i,column:l}=o;return i.isGroupRow?(l.renderValue&&(a=l.renderValue(o)),(0,_c.createElement)("div",{className:mr(ut.display.flex,ut.alignItems.center),style:{paddingInlineStart:`calc(${i.groupNesting-1} * var(--ITableRow-group-column-nesting))`}},(0,_c.createElement)(KW,{expanded:!i.collapsed,onChange:()=>{t(i.groupKeys)}}),(0,_c.createElement)("div",{className:AS},a??null))):null}};return n&&(typeof n=="function"?r=Xe(Xe({},r),n(e,t)):r=Xe(Xe({},r),n)),r}function XSt(e){let{groupRowsBy:t,groupColumn:n,groupRenderStrategy:r}=e;return r||(n!=null&&typeof n=="object"?"single-column":(t.filter(a=>a.column).length,"multi-column"))}function JSt(){let{componentState:{groupRowsBy:e,pivotBy:t},getState:n,componentActions:r}=sg(),{getComponentState:o,componentActions:a,componentState:{groupColumn:i,groupRenderStrategy:l,pivotColumn:u,pivotRowLabelsColumn:d,pivotColumns:c,pivotTotalColumnPosition:m}}=Vc(),f=(0,og.useCallback)(h=>{let b=new eN(n().groupRowsState);b.toggleGroupRow(h),r.groupRowsState=b},[]);(0,og.useEffect)(()=>{let h=o();if(c){h.generatedColumns.size&&(a.generatedColumns=new Map);return}a.generatedColumns=ZSt({groupColumn:i,groupRenderStrategy:l,groupRowsBy:e,pivotColumns:c,toggleGroupRow:f})},[e,i,l,c]),(0,og.useEffect)(()=>{r.pivotTotalColumnPosition=m},[m]),(0,og.useEffect)(()=>{let h=YSt(c,{pivotColumn:u,pivotRowLabelsColumn:d,pivotTotalColumnPosition:m,pivotBy:t,groupRowsBy:e,toggleGroupRow:f});a.computedPivotColumns=h},[c,u,d])}function ZSt(e){let{pivotColumns:t,groupRowsBy:n,groupColumn:r,groupRenderStrategy:o,toggleGroupRow:a}=e,i=new Map;if(t)return i;let l=XSt({groupRowsBy:n,groupColumn:r,groupRenderStrategy:o});return o==="multi-column"?n.forEach((u,d,c)=>{i.set(`group-by-${u.field}`,KSt({groupBy:u,groupRowsBy:n,groupIndex:d,groupCount:c.length},a,r))}):l==="single-column"&&i.set("group-by",$St({groupCount:n.length,groupRowsBy:n},a,r)),i}function evt(){let{componentActions:e,componentState:t,updateStateProperty:n}=Vc(),{componentActions:r,componentState:o}=sg(),{columnOrder:a,columnVisibility:i,columnPinning:l,bodySize:u}=t;(0,KM.useState)(()=>{t.onRowHeightChange.onChange(k=>{k&&(e.rowHeightComputed=k)}),t.onHeaderHeightChange.onChange(k=>{k&&n("headerHeight",k)})}),RSt();let{multiSort:d}=o;ESt(),JSt();let c=(0,KM.useCallback)(k=>{var Y;r.sortInfo=d?k:(Y=k[0])!=null?Y:null},[d]),{computedColumnOrder:m,computedVisibleColumns:f,computedVisibleColumnsMap:h,computedPinnedStartColumns:b,computedPinnedEndColumns:C,computedUnpinnedColumns:y,computedPinnedStartColumnsWidth:v,computedPinnedEndColumnsWidth:S,computedUnpinnedColumnsWidth:I,computedUnpinnedOffset:P,computedPinnedEndOffset:T,computedRemainingSpace:O}=gSt({columns:t.computedPivotColumns||t.columns,generatedColumns:t.generatedColumns,columnMinWidth:t.columnMinWidth,columnMaxWidth:t.columnMaxWidth,columnDefaultWidth:t.columnDefaultWidth,bodySize:u,sortable:t.sortable,draggableColumns:t.draggableColumns,sortInfo:o.sortInfo,multiSort:d,setSortInfo:c,columnOrder:a,columnVisibility:i,columnVisibilityAssumeVisible:!0,columnPinning:l}),_=y.map(k=>k.computedWidth),M=[..._].sort(ixe),x=0,D=0,N=u.width-S-v;for(;N>0&&D<=N;)D+=M[x],x++;N>0&&x++,x=Math.min(x,y.length);let q=0,F=t.scrollPosition.scrollLeft;for(D=0;D<F;)D+=_[q],q++;return D>F&&q--,{computedVisibleColumns:f,computedColumnOrder:m,computedRemainingSpace:O,computedVisibleColumnsMap:h,computedColumnVisibility:i,computedPinnedStartColumns:b,computedPinnedEndColumns:C,computedUnpinnedColumns:y,computedPinnedStartColumnsWidth:v,computedPinnedEndColumnsWidth:S,computedUnpinnedColumnsWidth:I,computedUnpinnedOffset:P,computedPinnedEndOffset:T,unpinnedColumnRenderCount:x,columnRenderStartIndex:q}}var Sxe=()=>Xs,tvt=(0,tN.forwardRef)(function(t,n){let{rootClassName:r}=Sxe();return(0,tN.createElement)("div",fr(Xe({ref:n},t),{className:mr(`${r}Body`,ut.position.relative,ut.transform.translate3D000,t.className)}))});function nvt(){return globalThis}var GM;function kc(){var e,t;if(GM!=null)return GM;let n=(e=nvt().document)!=null?e:null;if(!n)return 0;let r=n.createElement("div");r.style.visibility="hidden",r.style.overflow="scroll",n.body.appendChild(r);let o=n.createElement("div");return r.appendChild(o),GM=r.offsetWidth-o.offsetWidth,(t=r.parentNode)==null||t.removeChild(r),GM}function rvt(e){let t=kc();return t?(0,pg.createElement)("div",{"data-name":"horizontal-scrollbar-placeholder",style:Xe({position:"absolute",overflow:"visible",overflowX:"scroll",height:t,bottom:0},e.style)}):null}var vxe=(0,pg.memo)(rvt);function ovt(e){let t=kc();return t?(0,pg.createElement)("div",{"data-name":"vertical-scrollbar-placeholder",style:Xe({position:"absolute",overflow:"visible",overflowY:"scroll",width:t,bottom:0},e.style)}):null}var avt=(0,pg.memo)(ovt),ivt=()=>{let e=WW(),{componentState:t}=(0,Axe.useContext)(e);return t},{rootClassName:xxe}=Xs,CS=`${xxe}Cell`;function lvt(e){let t=e,{cssEllipsis:n=!0,virtualized:r=!0,skipColumnShifting:o=!1,offsetProperty:a="left",column:i,domRef:l,children:u,afterChildren:d,beforeChildren:c,offset:m}=t,f=jM(t,["cssEllipsis","virtualized","skipColumnShifting","offsetProperty","column","domRef","children","afterChildren","beforeChildren","offset"]),{columnShifts:h}=ivt(),b=!!h,C=Xe({width:i.computedWidth,left:m??0},f.style);if(!o&&h&&h[i.computedVisibleIndex]){let y=h[i.computedVisibleIndex]+(m??0);r?C.left=y:C.transform=`translate3d(${y}px, 0px, 0px)`}return(0,bS.createElement)("div",fr(Xe({},f),{ref:l,style:C,"data-name":"Cell",className:mr(f.className,ut.display.flex,ut.flexFlow.row,ut.alignItems.center,ut.justifyContent[i.align==="center"?i.align:`flex-${i.align}`],CS,b?`${CS}--shifting`:"")}),c,n?(0,bS.createElement)("div",{className:`${xxe}Cell_content ${AS}`},u):u,d)}var Rxe=(0,bS.memo)(lvt),svt=UW(XAe()),uvt=(e,t,n)=>{if(e=[...e],t===n||e[t]===void 0||e[n]===void 0)return e;let r=e[t];return n<t,e.splice(t,1),e.splice(n,0,r),e},dvt=e=>Array.from(e.values()).map(t=>({columnId:t.id,breakpoint:t.computedAbsoluteOffset+Math.round(t.computedWidth/2)})),pvt=({columnId:e,domRef:t,columns:n,computedRemainingSpace:r})=>{let[o,a]=(0,Bo.useState)(null),[i,l]=(0,Bo.useState)(null),u=(0,Bo.useRef)([]),d=(0,Bo.useRef)(null),c=(0,Bo.useRef)(!1),m=(0,Bo.useRef)(null),f=(0,Bo.useRef)(null),h=o!=null,{componentActions:b,computed:C}=Js(),{computedColumnOrder:y}=C,v=(0,Bo.useMemo)(()=>n.get(e),[e,n]),{columnIndex:S,columnWidth:I,columnsArray:P}=(0,Bo.useMemo)(()=>{let M=Array.from(n.values());return{columnsArray:M,columnIndex:M.findIndex(x=>x.id===e),columnWidth:v.computedWidth}},[n,e,v]),T=(0,Bo.useRef)("auto"),O=(0,Bo.useCallback)(M=>{let x=t.current;T.current=x.style.cursor,c.current=!1,m.current={clientX:M.clientX,clientY:M.clientY};let D=N=>{if(!c.current){c.current=!0,u.current=dvt(n),a({top:0,left:0});let ee=x.getBoundingClientRect();l({left:N.clientX-ee.x-10,top:N.clientY-ee.y-10}),x.style.cursor="grabbing"}let q=N.clientX-m.current.clientX,F=N.clientY-m.current.clientY,k=q<0?-1:1,Y=v.computedPinned,Z=k===-1?v.computedAbsoluteOffset+q:v.computedAbsoluteOffset+v.computedWidth+q,oe=u.current,ae=(0,svt.default)(oe,Z,({breakpoint:ee},Se)=>ee<Se?-1:ee>Se?1:0);if(ae<0&&(ae=~ae),ae!==f.current){f.current=ae;let ee=P.map(()=>0),Se=0;if(k===-1)for(let se=ae;se<S;se++){let X=I;Y==="end"&&P[se].computedPinned===!1&&P[se].computedLastInCategory&&r>0&&(X+=r),ee[se]=X,Se-=X}else for(let se=S+1;se<ae;se++)ee[se]=-I,Se+=I;ae!==S&&(ee[S]=Se),b.columnShifts=ee,b.draggingColumnId=v.id}a({left:q,top:F})};d.current=D,x.addEventListener("pointermove",D),x.setPointerCapture(M.pointerId)},[n,v,S,P,r]),_=(0,Bo.useCallback)(M=>{let x=t.current;x.style.cursor=T.current,x.releasePointerCapture(M.pointerId),x.removeEventListener("pointermove",d.current),a(null),b.columnShifts=null,b.draggingColumnId=null,!c.current&&v.computedSortable&&v.toggleSort();let D=f.current;if(D!=null&&D!==S){let N=uvt(y,S,D>S?D-1:D);b.columnOrder=N}u.current=[],d.current=null,c.current=!1,m.current=null,f.current=null},[v,S,b,y]);return{onPointerUp:v.computedDraggable?_:()=>{},onPointerDown:v.computedDraggable?O:()=>{},dragging:h,proxyOffset:i,draggingDiff:o??{top:0,left:0}}};function Exe(e,t){let n=[...t];return e.computedFirst&&n.push(...t.map(r=>`${r}--first`)),e.computedLast&&n.push(...t.map(r=>`${r}--last`)),e.computedFirstInCategory&&n.push(...t.map(r=>`${r}--first-in-category`)),e.computedLastInCategory&&n.push(...t.map(r=>`${r}--last-in-category`)),e.computedPinned?n.push(...t.map(r=>`${r}--pinned-${e.computedPinned}`)):n.push(...t.map(r=>`${r}--unpinned`)),n.join(" ")}var cvt={marginTop:2,marginBottom:2,transition:"width 0.25s, opacity 0.25s"};function mvt(e){var t;let[n,r]=(0,yS.useState)(!0),[o,a]=(0,yS.useState)(0),{direction:i,lineWidth:l=1,style:u,className:d,index:c}=e,m=c!=null&&c>0,f=(t=e.size)!=null?t:16,h=Math.floor(f/4),b=i?[f-3*h,f-2*h,f-h]:[0,0,0];i===-1&&b.reverse();let C=fr(Xe(fr(Xe({},cvt),{borderTop:`${l}px solid currentColor`}),e.lineStyle),{opacity:o});(0,yS.useEffect)(()=>{let S=i!=0?1:0;!n&&S&&r(!0),S!==o&&requestAnimationFrame(()=>{a(S)})},[i,n]);let y=()=>{let I=!(o===0&&i===0);I!==n&&r(I)};if(!n)return null;let v={position:"absolute",transition:"top 0.2s",top:0,right:2};return i===-1&&(v.top="100%"),(0,ng.createElement)("div",{style:fr(Xe({},u),{width:f}),className:mr(d,"ITableIcon","ITableIcon-sort")},m?(0,ng.createElement)("div",{"data-name":"index",style:v},c):null,(0,ng.createElement)("div",{style:Xe({width:b[0]},C),onTransitionEnd:y}),(0,ng.createElement)("div",{style:Xe({width:b[1]},C)}),(0,ng.createElement)("div",{style:Xe({width:b[2]},C)}))}var fvt={position:"absolute",top:0},{rootClassName:hvt}=Xs,uS=`${hvt}HeaderCell`;function $W(e){var t,n,r,o;let a=e.column,i=e.columns,{onResize:l,virtualized:u=!0,headerHeight:d}=e,{cssPosition:c,offset:m}=e;u===!1&&(c=c??"relative",m=m??0);let f=a.computedSortInfo,h=a.header;h instanceof Function&&(h=h({column:a,columnSortInfo:f})),h=h??a.name;let b=(0,Nc.createElement)(mvt,{index:a.computedMultiSort?a.computedSortIndex+1:void 0,className:`${uS}__sort-icon`,direction:a.computedSorted?a.computedSortedAsc?1:-1:0}),C=(0,mg.useRef)(null),y=(0,mg.useCallback)(N=>{var q;C.current=N,(q=e.domRef)==null||q.call(e,N)},[e.domRef]),{computed:{computedRemainingSpace:v},componentState:{portalDOMRef:S}}=Js();(0,mg.useEffect)(()=>{let N=null,q=C.current;return l&&q&&(N=txe(q,l)),()=>{N?.()}},[C.current,e.onResize]);let I=fr(Xe({},fvt),{position:c??"absolute",height:d}),{onPointerDown:P,onPointerUp:T,dragging:O,draggingDiff:_,proxyOffset:M}=pvt({computedRemainingSpace:v,columnId:a.id,domRef:C,columns:i}),x=m??(u?0:a.computedPinningOffset),D=null;return O&&(D=(0,Nc.createElement)("div",{className:`${uS}Proxy`,style:{position:"absolute",height:d,width:a.computedWidth,left:a.computedAbsoluteOffset+_.left+((t=M?.left)!=null?t:0),top:_?.top+((n=M?.top)!=null?n:0),zIndex:1}},h),D=(0,Ixe.createPortal)(D,S.current)),(0,Nc.createElement)(Nc.Fragment,null,(0,Nc.createElement)(Rxe,{domRef:y,column:a,"data-name":"HeaderCell","data-column-id":a.id,style:I,offset:x,onPointerDown:P,onPointerUp:T,className:mr(uS,ut.userSelect.none,a.computedSortable?ut.cursor.pointer:"",Exe(a,[uS,CS]),O?`${CS}--dragging ${uS}--dragging`:""),cssEllipsis:(o=(r=a.headerCssEllipsis)!=null?r:a.cssEllipsis)!=null?o:!0,afterChildren:b},h),D)}var gvt=class extends jW{constructor(e){super(`MappedItems:${e}`),this.getUnrenderedItems=(t,n)=>{let r=[];for(let o=t;o<=n;o++)this.isRenderedItem(o)||r.push(o);return r},this.getElementsOutsideItemRange=(t,n)=>{let r=this.elementIndexToItemIndex,o=[];for(let a in r){let i=r[a];(i<t||i>n)&&o.push(a>>0)}return o},this.getFirstUnrenderedElementIndex=(t,n=0)=>{for(let r=n;r<=t;r++)if(this.getItemRenderedAtElementIndex(r)==null)return r;return-1},this.getElementIndexForItem=t=>{var n;return(n=this.itemIndexToElementIndex[t])!=null?n:null},this.isRenderedItem=t=>this.itemIndexToElementIndex[t]!=null,this.isElementRendered=t=>this.getItemRenderedAtElementIndex(t)!=null,this.getItemRenderedAtElementIndex=t=>{let n=this.elementIndexToItemIndex[t];return n??null},this.getRenderedElement=t=>this.renderedElements[t],this.getRenderedElementAtItemIndex=t=>{let n=this.itemIndexToElementIndex[t];return this.renderedElements[n]},this.discardItem=t=>{let n=this.itemIndexToElementIndex[t];n!=null&&(delete this.renderedElements[n],delete this.elementIndexToItemIndex[n],delete this.itemIndexToElementIndex[t])},this.discardElement=t=>{let n=this.elementIndexToItemIndex[t];return n!=null?(delete this.renderedElements[t],delete this.elementIndexToItemIndex[t],delete this.itemIndexToElementIndex[n],!0):!1},this.discardElementsStartingWith=(t,n)=>{let r,o=!1;do r=this.discardElement(t),r&&(o=!0,n&&n(t)),t++;while(r);return o},this.init()}init(){this.elementIndexToItemIndex={},this.itemIndexToElementIndex={},this.renderedElements={}}destroy(){this.init()}renderItemAtElement(e,t,n){let r=this.elementIndexToItemIndex[t];r!=null&&delete this.itemIndexToElementIndex[r],n&&(this.renderedElements[t]=n),this.elementIndexToItemIndex[t]=e,this.itemIndexToElementIndex[e]=t}};function bvt(e){let[t,n]=(0,rN.useState)(e.updater.get());return(0,rN.useLayoutEffect)(()=>e.updater.onChange(o=>{n(o)}),[e.updater]),(0,fg.createElement)(fg.Fragment,null,t)}var Dxe=(0,fg.memo)(bvt),Cvt=!0,yvt=class extends jW{constructor(e,{onRender:t,channel:n}){super(`ReactVirtualRenderer:${e.getOptions().mainAxis}`+(n?`:${n}`:"")),this.destroyed=!1,this.itemDOMElements={},this.itemDOMRefs={},this.updaters={},this.onRender=()=>null,this.items=[],this.prevLength=0,this.renderRange=(r,{renderItem:o,force:a,onRender:i})=>{if(this.destroyed)return[];let{mappedItems:l}=this,{renderStartIndex:u,renderEndIndex:d}=r,c=d===-1?0:d-u+1;this.itemDOMElements[c]&&l.discardElementsStartingWith(c,h=>{delete this.itemDOMElements[h],delete this.itemDOMRefs[h],this.updaters[h]&&(this.updaters[h].destroy(),delete this.updaters[h]),delete this.items[h]}),this.items.length>c&&(this.items.length=c);let m=this.mappedItems.getElementsOutsideItemRange(u,d);for(let h=this.items.length;h<c;h++)this.renderElement(h),m.splice(0,0,h);for(let h=u;h<=d;h++){if(l.isRenderedItem(h)){a&&this.renderItemAtElement(h,void 0,o);continue}let b=m.pop();b!=null&&this.renderItemAtElement(h,b,o)}let f=this.items;return f=[...this.items],this.onRender&&this.onRender(f),i&&i(f),f},this.updateElementPosition=r=>{let o=this.itemDOMElements[r],a=this.mappedItems.getItemRenderedAtElementIndex(r),i=this.brain.getOptions();if(a==null)return;let l=this.brain.getItemOffsetFor(a);l!=null&&o&&(Cvt?(o.style.transform=i.mainAxis==="vertical"?`translateY(${l}px)`:`translateX(${l}px)`,o.style.visibility=""):(o.style.display="",o.style[i.mainAxis==="vertical"?"top":"left"]=`${l}px`))},this.destroy=()=>{this.destroyed=!0,this.mappedItems.destroy(),this.itemDOMElements=[],this.itemDOMRefs=[],this.updaters=[],this.onRender=null,this.renderItem=null,this.brain=null},t&&(this.onRender=t),this.brain=e,this.mappedItems=new gvt(e.getOptions().mainAxis)}renderElement(e){let t=r=>{r&&(this.itemDOMElements[e]=r,this.updateElementPosition(e))};this.itemDOMRefs[e]=t,this.updaters[e]=WM();let n=(0,Pxe.createElement)(Dxe,{key:e,name:`${e}`,updater:this.updaters[e]});return this.items[e]=n,n}renderItemAtElement(e,t=this.mappedItems.getElementIndexForItem(e),n){if(this.destroyed)return;let r=n({itemIndex:e,itemSize:this.brain.getItemSize(e),domRef:this.itemDOMRefs[t]}),o=this.updaters[t];if(!o){this.error(`Cannot find item updater for item ${e} at this time... sorry.`);return}this.mappedItems.renderItemAtElement(e,t,r),o(r),this.updateElementPosition(t)}};function Svt(e){let{renderItem:t,brain:n,debugChannel:r}=e,{onRenderUpdater:o,renderer:a}=(0,ig.useMemo)(()=>{let l=WM(),u=new yvt(n,{channel:r});return{onRenderUpdater:l,renderer:u}},[]),i=Lc(t);return(0,ig.useEffect)(()=>{let l=n.getRenderRange();a.renderRange(l,{renderItem:t,force:!0,onRender:o})},[t,o]),(0,ig.useEffect)(()=>n.onRenderRangeChange(u=>{a.renderRange(u,{force:!1,renderItem:i(),onRender:o})}),[n,o]),(0,ig.useEffect)(()=>()=>{a.destroy(),o.destroy()},[a,o]),(0,nN.createElement)(Dxe,{updater:o})}var oN=(0,nN.memo)(Svt),i$t=XM("Header"),{rootClassName:vvt}=Xs,LAe=`${vvt}Header`;function Avt(e){let{repaintId:t,brain:n,columns:r,style:o,className:a}=e,{computed:i,componentState:{headerHeight:l}}=Js(),{computedVisibleColumnsMap:u}=i,d=(0,cg.useCallback)(({domRef:f,itemIndex:h})=>{let b=r[h];return b?(0,ag.createElement)($W,{domRef:f,column:b,headerHeight:l,columns:u}):null},[u,r,t,l]);(0,cg.useEffect)(()=>{let f=b=>{c.current.style.transform=`translate3d(-${b.scrollLeft}px, 0px, 0px)`};return n.onScroll(f)},[n]);let c=(0,cg.useRef)(null),m={ref:c,className:mr(ut.flexFlow.row,LAe,`${LAe}--virtualized`,a),style:o};return(0,ag.createElement)("div",Xe({},m),(0,ag.createElement)(oN,{brain:n,renderItem:d}))}var xvt=(0,ag.memo)(Avt);function Rvt(e,t,n){let r=new Map,o=new Map,a=new Map;e.forEach((u,d)=>{var c,m,f,h,b;let C=u.id,y=(m=(c=e[d-1])==null?void 0:c.id)!=null?m:"",v=new Set,S=(f=a.get(y))!=null?f:new Set;a.set(C,v);let I={type:"column",id:C,ref:u,groupOffset:0,computedWidth:u.computedWidth,depth:u.columnGroup?((h=n.get(u.columnGroup))!=null?h:0)+1:0};r.set([C],I);let P=u.columnGroup,T,O=I;for(;P;){let _=t.get(P);if(_){v.add(P);let M=[C,...v];T=S.has(P)?o.get(P):void 0,T||(T={id:P,type:"group",ref:_,columnItems:[],children:[],groupOffset:0,uniqueGroupId:[P],computedWidth:0,depth:(b=n.get(P))!=null?b:0},r.set(M,T),o.set(P,T)),T.columnItems.push(I),T.uniqueGroupId.push(I.id),O&&!S.has(O.id)&&T.children.push(O),O=T,P=_.columnGroup}else break}});let i=[],l=0;return r.forEach(u=>{if(!u.ref.columnGroup){let d=u.type==="column"?u.ref.computedWidth:u.columnItems.reduce((c,m)=>c+m.ref.computedWidth,0);u.groupOffset=l,u.computedWidth=d,u.type==="group"&&Txe(u.children),i.push(u),l+=d}}),r.clear(),o.clear(),i}function Txe(e,t=0){e.forEach(n=>{let r=n.type==="column"?n.ref.computedWidth:n.columnItems.reduce((o,a)=>o+a.ref.computedWidth,0);n.computedWidth=r,n.groupOffset=t,n.type==="group"&&Txe(n.children),t+=r})}var dS=`${JAe}HeaderGroup`;function Evt(e){let{columnGroup:t,height:n,headerHeight:r}=e,{header:o}=t;o instanceof Function&&(o=o({columnGroup:t}));let a={width:t.computedWidth,height:n};return(0,cS.createElement)("div",{"data-group-id":t.id,className:mr(ut.flexFlow.column,ut.display.flex,dS,`${dS}--unvirtualized`),style:a},(0,cS.createElement)("div",{className:mr(`${dS}__header`,ut.flexFlow.row,ut.display.flex,ut.alignItems.center),style:{height:r}},(0,cS.createElement)("div",{className:mr(`${dS}__header-content`,AS)},o)),(0,cS.createElement)("div",{className:mr(`${dS}__children`,ut.display.flex,ut.flexFlow.row,ut.alignItems.stretch)},e.children))}function Ivt(e){let{columns:t,headerHeight:n,columnGroups:r,allVisibleColumns:o,columnGroupsDepthsMap:a,columnGroupsMaxDepth:i}=e;if(!t.length)return[];let l=Rvt(t,r,a);function u(d){return d.map(c=>{if(c.type==="column"){let h=c.ref;return(0,BW.createElement)($W,{key:h.id,headerHeight:(i-c.depth+2)*n,column:h,columns:o,virtualized:!1})}let m=[],f=c.columnItems.map(h=>{let b=o.get(h.id);return m.push(b.id),b});return(0,BW.createElement)(Evt,{key:`${c.uniqueGroupId.join("/")}`,columns:f,height:(i-c.depth+2)*n,headerHeight:n,columnGroup:fr(Xe({},c.ref),{id:c.id,uniqueGroupId:c.uniqueGroupId,depth:c.depth,columns:m,computedWidth:c.computedWidth,groupOffset:c.groupOffset})},u(c.children))})}return u(l)}var{rootClassName:Pvt}=Xs,kAe=`${Pvt}Header`,Dvt=(e,t)=>{e.style.transform=`translate3d(${-t.scrollLeft}px, 0px, 0px)`};function Tvt(e){let t=e,{columns:n,scrollable:r,brain:o,totalWidth:a}=t,i=jM(t,["columns","scrollable","brain","totalWidth"]),{componentState:{computedColumnGroups:l,columnGroupsDepthsMap:u,columnGroupsMaxDepth:d,headerHeight:c},computed:{computedVisibleColumnsMap:m}}=Js(),f=(0,Ys.useRef)(null),h=l.size>0,b=(0,Ys.useMemo)(()=>h?Ivt({columnGroups:l,columnGroupsDepthsMap:u,columnGroupsMaxDepth:d,columns:n,headerHeight:c,allVisibleColumns:m}):null,[u,l,n,m,h,c,d]),C=h?b:n.map(v=>(0,Ys.createElement)($W,{key:v.id,headerHeight:c,column:v,columns:m,virtualized:!1})),y=Xe({},i?.style);return a!=null&&(y.width=a),(0,wxe.useEffect)(()=>{if(!o||!r)return;let v=I=>{Dvt(f.current,I)};return o.onScroll(v)},[o]),(0,Ys.createElement)("div",fr(Xe({},i),{ref:f,className:mr(ut.flexFlow.row,ut.display.flex,kAe,`${kAe}--unvirtualized`,i.className),style:y}),C)}var NW=(0,Ys.memo)(Tvt);function wvt(e){let{brain:t,scrollbars:n,repaintId:r}=e,o=Js(),{computedUnpinnedColumns:a,computedPinnedStartColumns:i,computedPinnedEndColumns:l,computedPinnedStartColumnsWidth:u,computedPinnedEndColumnsWidth:d,computedUnpinnedColumnsWidth:c}=o.computed,{componentState:{virtualizeHeader:m,headerHeight:f,columnGroupsMaxDepth:h}}=o,b=i.length>0,C=l.length>0,y=h?h*f:f,v=m?(0,Mc.createElement)(xvt,{columns:a,repaintId:m?r:void 0,brain:t,style:{position:"absolute",left:u,width:c,height:h||f},totalWidth:c}):(0,Mc.createElement)(NW,{brain:t,scrollable:!0,columns:a,totalWidth:c});return(0,Mc.createElement)("div",{className:mr(ut.overflow.hidden,ut.position.relative,ut.display.flex,ut.flexFlow.row),style:{background:"var(--ITableHeader__background)",height:m?y:void 0}},b?(0,Mc.createElement)(NW,{style:{left:0,position:"absolute",width:u},columns:i,totalWidth:u}):null,v,C?(0,Mc.createElement)(NW,{style:{right:n.vertical?kc():0,position:"absolute",width:d},columns:l,totalWidth:d}):null,n.vertical?(0,Mc.createElement)(avt,{style:{height:"100%",right:0}}):null)}var Ovt=(e,t)=>{(0,Fxe.useEffect)(()=>{let n=e?.current,r=a=>{let i=a.target;t?.({scrollTop:i.scrollTop,scrollLeft:i.scrollLeft})},o={passive:!1};return n?.addEventListener("scroll",r,o),()=>{n?.removeEventListener("scroll",r)}},[t,e?.current])},Fvt=e=>{let t="";return typeof e=="boolean"?t=e?ut.overflow.auto:ut.overflow.hidden:typeof e=="string"?t=ut.overflow[e]:t=mr(typeof e.horizontal=="boolean"?e.horizontal?ut.overflowX.auto:ut.overflowX.hidden:ut.overflowX[e.horizontal],typeof e.vertical=="boolean"?e.vertical?ut.overflowY.auto:ut.overflowY.hidden:ut.overflowY[e.vertical]),t},Mvt="IT-VirtualScrollContainer",Nvt=[ut.position.fixed,ut.height["100%"],ut.width["100%"],ut.left[0],ut.top[0]].join(" "),Mxe=(0,aN.forwardRef)(function(t,n){let{children:r,scrollable:o=!0,onContainerScroll:a,className:i,style:l}=t,u=n??(0,Oxe.useRef)(null);return Ovt(u,a),(0,aN.createElement)("div",{ref:u,style:l,className:[i,Mvt,Nvt,Fvt(o)].join(" ")},r)});function _vt(e){let{height:t,width:n,count:r}=e;return(0,iN.createElement)("div",{"data-count":r,"data-width":n,"data-height":t,"data-name":"SpacePlaceholder",style:{height:t,width:n,zIndex:-1,opacity:0,pointerEvents:"none"}})}var Nxe=(0,iN.memo)(_vt),Lvt=(e,t)=>{e.style.transform=`translate3d(${-t.scrollLeft}px, ${-t.scrollTop}px, 0px)`},kvt=mr(ut.height["0"],ut.width["0"],ut.willChange.transform),l$t=XM("VirtuaList"),BAe="IList",Bvt=[ut.position.relative,ut.transform.translate3D000],Vvt=e=>{let t=e,{scrollable:n,outerChildren:r,itemCrossAxisSize:o,brain:a,mainAxisSize:i,sizeRef:l,count:u,mainAxis:d,itemMainAxisSize:c,renderItem:m,repaintId:f,onContainerScroll:h,children:b}=t,C=jM(t,["scrollable","outerChildren","itemCrossAxisSize","brain","mainAxisSize","sizeRef","count","mainAxis","itemMainAxisSize","renderItem","repaintId","onContainerScroll","children"]),y=(0,Rd.useRef)(null),[,v]=QW(),[S,I]=(0,Rd.useState)(0),P=(0,Rd.useRef)(0);(0,Rd.useEffect)(()=>{let M=a.onRenderCountChange(D=>{P.current=D,v()});I(a.getTotalSize());let x=a.onTotalSizeChange(D=>{requestAnimationFrame(()=>{I(D)})});return()=>{M(),x()}},[a]),(0,Rd.useEffect)(()=>{let M=D=>{Lvt(y.current,D)};return a.onScroll(M)},[a]);let T=d==="horizontal"?S:o??0,O=d==="vertical"?S:o??0,_=fr(Xe({},C),{className:mr(e.className,BAe,`${BAe}--${d}`,...Bvt)});return(0,Qs.createElement)(Qs.Fragment,null,(0,Qs.createElement)("div",Xe({},_),(0,Qs.createElement)(Mxe,{scrollable:n,onContainerScroll:h},(0,Qs.createElement)("div",{ref:y,className:kvt},(0,Qs.createElement)(oN,{brain:a,renderItem:m,repaintId:f,debugChannel:"VirtualList"})),b,(0,Qs.createElement)(Nxe,{count:u,width:T,height:O})),r))},Gvt=e=>{let t=e,{rowWidth:n,rowHeight:r,renderRow:o}=t,a=jM(t,["rowWidth","rowHeight","renderRow"]),i=(0,lN.useCallback)(l=>o({domRef:l.domRef,rowHeight:l.itemSize,rowIndex:l.itemIndex}),[o]);return(0,lN.createElement)(Vvt,fr(Xe({},a),{renderItem:i,mainAxis:"vertical",itemMainAxisSize:r,itemCrossAxisSize:n}))},{rootClassName:Hvt}=Xs,Uvt=`${Hvt}ColumnCell`;function Wvt(e){return typeof e.field=="string"}function qvt(e){return e.render instanceof Function}function zvt(e){var t;let{enhancedData:n,column:r,offsetProperty:o,toggleGroupRow:a,virtualized:i,rowIndex:l,domRef:u}=e,{data:d,isGroupRow:c,groupBy:m}=n,f=c&&m&&r.groupByField?n.value:Wvt(r)?d?.[r.field]:null;r.valueGetter&&(f=r.valueGetter({data:d,enhancedData:n}));let{componentState:h}=sg(),b={value:f,column:r,enhancedData:n,data:d},C=qvt(r)?r.render({value:f,column:r,enhancedData:n,data:d,rowIndex:l,toggleGroupRow:a,toggleCurrentGroupRow:()=>a(n.groupKeys),groupRowsBy:h.groupRowsBy}):f,y=r.className?typeof r.className=="function"?r.className(b):r.className:void 0,v=r.style?typeof r.style=="function"?r.style(b):r.style:void 0,S=v?fr(Xe({},v),{width:r.computedWidth}):{width:r.computedWidth};return(0,sN.createElement)(Rxe,{domRef:u,offsetProperty:o,"data-name":"Cell","data-column-id":r.id,"data-column-index":r.computedVisibleIndex,column:r,offset:i?0:r.computedPinningOffset,style:S,cssEllipsis:(t=r.cssEllipsis)!=null?t:!0,className:mr(ut.position.absolute,ut.height["100%"],ut.top[0],Exe(r,[Uvt,CS]),y)},C)}var kxe=(0,sN.memo)(zvt),{rootClassName:Qvt}=Xs,rg=`${Qvt}Row`,VAe=`${rg}--hover`;function Bxe(e,t,n,r,o){let a=e.domProps,{showZebraRows:i=!1,rowIndex:l,domRef:u,enhancedData:d}=e,c=(0,lg.useRef)(null),m=(0,lg.useCallback)(T=>{u(T),c.current=T},[]),f={data:d.data,enhancedData:d,rowIndex:l,groupRowsBy:d.groupBy};typeof t=="function"&&(t=t(f));let h=t?t.style:void 0;n&&(h=typeof n=="function"?Xe(Xe({},h),n(f)):Xe(Xe({},h),n));let b=(d.indexInAll!=null?d.indexInAll:l)%2===1,C=typeof r=="function"?r(f):r,y=mr(ut.position.absolute,ut.top[0],ut.left[0],rg,`${rg}--${d.isGroupRow?"group":"normal"}-row`,i?`${rg}--${b?"odd":"even"}`:null,a?.className,t?.className,C),v=t?.onMouseEnter,S=t?.onMouseLeave,I=(0,lg.useCallback)(T=>{var O;v?.(T);let _=(O=T.currentTarget)==null?void 0:O.dataset.rowIndex,M=o.current;if(!M)return;M.querySelectorAll(`.${rg}[data-row-index="${_}"]`).forEach(D=>D.classList.add(VAe))},[v]),P=(0,lg.useCallback)(T=>{var O;S?.(T);let _=(O=T.currentTarget)==null?void 0:O.dataset.rowIndex,M=o.current;if(!M)return;M.querySelectorAll(`.${rg}[data-row-index="${_}"]`).forEach(D=>D.classList.remove(VAe))},[S]);return{domRef:c,domProps:fr(Xe(Xe({},t),a),{style:h,"data-virtualize-columns":e.virtualizeColumns?"on":"off","data-row-index":l,"data-row-id":`${d.id}`,className:y,onMouseEnter:I,onMouseLeave:P,ref:m})}}function jvt(e){let{rowWidth:t,rowHeight:n,enhancedData:r,toggleGroupRow:o,rowIndex:a,brain:i,columns:l}=e,u=Js(),{componentState:d}=u,{domRef:c}=d,{domProps:m}=Bxe(e,d.rowProps,d.rowStyle,d.rowClassName,c),f=Xe({width:t,height:n},m.style),h=(0,Lxe.useRef)(null),b=(0,Ad.useCallback)(({domRef:C,itemIndex:y})=>{let v=l[y];return(0,Ad.createElement)(kxe,{enhancedData:r,virtualized:!0,toggleGroupRow:o,rowIndex:a,domRef:C,column:v})},[l,a,r]);return h.current!==b&&(h.current=b),(0,Ad.createElement)("div",fr(Xe({},m),{style:f}),(0,Ad.createElement)(oN,{brain:i,renderItem:b,debugChannel:`${a}`}))}var Yvt=(0,Ad.memo)(jvt);function Kvt(e){let{rowHeight:t,rowWidth:n,enhancedData:r,rowIndex:o,columns:a,toggleGroupRow:i}=e,l=Js(),{componentState:u}=l,{domRef:d}=u,{domProps:c}=Bxe(e,u.rowProps,u.rowStyle,u.rowClassName,d),m=Xe({width:n,height:t},c.style),f=a.map(h=>(0,SS.createElement)(kxe,{key:h.id,virtualized:!1,toggleGroupRow:i,enhancedData:r,rowIndex:o,column:h}));return(0,SS.createElement)("div",fr(Xe({},c),{style:m}),f)}var Vxe=(0,SS.memo)(Kvt);function $vt(e){let{columnShifts:t,bodySize:n,getData:r,rowHeight:o,toggleGroupRow:a,repaintId:i,applyScrollHorizontal:l,verticalVirtualBrain:u,horizontalVirtualBrain:d,computedUnpinnedColumnsWidth:c,computedPinnedStartColumnsWidth:m,computedPinnedEndColumnsWidth:f,computedUnpinnedColumns:h,getState:b}=e,{virtualizeColumns:C}=b(),y=typeof C=="function"?C(h):C??!0,v=(0,_xe.useCallback)(I=>{let T=r()[I.rowIndex],{showZebraRows:O}=b(),_=Xe({enhancedData:T,showZebraRows:O,toggleGroupRow:a,virtualizeColumns:y,brain:null,columns:h,rowWidth:c},I);return y&&(_.brain=d,_.repaintId=i),(0,mS.createElement)(y?Yvt:Vxe,Xe({},_))},[i,h,c,y,d]),S=kc()?(0,mS.createElement)("div",{"data-name":"horizontal-scrollbar-placeholder--fake",style:{position:"absolute",left:0,right:0,bottom:0,height:kc()+1,overflow:"auto",visibility:t?"visible":"hidden"}},(0,mS.createElement)("div",{style:{height:"100%",width:c}})):null;return o!=0?(0,mS.createElement)(Gvt,{repaintId:`${i}-unpinned-`,brain:u,onContainerScroll:l,scrollable:t?"visible":{vertical:!1,horizontal:!t},style:{height:n.height,top:0,position:"absolute",left:m,right:f},count:r().length,rowHeight:o,renderRow:v,rowWidth:c,outerChildren:S}):null}var Xvt=200,Jvt=Xs.rootClassName,GAe=`${Jvt}--scrolling`,Zvt=({verticalVirtualBrain:e,horizontalVirtualBrain:t,domRef:n})=>{let r=(0,js.useRef)(0),o=(0,js.useRef)(!1),a=(0,js.useCallback)(c=>{var m;let f=o.current;if(o.current=c,c&&(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{a(!1),r.current=0},Xvt)),f!==c){let h=(m=n.current)==null?void 0:m.classList;if(!h)return;c?h.add(GAe):h.remove(GAe)}},[]),i=(0,js.useCallback)(c=>{e.setScrollPosition(c),t.setScrollPosition(c),a(!0)},[t,e,n.current,a]),l=(0,js.useRef)({scrollLeft:0,scrollTop:0}),u=(0,js.useCallback)(({scrollLeft:c})=>{l.current.scrollLeft=c,i(l.current)},[i]),d=(0,js.useCallback)(({scrollTop:c})=>{l.current.scrollTop=c,i(l.current)},[i]);return{applyScrollHorizontal:u,applyScrollVertical:d,scrollPositionRef:l}};function eAt(e,t){(0,Hxe.useEffect)(()=>{let{onMount:n,onUnmount:r}=t,o=e?.current;return n?.(o),()=>{r?.(o)}},[])}var HAe="IList",tAt=[ut.willChange.transform,ut.position.relative,ut.transform.translate3D000],Uxe=e=>{let{renderRow:t,repaintId:n,brain:r,updateScroll:o,style:a,className:i,onMount:l,onUnmount:u}=e,d=(0,hg.useRef)(null),c=(0,hg.useCallback)(f=>t({domRef:f.domRef,rowHeight:f.itemSize,rowIndex:f.itemIndex}),[t]);eAt(d,{onMount:l,onUnmount:u}),(0,hg.useEffect)(()=>{let f=b=>{let C=d.current;C&&(o?o(C,b):C.style.transform=`translate3d(${-b.scrollLeft}px, ${-b.scrollTop}px, 0px)`)},h=r.onScroll(f);return()=>{h()}},[r]);let m={ref:d,style:a,className:mr(i,HAe,`${HAe}--vertical`,...tAt)};return(0,VW.createElement)("div",Xe({},m),(0,VW.createElement)(oN,{brain:r,renderItem:c,repaintId:n}))},Wxe=(e,t)=>{e.style.transform=`translate3d(0px, ${-t.scrollTop}px, 0px)`};function qxe(e){let{getData:t,getState:n,columnsWidth:r,columns:o}=e;return(0,Gxe.useCallback)(i=>{let u=t()[i.rowIndex],{showZebraRows:d}=n(),c=Xe({enhancedData:u,showZebraRows:d,toggleGroupRow:e.toggleGroupRow,virtualizeColumns:!1,brain:null,rowWidth:r,columns:o},i);return(0,ug.createElement)(Vxe,Xe({},c))},[r,o])}function nAt(e){let{getState:t,getData:n,rowHeight:r,bodySize:o,computedPinnedEndColumns:a,computedPinnedEndColumnsWidth:i,verticalVirtualBrain:l,repaintId:u,toggleGroupRow:d,scrollbars:{vertical:c,horizontal:m}}=e,f=qxe({getData:n,getState:t,toggleGroupRow:d,columns:a,columnsWidth:i}),h=a.length&&r!==0?(0,ug.createElement)(Uxe,{repaintId:`${u}-pin-end-${r}`,brain:l,renderRow:f,style:{position:"absolute",height:o.height,width:i,right:0},updateScroll:Wxe}):null,b=h&&m?(0,ug.createElement)(vxe,{style:{width:i,right:c?kc():0}}):null;return{renderRowPinnedEnd:f,pinnedEndList:h,pinnedEndScrollbarPlaceholder:b}}function rAt(e){let{getData:t,getState:n,rowHeight:r,computedPinnedStartColumns:o,computedPinnedStartColumnsWidth:a,verticalVirtualBrain:i,toggleGroupRow:l,repaintId:u,scrollbars:{horizontal:d}}=e,c=qxe({getData:t,getState:n,toggleGroupRow:l,columns:o,columnsWidth:a}),m=o.length&&r!==0?(0,ug.createElement)(Uxe,{repaintId:`${u}-pin-start-${r}`,brain:i,renderRow:c,updateScroll:Wxe}):null;return{renderRowPinnedStart:c,pinnedStartList:m,pinnedStartScrollbarPlaceholder:m&&d?(0,ug.createElement)(vxe,{style:{width:a,left:0}}):null}}var oAt=UW(XAe()),aAt={scrollLeft:0,scrollTop:0},_W=typeof window<"u"?requestAnimationFrame:e=>setTimeout(e,0),UAe=(e,t)=>e-t,WAe=class extends jW{constructor(e){super(`VirtualBrain:${e.mainAxis}`),this.scrollPosition=aAt,this.scrollPositionOnMainAxis=0,this.totalSize=0,this.onScrollFns=[],this.onTotalSizeChangeFns=[],this.onRenderCountChangeFns=[],this.onRenderRangeChangeFns=[],this.renderCount=0,this.renderRange={renderStartIndex:-1,renderEndIndex:-1},this.availableSize={width:0,height:0},this.setAvailableSize=t=>{this.availableSize=t,this.updateRenderCount()},this.computeRenderCount=({itemSize:t,count:n,size:r})=>{let o=0;if(typeof t=="function"){let a=[];for(let l=0;l<n;l++)a.push(this.getItemSize(l));a.sort(UAe);let i=0;for(let l=0;l<n&&(i+=a[l],o++,!(i>r));l++);o+=1}else o=Math.ceil(r/t)+1;return o=Math.min(n,o),o},this.setRenderCount=t=>{if(t===this.renderCount){this.notifyTotalSizeChange();return}this.renderCount=t,this.updateRenderRange(),this.notifyRenderCountChange(),this.notifyTotalSizeChange()},this.getRenderCount=()=>{var t;return(t=this.renderCount)!=null?t:0},this.setScrollPosition=t=>{this.scrollPosition=t;let n=this.scrollPositionOnMainAxis;this.scrollPositionOnMainAxis=this.scrollPosition[this.options.mainAxis==="vertical"?"scrollTop":"scrollLeft"],this.scrollPositionOnMainAxis!==n&&this.updateRenderRange(),this.notifyScrollChange()},this.getRenderRange=()=>this.renderRange,this.getScrollPosition=()=>this.scrollPosition,this.onScroll=t=>(this.onScrollFns.push(t),()=>{this.onScrollFns=this.onScrollFns.filter(n=>n!==t)}),this.onTotalSizeChange=t=>(this.onTotalSizeChangeFns.push(t),()=>{this.onTotalSizeChangeFns=this.onTotalSizeChangeFns.filter(n=>n!==t)}),this.onRenderCountChange=t=>(this.onRenderCountChangeFns.push(t),()=>{this.onRenderCountChangeFns=this.onRenderCountChangeFns.filter(n=>n!==t)}),this.onRenderRangeChange=t=>(this.onRenderRangeChangeFns.push(t),()=>{this.onRenderRangeChangeFns=this.onRenderRangeChangeFns.filter(n=>n!==t)}),this.update=(t,n)=>{let{itemSize:r,count:o}=this.options,a=o!==t,i=r!==n;if(!a&&!i)return;this.options.count=t,this.options.itemSize=n;let l=this.availableSize[this.options.mainAxis==="vertical"?"height":"width"],u=this.computeRenderCount({itemSize:n,count:t,size:l});!i&&a&&t>o&&this.getRenderCount()>u||(this.reset(),this.updateRenderCount(u))},this.reset=()=>{this.itemSizeCache=[],this.itemOffsetCache=[0],this.renderCount=-1,this.totalSize=0},this.computeCacheFor=t=>{if(typeof this.options.itemSize!="function")return;let n=this.options.itemSize(t);if(this.itemSizeCache[t]=n,t>0){let r=this.itemOffsetCache[t-1],o=this.itemSizeCache[t-1];r==null&&console.error(`Offset was not available for item ${t-1}`),o==null&&console.error(`Size was not available for item ${t-1}`);let a=r+o;this.itemOffsetCache[t]=a}},this.getItemSize=t=>{let{itemSize:n,count:r}=this.options;if(typeof n!="function")return n;let o=this.getItemSizeCacheFor(t);if(o===void 0){let a=this.itemSizeCache.length,i=Math.min(t,r-1);for(;a<=i;a++)this.computeCacheFor(a);o=this.getItemSizeCacheFor(t)}return o},this.getTotalSize=()=>{let{count:t,itemSize:n}=this.options;if(typeof n!="function")return n*t;if(this.totalSize!==0)return this.totalSize;let r=this.getItemSize(t-1),o=this.itemOffsetCache[t-1];return this.totalSize=r+o},this.getItemAt=t=>{let{itemSize:n,count:r}=this.options;if(typeof n!="function")return Math.min(Math.max(0,Math.floor(t/n)),r-1);let o=this.itemOffsetCache.length-1,a=this.itemSizeCache.length-1,i=this.itemOffsetCache[o],l;for(;i<t;)if(o>=r||(a+=1,this.computeCacheFor(a),l=i,i=this.itemOffsetCache[a],l===i))return r-1;let u=(0,oAt.default)(this.itemOffsetCache,t,UAe);return u>=0?u:~u-1},this.getItemOffsetFor=t=>{if(typeof this.options.itemSize!="function")return t*this.options.itemSize;let n=this.itemOffsetCache[t];if(n==null){let r=this.itemSizeCache.length-1;for(;r<t;)r+=1,this.computeCacheFor(r);n=this.itemOffsetCache[t]}return n},this.destroy=()=>{this.reset(),this.onScrollFns=[],this.onTotalSizeChangeFns=[],this.onRenderCountChangeFns=[],this.onRenderRangeChangeFns=[]},this.options=e,this.reset(),this.renderCount=0,this.debug(`Init ${e.mainAxis}`)}getOptions(){return this.options}updateRenderCount(e){let{itemSize:t,mainAxis:n,count:r}=this.options,o=this.availableSize[n==="vertical"?"height":"width"];if(!o){this.setRenderCount(0);return}this.setRenderCount(e??this.computeRenderCount({itemSize:t,count:r,size:o}))}updateRenderRange(){this.setRenderRange(this.computeRenderRange())}getRenderStartIndex(){return this.renderRange.renderStartIndex}notifyScrollChange(){let{scrollPosition:e}=this,t=this.onScrollFns;for(let n=0,r=t.length;n<r;n++)t[n](e)}notifyTotalSizeChange(){let e=this.getTotalSize(),t=this.onTotalSizeChangeFns;for(let n=0,r=t.length;n<r;n++)_W(()=>{t[n](e)})}notifyRenderCountChange(){let{renderCount:e}=this,t=this.onRenderCountChangeFns;for(let n=0,r=t.length;n<r;n++)_W(()=>{t[n](e)})}notifyRenderRangeChange(){let{renderRange:e}=this,t=this.onRenderRangeChangeFns;for(let n=0,r=t.length;n<r;n++)_W(()=>{t[n](e)})}setRenderRange(e){let{renderStartIndex:t,renderEndIndex:n}=this.renderRange;(n!==e.renderEndIndex||t!==e.renderStartIndex)&&(this.renderRange=e,this.notifyRenderRangeChange())}computeRenderRange(){let e=this.getOptions().count,t=this.getRenderCount();if(t===0)return{renderStartIndex:-1,renderEndIndex:-1};let n=this.getItemAt(this.scrollPositionOnMainAxis),r=n+this.renderCount-1;return r>=e&&(r=e-1,n=r-t+1),{renderStartIndex:n,renderEndIndex:r}}getItemSizeCacheFor(e){return this.itemSizeCache[e]}};function iAt(e){return(0,zxe.useCallback)(n=>{let r=e[n];return r||console.log("cannot find column at index",n,e),r?r.computedWidth:0},[e])}function lAt(e){let{dataArray:t,computedUnpinnedColumns:n,computedPinnedStartColumnsWidth:r,computedPinnedEndColumnsWidth:o,rowHeight:a,bodySize:i}=e,l=iAt(n),u=MAe(()=>new WAe({count:n.length,itemSize:l,mainAxis:"horizontal"})),d=MAe(()=>new WAe({count:t.length,itemSize:a,mainAxis:"vertical"}));return u.update(n.length,l),d.update(t.length,a),globalThis.verticalVirtualBrain=d,(0,GW.useEffect)(()=>{d.setAvailableSize({height:i.height,width:0})},[i,d]),(0,GW.useEffect)(()=>{u.setAvailableSize({height:0,width:Math.max(i.width-r-o,0)})},[i.width,r,o]),{horizontalVirtualBrain:u,verticalVirtualBrain:d}}function sAt(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a<o;a++){var i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function uAt(e){let{computed:t,domRef:n,bodySize:r,columnShifts:o}=e,{componentActions:a,componentState:i,getState:l}=Js(),u=LW(t,null),{computedPinnedStartColumns:d,computedPinnedEndColumns:c,computedPinnedStartColumnsWidth:m,computedPinnedEndColumnsWidth:f,computedUnpinnedColumns:h,computedUnpinnedColumnsWidth:b}=t,{componentState:C}=sg(),{dataArray:y}=C,v=Lc(y),{rowHeightComputed:S}=i,I=LW(C.updatedAt),P=(0,Ks.useRef)(0);(!sAt(u,t)||I!==C.updatedAt)&&P.current++;let T=P.current,{horizontalVirtualBrain:O,verticalVirtualBrain:_}=lAt({computedUnpinnedColumns:t.computedUnpinnedColumns,computedPinnedStartColumnsWidth:t.computedPinnedStartColumnsWidth,computedPinnedEndColumnsWidth:t.computedPinnedEndColumnsWidth,rowHeight:S,dataArray:y,bodySize:r}),M=b>r.width-m-f,x=_.getTotalSize()+(M?kc():0),D=r.height<x,N=(0,Ks.useMemo)(()=>({vertical:D,horizontal:M}),[D,M]);(0,Ks.useEffect)(()=>{if(!r.height)return;let{onReady:fe}=l();fe&&fe({setColumnOrder:ke=>{a.columnOrder=ke},setColumnVisibility:ke=>{a.columnVisibility=ke},setColumnAggregations:ke=>a.columnAggregations=ke})},[!!r.height]);let{applyScrollHorizontal:q,applyScrollVertical:F}=Zvt({verticalVirtualBrain:_,horizontalVirtualBrain:O,domRef:n}),{getState:k,componentActions:Y}=sg(),Z=(0,Ks.useCallback)(fe=>{let Te=new eN(k().groupRowsState);Te.toggleGroupRow(fe),Y.groupRowsState=Te},[]),oe={bodySize:r,scrollbars:N,computedPinnedStartColumns:d,computedPinnedEndColumns:c,computedPinnedStartColumnsWidth:m,computedPinnedEndColumnsWidth:f,getData:v,getState:l,toggleGroupRow:Z,repaintId:T,rowHeight:S,verticalVirtualBrain:_},ae=fr(Xe({},oe),{columnShifts:o,applyScrollHorizontal:q,horizontalVirtualBrain:O,computedUnpinnedColumnsWidth:b,computedUnpinnedColumns:h}),[,ee]=QW();(0,Ks.useEffect)(()=>{ee()},[C]);let{pinnedStartList:Se,pinnedStartScrollbarPlaceholder:se}=rAt(oe),{pinnedEndList:X,pinnedEndScrollbarPlaceholder:ye}=nAt(oe),ue=$vt(ae);return{scrollbars:N,horizontalVirtualBrain:O,verticalVirtualBrain:_,applyScrollHorizontal:q,applyScrollVertical:F,pinnedStartList:Se,pinnedEndList:X,pinnedStartScrollbarPlaceholder:se,pinnedEndScrollbarPlaceholder:ye,centerList:ue,repaintId:T,reservedContentHeight:x}}var dAt=UW(lSt()),pAt=(e,t)=>{var n;return(0,dAt.default)(e,{separator:(n=t?.separator)!=null?n:"-"})},qAe={padding:"var(--it-space-2)",textAlign:"end",opacity:"1",visibility:"visible",display:"block",fontSize:"0.85rem",background:"white",color:"black"},cAt={opacity:1,visibility:"visible",display:"inline-block",pointerEvents:"all",color:"black",textDecoration:"underline"},zAe=(e,t)=>{if(!!e)for(let[n,r]of Object.entries(t))e.style.setProperty(pAt(n),r,"important")},mAt=(0,$s.forwardRef)(function(t,n){let{rootClassName:r}=Sxe(),o=(0,$s.useRef)(null),a=(0,$s.useCallback)(i=>{o.current=i,n&&(typeof n=="function"?n(i):n.current=i)},[]);return(0,Qxe.useEffect)(()=>{let i=()=>{requestAnimationFrame(()=>{var u;zAe(o.current,qAe),zAe((u=o.current)==null?void 0:u.firstElementChild,cAt)})};i();let l=setInterval(i,1e3);return()=>{clearInterval(l)}},[]),(0,$s.createElement)("div",fr(Xe({ref:a},t),{className:mr(`${r}Footer`,ut.position.relative,t.className),style:qAe}),"Powered by"," ",(0,$s.createElement)("a",{href:"https://infinite-table.com",rel:"noopener noreferrer",role:"link",target:"_blank"},"Infinite Table"))}),Yxe=3988292384;function fAt(e=Yxe){var t=new Array,n,r,o;for(n=0;n<256;n++){for(o=n,r=8;r>0;r--)(o&1)==1?o=o>>>1^e:o=o>>>1;t[n]=o}return t}function hAt(){return 4294967295}function gAt(e,t,n){return t=t>>>8^e[n^t&255],t}function bAt(e){return e=~e,e=e<0?4294967295+e+1:e,e}function QAe(e,t=Yxe){var n=fAt(t),r=0,o;for(r=hAt(),o=0;o<e.length;o++)r=gAt(n,r,e.charCodeAt(o));return r=bAt(r),`${r}`}var CAt=e=>{var t;let n=e.reduce((o,a)=>(o.set(a.name,a.value),o),new Map);return{distribution:n.get("Type")==="distribution",count:n.get("DeveloperCount")?Number(n.get("DeveloperCount")):0,start:new Date(n.get("StartDate")),end:new Date(n.get("EndDate")),owner:n.get("Owner"),timestamp:n.get("TS")?Number(n.get("TS")):0,trial:n.get("Trial")==="true",ref:(t=n.get("Ref"))!=null?t:""}},jAe=(e,t=console.error.bind(console))=>{e=["* * * infinite-table.com * * *",...e];let n=Math.max(Math.max(...e.map(r=>r.length))+4*2,60);e.forEach(r=>{let o=(n-r.length)/2-1,a=0;o!==Math.round(o)&&(a=-1,o=Math.round(o));let i=o+a,l=o;t("*".repeat(i)+" "+r+" "+"*".repeat(l))}),t("*".repeat(n))},yAt=(e="",t,n)=>{let r;try{r=SAt(e)}catch{return jAe(["You don't have a valid Infinite Table license","Please visit infinite-table.com to purchase a license.","Thank you for playing fair!"],n),!1}let o=new Date(t.publishedAt),a=new Date(r.end);return a<o?(jAe([`
|
|
286
286
|
Your Infinite Table license has expired on ${a.toDateString()}.
|
|
287
287
|
`,`You are using version "${t.version}" of Infinite Table, which was published on ${o.toDateString()}.`,"Please visit infinite-table.com to renew your license.","Thank you for playing fair!"],n),!1):!0},SAt=e=>{let t="",n=e.split("|").map(l=>{let[u,d]=l.split("=");return u==="C"&&(t=d),{name:u,value:d}});if(!t)throw"Invalid license";let r=t.split(",").reverse(),o=r.pop();r.forEach((l,u)=>{let d=n[u];if(QAe(d.value)!==l)throw"Invalid license"});let a=[...n];a.pop();let i=a.map(l=>`${l.name}=${l.value}`).join("|");if(QAe(i)!==o)throw"Invalid license";return n=n.map(l=>fr(Xe({},l),{value:decodeURI(l.value)})),CAt(n)},vAt=e=>(0,jxe.useMemo)(()=>yAt(e,{publishedAt:1624970570587,version:"0.0.1-canary.11"}),[e]),AAt=ySt("CSSVariableWatch"),xAt=XM("CSSVariableWatch"),RAt={position:"absolute",pointerEvents:"none",width:0,height:0,lineHeight:0,fontSize:0,overflow:"hidden"},EAt=e=>{let t=(0,XW.useRef)(0),n=(0,Bc.useCallback)(({height:r})=>{r&&r!==t.current&&(t.current=r,e.onChange(r))},[e.onChange]);zW(e.ref,n,{earlyAttach:!0}),(0,Bc.useLayoutEffect)(()=>{let r=e.ref.current.getBoundingClientRect().height;r?(t.current=r,xAt(`Variable ${e.varName} found and equals ${r}.`),e.onChange(r)):AAt(`Specified variable ${e.varName} not found or does not have a numeric value.`)},[])},YAe=e=>{let t=(0,XW.useRef)(null);return EAt(fr(Xe({},e),{ref:t})),(0,Bc.createElement)("div",{"data-name":"css-variable-watcher","data-var":e.varName,style:RAt},(0,Bc.createElement)("div",{ref:t,style:{height:`var(${e.varName})`}}))},KAe=Xs.rootClassName,IAt={horizontal:!1,vertical:!0},PAt=cxe({getInitialState:uSt,deriveReadOnlyState:dSt,getParentState:()=>mxe()}),DAt=(0,xr.memo)(function(){let{componentState:t,getComputed:n,computed:r}=Js(),{componentState:{dataArray:o}}=sg(),{domRef:a,bodyDOMRef:i,portalDOMRef:l,domProps:u,licenseKey:d,header:c,onRowHeightChange:m,onHeaderHeightChange:f,rowHeightCSSVar:h,headerHeightCSSVar:b}=t,{columnShifts:C,bodySize:y}=t,v=mr(KAe,C?`${KAe}--shifting`:"",u?.className),{pinnedStartList:S,pinnedEndList:I,centerList:P,pinnedEndScrollbarPlaceholder:T,pinnedStartScrollbarPlaceholder:O,repaintId:_,scrollbars:M,applyScrollVertical:x,horizontalVirtualBrain:D,reservedContentHeight:N}=uAt({getComputed:n,domRef:t.domRef,columnShifts:C,bodySize:y,computed:r}),q=vAt(d);return(0,xr.createElement)("div",fr(Xe({ref:a},u),{className:v}),c?(0,xr.createElement)(wvt,{brain:D,repaintId:_,scrollbars:M}):null,(0,xr.createElement)(tvt,null,(0,xr.createElement)(Mxe,{ref:i,onContainerScroll:x,scrollable:IAt},(0,xr.createElement)("div",{className:ut.display.flex},S,P,I),(0,xr.createElement)(Nxe,{count:o.length,width:0,height:N})),O,T),q?null:(0,xr.createElement)(mAt,null),(0,xr.createElement)("div",{ref:l,className:"ITable-Portal"}),h?(0,xr.createElement)(YAe,{varName:h,onChange:m}):null,b?(0,xr.createElement)(YAe,{varName:b,onChange:f}):null)});function TAt(){let{componentActions:e,componentState:t}=Vc(),{bodyDOMRef:n,bodySizeRef:r}=t,o=evt(),a=Lc(o),i=Lc(t);globalThis.getState=i;let l={componentActions:e,componentState:t,computed:o,getComputed:a,getState:i};zW(n,d=>{var c,m;let f={width:d.width,height:d.height};if(f.width=(m=(c=n.current)==null?void 0:c.scrollWidth)!=null?m:f.width,r.current=f,!i().virtualizeHeader){e.bodySize=f;return}e.bodySize=f},{earlyAttach:!0}),(0,xr.useEffect)(()=>()=>{t.onRowHeightChange.destroy(),t.onHeaderHeightChange.destroy()},[]);let u=WW();return(0,xr.createElement)(u.Provider,{value:l},(0,xr.createElement)(DAt,null))}function ts(e){return(0,xr.createElement)(xr.StrictMode,null,(0,xr.createElement)(PAt,Xe({},e),(0,xr.createElement)(TAt,null)))}ts.defaultProps={rowHeight:40,headerHeight:"--ITableHeader__height"};s();var Kxe={IPUSHPULL_API_KEY:"CbBaMaoqHVifScrYwKssGnGyNkv5xHOhQVGm3cYP",IPUSHPULL_API_SECRET:"xYzE51kuHyyt9kQCvMe0tz0H2sDSjyEQcF5SOBlPQmcL9em0NqcCzyqLYj5fhpuZxQ8BiVcYl6zoOHeI6GYZj1TkUiiLVFoW3HUxiCdEUjlPS8Vl2YHUMEPD5qkLYnGj",INFINITE_TABLE_LICENSE_KEY:"StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862"};var uN=ts.defaultProps;uN.licenseKey=Kxe.INFINITE_TABLE_LICENSE_KEY;uN.sortable=!1;uN.rowHeight="--ab-grid-row-height";uN.draggableColumns=!1;var wAt=new Map([["InitialValue",{field:"InitialValue",flex:1,header:"Current",align:"center"}],["ComputedValue",{field:"ComputedValue",flex:1,header:"New",align:"center"}],["ValidInfo",{field:"ValidInfo",width:80,header:"Valid",align:"center"}]]),OAt={style:{flex:1}},ns=class extends Ja.Component{render(){let t=this.props.showHeader&&this.props.previewInfo!=null?"Preview Results: "+(this.props.selectedColumn?this.props.selectedColumn.friendlyName:""):"",n=pn.getColorByMessageType("Success"),r=this.props.previewInfo.previewResults.map((o,a)=>({Id:a,InitialValue:o.initialValue,ComputedValue:o.computedValue,ValidInfo:o.validationRules.length>0?Ja.createElement(Ja.Fragment,null,this.props.previewInfo.previewValidationSummary.validationResult!="None"&&Ja.createElement(Cn,{showEvent:"mouseenter",hideEvent:"mouseleave",headerText:"Validation Error",bodyText:[this.getValidationErrorMessage(o.validationRules)],MessageType:"Error"})):Ja.createElement(Ja.Fragment,null," ",Ja.createElement(Ph,{style:{color:n,fill:"currentColor"}}))}));return this.props.showPanel?Ja.createElement(Gt,{header:t,style:{flex:1},bodyProps:{style:{border:0,padding:0,display:"flex",flexFlow:"column",minWidth:"17rem",minHeight:"20rem"}}},Ja.createElement(Gc,{data:r,primaryKey:"Id"},Ja.createElement(ts,{sortable:!1,domProps:OAt,columns:wAt}))):null}getValidationErrorMessage(t){let n=this.props.api.internalApi.getValidationService(),r=[];for(let o of t){let a=o.Rule.BooleanExpression?" when "+o.Rule.BooleanExpression:"";r.push(n.createValidationDescription(o)+a)}return r.join(`
|
|
288
|
-
`)}};var $xe=A(J());var FAt=e=>e.preventDefault(),JW=class extends rs.Component{constructor(t){super(t),this.state={isShowingError:!1,errorText:""}}componentDidMount(){this.props.onSmartEditCheckSelectedCells()}render(){var l,u,d;let t;this.props.PreviewInfo&&(t=this.props.PreviewInfo.column);let n=Xi.GetValidationMessage(this.props.PreviewInfo,`${this.props.SmartEditValue}`),r=this.props.PreviewInfo&&we.IsNotNullOrEmpty(`${this.props.SmartEditValue}`),o=r?rs.createElement(ns,{style:{flex:"1 1 100%",overflow:"initial",height:"100%"},previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:t,showPanel:r,showHeader:!0}):null,a=ba.getNames(Cl).map((c,m)=>({label:c,onClick:()=>{this.props.onSmartEditOperationChange(c)}})),i=(d=(u=(l=this.props.api.internalApi.getAdaptableOptions())==null?void 0:l.editOptions)==null?void 0:u.smartEdit)==null?void 0:d.customOperations;return i!=null&&i.length&&a.push(...i.map(c=>({onClick:()=>this.props.onSmartEditOperationChange(c),label:c.Name}))),rs.createElement(Yl,{flex:1,style:{height:"100%"},variant:"primary",bodyProps:{style:{display:"flex",flexFlow:"column"}},bodyScroll:!0,glyphicon:this.props.moduleInfo.Glyph,header:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed(),onKeyDown:c=>{c.key==="Enter"&&this.submit()}},rs.createElement($xe.Flex,{flexDirection:"row",padding:2,"data-name":"smart-edit-operation"},rs.createElement(Ze,{items:a,columns:["label"],onMouseDown:FAt},typeof this.props.SmartEditOperation=="object"?this.props.SmartEditOperation.Name:this.props.SmartEditOperation),rs.createElement(Ke,{value:this.props.SmartEditValue.toString(),marginLeft:2,marginRight:2,type:"number",placeholder:"Enter a Number",onChange:c=>this.onSmartEditValueChange(c)}),rs.createElement(re,{tone:this.getButtonStyle(),variant:"raised",disabled:we.IsNullOrEmpty(`${this.props.SmartEditValue}`)||this.props.PreviewInfo&&this.props.PreviewInfo.previewValidationSummary.validationResult=="All",onClick:()=>{this.submit()},marginRight:2},"Apply to Grid")," ",this.props.PreviewInfo&&this.props.PreviewInfo.previewValidationSummary.validationResult!="None"&&rs.createElement(Cn,{headerText:"Validation Error",bodyText:[n],MessageType:"Error"})),o)}submit(){this.onApplySmartEdit()}onSmartEditValueChange(t){let n=t.target;this.props.onSmartEditValueChange(Number(n.value))}onApplySmartEdit(){this.props.onRunSmartEdit()}getButtonStyle(){if(this.props.PreviewInfo){if(this.props.PreviewInfo.previewValidationSummary.validationResult=="All")return"neutral";if(this.props.PreviewInfo.previewValidationSummary.validationResult=="Some")return"error"}return"success"}};function MAt(e,t){return{SmartEditValue:e.System.SmartEditValue,SmartEditOperation:e.System.SmartEditOperation,PreviewInfo:e.System.SmartEditPreviewInfo}}function NAt(e){return{onSmartEditValueChange:t=>e(nf(t)),onSmartEditOperationChange:t=>e(rf(t)),onSmartEditCheckSelectedCells:()=>e(tA()),onRunSmartEdit:()=>e(gE(!1))}}var Xxe=Ye(MAt,NAt)(JW);s();var ul=A(require("react")),tRe=require("react");s();var sl=A(require("react")),Ed=A(J());var Vr=e=>{let t="ab-Adaptable-Popup__Panel";return sl.createElement(Ed.Flex,{flexDirection:"column",flex:"1 1 0",className:t,width:"100%"},sl.createElement("div",{className:`${t}__Header`},sl.createElement(Ed.Flex,{alignItems:"center"},sl.createElement(Ed.Box,{marginRight:0,"data-name":"space-before"}),sl.createElement("div",{className:`${t}__Header__Title`},e.headerText),sl.createElement(Ed.Box,{marginRight:2,"data-name":"space-after"}),e.infoLink!=null&&!e.infoLinkDisabled&&sl.createElement(so,{iconSize:24,onClick:()=>window.open(e.infoLink,"_blank")})),sl.createElement(Ed.Box,{style:{flex:1}}),e.button),sl.createElement(Ed.Box,{className:`${t}__Body`,width:"100%",height:"100%",flex:1},e.children))};s();var Lt=A(require("react"));s();var Zs=A(require("react"));s();var Hc=e=>{let t={};return e.BackColor!==void 0&&e.BackColor!==null&&(t.backgroundColor=e.BackColor),e.ForeColor!==void 0&&e.ForeColor!==null&&(t.color=e.ForeColor),e.FontWeight!==void 0&&e.FontWeight!==null&&(t.fontWeight=e.FontWeight.toLocaleLowerCase()),e.FontStyle!==void 0&&e.FontStyle!==null&&(t.fontStyle=e.FontStyle.toLocaleLowerCase()),e.FontSize!==void 0&&e.FontSize!==null&&(t.fontSize=ba.getCssFontSizeFromFontSizeEnum(e.FontSize)),e.BorderColor!==void 0&&e.BorderColor!==null&&(t.borderColor=e.BorderColor),t},Jxe=e=>{switch(e){case"x-large":return 18;case"large":return 13.5;case"medium":return 12;case"small":return 10;case"x-small":return 7;default:return 12}},Zxe=e=>R(g({},Hc(e!=null?e:{})),{borderWidth:e!=null&&e.BorderColor?2:0,borderStyle:"solid"}),gg=e=>{var r;if(!((r=e==null?void 0:e.startsWith)==null?void 0:r.call(e,"var(")))return e;let n=/\((.+)\)/.exec(e);return n?getComputedStyle(document.documentElement).getPropertyValue(n[1]).trim():e};var _At=pN(),eu=Zs.forwardRef((e,t)=>{let n=e.api.userInterfaceApi.getColorPalette(),c=e,{api:r,value:o}=c,a=qe(c,["api","value"]),i=n.reduce((m,f)=>R(g({},m),{[gg(f)]:f}),{}),l=Object.keys(i).map(m=>Zs.createElement("option",{key:m,value:m},m)),u=Zs.createElement("datalist",{id:"ABcolorChoices"},l),d=Zs.useMemo(()=>{let m=gg(o);return _At(m).toHexString()},[o]);return Zs.createElement("div",{className:"ColorPicker"},Zs.createElement(Ke,R(g({},a),{onChange:m=>{var h;let f=(h=i[m.target.value])!=null?h:m.target.value;e.onChange(f)},value:d,ref:t,type:"color",style:{width:70,padding:0},list:"ABcolorChoices"})),u)});var Uc=A(J());var ya=class extends Lt.Component{constructor(t){super(t),this.state={componentStyle:this.props.Style,ShowClassName:we.IsNotNullOrEmpty(this.props.Style.ClassName)}}render(){let t=this.props.headless?Lt.Fragment:Gt,n=this.props.headless?{}:{header:"Style",margin:2,"data-name":"style-component"},r=this.props.api.userInterfaceApi.getStyleClassNames();return Lt.createElement(t,g({},n),De.IsNotNullOrEmpty(r)&&Lt.createElement(Uc.Flex,{flexDirection:"row",padding:2},Lt.createElement(We,{value:"Predicate",checked:this.state.ShowClassName,onChange:o=>this.onShowClassNameChanged(o)},"Use Style Class Name")," ",Lt.createElement(We,{marginLeft:3,value:"Expression",checked:!this.state.ShowClassName,onChange:o=>this.onShowClassNameChanged(!o)},"Create Style")," "),this.state.ShowClassName?Lt.createElement("div",null,Lt.createElement(Nt,{fontSize:2},"Choose a style name from the dropdown."),Lt.createElement(Ze,{margin:3,placeholder:"Select",variant:"outlined",tone:"none",disabled:De.IsNullOrEmpty(r),style:{minWidth:"15rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},items:r.map(o=>({value:o,label:o,onClick:()=>this.onStyleClassNameChanged(o)}))},this.state.componentStyle.ClassName),Lt.createElement(Uc.Text,{color:"var(--ab-color-warn)",style:{flex:2},margin:2},"Please ensure that the styles listed are in the current stylesheet")):Lt.createElement(Uc.Flex,{flexDirection:"column"},Lt.createElement(Uc.Flex,{flex:1},Lt.createElement("div",null,Lt.createElement(Nt,{fontSize:2,marginTop:2,marginBottom:2},"Set colours by ticking a checkbox and selecting from the dropdown; leave unchecked to use cell's existing colours"),Lt.createElement(Je,{columns:[1,2]},Lt.createElement(de,null,Lt.createElement(pe,{value:"existing",margin:1,checked:!!this.state.componentStyle.BackColor,onChange:o=>this.onUseBackColorCheckChange(o)},"Set Back Colour"),this.state.componentStyle.BackColor!=null?Lt.createElement(eu,{api:this.props.api,value:this.state.componentStyle.BackColor,onChange:o=>this.onBackColorSelectChange(o)}):Lt.createElement("span",null)),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"existing",checked:!!this.state.componentStyle.ForeColor,onChange:o=>this.onUseForeColorCheckChange(o)},"Set Fore Colour"),this.state.componentStyle.ForeColor!=null?Lt.createElement(eu,{api:this.props.api,value:this.state.componentStyle.ForeColor,onChange:o=>this.onForeColorSelectChange(o)}):Lt.createElement("span",null)),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"existing",checked:!!this.state.componentStyle.BorderColor,onChange:o=>this.onUseBorderColorCheckChange(o)},"Set Border Colour"),this.state.componentStyle.BorderColor!=null?Lt.createElement(eu,{api:this.props.api,value:this.state.componentStyle.BorderColor,onChange:o=>this.onBorderColorSelectChange(o)}):Lt.createElement("span",null))),Lt.createElement(Nt,{fontSize:2,marginTop:2,marginBottom:2},"Set the font properties of the Style"),Lt.createElement(Je,{columns:[1]},Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"Normal".toString(),checked:this.state.componentStyle.FontWeight=="Bold",onChange:o=>this.onFontWeightChange(o)},"Bold")),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"Normal".toString(),checked:this.state.componentStyle.FontStyle=="Italic",onChange:o=>this.onFontStyleChange(o)},"Italic")),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,checked:!!this.state.componentStyle.FontSize,onChange:o=>this.onUseFontSizeCheckChange(o)},"Set Font Size")),Lt.createElement(de,null,this.state.componentStyle.FontSize!=null&&Lt.createElement(Uc.Flex,{flexDirection:"row",alignItems:"center"},Lt.createElement(Ze,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"inherit"},mr:1,items:ba.getNames(Av).map(o=>({value:o,label:o,onClick:()=>this.onFontSizeChange(o)})),columns:["label"]},this.state.componentStyle.FontSize.toString()),Lt.createElement(Cn,{headerText:"Conditional Style: Font Size",bodyText:["Select the size of the font for the Conditional Style. The default is 'Medium'."]}))))))))}onShowClassNameChanged(t){this.state.componentStyle.BackColor=null,this.state.componentStyle.ForeColor=null,this.state.componentStyle.BorderColor=null,this.state.componentStyle.FontSize=null,this.state.componentStyle.FontStyle=null,this.state.componentStyle.FontWeight=null,this.state.componentStyle.ClassName="",this.setState({ShowClassName:t})}onStyleClassNameChanged(t){this.state.componentStyle.ClassName=t=="select"?"":t,this.props.UpdateStyle(this.state.componentStyle)}onUseBackColorCheckChange(t){this.state.componentStyle.BackColor=t?"#ffffff":null,this.props.UpdateStyle(this.state.componentStyle)}onUseForeColorCheckChange(t){this.state.componentStyle.ForeColor=t?"#000000":null,this.props.UpdateStyle(this.state.componentStyle)}onUseBorderColorCheckChange(t){this.state.componentStyle.BorderColor=t?"#000000":null,this.props.UpdateStyle(this.state.componentStyle)}onUseFontSizeCheckChange(t){this.state.componentStyle.FontSize=t?"Medium":null,this.props.UpdateStyle(this.state.componentStyle)}onBackColorSelectChange(t){this.state.componentStyle.BackColor=t,this.props.UpdateStyle(this.state.componentStyle)}onForeColorSelectChange(t){this.state.componentStyle.ForeColor=t,this.props.UpdateStyle(this.state.componentStyle)}onBorderColorSelectChange(t){this.state.componentStyle.BorderColor=t,this.props.UpdateStyle(this.state.componentStyle)}onFontWeightChange(t){let n=t?"Bold":"Normal";this.state.componentStyle.FontWeight=n,this.props.UpdateStyle(this.state.componentStyle)}onFontStyleChange(t){let n=t?"Italic":"Normal";this.state.componentStyle.FontStyle=n,this.props.UpdateStyle(this.state.componentStyle)}onFontSizeChange(t){this.state.componentStyle.FontSize=t,this.props.UpdateStyle(this.state.componentStyle)}};var nRe=A(J());s();var bg=require("react"),eRe=A(Fm());var Cg=e=>{var a;let[t,n]=(0,bg.useState)((a=e.QuickSearchText)!=null?a:""),r=(0,bg.useMemo)(()=>(0,eRe.default)(e.onRunQuickSearch,oj),[e.onRunQuickSearch]);return(0,bg.useEffect)(()=>{n(e.QuickSearchText)},[e.QuickSearchText]),[t,i=>{n(i),r(i)}]};var LAt=e=>{let[t,n]=Cg(e),[r,o]=(0,tRe.useState)({RunQueryAfterQuickSearch:e.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch,EditedStyle:e.QuickSearchStyle}),a=l=>{o(R(g({},r),{EditedStyle:l})),e.onSetStyle(l)},i=l=>{o(R(g({},r),{RunQueryAfterQuickSearch:l})),e.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch=l};return ul.createElement(Vr,{headerText:e.moduleInfo.FriendlyName,glyphicon:e.moduleInfo.Glyph,infoLink:e.moduleInfo.HelpPage,infoLinkDisabled:!e.api.internalApi.isDocumentationLinksDisplayed()},ul.createElement(Gt,{header:e.moduleInfo.FriendlyName+" Text",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginLeft:2,marginRight:2}," ",ul.createElement(Je,null,ul.createElement(Ii,{type:"text",marginLeft:2,marginRight:5,padding:20,style:{height:"100%"},placeholder:e.api.internalApi.getAdaptableOptions().searchOptions.quickSearchPlaceholder,value:t,OnTextChange:n}))),ul.createElement(Gt,{header:"Behaviour",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginLeft:2,marginRight:2}," ",ul.createElement(nRe.Flex,{flexDirection:"column"},ul.createElement(Je,{columns:[1,2]},ul.createElement(de,null,ul.createElement(pe,{value:"existing",marginLeft:1,marginRight:3,checked:r.RunQueryAfterQuickSearch,disabled:Qe.IsNotNullOrEmpty(t),onChange:i},"Run Simultaneous Query"))))),ul.createElement(ya,{style:{height:"100%"},api:e.api,Style:e.QuickSearchStyle,UpdateStyle:a}))};function kAt(e,t){return{QuickSearchText:e.QuickSearch.QuickSearchText,QuickSearchStyle:e.QuickSearch.Style}}function BAt(e){return{onRunQuickSearch:t=>e(Ts(t)),onSetStyle:t=>e($E(t))}}var rRe=Ye(kAt,BAt)(LAt);s();var Wc=A(require("react"));var ZW=class extends Wc.Component{render(){let t=[];this.props.SystemThemes.forEach(o=>{t.push(o)}),this.props.UserThemes.forEach(o=>{t.push(o)});let n="",r=t.map(o=>(typeof o=="string"&&(o={Name:o,Description:o}),o.Name===this.props.CurrentTheme&&(n=o.Description),{value:o.Name,label:o.Description,onClick:()=>this.onChangeTheme(o.Name)}));return Wc.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},Wc.createElement(Je,null,Wc.createElement(de,{label:"Current Theme:"},Wc.createElement(Ze,{columns:["label"],style:{width:"50%",minWidth:200},placeholder:"Select theme",value:this.props.CurrentTheme,items:r,accessLevel:this.props.accessLevel},n))))}onChangeTheme(t){this.props.SelectTheme(t)}};function VAt(e,t){return{SystemThemes:e.Theme.SystemThemes,UserThemes:e.Theme.UserThemes,CurrentTheme:e.Theme.CurrentTheme}}function GAt(e){return{SelectTheme:t=>e(th(t))}}var oRe=Ye(VAt,GAt)(ZW);s();var Za=A(require("react"));s();var aRe=["Alert","BulkUpdate","CellSummary","DataChangeHistory","DataSource","Export","Filter","Glue42","IPushPull","Layout","OpenFin","Query","QuickSearch","SmartEdit","StateManagement","SystemStatus","Theme"],yg=["Alert","BulkUpdate","CellSummary","Dashboard","DataChangeHistory","Export","Filter","IPushPull","Layout","OpenFin","Query","QuickSearch","SmartEdit","StateManagement","SystemStatus","Theme"];s();var pRe=A(require("react"));s();var yn=A(require("react")),tu=require("react"),Sa=A(J());s();var Zr=A(require("react")),lRe=A(J()),Id=require("react");s();var cN=require("react"),iRe=e=>{let t=(0,cN.useRef)(e);return t.current=e,(0,cN.useCallback)(()=>t.current,[])};var HAt=({children:e,index:t,hidden:n,observerRef:r})=>{var c;let[o,a]=(0,Id.useState)(!1);Zr.useEffect(()=>{let m=setTimeout(()=>{a(!0)},50);return()=>clearTimeout(m)},[]);let i=(0,Id.useRef)(null),l=m=>{var f,h;if(m){if(!m.getAttribute("data-index"))throw'The element you render from "renderItem" should accept a "data-index" prop.';(f=r.current)==null||f.observe(m)}else(h=r.current)==null||h.unobserve(i.current);i.current=m},u=Zr.Children.toArray(e)[0],d={ref:l,"data-index":t};return(n||!o)&&(d.style=R(g({},(c=u.props)==null?void 0:c.style),{visibility:"hidden"})),u=Zr.cloneElement(u,d),Zr.createElement(Zr.Fragment,null,u)},sRe=e=>{let y=e,{allowWrap:t,count:n,direction:r,renderItem:o,renderEllipsis:a}=y,i=qe(y,["allowWrap","count","direction","renderItem","renderEllipsis"]),l=(0,Id.useRef)(null),u=(0,Id.useRef)(null),[d,c]=Zr.useState(e.count),[m]=(0,Id.useState)(()=>new Set),[f]=(0,Id.useState)(()=>new Set),h=iRe(e.count);Zr.useEffect(()=>{let v=I=>{let P=h(),T=_=>_.intersectionRatio===1;I.forEach(_=>{let{target:M}=_,x=Number(M.getAttribute("data-index"));T(_)?(m.add(x),f.delete(x)):(m.delete(x),f.add(x))});let O=Math.min(P,...f.values());c(O)};if(t)return;let S=new IntersectionObserver(v,{root:l.current,threshold:.01});return u.current=S,()=>{S.disconnect()}},[]);let b=Ga(n,n);Zr.useLayoutEffect(()=>{t||d===b&&c(n)},[n,d,t]);let C=[...new Array(n)].map((v,S)=>{var T;let I=n-1-S,P=t?!1:S>=d;return Zr.createElement(Zr.Fragment,{key:S},Zr.createElement(HAt,{hidden:P,index:S,observerRef:u},o(S,n)),!t&&S===d-1&&I?(T=a==null?void 0:a({remaining:I}))!=null?T:"...":null)});return Zr.createElement(lRe.Flex,R(g({ref:l,flexWrap:t?"wrap":"nowrap",alignItems:"center","data-name":"options-container"},i),{flexDirection:r==="horizontal"?"row":"column"}),C)};s();s();var mN=A(require("react")),uRe=A(J());var Dt=mN.forwardRef((e,t)=>{var n,r,o,a;return mN.createElement(uRe.Box,R(g({},e),{ref:t,className:He("ab-Tag",e.className),backgroundColor:"primary",paddingTop:(n=e.paddingTop)!=null?n:1,paddingBottom:(r=e.paddingBottom)!=null?r:1,paddingLeft:(o=e.paddingLeft)!=null?o:2,paddingRight:(a=e.paddingRight)!=null?a:2,style:g({borderRadius:"var(--ab__border-radius)"},e.style)}))});function dRe({options:e,value:t,toIdentifier:n,selectedMap:r}){let o=(0,tu.useMemo)(()=>{if(r)return;let i=new Map([]);return e.forEach(l=>{i.set(n(l),l)}),i},[e,r]);return{selectedMap:(0,tu.useMemo)(()=>{if(r)return r;let i=new Map([]);return t.forEach(l=>{var u;i.set(l,(u=o.get(l))!=null?u:null)}),i},[o,r,t]),optionsMap:o}}function qc(e){let{options:t,value:n,filter:r,onChange:o,allowReorder:a,singleSelect:i,toLabel:l,toIdentifier:u,noSelectionLabel:d,clearSelectionLabel:c,showSelectedOnlyLabel:m,xSelectedLabel:f,selectionBoxPosition:h="bottom",onShowSelectedOnlyChange:b,isOptionDisabled:C,disabled:y}=e,[v,S]=(0,tu.useState)(!1),I=(0,tu.useCallback)(M=>{S(M),b==null||b(M)},[b]),{selectedMap:P}=dRe({options:t,toIdentifier:u,value:n}),T=(0,tu.useCallback)(()=>{let M=[...P.keys()];!M.length&&v&&I(!1),o(M,new Map(P))},[o,v,P]),O=(M,x)=>{let D=u(M),N=a?null:l(M),q=typeof a=="function"?a(M):a,F=(k,Y)=>yn.createElement(Sa.Flex,R(g({alignItems:"center",mt:x?1:0,key:D,backgroundColor:"primary",padding:2,"data-index":x,"data-id":D,"data-name":"option"},k),{style:g({borderRadius:"var(--ab__border-radius)"},k==null?void 0:k.style)}),yn.createElement(Sa.Flex,{flexDirection:"row",alignItems:"center"},q?yn.createElement(Sa.Box,g({mr:3},Y),yn.createElement(Ct,{name:"drag",style:{cursor:"grab"}})):null,i?yn.createElement(We,{checked:P.has(D),"data-name":D,onChange:Z=>{Z?(P.clear(),P.set(D,M)):P.delete(D),T()}},N):yn.createElement(pe,{"data-name":D,disabled:y||(C?C(M):!1),onChange:Z=>{Z?P.set(D,M):P.delete(D),T()},checked:P.has(D)},N),yn.createElement(Sa.Text,{ml:2},a?l(M):null)));return yn.createElement(ga,{key:D,index:x,draggableId:`${D}`,isDragDisabled:!q},k=>F(R(g({ref:k.innerRef},k.draggableProps),{style:k.draggableProps.style}),k.dragHandleProps))},_=()=>{let M=yn.createElement(Sa.Box,{fontSize:2,style:{whiteSpace:"nowrap",flex:"none"}},n.length?yn.createElement(yn.Fragment,null,yn.createElement(re,{disabled:y,tabIndex:0,px:1,mr:1,variant:"text",style:{textDecoration:"underline",display:"inline-block"},onClick:()=>{P.clear(),T()}},c!=null?c:"Clear selection."),f?f(n.length):`Your selected ${n.length} ${n.length>1?"options":"option"}.`):yn.createElement(yn.Fragment,null,d!=null?d:"No selected options",i?null:yn.createElement(re,{px:1,disabled:y,variant:"text",style:{textDecoration:"underline",display:"inline-block"},onClick:()=>{t.forEach(x=>{P.set(u(x),x)}),T()}},"Select all")));return yn.createElement(Sa.Box,{mt:h==="bottom"?3:0,mb:h==="top"?3:0},M,yn.createElement(Xo,{options:t,value:n,selectedMap:P,toLabel:l,toIdentifier:u,onClearOption:T,readOnly:y}))};return yn.createElement(Sa.Flex,{flexDirection:"column",flex:1,className:"ab-ValueSelector",style:{overflow:"hidden"}},h==="top"&&_(),yn.createElement(Xh,{onDragEnd:M=>{let{source:x,destination:D}=M,N=[],q=[];for(let[Y,Z]of P)Z!=null?N.push(Y):q.push(Y);let F=new Map(P),k=Xl(N,x.index,D.index);k.push(...q),P.clear(),k.forEach(Y=>{P.set(Y,F.get(Y))}),T()}},yn.createElement(Sa.Flex,{flexDirection:"column",flex:1,style:{overflow:"auto"}},yn.createElement(Sa.Box,{style:{position:"sticky",top:0,zIndex:1e4}},yn.createElement(Sa.Box,{mr:1,mt:1,px:2,"data-name":"show-selected-only",style:{position:"absolute",top:0,right:0,borderRadius:"var(--ab__border-radius)",overflow:"hidden"},fontSize:2,backgroundColor:"defaultbackground"},yn.createElement(pe,{disabled:!n.length,checked:v,onChange:I},m!=null?m:"Show Selected Only"))),yn.createElement($o,{droppableId:"droppable"},M=>yn.createElement("div",g({ref:M.innerRef},M.droppableProps),t.filter(x=>{let D=!0;return r&&(D=r(x)),D=D&&(v?P.has(u(x)):!0),D}).map(O),M.placeholder)))),h==="bottom"&&_())}qc.defaultProps={allowReorder:!0};function Xo(e){let{allowWrap:t,value:n,toLabel:r,onChange:o,onClearOption:a,readOnly:i,renderLabel:l}=e,{selectedMap:u}=dRe(e),d=m=>{let f=n[m],h=()=>{u.delete(f),a==null||a(f),o&&o([...u.keys()],new Map(u))},b=u.get(f),C=b!=null?r(b):`${f}`;return yn.createElement(Dt,{flexDirection:"row",alignItems:"center","data-name":"selected-option","data-id":f,mt:t?1:0,mr:1,className:"ab-ValueSelector__tag",onClick:y=>{var v,S,I;(I=(S=(v=y.target)==null?void 0:v.lastChild)==null?void 0:S.focus)==null||I.call(S)},style:{flex:"none"}},l?l(C):C,i?null:yn.createElement(re,{icon:"clear",ml:2,iconSize:14,variant:"text",style:{border:"none"},onClick:h}))},c=(0,tu.useCallback)(({remaining:m})=>yn.createElement(Sa.Text,{fontSize:2,style:{whiteSpace:"nowrap"}},"+",m," ",m>1?"others":"other"),[]);return yn.createElement(sRe,{style:e.style,marginRight:4,my:1,allowWrap:t,count:n.length,direction:"horizontal",renderItem:d,renderEllipsis:c})}var Sg=require("react");s();function fN(e,t,{sortUnorderedItems:n}){let r=e.reduce((i,l,u)=>(i.set(l,u),i),new Map),o=t.reduce((i,l,u)=>(i.set(l,u),i),new Map);function a(i,l){let u=o.has(i),d=u?o.get(i):-1,c=o.has(l),m=c?o.get(l):-1;return!u&&!c?n?i==l?0:i<l?-1:1:r.get(i)-r.get(l):u?c?d-m:-1:1}return[].concat(e).sort(a)}var xS=e=>{let m=e,{options:t,value:n,onChange:r,selectionBoxPosition:o="top"}=m,a=qe(m,["options","value","onChange","selectionBoxPosition"]),{api:i}=$e(),l=(0,Sg.useMemo)(()=>!n||!n.length?new Map:n.reduce((f,h)=>(f.set(h,!0),f),new Map),[n]),u=(0,Sg.useCallback)(f=>l.has(f),[l]),d=(0,Sg.useMemo)(()=>{let f=new Map;return t.forEach(h=>{var b;return f.set(h,(b=i.internalApi.getModuleFriendlyName(h))!=null?b:h)}),f},[t]),c=(0,Sg.useMemo)(()=>fN(t,n,{sortUnorderedItems:!0}),[u,t,n]);return pRe.createElement(qc,R(g({},a),{options:c,value:n,onChange:r,allowReorder:u,toIdentifier:f=>f,toLabel:f=>d.get(f),selectionBoxPosition:o,isOptionDisabled:e.isOptionDisabled,disabled:e.disabled}))};s();var Mr=A(require("react")),Pd=A(J()),cRe=require("react");var mRe=Mr.createContext({selectedIndex:0,tabCount:0,setSelectedIndex:e=>{}}),UAt=e=>e.type===eq||e.props.isTabsTab,WAt=e=>e.type===tq||e.props.isTabsContent,j=e=>{let x=e,{autoFocus:t=!0,children:n,onValueChange:r,defaultValue:o,value:a,keyboardNavigation:i=!0,selectedIndex:l,defaultSelectedIndex:u,onSelectedIndexChange:d}=x,c=qe(x,["autoFocus","children","onValueChange","defaultValue","value","keyboardNavigation","selectedIndex","defaultSelectedIndex","onSelectedIndexChange"]),[m,f]=fn(e,"selectedIndex",0),[h,b]=fn(e,"value",0),C=Mr.Children.toArray(n),y=[],v=C.filter(UAt).map((N,q)=>(y.push(N.props.value),Mr.cloneElement(N,{index:q,keyboardNavigation:i,autoFocus:t}))),S=C.filter(WAt),I=S.map(N=>N.props.value),P=(e.value!==void 0||e.defaultValue!==void 0)&&e.selectedIndex===void 0&&e.defaultSelectedIndex===void 0;if(P){let N=y.indexOf(h);N>-1&&(m=N),I.filter(F=>y.indexOf(F)!=-1).length===v.length&&S.sort((F,k)=>{let Y=F.props.value,Z=k.props.value;return y.indexOf(Y)-y.indexOf(Z)})}let T=N=>{if(P){let q=y[N];b(q)}f(N)},O=S[m],D=(O==null?void 0:O.props)||{},{value:_}=D,M=qe(D,["value"]);return Mr.createElement(mRe.Provider,{value:{selectedIndex:m,tabCount:v.length,setSelectedIndex:T}},Mr.createElement(Pd.Box,R(g({},c),{className:He(c.className,"ab-Tabs"),"data-selected-index":m}),Mr.createElement(Pd.Flex,{flexDirection:"row",className:"ab-Tabs__Strip"},Mr.createElement(Pd.Box,{className:"ab-Tabs__Filler"}),v,Mr.createElement(Pd.Flex,{flex:1,className:"ab-Tabs__Filler"})),Mr.createElement(Pd.Box,R(g({padding:2},M),{className:`${M.className||""} ab-Tabs__Body`}),O)))},eq=e=>{let f=e,{index:t,autoFocus:n,keyboardNavigation:r=!0,className:o}=f,a=qe(f,["index","autoFocus","keyboardNavigation","className"]),i=Mr.useContext(mRe),l="ab-Tabs__Tab",u=i.selectedIndex===e.index,d=i.selectedIndex===e.index+1,c=He(o,l,u?`${l}--active`:"",d?`${l}--before-active`:""),m=(0,cRe.useRef)(null);return Mr.useEffect(()=>{var h;u&&n&&r&&((h=m.current)==null||h.focus())},[u,n]),Mr.createElement(Pd.Box,R(g({ref:m,padding:2,tabIndex:u?0:-1},a),{className:c,onClick:h=>{var b;i.setSelectedIndex(e.index),(b=e.onClick)==null||b.call(e,h)},onKeyDown:h=>{var b;if(r){if(h.key==="Enter"&&i.setSelectedIndex(e.index),h.key==="ArrowLeft"){h.preventDefault();let C=e.index-1;C<0&&(C=i.tabCount-1),i.setSelectedIndex(C)}if(h.key==="ArrowRight"){h.preventDefault();let C=e.index+1;C>i.tabCount-1&&(C=0),i.setSelectedIndex(C)}}(b=e.onKeyDown)==null||b.call(e,h)}}))};eq.defaultProps={isTabsTab:!0};var tq=e=>Mr.createElement(Mr.Fragment,null,e.children);tq.defaultProps={isTabsContent:!0};j.Tab=eq;j.Content=tq;var nq=class extends Za.Component{constructor(t){var r,o,a;super(t);let n=(a=(o=(r=t.popupParams)==null?void 0:r.config)==null?void 0:o.initialTab)!=null?a:"ToolPanels";this.state={ToolPanelConfigView:n}}render(){let t=this.props.api.internalApi.getModuleService(),n=this.props.api.internalApi.getEntitlementService(),r=[];De.IsNotNullOrEmpty(this.props.ToolPanelState.ModuleButtons)&&this.props.ToolPanelState.ModuleButtons.forEach(f=>{let h=this.props.GridState.ModuleDropdownMenuItems.find(b=>b.module==f);h!=null&&h.isVisible&&r.push(f)});let o=this.props.GridState.ModuleDropdownMenuItems.map(f=>f.module),a=this.props.GridState.ModuleDropdownMenuItems.filter(f=>f.isVisible).map(f=>f.module);n.isModuleHiddenEntitlement("Dashboard")||a.push("Dashboard"),this.props.api.pluginsApi.getipushpullPluginApi()&&!n.isModuleHiddenEntitlement("IPushPull")&&a.push("IPushPull"),this.props.api.pluginsApi.getOpenFinPluginApi()&&!n.isModuleHiddenEntitlement("OpenFin")&&a.push("OpenFin");let i=yg.filter(f=>De.ContainsItem(a,f)),u=[...this.props.api.toolPanelApi.getCustomToolPanels().map(f=>f.name),...i],d=this.props.ToolPanelState.ToolPanels.map(f=>f.Name).filter(f=>u.includes(f)),c=n.isModuleReadOnlyEntitlement("ToolPanel"),m=f=>f==="SettingsPanel"?this.props.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard:!1;return Za.createElement(Vr,{headerText:"ToolPanel Configuration",glyphicon:this.props.moduleInfo.Glyph},Za.createElement(j,{"data-name":"toolPanelPopup-component",className:"ab-ToolPanelPopup",value:this.state.ToolPanelConfigView,style:{height:"100%"},onValueChange:f=>this.setState({ToolPanelConfigView:f})},Za.createElement(j.Tab,{value:"ToolPanels"},Za.createElement(We,{margin:0,value:"ToolPanels",checked:this.state.ToolPanelConfigView=="ToolPanels",tabIndex:-1},"Tool Panels")),Za.createElement(j.Tab,{value:"Buttons"},Za.createElement(We,{margin:0,value:"Buttons",checked:this.state.ToolPanelConfigView=="Buttons",tabIndex:-1},"Module Buttons")),Za.createElement(j.Content,{value:"ToolPanels",style:{flex:1,overflow:"auto"}},Za.createElement(xS,{options:u,value:d,noSelectionLabel:"No selected Tool Panel",xSelectedLabel:()=>"Visible ToolPanels:",onChange:f=>this.onToolPanelToolPanelsChanged(f),disabled:c})),Za.createElement(j.Content,{value:"Buttons",style:{flex:1,overflow:"auto"}},Za.createElement(xS,{options:o,value:r,noSelectionLabel:"No selected Module Button",xSelectedLabel:()=>"Visible Module Buttons:",isOptionDisabled:m,disabled:c,onChange:f=>this.props.onToolPanelSetModuleButtons(f)}))))}onShowGridPropertiesChanged(t){let r=t.target.value;this.setState({ToolPanelConfigView:r})}onToolPanelToolPanelsChanged(t){let n=this.props.ToolPanelState.ToolPanels,r=t.map(o=>{var a;return(a=n.find(i=>i.Name===o))!=null?a:{Name:o,VisibilityMode:"collapsed"}});this.props.onToolPanelSetToolPanels(r)}};function qAt(e){return{ToolPanelState:e.ToolPanel,GridState:e.Grid}}function zAt(e){return{onToolPanelSetModuleButtons:t=>e(_oe(t)),onToolPanelSetToolPanels:t=>e(Jp(t))}}var fRe=Ye(qAt,zAt)(nq);s();var Hr=A(require("react"));s();var vg=A(require("react")),hN=A(J());var hr=class extends vg.Component{render(){let t=this.props.colItems.map((r,o)=>vg.createElement(hN.Text,{key:o,fontSize:"var(--ab-font-size-3)",title:typeof r.Content=="string"?r.Content:void 0,style:{flex:r.Size,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"data-name":"list-group-cell",paddingLeft:1,paddingRight:1},r.Content)),n=He("ab-AdaptableObjectRow",this.props.isSuspended&&"ab-AdaptableObjectRow--is-suspended");return vg.createElement("div",{className:n,onClick:this.props.onClick,style:this.props.style},vg.createElement(hN.Flex,{"data-name":"list-group-item",className:"list-group-item",alignItems:"center",padding:2,margin:0,style:{overflowY:"visible"}},t))}};var WN=A(J());s();var Ag=A(require("react"));s();var zc=A(require("react")),gN=A(J());var Dd=class extends zc.Component{render(){let t=this.props.colItems.map((r,o)=>zc.createElement(gN.Text,{key:r.key||r.Content||o,fontWeight:"bold",fontSize:"var(--ab-font-size-3)",paddingLeft:1,paddingRight:1,style:{flex:r.Size}},r.Content)),n=zc.createElement(gN.Flex,{alignItems:this.props.headerAlign||"center",style:{width:"100%"}},t);return zc.createElement("div",{style:this.props.style,className:this.props.className},zc.createElement(Gt,{bodyScroll:!0,header:n,border:this.props.border,bodyProps:this.props.bodyProps},this.props.children))}};var wi=class extends Ag.Component{render(){let t=this.props.allowOverflow?"visible":"auto";return Ag.createElement("div",{style:g({},this.props.style),className:"ab-ObjectCollection"},Ag.createElement(Dd,{border:"none",colItems:this.props.colItems,headerAlign:this.props.headerAlign}),Ag.createElement("div",{style:{overflowY:t,boxShadow:"none"}},this.props.items))}};s();var hRe="11.1.6";s();var lr=A(require("react")),Og=A(J());s();var as=A(require("react"));s();var Qc=A(require("react"));s();var gRe=A(require("react"));var Td=e=>gRe.createElement(re,g({"data-name":"new",tooltip:"New",tone:"accent",icon:"plus",variant:"raised"},e),e.children===void 0?"New":e.children);s();var bN=A(require("react"));var wd=class extends bN.Component{render(){let t=[];return t.push({Size:3,Content:this.props.SummaryItems[0]}),t.push({Size:7,Content:this.props.SummaryItems[1]}),t.push({Size:2,Content:this.props.SummaryItems[2]}),bN.createElement(hr,{colItems:t})}};s();var RS=A(require("react"));var Oi=class extends RS.Component{render(){return RS.createElement("div",null,RS.createElement(Ct,{name:this.props.moduleInfo.Glyph,style:{fill:"var(--ab-color-text-on-primary)"}})," ",this.props.moduleInfo.FriendlyName)}};var Fi=class extends Qc.Component{render(){let t=[],n=this.props.newButtonDisabled?null:Qc.createElement(Td,{onClick:()=>this.props.onNew(),tooltip:"Create "+this.props.newButtonTooltip,accessLevel:this.props.accessLevel});return t.push(Qc.createElement("b",null,Qc.createElement(Oi,{moduleInfo:this.props.moduleInfo}))),t.push(this.props.moduleSummary),t.push(n),Qc.createElement(wd,{SummaryItems:t})}};s();var Nd=A(require("react"));s();var nu=A(require("react"));s();var bRe=A(require("react"));var Od=e=>{var t;return bRe.createElement(re,g({"data-name":"edit",tooltip:"Edit",variant:"text",icon:"edit",iconSize:(t=e.iconSize)!=null?t:24},e))};s();var CRe=A(require("react"));var CN=e=>CRe.createElement(re,g({"data-name":"clone",tooltip:"Clone",tone:"accent",icon:"clone",variant:"raised"},e),e.children===void 0?"Clone":e.children);s();var yN=A(require("react"));var rq=class extends yN.Component{render(){var u;let l=this.props,{onConfirmWarning:t,ConfirmAction:n,ConfirmationMsg:r,ConfirmationTitle:o,onClickAction:a}=l,i=qe(l,["onConfirmWarning","ConfirmAction","ConfirmationMsg","ConfirmationTitle","onClickAction"]);return yN.createElement(re,R(g({"data-name":"delete",tooltip:"Delete",variant:"text",icon:"trash",iconSize:(u=i.iconSize)!=null?u:24},i),{onClick:()=>this.onClick()}))}onClick(){if(this.props.ConfirmAction){let t={CancelButtonText:"Cancel",Header:this.props.ConfirmationTitle,Msg:this.props.ConfirmationMsg,ConfirmButtonText:"Delete",CancelAction:null,ConfirmAction:this.props.ConfirmAction,ShowInputBox:!1,MessageType:"Warning"};this.props.onConfirmWarning(t)}else this.props.onClickAction()}};function QAt(e,t){return{ConfirmAction:t.ConfirmAction,ConfirmationMsg:t.ConfirmationMsg,ConfirmationTitle:t.ConfirmationTitle}}function jAt(e){return{onConfirmWarning:t=>e(sf(t))}}var Fd=Ye(QAt,jAt)(rq);var xRe=A(J());s();var Md=A(require("react"));s();var xg=A(J());var yRe=require("react");var ir=A(require("react"));var SRe=e=>{let{showPopup:t,onClose:n,onConfirm:r,header:o}=e,[a,i]=(0,yRe.useState)({description:"",type:"Snapshot"});return ir.createElement(ir.Fragment,null,ir.createElement(vr,{modal:!0,"data-name":"teamsharing-popup",isOpen:t,onDismiss:n,autoFocus:!1,showCloseButton:!1,style:{minHeight:"auto",maxWidth:"50%"}},ir.createElement(xg.Flex,{flexDirection:"column"},ir.createElement(Nt,{"data-name":"teamsharing-popup-description",margin:2,mb:2,p:2,style:{fontSize:"var(--ab-font-size-3)"}},"Create a ",o," which may be either:",ir.createElement("ul",null,ir.createElement("li",null,ir.createElement("strong",null,"Snapshot"),": a one-off share of an exact copy of the current object"),ir.createElement("li",null,ir.createElement("strong",null,"Active"),': a "live" share that is automatically updated with every local change'))),ir.createElement(Je,{padding:2},ir.createElement(de,{label:"Description: "},ir.createElement(Ke,{autoFocus:!0,value:a.description,type:"string",width:300,placeholder:"Enter text",onChange:l=>i(R(g({},a),{description:l.target.value}))})),ir.createElement(de,{label:"Share: "},ir.createElement(xg.Flex,{flexDirection:"row"},ir.createElement(We,{checked:a.type==="Snapshot",onChange:()=>i(R(g({},a),{type:"Snapshot"}))},"Snapshot")," ",ir.createElement(We,{marginLeft:3,checked:a.type==="Active",onChange:()=>i(R(g({},a),{type:"Active"}))},"Active")," "))),ir.createElement(xg.Box,{marginTop:3},ir.createElement(xg.Flex,{padding:2},ir.createElement(re,{tone:"neutral",variant:"raised",onClick:()=>n(),"data-name":"cancel"},"Cancel"),ir.createElement("div",{style:{flex:1}}),ir.createElement(re,{tone:"accent","data-name":"ok",variant:"raised",disabled:we.IsNullOrEmpty(a.description),onClick:()=>r(a)},"OK"))))))};var Rg=class extends Md.Component{constructor(t){super(t),this.state={open:!1}}render(){var a;let o=this.props,{onShare:t,Header:n}=o,r=qe(o,["onShare","Header"]);return Md.createElement(Md.Fragment,null,Md.createElement(re,g({"data-name":"share",tooltip:"Share",variant:"text",icon:"team-share",iconSize:(a=r.iconSize)!=null?a:24,onClick:()=>this.setState({open:!0})},r)),this.state.open&&Md.createElement(SRe,{header:n,showPopup:!0,onClose:()=>this.setState({open:!1}),onConfirm:i=>{this.setState({open:!1}),t(i)}}))}};s();var Eg=A(require("react"));s();var ES=A(require("react")),vRe=A(J());var ARe=({checked:e,onChange:t,disabled:n,className:r,children:o,style:a={},"data-name":i})=>{let l=c=>{n||t(Boolean(c.target.checked))},u="ab-ToggleButton",d=He(r,u,e&&`${u}--checked`,n&&`${u}--disabled`);return ES.createElement("label",{"data-name":i,style:a,className:d},ES.createElement("input",{type:"checkbox",disabled:n,checked:Boolean(e),className:`${u}__input`,onChange:l}),ES.createElement(vRe.Flex,{alignItems:"center",justifyContent:e?"start":"end",className:`${u}__slider`},ES.createElement("div",{className:`${u}__text`},o)))};var SN=Eg.memo(({suspendableObject:e,onUnSuspend:t,onSuspend:n,style:r,disabled:o,accessLevel:a})=>{let i=Eg.useCallback(d=>{d?t(e):n(e)},[t,n]),l=a&&a==="ReadOnly"||o,u=e.IsSuspended;return Eg.createElement(ARe,{className:"ab-SuspendButton","data-name":e.IsSuspended?"un-suspend":"suspend",disabled:l,style:r,onChange:i,checked:!u},u?"inactive":"active")});var YAt=e=>{e.stopPropagation()},IS=class extends nu.Component{render(){return nu.createElement(xRe.Flex,{justifyContent:this.props.justifyContent||"center",margin:0,padding:0,onClick:YAt},this.props.showEdit&&nu.createElement(Od,{onClick:()=>this.props.editClick?this.props.editClick():null,style:{marginLeft:"0px",marginTop:"2px",marginBottom:"2px",marginRight:"2px",color:"var(--ab-color-text-on-edit)",fill:"var(--ab-color-text-on-edit)",background:"var(--ab-color-action-edit)"},disabled:this.props.overrideDisableEdit||this.props.accessLevel=="ReadOnly",tooltip:this.props.overrideTooltipEdit,accessLevel:this.props.accessLevel}),this.props.showClone&&nu.createElement(CN,{onClick:()=>this.props.cloneClick?this.props.cloneClick():null,style:{marginLeft:"0px",marginTop:"2px",marginBottom:"2px",marginRight:"2px",color:"var(--ab-color-text-on-clone)",fill:"var(--ab-color-text-on-clone)",background:"var(--ab-color-action-clone)"},children:null,disabled:this.props.overrideDisableClone||this.props.cloneAccessLevel=="ReadOnly",tooltip:this.props.overrideTooltipClone,accessLevel:this.props.cloneAccessLevel}),this.props.showDelete&&nu.createElement(Fd,{"data-name":"delete",style:{marginLeft:"1px",marginTop:"2px",marginBottom:"2px",marginRight:"1px",color:"var(--ab-color-text-on-delete)",fill:"var(--ab-color-text-on-delete)",background:"var(--ab-color-action-delete)"},disabled:this.props.overrideDisableDelete||this.props.accessLevel=="ReadOnly",tooltip:this.props.overrideTooltipDelete,ConfirmAction:this.props.confirmDeleteAction,ConfirmationMsg:"Are you sure you want to delete this "+this.props.entityType+"?",ConfirmationTitle:"Delete "+this.props.entityType,accessLevel:this.props.accessLevel}),this.props.showShare&&nu.createElement(Rg,{style:{marginLeft:"1px",marginTop:"2px",marginBottom:"2px",marginRight:"1px",color:"var(--ab-color-text-on-share)",fill:"var(--ab-color-text-on-share)",background:"var(--ab-color-action-share)"},onShare:t=>this.props.shareClick?this.props.shareClick(t):null,Header:`TeamSharing ${this.props.entityType}`,disabled:this.props.overrideDisableShare||this.props.accessLevel=="ReadOnly",tooltip:this.props.overrideTooltipShare,accessLevel:this.props.accessLevel}),this.props.showSuspend&&this.props.suspendableObject&&nu.createElement(SN,{style:{marginLeft:2,alignSelf:"center"},onSuspend:this.props.onSuspend,onUnSuspend:this.props.onUnSuspend,suspendableObject:this.props.suspendableObject,disabled:this.props.accessLevel=="ReadOnly"}))}};IS.defaultProps={suspendableObject:null,showEdit:!0,showDelete:!0,showShare:!1,showSuspend:!1,overrideDisableEdit:!1,overrideDisableDelete:!1,overrideDisableClone:!1,overrideDisableShare:!1,confirmDeleteAction:null,entityType:"",accessLevel:"Full",editSize:"xsmall",deleteSize:"xsmall",shareSize:"xsmall"};var va=class extends Nd.Component{render(){let t=[];return this.props.showBold?t.push(Nd.createElement("b",null,this.props.item1)):t.push(Nd.createElement("i",null,this.props.item1)),t.push(Nd.createElement("i",null,this.props.item2)),t.push(Nd.createElement(IS,{justifyContent:"start",confirmDeleteAction:this.props.onDelete,showEdit:this.props.showEdit,editClick:()=>this.props.onEdit(),shareClick:n=>this.props.onShare(n),showShare:this.props.showShare,entityType:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel})),Nd.createElement(wd,{SummaryItems:t})}};s();var Bd=A(require("react")),zRe=require("react"),xN=A(J());s();var Ot=A(require("react")),_d=require("react");var Ro=A(J());var FRe=A(PS());s();var ERe=()=>{let e=typeof globalThis!="undefined"?globalThis:window;return/(Mac|iPhone|iPod|iPad)/i.test(e.navigator.platform)};s();var IRe=A(require("react")),PRe=A(J()),vN=e=>IRe.createElement(PRe.Text,g({fontSize:1,color:"inputcolor"},e));s();var TRe=A(require("react")),Mi=require("react");s();var DRe=()=>(typeof globalThis!="undefined"?globalThis:window).ResizeObserver;var XAt=(e,t)=>{let n=DRe();if(!n)return()=>{};let r=new n(o=>{var u;let a=o[0],{width:i,height:l}=a.contentRect;if((u=a.borderBoxSize)!=null&&u[0])l=a.borderBoxSize[0].blockSize,i=a.borderBoxSize[0].inlineSize;else{let d=e.getBoundingClientRect();l=d.height,i=d.width}t({width:i,height:l})});return r.observe(e),()=>{r.disconnect()}},oq=(e,t,n={earlyAttach:!1})=>{let r=(0,Mi.useRef)({width:0,height:0}),o=a=>{let i;return e.current&&(i=XAt(e.current,l=>{l={width:Math.round(l.width),height:Math.round(l.height)};let u=r.current;(u.width!==l.width||u.height!==l.height)&&(r.current=l,a(l))})),()=>{i&&i()}};(0,Mi.useEffect)(()=>n.earlyAttach?()=>{}:o(t),[e.current,t,n.earlyAttach]),(0,Mi.useLayoutEffect)(()=>n.earlyAttach?o(t):()=>{},[e.current,t,n.earlyAttach])},JAt=e=>{let t=(0,Mi.useMemo)(()=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box"}),[]),{notifyOnMount:n,earlyAttach:r}=e,o=(0,Mi.useRef)(!0),a=(0,Mi.useRef)(null),i=(0,Mi.useCallback)(l=>{if(o.current&&!n){o.current=!1;return}e.onResize(l)},[e.onResize]);return oq(a,i,{earlyAttach:r||!1}),TRe.createElement("div",{ref:a,style:t})};JAt.defaultProps={notifyOnMount:!0,earlyAttach:!1};s();var wRe=A(require("react"));var ORe=(e,t)=>{let n=wRe.useCallback(r=>{if((r.ctrlKey||r.metaKey)&&(r.code==="ArrowUp"||r.code==="ArrowDown")){let o=r.code==="ArrowUp",a=t.reduce((i,l,u)=>(l!=="-"&&i.push(u),i),[]);e(i=>{let l=null,u=a.indexOf(i);if(o){let d=a[u-1];l=typeof d=="number"?d:a[a.length-1]}else{let d=a[u+1];l=typeof d=="number"?d:a[0]}return l})}},[t,e]);VM("keydown",n)};var Eo=e=>Ot.createElement(Ro.Text,g({fontSize:2,mb:3},e)),MRe=e=>Ot.createElement(Ro.Text,g({fontSize:2,mt:1},e)),NRe=Ot.createContext({data:null,sections:[],moduleInfo:null,setCurrentSection:e=>{},api:null,namedQuery:!1});function ze(){return Ot.useContext(NRe)}var $n=e=>{var M,x;let t=Rt(),n=Ot.useCallback(D=>t(Gl(D)),[]),{api:r}=$e(),o=0;if(e.defaultCurrentSectionName){let D=e.sections.findIndex(N=>N!=="-"&&N.title===e.defaultCurrentSectionName);D>=0&&(o=D)}let[a,i]=fn(e,"currentIndex",o,{onChange:D=>{var N;(N=e.onSectionChange)==null||N.call(e,D)}}),[l,u]=(0,_d.useState)(!1),[d]=(0,_d.useState)(()=>new Map),c=()=>{var D;l&&l.Name&&n(l),(D=e.onFinish)==null||D.call(e,e.data)},m=D=>{let N=e.sections[D];return N==="-"?Ot.createElement(Ot.Fragment,{key:D}):Ot.createElement(Ro.Flex,{flexDirection:"column",key:D,"data-name":`section-${D}`,style:{minHeight:"100%"},mr:2},Ot.createElement(Ro.Box,{py:3,paddingLeft:2,fontSize:4,className:"ab-OnePageWizard__details"},N.details),Ot.createElement(Ro.Box,{flex:1,className:"ab-OnePageWizard__section"},N.render(e.data,D)))},f=(0,_d.useRef)(null),h=Ot.createElement("div",{ref:f,className:"ab-OnePageWizard__selected-title-overlay",style:{position:"absolute",background:"var(--ab-cmp-one-page-wizard-selected-title__background)",pointerEvents:"none",borderRadius:"var(--ab__border-radius)",transition:"top 0.2s"}}),b=(0,_d.useRef)(null),[C,y]=(0,_d.useState)(0);oq(b,({width:D})=>{y(D)}),Ot.useEffect(()=>{let D=f.current,q=D.parentNode.children[a];D.style.top=`${q.offsetTop}px`,D.style.left=`${q.offsetLeft}px`,D.style.height=`${q.offsetHeight}px`,D.style.width=`${q.offsetWidth}px`},[a,C]),ORe(i,e.sections);let v=0,S=(0,_d.useRef)(null),I=0,P=null,T={data:e.data,api:r,sections:e.sections,setCurrentSection:i,namedQuery:l,moduleInfo:e.moduleInfo},O=e.sections.reduce((D,N,q)=>{if(N==="-")return D.set(q,!0),D;let F=N.isValid?N.isValid(e.data,r,T):!0;return F!==!0&&(I++,P==null&&(P=F)),D.set(q,F),D},new Map),_=!I;return Ot.createElement(lS.Provider,{value:{namedQuery:l,setNamedQuery:u}},Ot.createElement(NRe.Provider,{value:T},Ot.createElement(vr,{modal:!0,isOpen:!0,showCloseButton:!1,focusOnBrowserVisible:!0,style:{borderRadius:"var(--ab__border-radius)",overflow:"hidden",height:"80vh"},ref:S,onDismiss:()=>{var D;return(D=e.onHide)==null?void 0:D.call(e)},onKeyDown:D=>{if(D.metaKey||D.ctrlKey){let{key:N}=D;if(!isNaN(Number(N))){let q=Number(N);if(d.has(q)){let F=d.get(q);i(F),D.preventDefault(),D.stopPropagation(),requestAnimationFrame(()=>{var k;(k=S==null?void 0:S.current)==null||k.bringToFront()})}}}}},Ot.createElement(Ro.Flex,{className:"ab-OnePageWizard",flexDirection:"column","data-name":e.moduleInfo.FriendlyName?`${(0,FRe.default)(e.moduleInfo.FriendlyName)}-wizard`:"",style:g({height:"100%",width:"90vw",maxWidth:1e3},e.style)},Ot.createElement(Ro.Flex,{flexDirection:"row",alignItems:"stretch",flex:1,style:{overflow:"auto"}},Ot.createElement(Ro.Flex,{flexDirection:"column",padding:3,className:"ab-OnePageWizard__section-title-container",ref:b,style:{overflow:"auto",position:"relative",flex:"none"}},e.sections.map((D,N)=>{if(D==="-")return Ot.createElement(Ro.Box,{as:"hr",mt:2,className:"ab-OnePageWizard__section-separator",key:`${N}-`,style:{width:"100%",border:"none",borderTop:"1px solid var(--ab-color-inputborder)"}});v++,d.set(v,N);let q=N===a,F=!1;return Ot.createElement(Ro.Flex,{className:"ab-OnePageWizard__section-title","data-name":D.title,flexDirection:"row",style:{cursor:F?"auto":"pointer",zIndex:10,transition:"color 0.2s",opacity:F?.5:1},key:D.title,color:q?"var(--ab-cmp-one-page-wizard-section-title__color)":"",px:2,py:1,mt:N?2:0,onClick:()=>{F||i(N)}},Ot.createElement(vN,{mr:2,style:{display:"inline-block"}},v),Ot.createElement("div",{style:{flex:1}},D.title),Ot.createElement(Ct,{name:"error",style:{marginLeft:"var(--ab-space-2)",visibility:O.get(N)!==!0?"visible":"hidden"}}))}),h,Ot.createElement(Ro.Box,{flex:1}),Ot.createElement(vN,{style:{lineHeight:1.5},className:"ab-OnePageWizard__key-hint"},ERe()?"Cmd":"Ctrl"," + #",Ot.createElement("br",null),"to navigate")),Ot.createElement(Ro.Flex,{flex:1,flexDirection:"column",className:"ab-OnePageWizard__section-container"},m(a))),Ot.createElement(Ro.Flex,{flexDirection:"row",padding:2,alignItems:"center",className:"ab-WizardDialog__footer ab-OnePageWizard__footer"},Ot.createElement(re,{tone:"neutral",variant:"text","data-name":"close",onClick:()=>{var D;return(D=e.onHide)==null?void 0:D.call(e)},tooltip:(M=e.closeTooltip)!=null?M:"Close wizard",accessLevel:"Full"},(x=e.closeText)!=null?x:"CLOSE"),Ot.createElement(vN,{ml:2},"Esc"),Ot.createElement(Ro.Text,{fontSize:2,mr:3,className:"ab-OnePageWizard__error",style:{flex:1,color:"var(--ab-color-error)",textAlign:"end"}},P),Ot.createElement(re,{tone:"accent","data-name":"finish",variant:"raised",disabled:_!==!0,onClick:()=>c(),icon:"check",accessLevel:"Full"},"Finish"))))))},Xn=()=>{let{sections:e,setCurrentSection:t,data:n,api:r}=ze(),o=a=>Ot.createElement(re,{px:1,variant:"text",style:{textDecoration:"underline",display:"inline-block",fontSize:"var(--ab-font-size-2)"},onClick:()=>{t(a)}},"edit");return Ot.createElement(Ot.Fragment,null,e.map((a,i)=>a==="-"||!a.renderSummary?null:Ot.createElement(j,{keyboardNavigation:!1,mt:i?2:0,key:i},Ot.createElement(j.Tab,null,a.title," ",o(i)),Ot.createElement(j.Content,null,a.renderSummary(n,r)))).filter(Boolean))};s();var ru=A(require("react")),kRe=A(J());s();var _Re=A(require("react")),LRe=require("react");var DS=e=>{let{columnFilterText:t,availableColumns:n,selected:r,onChange:o,singleSelect:a}=e,i=(0,LRe.useMemo)(()=>t?l=>l.friendlyName.toLowerCase().indexOf(t.toLowerCase())!=-1:null,[t]);return _Re.createElement(qc,{value:r,options:n,filter:i,singleSelect:a,allowReorder:!1,onChange:l=>{o(a?l.length?[l.pop()]:[]:l)},toIdentifier:l=>l.columnId,toLabel:l=>l.friendlyName,noSelectionLabel:a?"Please select a column":"You have not selected any columns.",xSelectedLabel:a?()=>null:l=>l>1?`You selected ${l} columns.`:"You selected one column."})};DS.defaultProps={allowReorder:!0};var BRe=e=>{let{api:t}=ze();return ru.createElement(kRe.Text,{pr:2,py:2,fontSize:2},"Custom sort column: ",ru.createElement(Dt,null,t.columnApi.getFriendlyNameFromColumnId(e.ColumnId)))},VRe=e=>e.ColumnId?!0:"You have to select a Column for Custom Sort",GRe=e=>{let{data:t,api:n}=ze(),r=ru.useMemo(()=>{var u,d;let o=n.columnApi.getSortableColumns(),a=n.customSortApi.getAllCustomSort(),i=((d=(u=n.internalApi.getAdaptableOptions())==null?void 0:u.generalOptions)==null?void 0:d.customSortComparers)||[],l=[...a.map(c=>c.ColumnId),...i.map(c=>n.scopeApi.getColumnIdsInScope(c.scope))];return o.filter(c=>!e.isNew&&c.columnId===(t==null?void 0:t.ColumnId)?!0:l.every(m=>c.columnId!==m))},[]);return ru.createElement(j,{style:{height:"100%"}},ru.createElement(j.Tab,null,"Column"),ru.createElement(j.Content,null,ru.createElement(DS,{availableColumns:r,selected:t.ColumnId?[t.ColumnId]:[],singleSelect:!0,onChange:o=>{e.onChange(R(g({},t),{ColumnId:o[0]}))},allowReorder:!1})))};s();var os=A(require("react")),kd=require("react"),HRe=A(J());s();s();var TS=A(require("react")),AN=e=>TS.createElement("div",{style:e.style,className:"ab-Loader__Spinner"}),wS=e=>TS.createElement("div",{style:e.style,className:"ab-Loader"},TS.createElement(AN,null),TS.createElement("span",{className:"ab-Loader__text"},e.children));s();var Ld=async(e,t,n=100)=>{let r=!1;return e==null||e.then(()=>{r=!0}),(async()=>(await new Promise(o=>setTimeout(o,n)),r||t()))(),e};var URe=e=>!e.SortedValues||!e.SortedValues.length?"You have to specify at least one value for Custom Sort order":!0,WRe=e=>e.SortedValues.length?os.createElement(HRe.Text,{fontSize:2},os.createElement(Xo,{options:e.SortedValues,value:e.SortedValues,toIdentifier:t=>`${t}`,toLabel:t=>`${t}`,allowWrap:!0,readOnly:!0})):null,qRe=e=>{let{data:t,api:n}=ze(),[r,o]=(0,kd.useState)([]),[a,i]=(0,kd.useState)(!1);(0,kd.useEffect)(()=>{let f=!0;return(async()=>{o([]);let h=await Ld(n.columnApi.getDistinctCustomSortDisplayValuesForColumn(t.ColumnId),()=>f&&i(!0));!f||(i(!1),o(h))})(),()=>{f=!1}},[t.ColumnId]);let l=(0,kd.useMemo)(()=>!t.SortedValues||!t.SortedValues.length?new Map:t.SortedValues.reduce((f,h)=>(f.set(h,!0),f),new Map),[t.SortedValues]),u=os.useCallback(f=>l.has(f),[l]),d=(0,kd.useMemo)(()=>fN(r,t.SortedValues,{sortUnorderedItems:!1}),[u,r,t.SortedValues]),c="ab-CustomSortWizard__SortOrder",m=He(c,a&&`${c}--loading`);return os.createElement(j,{style:{height:"100%"},className:m},os.createElement(j.Tab,null,"Sort Order"),os.createElement(j.Content,null,a&&os.createElement(wS,null,"Loading"),os.createElement(qc,{toIdentifier:f=>`${f}`,toLabel:f=>`${f}`,options:d,value:t.SortedValues,allowReorder:u,xSelectedLabel:()=>"Your Sort Order:",onChange:f=>{e.onChange(R(g({},t),{SortedValues:f}))}})))};var RN=e=>{var l,u;let t=e.data,n=rr(d=>{var c;return(c=d.CustomSort)==null?void 0:c.CustomSorts});((l=e.popupParams)==null?void 0:l.action)==="Edit"&&((u=e.popupParams)==null?void 0:u.column)&&(t=n.find(d=>{var c;return d.ColumnId==((c=e.popupParams)==null?void 0:c.column.columnId)}));let[r,o]=(0,zRe.useState)(()=>{var c,m;if(t)return Bn(t);let d=it.CreateEmptyCustomSort();return(c=e.popupParams)!=null&&c.column&&(d.ColumnId=(m=e.popupParams)==null?void 0:m.column.columnId),d}),a=Rt(),i=()=>{a(t?Lu(r):_u(r)),e.onFinishWizard(r)};return Bd.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:r,onFinish:i,onHide:e.onCloseWizard,sections:[{isValid:VRe,renderSummary:BRe,details:"Select a Column for Custom Sort",render:()=>Bd.createElement(xN.Box,{padding:2,style:{height:"100%"}},Bd.createElement(GRe,{isNew:e.isNew,onChange:o})),title:"Column"},{title:"Sort Order",details:'Select values to specify Custom Sort order - use "Drag to reorder" checkbox to modify order',isValid:URe,renderSummary:WRe,render:()=>Bd.createElement(xN.Box,{padding:2,style:{height:"100%"}},Bd.createElement(qRe,{onChange:o}))},"-",{title:"Summary",details:"Review your Custom Sort",render:()=>Bd.createElement(xN.Box,{padding:2},Bd.createElement(Xn,null))}]})};var aq=class extends as.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.CustomSorts.find(r=>r.ColumnId==n.ColumnId)?this.props.onEditCustomSort(n):this.props.onAddCustomSort(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=this.props.CustomSorts.find(i=>i.ColumnId==this.props.summarisedColumn.columnId),r=this.props.api.internalApi.getCustomSortComparer(this.props.summarisedColumn),o=n==null&&r==null,a;return this.props.summarisedColumn.sortable?o?a=as.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"No Custom Sort Set",onNew:()=>this.onNew(),accessLevel:this.props.accessLevel,newButtonTooltip:this.props.moduleInfo.FriendlyName}):r!=null?a=as.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"Using a Custom Sort Comparer Function",onNew:()=>this.onNew(),accessLevel:this.props.accessLevel,newButtonTooltip:this.props.moduleInfo.FriendlyName}):a=as.createElement(va,{key:this.props.moduleInfo.FriendlyName,item1:as.createElement(Oi,{moduleInfo:this.props.moduleInfo}),item2:this.getCustomSortedValues(n),configEnity:n,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(n),showEdit:n!=null,onShare:i=>this.props.onShare(n,i),showShare:this.props.teamSharingActivated,onDelete:Hf(n),showBold:!0,accessLevel:this.props.accessLevel}):a=as.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"Column is not sortable",newButtonDisabled:!0,onNew:()=>this.onNew(),newButtonTooltip:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel}),as.createElement("div",null,a,this.state.editedAdaptableObject&&as.createElement(RN,{isNew:this.state.wizardStatus==="New",moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.CustomSorts,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onNew(){let n=Vt.CreateEmptyCustomSort();n.ColumnId=this.props.summarisedColumn.columnId,this.setState({editedAdaptableObject:n,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){this.setState({editedAdaptableObject:Mt.cloneObject(n),wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNotNullOrEmpty(n.ColumnId)&&Ee.IsNotNullOrEmpty(n.SortedValues)}getCustomSortedValues(n){return Ee.IsNotNullOrEmpty(n.SortedValues)?n.SortedValues.join(", "):"[Has bespoke Custom Sort implementing using bespoke function]"}};function ZAt(e,t){return{CustomSorts:e.CustomSort.CustomSorts}}function ext(e){return{onAddCustomSort:t=>e(_u(t)),onEditCustomSort:t=>e(Lu(t)),onShare:(t,n)=>e(da(t,bo,n))}}var QRe=Ye(ZAt,ext)(aq);s();var Wd=A(require("react"));s();var OS=A(require("react"));var Aa=class extends OS.Component{render(){if(!this.props.Style)return null;let t=Qe.IsNotNullOrEmpty(this.props.Text)?this.props.Text:"Style",n;if(this.props.Style.ClassName)n=OS.createElement("div",null,"CSS Class: "+this.props.Style.ClassName);else{let r=this.props.Style.BackColor!=null?this.props.Style.BackColor:null,o=this.props.Style.ForeColor!=null?this.props.Style.ForeColor:"black",a=this.props.Style.BorderColor!=null?this.props.Style.BorderColor:null,i=this.props.Style.FontWeight=="Bold"?"bold":"normal",l=this.props.Style.FontStyle=="Italic"?"italic":"normal",u=ba.getCssFontSizeFromFontSizeEnum(this.props.Style.FontSize);n=OS.createElement("div",{className:this.props.Style.BackColor!=null?"":"ab_white_grey_stripes",style:{textAlign:"center",margin:"2px",padding:"3px",background:r,color:o,borderColor:a,borderStyle:a?"solid":"none",fontWeight:i,fontStyle:l,fontSize:u}},t)}return n}};s();var Ra=A(require("react")),oEe=require("react"),jc=A(J());s();var iq=A(require("react"));var jRe=A(J());var txt=e=>R(g({},Hc(e!=null?e:{})),{borderWidth:e!=null&&e.BorderColor?2:0,borderStyle:"solid"}),YRe=e=>iq.createElement(jRe.Text,{padding:2,style:txt(e.Style)},"Preview result");function KRe(e){let{data:t,api:n}=ze();return iq.createElement(ya,{headless:!0,api:n,Style:t.Style,UpdateStyle:r=>{e.onChange(R(g({},t),{Style:r}))}})}s();var FS=A(require("react"));s();var Zt=A(require("react")),$Re=require("react"),ei=A(J());var Ni=({Scope:e})=>{let t=[];return e?(e&&"ColumnIds"in e&&e.ColumnIds.length===0&&t.push("No columns selected for scope"),e&&"DataTypes"in e&&e.DataTypes.length===0&&t.push("No data types selected for scope"),t.length?t.join(", "):!0):"No scope specified or scope is empty"},XRe={Date:{label:"Date",value:"Date"},Number:{label:"Number",value:"Number"},String:{label:"String",value:"String"},Boolean:{label:"Boolean",value:"Boolean"}},nxt=Object.values(XRe),is=(e,t)=>{let r=$e().api.scopeApi,o=r.getColumnsForScope(e);return Zt.createElement(Zt.Fragment,null,Zt.createElement(ei.Box,null,Zt.createElement(Eo,{mb:0},r.scopeIsAll(e)?t.scopeWholeRow:null)),Zt.createElement(ei.Box,{style:{overflow:"hidden"}},"ColumnIds"in e?Zt.createElement(Zt.Fragment,null,Zt.createElement(Eo,{mb:o.length?2:0},t.scopeColumns),o.length?Zt.createElement(Xo,{options:o,value:o.map(a=>a.columnId),toLabel:a=>a.friendlyName,allowWrap:!0,readOnly:!0,renderLabel:a=>Zt.createElement(Eo,{mb:0},a),toIdentifier:a=>a.columnId}):null):null),Zt.createElement(ei.Box,null,"DataTypes"in e?Zt.createElement(Zt.Fragment,null,Zt.createElement(ei.Text,{fontSize:2,mb:2},t.scopeDataTypes),Zt.createElement(Xo,{readOnly:!0,options:e.DataTypes,value:e.DataTypes,toLabel:a=>a,allowWrap:!0,renderLabel:a=>Zt.createElement(ei.Text,{fontSize:2},`DataType: ${a}`),toIdentifier:a=>a})):null))},xa=e=>{let{api:t}=$e(),{scopeApi:n,columnApi:r}=t,[o,a]=(0,$Re.useState)(""),i=e.scopeColumns||r.getColumns(),l=b=>{if(!!b){if(n.scopeIsAll(b))return"All";if(n.scopeHasColumns(e.scope))return"Column";if(n.scopeHasDataType(e.scope))return"DataType"}},u=b=>{let C;b=="Column"?C={ColumnIds:[]}:b=="DataType"?C={DataTypes:[]}:C={All:!0},e.updateScope(C)},d=b=>{let C={ColumnIds:b};e.updateScope(C)},c=(b,C)=>{let y=[].concat(n.getDataTypesInScope(e.scope));if(b)y.push(C);else{let S=y.indexOf(C,0);S>-1&&y.splice(S,1)}let v={DataTypes:y};e.updateScope(v)},m=l(e.scope),f=e.scope&&"DataTypes"in e.scope?n.getDataTypesInScope(e.scope):null,h=nxt;return Array.isArray(e.availableDataTypes)&&(h=e.availableDataTypes.map(b=>XRe[b])),Zt.createElement(j,{"data-name":"scope-component",className:"ab-ScopeComponent",value:m,style:g({height:"100%"},e.style),onValueChange:u},e.hideWholeRow?null:Zt.createElement(j.Tab,{value:"Row"},Zt.createElement(We,{margin:0,checked:m=="All",tabIndex:-1},"Whole Row")),Zt.createElement(j.Tab,{value:"Column"},Zt.createElement(We,{margin:0,value:"Column",checked:m=="Column",tabIndex:-1},"Columns")),Zt.createElement(j.Tab,{value:"DataType"},Zt.createElement(We,{margin:0,value:"DataType",checked:m=="DataType",tabIndex:-1},"Data Types")),e.hideWholeRow?null:Zt.createElement(j.Content,{value:"Row",style:{flex:"none"},"data-name":"row-scope"},Zt.createElement(ei.Text,{padding:2,fontSize:2},e.descriptions.rowScope)),Zt.createElement(j.Content,{value:"Column",style:{flex:1,overflow:"auto"},"data-name":"column-scope",padding:0},Zt.createElement(ei.Flex,{flexDirection:"row",alignItems:"center",padding:2},Zt.createElement(ei.Text,{fontSize:2},e.descriptions.columnScope),Zt.createElement(ei.Flex,{flex:3}),Zt.createElement(Ii,{value:o,OnTextChange:a,placeholder:"Type to search columns",style:{flex:1}})),Zt.createElement(ei.Flex,{paddingLeft:2,flex:1,style:{overflow:"hidden"}},Zt.createElement(DS,{columnFilterText:o,allowReorder:!1,availableColumns:i,selected:n.getColumnIdsInScope(e.scope),onChange:d}))),Zt.createElement(j.Content,{value:"DataType",style:{flex:"none"},"data-name":"datatype-scope"},h.map(b=>Zt.createElement(pe,{key:b.value,"data-name":"scope",checked:f&&f.includes(b.value),onChange:C=>c(C,b.value)},b.label))))};s();var EN="NonBlanks";var JRe=e=>is(e.Scope,{scopeWholeRow:"Matching rows will display the Conditionally Style",scopeColumns:"Cells in selected columns will display the Conditionally Style",scopeDataTypes:"Cells in columns of the selected data-types will display the Conditionally Style"});function ZRe(e){let{data:t,api:n}=ze();return FS.createElement(FS.Fragment,null,FS.createElement(xa,{scope:t.Scope,descriptions:{rowScope:"Matching Rows will have the Conditional Style applied",columnScope:"Matching Columns will have the Conditional Style applied"},updateScope:r=>{let o=R(g({},t),{Scope:r}),a=n.scopeApi.scopeIsAll(r);o.Rule.Predicate&&(a?(delete o.Rule.Predicate,o.Rule.BooleanExpression=""):o.Rule.Predicate={PredicateId:EN}),e.onChange(o)}}))}s();var Rr=A(require("react"));s();var ln=A(require("react")),Vd=A(J());var PN=(e,t,n)=>{var r,o,a,i,l,u;return!((r=e==null?void 0:e.Rule)!=null&&r.Predicate)&&!((o=e==null?void 0:e.Rule)!=null&&o.BooleanExpression)?"No valid Condition is specified":(a=e==null?void 0:e.Rule)!=null&&a.Predicate&&!t.predicateApi.isValidPredicate((i=e==null?void 0:e.Rule)==null?void 0:i.Predicate)?"The Predicate is not valid":(l=e==null?void 0:e.Rule)!=null&&l.BooleanExpression&&!t.queryLanguageApi.isValidBooleanExpression((u=e==null?void 0:e.Rule)==null?void 0:u.BooleanExpression,n.moduleInfo.ModuleName)?"The Expression is not a valid Boolean Expression":!0},IN=e=>{let i=e,{type:t,label:n,disabled:r=!1}=i,o=qe(i,["type","label","disabled"]),a=ln.createElement(Vd.Flex,{flexDirection:"column"},n," ",ln.createElement(Vd.Text,{fontSize:2},"query"));return ln.createElement(j.Tab,g({style:{flex:1}},o),r?a:ln.createElement(We,{tabIndex:-1,margin:0,checked:t===e.value,style:{alignItems:"baseline"}},a))};IN.defaultProps={isTabsTab:!0};var Gd=e=>{let{data:t}=e,{api:{predicateApi:n,queryLanguageApi:r}}=$e();return ln.createElement(Vd.Text,{fontSize:2},t.Rule.Predicate?ln.createElement(ln.Fragment,null,e.renderPredicate(n.predicateToString(t.Rule.Predicate))):ln.createElement(ln.Fragment,null,e.renderQueryExpression(r.getAdaptableQueryExpression(t.Rule))))},Hd=e=>{var N,q;let{data:t,children:n,descriptions:r,predicateDefs:o,showPredicate:a=!0,showObservable:i=!0,showBoolean:l=!0,showAggregation:u=!0,flexProps:d,module:c}=e,{api:m}=$e(),f=t.Rule.BooleanExpression!=null?"BooleanExpression":t.Rule.ObservableExpression!=null&&i?"ObservableExpression":t.Rule.AggregatedBooleanExpression!=null&&u?"AggregatedBooleanExpression":"Predicate",[h,b]=ln.useState(f),C=F=>{b(F),F==="BooleanExpression"&&l?e.onChange(R(g({},t),{Rule:{BooleanExpression:""}})):F==="ObservableExpression"&&i?e.onChange(R(g({},t),{Rule:{ObservableExpression:""}})):F==="AggregatedBooleanExpression"&&u?e.onChange(R(g({},t),{Rule:{AggregatedBooleanExpression:""}})):e.onChange(R(g({},t),{Rule:{Predicate:{PredicateId:e.defaultPredicateId}}}))},y=t.Rule.Predicate!=null?t.Rule.Predicate.PredicateId:void 0,v=y?(N=t.Rule.Predicate.Inputs)!=null?N:[]:[],S=m.predicateApi.getPredicateDefById(y),I=(F,k)=>{let{value:Y}=F.target,Z=[...v];Z[k]=Y,e.onChange(R(g({},t),{Rule:{Predicate:{PredicateId:y,Inputs:Z}}}))},P=F=>{var k;F?e.onChange(R(g({},t),{Rule:{Predicate:{PredicateId:F.id,Inputs:((k=F==null?void 0:F.inputs)!=null?k:[]).map(Y=>{var Z;return(Z=Y.defaultValue)!=null?Z:""})}}})):e.onChange(R(g({},t),{Rule:{BooleanExpression:""}}))},T=()=>{e.onChange(R(g({},t),{Rule:{Predicate:void 0}}))},O=F=>{e.onChange(R(g({},t),{Rule:{BooleanExpression:F}}))},_=F=>{e.onChange(R(g({},t),{Rule:{ObservableExpression:F}}))},M=F=>{e.onChange(R(g({},t),{Rule:{AggregatedBooleanExpression:F}}))},x=m.internalApi.getQueryPreviewData(),D=m.internalApi.isDocumentationLinksDisplayed();return ln.createElement(Vd.Flex,R(g({flexDirection:"column",padding:2,pt:0,pl:0},d),{style:g({height:"100%"},d==null?void 0:d.style)}),n,ln.createElement(j,{onValueChange:C,value:h,pt:2,pl:2,style:{flex:1,overflow:"auto"}},a?ln.createElement(j.Tab,{value:"Predicate",style:{flex:1}},ln.createElement(We,{tabIndex:-1,margin:0,checked:f==="Predicate"},"Predicate")):null,a?ln.createElement(j.Content,{value:"Predicate"},ln.createElement(Vd.Text,{fontSize:2,mb:2},r.selectPredicate),ln.createElement(Ze,{style:{minWidth:"15rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"inherit"},placeholder:"Select Rule",showClearButton:!!t.Rule.Predicate,onClear:T,items:o.map(F=>({value:F.id,label:F.label,onClick:()=>P(F)})),columns:["label"]},S?S.label:"Select Rule"),(q=S==null?void 0:S.inputs)==null?void 0:q.map((F,k)=>ln.createElement(Vd.Flex,{key:y+k,flexDirection:"column"},k>0&&ln.createElement(Nt,{marginTop:2},"AND"),ln.createElement(Yn,{marginTop:2,type:F.type,autoFocus:k===0,value:v[k],onChange:Y=>I(Y,k)}))),D&&ln.createElement(Nt,{"data-name":"query-documentation",mt:3,mb:2,style:{fontSize:"var(--ab-font-size-3)",padding:0}},ln.createElement(so,{mr:2,style:{color:"var(--ab-color-text-on-add)",fill:"var(--ab-color-text-on-add)",background:"var(--ab-color-action-add)"},onClick:()=>window.open(Gve,"_blank")}),"See Predicate documentation for more details and examples")):null,l?ln.createElement(IN,{value:"BooleanExpression",type:f,label:"Boolean"}):null,l?ln.createElement(j.Content,{value:"BooleanExpression",paddingLeft:0},ln.createElement($a,{type:"boolean",module:c,value:t.Rule.BooleanExpression,onChange:O,initialData:x,columns:m.columnApi.getQueryableColumns(),namedQueries:m.queryApi.getAllNamedQuery(),api:m})):null,i?ln.createElement(IN,{value:"ObservableExpression",type:f,label:"Observable"}):null,i?ln.createElement(j.Content,{value:"ObservableExpression",paddingLeft:0},ln.createElement($a,{type:"observable",module:c,value:t.Rule.ObservableExpression,onChange:_,initialData:x,columns:m.columnApi.getQueryableColumns(),namedQueries:m.queryApi.getAllNamedQuery(),api:m})):null,u?ln.createElement(IN,{value:"AggregatedBooleanExpression",type:f,label:"AggregatedBoolean"}):null,u?ln.createElement(j.Content,{value:"AggregatedBooleanExpression",paddingLeft:0},ln.createElement($a,{type:"aggregatedBoolean",module:c,value:t.Rule.AggregatedBooleanExpression,onChange:M,initialData:x,columns:m.columnApi.getQueryableColumns(),namedQueries:m.queryApi.getAllNamedQuery(),api:m})):null))};function eEe(e){return Rr.createElement(Gd,{data:e,renderPredicate:t=>Rr.createElement(Rr.Fragment,null,"Apply Conditional Style on ",Rr.createElement(Fn,null,t)),renderQueryExpression:t=>Rr.createElement(Rr.Fragment,null,"Apply Conditional Style when"," ",Rr.createElement("b",null,Rr.createElement(Fn,null,t)))})}function tEe(e){let{data:t,api:n,moduleInfo:r}=ze();return Rr.createElement(Rr.Fragment,null,Rr.createElement(Hd,{module:r.ModuleName,defaultPredicateId:e.defaultPredicateId,predicateDefs:n.conditionalStyleApi.getCondStylePredicateDefsForScope(t.Scope),showAggregation:!1,showObservable:!1,showPredicate:!n.scopeApi.scopeIsAll(t.Scope),data:t,onChange:e.onChange,descriptions:{selectPredicate:"Select a Conditional Style Rule - to be applied when data changes",useBooleanQuery:Rr.createElement(Rr.Fragment,null,"Use an BooleanQuery if ",Rr.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:Rr.createElement(Rr.Fragment,null,"Use an ObservableQuery if ",Rr.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression"),useAggregationQuery:Rr.createElement(Rr.Fragment,null,"Use an AggregatedBooleanQuery if ",Rr.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")}}))}s();var _i=A(require("react")),Ud=A(J());var nEe=e=>_i.createElement(Ud.Box,{padding:2},_i.createElement(Ud.Text,null,"Include grouped rows"),_i.createElement(Ud.Text,{mt:3},e.IncludeGroupedRows?"Yes":"No")),rEe=e=>{let{data:t}=ze(),n=r=>{e.onChange(R(g({},t),{IncludeGroupedRows:r}))};return _i.createElement(j,null,_i.createElement(j.Tab,null,"Settings"),_i.createElement(j.Content,null,_i.createElement(Ud.Flex,{flexDirection:"row"},_i.createElement(Je,null,_i.createElement(de,{label:"Include Grouped Rows:"},_i.createElement(Ud.Flex,{alignItems:"center",marginLeft:2},_i.createElement(pe,{checked:t.IncludeGroupedRows,onChange:n,mr:2})))))))};var DN=e=>{var i;let t=(i=e.data)!=null?i:e.popupParams.value,[n,r]=(0,oEe.useState)(()=>{var d,c,m;let l={BooleanExpression:""},u=t?Bn(t):it.CreateEmptyConditionalStyle();return u.Scope=(d=u.Scope)!=null?d:{All:!0},u.Rule||(u.Rule=l),!u.Rule.Predicate&&u.Rule.BooleanExpression==null&&(u.Rule.BooleanExpression=""),((c=e.popupParams)==null?void 0:c.action)==="New"&&((m=e.popupParams)==null?void 0:m.column)&&(u.Scope={ColumnIds:[e.popupParams.column.columnId]}),u}),o=Rt(),a=()=>{o(t?Nu(n):Mu(n)),e.onCloseWizard()};return Ra.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:n,onHide:e.onCloseWizard,onFinish:a,sections:[{title:"Style",details:"Specify the Style to be applied conditionally",renderSummary:YRe,render:()=>Ra.createElement(jc.Box,{padding:2},Ra.createElement(KRe,{onChange:r}))},{title:"Target",isValid:Ni,renderSummary:JRe,details:Ra.createElement(jc.Flex,{flexDirection:"row",alignItems:"center"},"Specify where the Conditional Style should be applied",Ra.createElement("div",{style:{flex:1}}),Ra.createElement(pe,{margin:0,marginLeft:2,onChange:l=>{r(R(g({},n),{IncludeGroupedRows:l}))},checked:n.IncludeGroupedRows},"Include Grouped Rows")),render:()=>Ra.createElement(jc.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},Ra.createElement(ZRe,{onChange:r}))},{isValid:PN,title:"Condition",details:"Build the rules when the Conditional Style should be applied",render:()=>Ra.createElement(tEe,{onChange:r,defaultPredicateId:EN}),renderSummary:eEe},{title:"Settings",renderSummary:nEe,render:()=>Ra.createElement(jc.Box,{padding:2},Ra.createElement(rEe,{onChange:r}))},"-",{details:"Review the Conditional Style",render:()=>Ra.createElement(jc.Box,{padding:2},Ra.createElement(Xn,null)),title:"Summary"}]})};var lq=class extends Wd.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.state.wizardStatus=="Edit"?this.props.onEditConditionalStyle(n):this.props.onAddConditionalStyle(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=[],r=Wd.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:Mt.ReturnItemCount(this.props.ConditionalStyles.filter(o=>this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,o.Scope)),this.props.moduleInfo.FriendlyName),onNew:()=>this.onNew(),newButtonTooltip:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel});return n.push(r),this.props.ConditionalStyles.map((o,a)=>{if(this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,o.Scope)){let i=Wd.createElement(va,{key:"CS"+a,item1:Wd.createElement(Aa,{Style:o.Style}),item2:o.Rule.BooleanExpression?o.Rule.BooleanExpression:this.props.api.predicateApi.predicateToString(o.Rule.Predicate),configEnity:o,moduleInfo:this.props.moduleInfo,showShare:this.props.teamSharingActivated,onEdit:()=>this.onEdit(o),onShare:l=>this.props.onShare(o,l),onDelete:eE(o),accessLevel:this.props.accessLevel});n.push(i)}}),Wd.createElement("div",null,n,this.state.editedAdaptableObject&&Wd.createElement(DN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:null,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onNew(){let n=Vt.CreateEmptyConditionalStyle();n.Scope={ColumnIds:[this.props.summarisedColumn.columnId]},this.setState({editedAdaptableObject:n,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){this.setState({editedAdaptableObject:Mt.cloneObject(n),wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNullOrEmpty(n.Rule.BooleanExpression)||!this.props.api.queryLanguageApi.isValidBooleanExpression(n.Rule.BooleanExpression,Vn)?!1:Wt.IsNotEmptyStyle(n.Style)}};function rxt(e,t){return{ConditionalStyles:e.ConditionalStyle.ConditionalStyles,NamedQueries:e.Query.NamedQueries}}function oxt(e){return{onAddConditionalStyle:t=>e(Mu(t)),onEditConditionalStyle:t=>e(Nu(t)),onAddNamedQuery:t=>e(Gl(t)),onShare:(t,n)=>e(da(t,Vn,n))}}var aEe=Ye(rxt,oxt)(lq);s();var Yc=A(require("react"));s();var TN=A(require("react"));var ti=class extends TN.Component{render(){return TN.createElement(re,R(g({"data-name":"clear",tooltip:"Clear",iconSize:20,icon:this.props.showIcon==!1?"":"clear"},this.props),{variant:"text"}),this.props.showText?"Clear":"")}};var sq=class extends Yc.Component{constructor(t){super(t),this.state=Wt.getEmptyConfigState()}render(){let t=this.props.ColumnFilters.find(o=>o.ColumnId==this.props.summarisedColumn.columnId),n=this.getDescription(t),r=[];return r.push(Yc.createElement("b",null,Yc.createElement(Oi,{moduleInfo:this.props.moduleInfo}))),r.push(n),r.push(Yc.createElement(ti,{marginLeft:1,onClick:()=>this.props.onClearFilter(t),tooltip:"Clear Filter",disabled:t==null,accessLevel:this.props.accessLevel})),Yc.createElement(wd,{SummaryItems:r})}getDescription(t){return this.props.summarisedColumn&&!this.props.summarisedColumn.filterable?"Column is not filterable":t==null?"No Column Filter Active":this.props.api.filterApi.columnFilterToString(t)}};function axt(e,t){return{ColumnFilters:e.Filter.ColumnFilters}}function ixt(e){return{onClearFilter:t=>e(Bl(t)),onClearPopupParams:()=>e(uf()),onShare:(t,n)=>e(da(t,Co,n))}}var iEe=Ye(axt,ixt)(sq);s();var Kc=A(require("react"));s();var ni=A(require("react")),dq=A(J());s();var wN=A(require("react"));var lEe=e=>{let{data:t,api:n}=ze(),r=wN.useMemo(()=>n.columnApi.getNumericColumns(),[]);return wN.createElement(xa,{availableDataTypes:["Number"],scopeColumns:r,scope:t.Scope,descriptions:{rowScope:"Matching rows will have the plus/minus applied",columnScope:"Matching Columns will have the plus/minus applied"},updateScope:o=>{let a=o;o&&"DataTypes"in o&&o.DataTypes.length===0&&(a=R(g({},o),{DataTypes:["Number"]})),e.onChange(R(g({},t),{Scope:a}))}})};s();var eo=A(require("react")),uq=A(J());s();var Ea=A(require("react"));function sEe(){let{data:e}=ze();return Ea.createElement(Gd,{data:e,renderPredicate:t=>Ea.createElement(Ea.Fragment,null,"Apply Plus Minus on ",Ea.createElement(Fn,null,t)),renderQueryExpression:t=>Ea.createElement(Ea.Fragment,null,"Apply Plus Minus when"," ",Ea.createElement("b",null,Ea.createElement(Fn,null,t)))})}function uEe(e){var o;let{data:t,moduleInfo:n}=ze(),r=R(g({},t),{Rule:(o=t==null?void 0:t.Rule)!=null?o:{BooleanExpression:""}});return Ea.createElement(Hd,{module:n.ModuleName,flexProps:{style:{minHeight:0}},defaultPredicateId:e.defaultPredicateId,predicateDefs:[],showAggregation:!1,showObservable:!1,showPredicate:!1,data:r,onChange:a=>e.onChange(a),descriptions:{selectPredicate:null,useBooleanQuery:Ea.createElement(Ea.Fragment,null,"Use an BooleanQuery if ",Ea.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:null,useAggregationQuery:null}})}var dEe=e=>{var n;let{data:t}=ze();return eo.createElement(eo.Fragment,null,eo.createElement(Eo,null,"Nudge Value ",eo.createElement(Dt,null,(n=t.NudgeValue)!=null?n:"Not selected")),e.hasCondition&&eo.createElement(sEe,null))},pEe=e=>(t,n,r)=>{let o=e?PN(t,n,r):!0;return typeof o=="string"?o:typeof t.NudgeValue!="number"?"Nudge value is not specified":t.NudgeValue===0?"Nudge value must be different than 0":!0},cEe=e=>{var r;let{data:t}=ze(),n=o=>{let a=parseFloat(o.target.value);e.onChange(R(g({},t),{NudgeValue:isNaN(a)?"":a}))};return eo.createElement(uq.Flex,{height:"100%",flexDirection:"column","data-name":"plus-minus-column-settings"},eo.createElement(j,{autoFocus:!1,padding:2},eo.createElement(j.Tab,null,"Plus Minus Settings"),eo.createElement(j.Content,null,eo.createElement(Je,null,eo.createElement(de,{label:"Nudge Value"},eo.createElement(Ke,{flex:1,marginRight:3,onChange:n,placeholder:"Enter Number",type:"number",value:(r=t.NudgeValue)!=null?r:""})),eo.createElement(de,{label:"Nudge Type"},eo.createElement(uq.Flex,null,eo.createElement(We,{value:"Always",checked:!e.hasCondition,onChange:()=>e.onConditionChange(!1)},"Always Apply Nudge"),eo.createElement(We,{marginLeft:3,value:"Expression",checked:e.hasCondition,onChange:()=>e.onConditionChange(!0)},"Create a Rule")))))),e.hasCondition&&eo.createElement(uEe,{defaultPredicateId:"NonBlanks",onChange:e.onChange}))};var ON=e=>{let[t,n]=ni.useState(()=>{var u,d,c,m,f;let l=R(g({},e.data?e.data:it.CreateEmptyPlusMinusNudge()),{Scope:(d=(u=e==null?void 0:e.data)==null?void 0:u.Scope)!=null?d:{All:!0},NudgeValue:(m=(c=e==null?void 0:e.data)==null?void 0:c.NudgeValue)!=null?m:20});return(f=e==null?void 0:e.popupParams)!=null&&f.column&&(l.Scope={ColumnIds:[e.popupParams.column.columnId]}),l}),[r,o]=ni.useState(()=>{var l;return Boolean((l=e==null?void 0:e.data)==null?void 0:l.Rule)});ni.useEffect(()=>{var u;let l=g({},t);r?l.Rule=(u=l.Rule)!=null?u:{BooleanExpression:""}:delete l.Rule,n(l)},[r]);let a=Rt(),i=()=>{e.data?a(Vu(t)):a(Bu(t)),e.onFinishWizard(t)};return ni.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:t,onHide:e.onCloseWizard,onFinish:i,sections:[{title:"Target",isValid:Ni,details:"Specify where Plus/Minus should be applied",renderSummary:()=>is(t.Scope,{scopeWholeRow:"Plus/Minus is applied for matching rows",scopeColumns:"Plus/Minus is applied in cells in selected columns",scopeDataTypes:"Plus/Minus is applied for cells with selected data type"}),render:()=>ni.createElement(dq.Box,{padding:2},ni.createElement(lEe,{onChange:n}))},{title:"Settings",isValid:pEe(r),renderSummary:()=>ni.createElement(dEe,{hasCondition:r}),render:()=>ni.createElement(cEe,{hasCondition:r,onConditionChange:o,onChange:n})},"-",{render:()=>ni.createElement(dq.Box,{padding:2},ni.createElement(Xn,null)),title:"Summary"}]})};var pq=class extends Kc.Component{constructor(t){super(t),this.state=Wt.getEmptyConfigState()}render(){let t=[],n=Kc.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:Mt.ReturnItemCount(this.props.PlusMinusNudges.filter(r=>this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,r.Scope)),this.props.moduleInfo.FriendlyName),onNew:()=>this.onNew(),newButtonTooltip:"Plus / Minus Rule",accessLevel:this.props.accessLevel});return t.push(n),this.props.PlusMinusNudges.map((r,o)=>{var a;if(this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,r.Scope)){let i=Kc.createElement(va,{key:"PM"+o,item1:"Nudge Value: "+r.NudgeValue,item2:(a=r.Rule)!=null&&a.BooleanExpression?r.Rule.BooleanExpression:"Always",configEnity:r,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(r),onShare:l=>this.props.onShare(r,l),onDelete:VE(r),accessLevel:this.props.accessLevel});t.push(i)}}),Kc.createElement("div",null,t,this.state.editedAdaptableObject&&Kc.createElement(ON,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:null,wizardStartIndex:this.state.wizardStartIndex,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:()=>this.onFinishWizard()}))}onNew(){let t=Vt.CreateEmptyPlusMinusNudge();t.Scope={ColumnIds:[this.props.summarisedColumn.columnId]},this.setState({editedAdaptableObject:t,wizardStartIndex:1,wizardStatus:"New"})}onEdit(t){this.setState({editedAdaptableObject:Mt.cloneObject(t),wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}onFinishWizard(){let t=this.state.editedAdaptableObject;this.state.wizardStatus=="Edit"?this.props.onEditPlusMinusNudge(t):this.props.onAddPlusMinusNudge(t),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){return!!this.state.editedAdaptableObject.NudgeValue}};function lxt(e,t){return{PlusMinusNudges:e.PlusMinus.PlusMinusNudges}}function sxt(e){return{onAddPlusMinusNudge:t=>e(Bu(t)),onEditPlusMinusNudge:t=>e(Vu(t)),onClearPopupParams:()=>e(uf()),onShare:(t,n)=>e(da(t,yr,n))}}var mEe=Ye(lxt,sxt)(pq);s();var au=A(require("react"));s();var ri=A(require("react")),_Ee=require("react"),Pg=A(J());s();var fEe=A(require("react"));var hEe=e=>is(e.Scope,{scopeWholeRow:"Matching rows will be formatted",scopeColumns:"Cells in selected columns will be formatted",scopeDataTypes:"Cells in columns of the selected data-types will be formatted"}),gEe=e=>{let{data:t}=ze();return fEe.createElement(xa,{descriptions:{rowScope:"Apply a style to an entire row",columnScope:"Select columns to format"},scope:t.Scope,updateScope:n=>{e.onChange(R(g({},t),{Scope:n}))}})};s();var _t=A(require("react")),dl=A(J());s();var un=A(require("react"));var Ig=A(J());s();var $c=A(require("react"));var Xc=class extends $c.Component{render(){var l;let t=Ee.sortArrayWithProperty("Asc",this.props.ColumnList,"friendlyName"),n=this.props.SelectedColumnIds.filter(u=>we.IsNotNullOrEmpty(u)),r=we.IsNotNullOrEmpty(this.props.placeHolder)?this.props.placeHolder.toString():this.props.SelectionMode=="Single"?"Select a column":"Select columns",o=this.props.SelectedColumnIds.filter(u=>we.IsNotNullOrEmpty(u)).length==0,a=t.map(u=>({label:u.friendlyName,value:u.columnId,onClick:()=>{let d=t.filter(c=>c.columnId===u.columnId);d.length?this.onColumnChange(d,o):this.onClearButton()}})),i=n.length>0?(l=this.props.ColumnList.find(u=>u.columnId==n[0]))==null?void 0:l.friendlyName:"Select a column";return $c.createElement("div",{"data-name":"column-selector"},$c.createElement(Je,{columns:[{name:"columnSelector",style:{display:"flex"}}],style:this.props.style},$c.createElement(de,null,$c.createElement(Ze,{marginRight:2,columns:["label"],showClearButton:i!="Select a column",onClear:()=>this.onClearButton(),style:{width:"100%",fontSize:"small"},className:"ab-DashboardToolbar__Layout__select",items:a,disabled:a.length==0},i))))}onClearButton(){this.props.onColumnChange([])}onColumnChange(t,n){t.length==0&&n||this.props.onColumnChange(t)}};var MS=class extends un.Component{constructor(t){super(t),this.state={ranges:this.props.ranges,columnComparison:this.props.columnComparison,rangesType:this.props.columnComparison?"ColumnComparison":"Standard"}}render(){var i;let t=this.state.columnComparison!=null&&this.state.columnComparison.MinValue!=null&&!isNaN(Number(this.state.columnComparison.MinValue))?Number(this.state.columnComparison.MinValue):"",n=this.state.columnComparison!=null&&this.state.columnComparison.MaxValue!=null&&!isNaN(Number(this.state.columnComparison.MaxValue))?Number(this.state.columnComparison.MaxValue):"",r=this.state.columnComparison!=null&&this.state.columnComparison.MinValue!=null&&isNaN(Number(this.state.columnComparison.MinValue))?String(this.state.columnComparison.MinValue):void 0,o=this.state.columnComparison!=null&&this.state.columnComparison.MaxValue!=null&&isNaN(Number(this.state.columnComparison.MaxValue))?String(this.state.columnComparison.MaxValue):void 0,a=this.state.columnComparison!=null&&this.state.columnComparison.Color!=null?this.state.columnComparison.Color:void 0;return un.createElement(un.Fragment,null,un.createElement(Ig.Flex,{flexDirection:"row"},un.createElement(pe,{marginTop:3,checked:this.state.rangesType=="ColumnComparison",onChange:l=>this.onRangesTypeChanged(l)},"Use a Column Comparison")),this.state.rangesType=="Standard"&&un.createElement(j,{autoFocus:!1,marginTop:2},un.createElement(j.Tab,null,"Ranges"),un.createElement(j.Content,null,(i=this.state.ranges)==null?void 0:i.map((l,u)=>un.createElement(Ig.Flex,{key:u,mb:2,"data-name":"percent-bar-range"},un.createElement(Ke,{type:"number",value:l.Min,onChange:d=>{let{value:c}=d.target;this.changeRangeMin(u,c)},mr:2}),un.createElement(Ke,{type:"number",value:l.Max,onChange:d=>{let{value:c}=d.target;this.changeRangeMax(u,c)},mr:2}),un.createElement(eu,{api:this.props.api,value:l.Color,onChange:d=>{this.changeRangeColor(u,d)},mr:2,height:"100%"}),this.props.showRangeDirection&&un.createElement(pe,{marginLeft:2,marginRight:2,checked:l.ReverseGradient&&l.ReverseGradient==!0,onChange:d=>this.changeRangeDirectionUp(u,d)},"Reverse Gradient"),un.createElement(re,{icon:"delete",disabled:this.state.ranges&&this.state.ranges.length==1,onClick:()=>this.removeRange(u)}))),un.createElement("div",null,un.createElement(re,{variant:"raised","data-name":"add",onClick:()=>this.addRange()},"Add New Range")))),this.state.rangesType=="ColumnComparison"&&un.createElement(j,{autoFocus:!1,marginTop:2},un.createElement(j.Tab,null,"Column Comparison"),un.createElement(j.Content,null,un.createElement(Ig.Flex,{flexDirection:"column",key:"cc","data-name":"percent-bar-column-comparison"},un.createElement(Ig.Text,{padding:2,fontSize:2},"Create Minimum and Maximum Values by providing a value or selecting another Column, and choose a Colour for the Bar."),un.createElement(Je,{columns:["label","first","or","second"],sizes:["auto","auto","auto","1fr"]},un.createElement(de,{label:"Min Value:",first:un.createElement(Ke,{type:"number",value:t,onChange:l=>{this.changeColumnComparisonMinValue(l)}}),or:"OR",second:un.createElement(Xc,{style:{maxWidth:"15rem"},SelectedColumnIds:[r],ColumnList:this.props.api.columnApi.getNumericColumns(),onColumnChange:l=>this.onMinColumnSelectedChanged(l),SelectionMode:"Single"})})," ",un.createElement(de,{label:"Max Value:",first:un.createElement(Ke,{type:"number",value:n,onChange:l=>{this.changeColumnComparisonMaxValue(l)}}),or:"OR",second:un.createElement(Xc,{style:{maxWidth:"15rem"},SelectedColumnIds:[o],ColumnList:this.props.api.columnApi.getNumericColumns(),onColumnChange:l=>this.onMaxColumnSelectedChanged(l),SelectionMode:"Single"})}),un.createElement(de,{label:"Bar Colour:",first:un.createElement(eu,{api:this.props.api,value:a,onChange:l=>{this.changeColumnComparisonColor(l)}})}))))))}onRangesTypeChanged(t){if(t){let n={Color:Qt(Ym),MinValue:void 0,MaxValue:void 0};this.setState({rangesType:"ColumnComparison",columnComparison:n}),this.props.updateColumnComparison(n)}else{let n=this.props.api.scopeApi.createCellColorRangesForScope(this.props.scope);this.setState({rangesType:"Standard",ranges:n}),this.props.updateRanges(n)}}changeRangeMin(t,n){let{ranges:r}=this.state;r[t].Min=Number(n),r[t-1]&&(r[t-1].Max=Number(n)),this.props.updateRanges(r)}changeRangeMax(t,n){let{ranges:r}=this.state;r[t].Max=Number(n),r[t+1]&&(r[t+1].Min=Number(n)),this.props.updateRanges(r)}changeRangeColor(t,n){let{ranges:r}=this.state;r[t].Color=n,this.props.updateRanges(r)}changeRangeDirectionUp(t,n){let{ranges:r}=this.state;r[t].ReverseGradient=n,this.props.updateRanges(r)}removeRange(t){let{ranges:n}=this.state;n.splice(t,1),this.props.updateRanges(n)}addRange(){let t=this.state.ranges[this.state.ranges.length-1];this.state.ranges.push({Min:t.Max,Max:t.Max,Color:Qt(yl)}),this.props.updateRanges(this.state.ranges)}changeColumnComparisonMinValue(t){let n=t.target,{columnComparison:r}=this.state;r.MinValue=we.IsNotNullOrEmpty(n.value)?Number(n.value):void 0,this.props.updateColumnComparison(r)}onMinColumnSelectedChanged(t){let{columnComparison:n}=this.state;n.MinValue=t.length>0?t[0].columnId:void 0,this.props.updateColumnComparison(n)}changeColumnComparisonMaxValue(t){let n=t.target,{columnComparison:r}=this.state;r.MaxValue=we.IsNotNullOrEmpty(n.value)?Number(n.value):void 0,this.props.updateColumnComparison(r)}onMaxColumnSelectedChanged(t){let{columnComparison:n}=this.state;n.MaxValue=t.length>0?t[0].columnId:void 0,this.props.updateColumnComparison(n)}changeColumnComparisonColor(t){let{columnComparison:n}=this.state;n.Color=t,this.props.updateColumnComparison(n)}};var SEe=(e,t)=>{var n,r,o,a,i;return!e.ColumnStyle&&e.Style&&pn.IsEmptyStyle(e.Style)&&e.DisplayFormat===void 0&&e.HeaderName===void 0&&e.CellAlignment===void 0&&!t.scopeApi.isSingleBooleanColumnScope(e.Scope)?"No format applied":(o=(r=(n=e.ColumnStyle)==null?void 0:n.PercentBarStyle)==null?void 0:r.CellRanges)!=null&&o.length&&e.ColumnStyle.PercentBarStyle.CellRanges.some(l=>l.Min==null||l.Max==null)?"Invalid Cell Range":(i=(a=e.ColumnStyle)==null?void 0:a.PercentBarStyle)!=null&&i.ColumnComparison&&(e.ColumnStyle.PercentBarStyle.ColumnComparison.MinValue==null||e.ColumnStyle.PercentBarStyle.ColumnComparison.MaxValue==null)?"Invalid Column Comparison Range":!0},uxt=e=>R(g({},Hc(e!=null?e:{})),{borderWidth:e!=null&&e.BorderColor?2:0,borderStyle:"solid"}),CEe=e=>e.map((t,n)=>_t.createElement(dl.Flex,{key:n,alignItems:"center",mr:3},_t.createElement(dl.Box,{mr:1},t.Min," to ",t.Max," "),_t.createElement(Aa,{Style:{BackColor:t.Color,ForeColor:t.Color}}))),yEe=(e,t)=>_t.createElement(dl.Flex,{key:"cc",alignItems:"center",mr:3},_t.createElement(dl.Box,{mr:1},"Min Value:"," ",isNaN(Number(e.MinValue))?"["+t.columnApi.getFriendlyNameFromColumnId(String(e.MinValue))+"]":e.MinValue," ",", Max Value:"," ",isNaN(Number(e.MaxValue))?"["+t.columnApi.getFriendlyNameFromColumnId(String(e.MaxValue))+"]":e.MaxValue," "),_t.createElement(Aa,{Style:{BackColor:e.Color,ForeColor:e.Color}})),FN=(e,t)=>{if(e.ColumnStyle){if(e.ColumnStyle.CheckBoxStyle)return"Checkbox Style";if(e.ColumnStyle.GradientStyle){if(e.ColumnStyle.GradientStyle.CellRanges)return CEe(e.ColumnStyle.GradientStyle.CellRanges);if(e.ColumnStyle.GradientStyle.ColumnComparison)return yEe(e.ColumnStyle.GradientStyle.ColumnComparison,t)}if(e.ColumnStyle.PercentBarStyle){if(e.ColumnStyle.PercentBarStyle.CellRanges)return CEe(e.ColumnStyle.PercentBarStyle.CellRanges);if(e.ColumnStyle.PercentBarStyle.ColumnComparison)return yEe(e.ColumnStyle.PercentBarStyle.ColumnComparison,t)}return e.Style==null||pn.IsEmptyStyle(e.Style)?"[None]":_t.createElement(Aa,{Style:e.Style})}return _t.createElement(dl.Text,{padding:2,style:uxt(e.Style)},"Preview result")};function vEe(e){var y,v,S,I,P,T,O,_,M,x,D,N,q,F,k,Y,Z,oe,ae,ee,Se,se,X,ye,ue,fe,Te,ke,et,ce,dn,Be;let{data:t,api:n}=ze(),r=n.scopeApi.isSingleNumericColumnScope(t.Scope),o=n.scopeApi.areAllBooleanColumnsInScope(t.Scope)||n.scopeApi.scopeHasOnlyBooleanDataType(t.Scope),a=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.CellText?V.CellText.push("CellValue"):V.CellText=["CellValue"]:V.CellText&&V.CellText.includes("PercentageValue")?V.CellText=["PercentageValue"]:V.CellText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},i=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.CellText?V.CellText.push("PercentageValue"):V.CellText=["PercentageValue"]:V.CellText&&V.CellText.includes("CellValue")?V.CellText=["CellValue"]:V.CellText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},l=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.ToolTipText?V.ToolTipText.push("CellValue"):V.ToolTipText=["CellValue"]:V.ToolTipText&&V.ToolTipText.includes("PercentageValue")?V.ToolTipText=["PercentageValue"]:V.ToolTipText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},u=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.ToolTipText?V.ToolTipText.push("PercentageValue"):V.ToolTipText=["PercentageValue"]:V.ToolTipText&&V.ToolTipText.includes("CellValue")?V.ToolTipText=["CellValue"]:V.ToolTipText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},d=w=>{let V={PercentBarStyle:{ColumnComparison:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},c=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;V.BackColor=w?Qt(yl):null,e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},m=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;V.BackColor=w,e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},f=w=>{let V={PercentBarStyle:{CellRanges:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},h=w=>{let V={GradientStyle:{CellRanges:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},b=w=>{let V={GradientStyle:{ColumnComparison:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},C=w=>{let V=w.target;if(V.value=="Gradient")e.onChange(R(g({},t),{ColumnStyle:{GradientStyle:{CellRanges:n.scopeApi.createCellColorRangesForScope(t.Scope)}}}));else if(V.value=="PercentBar")e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:{CellRanges:n.scopeApi.createCellColorRangesForScope(t.Scope)}}}));else if(V.value=="None"){let L=g({},t);delete L.ColumnStyle,e.onChange(L)}};return _t.createElement(_t.Fragment,null,o&&_t.createElement(j,null,_t.createElement(j.Tab,null,"CheckBox Column"),_t.createElement(j.Content,null,_t.createElement(Nt,{fontSize:2},"Shows each cell in the Column as a Checkbox")," ",_t.createElement(pe,{marginLeft:2,checked:!!((y=t.ColumnStyle)!=null&&y.CheckBoxStyle),onChange:w=>{let V=R(g({},t),{ColumnStyle:{CheckBoxStyle:w}});w||delete V.ColumnStyle,e.onChange(V)}},"Display Column As CheckBox"))),r?_t.createElement(_t.Fragment,null,_t.createElement(j,null,_t.createElement(j.Tab,null,"Create a Format Column Style"),_t.createElement(j.Content,null,_t.createElement(dl.Flex,{flexDirection:"row"},_t.createElement(We,{marginLeft:2,value:"None",checked:!t.ColumnStyle,onChange:(w,V)=>C(V)},"Standard")," ",_t.createElement(We,{marginLeft:3,value:"Gradient",checked:!!((v=t.ColumnStyle)!=null&&v.GradientStyle),onChange:(w,V)=>C(V)},"Gradient")," ",_t.createElement(We,{marginLeft:3,value:"PercentBar",checked:!!((S=t.ColumnStyle)!=null&&S.PercentBarStyle),onChange:(w,V)=>C(V)},"Percent Bar"," ")," "))),((I=t.ColumnStyle)==null?void 0:I.GradientStyle)&&_t.createElement(MS,{api:n,scope:t==null?void 0:t.Scope,showRangeDirection:!0,ranges:(T=(P=t.ColumnStyle)==null?void 0:P.GradientStyle)==null?void 0:T.CellRanges,columnComparison:(_=(O=t==null?void 0:t.ColumnStyle)==null?void 0:O.GradientStyle)==null?void 0:_.ColumnComparison,updateRanges:w=>h(w),updateColumnComparison:w=>b(w)}),((M=t.ColumnStyle)==null?void 0:M.PercentBarStyle)&&_t.createElement(_t.Fragment,null,_t.createElement(MS,{api:n,scope:t==null?void 0:t.Scope,showRangeDirection:!1,ranges:(D=(x=t.ColumnStyle)==null?void 0:x.PercentBarStyle)==null?void 0:D.CellRanges,columnComparison:(q=(N=t==null?void 0:t.ColumnStyle)==null?void 0:N.PercentBarStyle)==null?void 0:q.ColumnComparison,updateRanges:w=>f(w),updateColumnComparison:w=>d(w)}),_t.createElement(Je,{marginLeft:2,marginTop:2},_t.createElement(de,{label:"Cell Display:"},_t.createElement(pe,{marginLeft:2,checked:(Y=(k=(F=t.ColumnStyle)==null?void 0:F.PercentBarStyle)==null?void 0:k.CellText)==null?void 0:Y.includes("CellValue"),onChange:w=>a(w)},"Cell Value")," ",_t.createElement(pe,{marginLeft:3,checked:(ae=(oe=(Z=t.ColumnStyle)==null?void 0:Z.PercentBarStyle)==null?void 0:oe.CellText)==null?void 0:ae.includes("PercentageValue"),onChange:w=>i(w)},"Percent Value"," ")," "),_t.createElement(de,{label:"ToolTip Display:"},_t.createElement(pe,{marginLeft:2,checked:(se=(Se=(ee=t.ColumnStyle)==null?void 0:ee.PercentBarStyle)==null?void 0:Se.ToolTipText)==null?void 0:se.includes("CellValue"),onChange:w=>l(w)},"Cell Value")," ",_t.createElement(pe,{marginLeft:3,checked:(ue=(ye=(X=t.ColumnStyle)==null?void 0:X.PercentBarStyle)==null?void 0:ye.ToolTipText)==null?void 0:ue.includes("PercentageValue"),onChange:w=>u(w)},"Percent Value"," ")," "),_t.createElement(de,{label:"Back Colour:"},_t.createElement(dl.Flex,{alignItems:"center",marginLeft:2},_t.createElement(pe,{checked:!!((Te=(fe=t.ColumnStyle)==null?void 0:fe.PercentBarStyle)!=null&&Te.BackColor),onChange:w=>c(w),mr:2}),((et=(ke=t.ColumnStyle)==null?void 0:ke.PercentBarStyle)==null?void 0:et.BackColor)!==void 0&&_t.createElement(eu,{api:n,value:(dn=(ce=t.ColumnStyle)==null?void 0:ce.PercentBarStyle)==null?void 0:dn.BackColor,onChange:w=>m(w)})))),_t.createElement(dl.Flex,{flexDirection:"row",padding:2}))):null,t.ColumnStyle?null:_t.createElement(ya,{headless:!0,api:n,Style:(Be=t.Style)!=null?Be:{},UpdateStyle:w=>{e.onChange(R(g({},t),{Style:w}))}}))}s();var Ue=A(require("react")),pl=A(J()),PEe=A(xEe()),DEe=A(Eb());var cxt={FractionDigits:2,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"$",Suffix:"",Multiplier:1,Parentheses:!1},mxt={FractionDigits:2,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"\xA3",Suffix:"",Multiplier:1,Parentheses:!1},REe={FractionDigits:void 0,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"M",Multiplier:1e-6,Parentheses:!1},EEe={FractionDigits:void 0,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"K",Multiplier:.001,Parentheses:!1},IEe={FractionDigits:2,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"%",Multiplier:100,Parentheses:!1},fxt=["MM/dd/yyyy","dd-MM-yyyy","MMMM do yyyy, h:mm:ss a","EEEE","MMM do yyyy","yyyyMMdd","HH:mm:ss"],cq=e=>{let t="N/A";return e.DisplayFormat?(e.DisplayFormat.Formatter==="NumberFormatter"&&(t=Yr.NumberFormatter(12345.6789,e.DisplayFormat.Options)),e.DisplayFormat.Formatter==="DateFormatter"&&(t=Yr.DateFormatter(new Date,e.DisplayFormat.Options)),e.DisplayFormat.Formatter==="StringFormatter"&&(t=Yr.StringFormatter("Hello World ",e.DisplayFormat.Options))):t="N/A",t},TEe=e=>Ue.createElement(Dt,null,cq(e)),wEe=(e,t)=>{if(e!=null&&!("All"in e)){if("ColumnIds"in e){let n=e.ColumnIds.map(o=>t.columnApi.getColumnFromId(o)),r=(0,PEe.default)(n.map(o=>o.dataType));return r.length==1&&r[0]=="Number"?"Number":r.length==1&&r[0]=="Date"?"Date":r.length==1&&r[0]=="String"?"String":void 0}if("DataTypes"in e&&e.DataTypes.length==1&&e.DataTypes[0]=="Number")return"Number";if("DataTypes"in e&&e.DataTypes.length==1&&e.DataTypes[0]=="Date")return"Date";if("DataTypes"in e&&e.DataTypes.length==1&&e.DataTypes[0]=="String")return"String"}},hxt=(e,t,n)=>e.DisplayFormat.Formatter!=="DateFormatter"?null:Ue.createElement(pl.Box,{padding:2},Ue.createElement(j,null,Ue.createElement(j.Tab,null,"Format"),Ue.createElement(j.Content,null,Ue.createElement(pl.Text,{padding:2,fontSize:2},"Either create your own date pattern, or select one of the preset date formats (check out"," ",Ue.createElement("a",{href:"https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table",target:"_blank"},"available symbols"),")."),Ue.createElement(Je,null,Ue.createElement(de,{label:"Pattern"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Pattern,onChange:r=>n("Pattern",r.currentTarget.value),mr:2}),Ue.createElement("span",null,Yr.DateFormatter(new Date,e.DisplayFormat.Options)))))),Ue.createElement(j,{marginTop:2},Ue.createElement(j.Tab,null,"Presets"),Ue.createElement(j.Content,null,Ue.createElement(hr,{style:{fontWeight:"bold"},colItems:[{Content:"Pattern",Size:1},{Content:"Formatted Date",Size:1},{Content:"",Size:1}]}),fxt.map((r,o)=>Ue.createElement(hr,{key:o,colItems:[{Content:r,Size:1},{Content:Yr.DateFormatter(new Date,{Pattern:r}),Size:1},{Content:Ue.createElement(re,{onClick:()=>n("Pattern",r)},"Apply"),Size:1}]}))))),gxt=(e,t,n)=>{if(e.DisplayFormat.Formatter!=="NumberFormatter")return null;let r=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:IEe}})},o=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:EEe}})},a=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:REe}})},i=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:cxt}})},l=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:mxt}})},u=e.DisplayFormat.Options.Suffix==="%"&&e.DisplayFormat.Options.Multiplier===IEe.Multiplier,d=e.DisplayFormat.Options.Suffix==="K"&&e.DisplayFormat.Options.Multiplier===EEe.Multiplier,c=e.DisplayFormat.Options.Suffix==="M"&&e.DisplayFormat.Options.Multiplier===REe.Multiplier,m=e.DisplayFormat.Options.Prefix==="$",f=e.DisplayFormat.Options.Prefix==="\xA3";return Ue.createElement(pl.Box,{"data-name":"format-column-display-format",padding:2},Ue.createElement(j,null,Ue.createElement(j.Tab,null,"Format"),Ue.createElement(j.Content,null,Ue.createElement(pl.Flex,{flexDirection:"row"},Ue.createElement(Je,{mr:3},Ue.createElement(de,{label:"Fraction Separator"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.FractionSeparator,onChange:h=>n("FractionSeparator",h.currentTarget.value)})),Ue.createElement(de,{label:"Integer Separator"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.IntegerSeparator,onChange:h=>n("IntegerSeparator",h.currentTarget.value)})),Ue.createElement(de,{label:"Prefix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Prefix,onChange:h=>n("Prefix",h.currentTarget.value)})),Ue.createElement(de,{label:"Suffix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Suffix,onChange:h=>n("Suffix",h.currentTarget.value)}))),Ue.createElement(Je,null,Ue.createElement(de,{label:"Fraction Digits"},Ue.createElement(Ke,{type:"number",min:"0",value:typeof e.DisplayFormat.Options.FractionDigits=="number"?e.DisplayFormat.Options.FractionDigits:"",onChange:h=>n("FractionDigits",Qe.IsNumeric(h.currentTarget.value)?(0,DEe.default)(Number(h.currentTarget.value),0,20):void 0)})),Ue.createElement(de,{label:"Integer Digits"},Ue.createElement(Ke,{type:"number",min:"0",value:e.DisplayFormat.Options.IntegerDigits,onChange:h=>n("IntegerDigits",Number(h.currentTarget.value))})),Ue.createElement(de,{label:"Multiplier"},Ue.createElement(Ke,{type:"number",value:e.DisplayFormat.Options.Multiplier,onChange:h=>n("Multiplier",Number(h.currentTarget.value))})),Ue.createElement(de,{label:"Parentheses"},Ue.createElement(pe,{checked:e.DisplayFormat.Options.Parentheses,onChange:h=>n("Parentheses",h)})),Ue.createElement(de,{label:"Truncate"},Ue.createElement(pe,{checked:e.DisplayFormat.Options.Truncate,onChange:h=>n("Truncate",h)})))))),Ue.createElement(j,{marginTop:2,autoFocus:!1,keyboardNavigation:!1},Ue.createElement(j.Tab,null,"Presets"),Ue.createElement(j.Content,null,Ue.createElement(pl.Text,{padding:2,fontSize:2},"Select a preset for common use cases"),Ue.createElement(pl.Flex,{flexDirection:"row"},Ue.createElement(Je,{margin:2},Ue.createElement(de,{label:"Show As:"},Ue.createElement(We,{marginLeft:2,checked:u,onChange:()=>r()},"Percentage"),Ue.createElement(We,{marginLeft:3,checked:d,onChange:()=>o()},"K (Thousand)"),Ue.createElement(We,{marginLeft:3,checked:c,onChange:()=>a()},"M (Million)"),Ue.createElement(We,{marginLeft:3,checked:m,onChange:()=>i()},"Dollar"),Ue.createElement(We,{marginLeft:3,checked:f,onChange:()=>l()},"Sterling")))))),Ue.createElement(j,{marginTop:2,autoFocus:!1,keyboardNavigation:!1},Ue.createElement(j.Tab,null,"Examples"),Ue.createElement(j.Content,null,Ue.createElement(hr,{style:{fontWeight:"bold"},colItems:[{Content:"Raw Number",Size:1},{Content:"Formatted Number",Size:1}]}),Ue.createElement(hr,{colItems:[{Content:"12345.6789",Size:1},{Content:Yr.NumberFormatter(12345.6789,e.DisplayFormat.Options),Size:1}]}),Ue.createElement(hr,{colItems:[{Content:"-12345.6789",Size:1},{Content:Yr.NumberFormatter(-12345.6789,e.DisplayFormat.Options),Size:1}]}),Ue.createElement(hr,{colItems:[{Content:"0.123",Size:1},{Content:Yr.NumberFormatter(.123,e.DisplayFormat.Options),Size:1}]}))))},bxt=(e,t,n)=>e.DisplayFormat.Formatter!=="StringFormatter"?null:Ue.createElement(pl.Box,{"data-name":"format-column-display-format",padding:2},Ue.createElement(j,null,Ue.createElement(j.Tab,null,"Format"),Ue.createElement(j.Content,null,Ue.createElement(pl.Flex,{flexDirection:"column"},Ue.createElement(Je,{mr:3},Ue.createElement(de,{label:"Case: "},Ue.createElement(We,{checked:e.DisplayFormat.Options.Case=="Lower",onChange:r=>n("Case","Lower")},"Lower"),Ue.createElement(We,{marginLeft:2,checked:e.DisplayFormat.Options.Case=="Upper",onChange:r=>n("Case","Upper")},"Upper"),Ue.createElement(We,{marginLeft:2,checked:e.DisplayFormat.Options.Case=="Sentence",onChange:r=>n("Case","Sentence")},"Sentence"),Ue.createElement(We,{marginLeft:2,checked:e.DisplayFormat.Options.Case==null,onChange:r=>n("Case",void 0)},"None"),Ue.createElement(pe,{marginLeft:5,checked:e.DisplayFormat.Options.Trim,onChange:r=>n("Trim",r)},"Trim")),Ue.createElement(de,{label:"Prefix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Prefix,onChange:r=>n("Prefix",r.currentTarget.value)})),Ue.createElement(de,{label:"Suffix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Suffix,onChange:r=>n("Suffix",r.currentTarget.value)})))))),Ue.createElement(j,{marginTop:2,keyboardNavigation:!1},Ue.createElement(j.Tab,null,"Example"),Ue.createElement(j.Content,null,Ue.createElement(hr,{style:{fontWeight:"bold"},colItems:[{Content:"Raw String",Size:1},{Content:"Formatted String",Size:1}]}),Ue.createElement(hr,{colItems:[{Content:'"Hello World "',Size:1},{Content:'"'+Yr.StringFormatter("Hello World ",e.DisplayFormat.Options)+'"',Size:1}]})))),OEe=e=>{let{data:t}=ze(),n=a=>{e.onChange(g(g({},t),a))},r=(a,i)=>{let l=g({},t.DisplayFormat);l.Options=R(g({},l.Options),{[a]:i}),n({DisplayFormat:l})},o=t.DisplayFormat&&t.DisplayFormat.Formatter;return o==="NumberFormatter"?gxt(t,n,r):o==="DateFormatter"?hxt(t,n,r):o==="StringFormatter"?bxt(t,n,r):Ue.createElement(Nt,{margin:3},"Setting a Display Format is only available if ",Ue.createElement("b",null,"all")," the columns in Scope are Numeric, String or Date.")};s();var Gr=A(require("react")),ou=A(J());var MN=require("react");var Cxt=[{value:"Left",label:"Left"},{value:"Right",label:"Right"},{value:"Center",label:"Center"}],FEe=e=>{var t;return Gr.createElement(ou.Box,{padding:2},Gr.createElement(ou.Text,null,"Cell alignment ",Gr.createElement(Dt,null,(t=e.CellAlignment)!=null?t:"default")),e.HeaderName?Gr.createElement(ou.Text,{mt:3},"Header name ",Gr.createElement(Dt,null,e.HeaderName)):null,Gr.createElement(ou.Text,{mt:3},"Include grouped rows ",Gr.createElement(Dt,null,e.IncludeGroupedRows?"yes":"no")))},MEe=e=>{let{data:t,api:n}=ze(),r=u=>{e.onChange(R(g({},t),{CellAlignment:u}))},o=u=>{e.onChange(R(g({},t),{IncludeGroupedRows:u}))},a=u=>{let d=u.target;e.onChange(R(g({},t),{HeaderName:d.value}))},[i,l]=(0,MN.useState)(!1);return(0,MN.useEffect)(()=>{let u=Qe.IsNotNullOrEmpty(t.HeaderName);l(u),u&&Qo("DEPRECATED: The 'FormatColumn.HeaderName' property is deprecated; use a Layout custom Column Header instead!")},[]),Gr.createElement(j,null,Gr.createElement(j.Tab,null,"Format"),Gr.createElement(j.Content,null,Gr.createElement(ou.Flex,{flexDirection:"row"},Gr.createElement(Je,null,Gr.createElement(de,{label:"Cell Alignment"},Gr.createElement(Ze,{style:{minWidth:"15rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"inherit"},placeholder:"Select Option",showClearButton:!!t.CellAlignment,onClear:()=>r(null),items:Cxt.map(u=>({value:u.value,label:u.label,onClick:()=>r(u.value)})),columns:["label"]},t.CellAlignment?t.CellAlignment:"Select Option")),i&&n.scopeApi.isSingleColumnScope(t.Scope)&&Gr.createElement(de,{label:"Header Name"},Gr.createElement(Ke,{value:t.HeaderName,onChange:u=>a(u),style:{minWidth:"15rem"}})," "),Gr.createElement(de,{label:"Include Grouped Rows:"},Gr.createElement(ou.Flex,{alignItems:"center",marginLeft:2},Gr.createElement(pe,{checked:t.IncludeGroupedRows,onChange:o,mr:2})))))))};var yxt=(e,t)=>{e=g({},e);let n=wEe(e.Scope,t);return!n&&e.DisplayFormat&&(e.DisplayFormat=void 0),(!e.DisplayFormat||e.DisplayFormat.Formatter!=="NumberFormatter")&&n==="Number"&&(e.DisplayFormat={Formatter:"NumberFormatter",Options:{FractionDigits:void 0,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"",Multiplier:1,Parentheses:!1}}),(!e.DisplayFormat||e.DisplayFormat.Formatter!=="DateFormatter")&&n==="Date"&&(e.DisplayFormat={Formatter:"DateFormatter",Options:{Pattern:"MM/dd/yyyy"}}),(!e.DisplayFormat||e.DisplayFormat.Formatter!=="StringFormatter")&&n==="String"&&(e.DisplayFormat={Formatter:"StringFormatter",Options:{Case:void 0,Trim:!1}}),e},NEe=(e,t)=>(e=yxt(e,t),!t.scopeApi.isSingleNumericColumnScope(e.Scope)&&!(t.scopeApi.areAllBooleanColumnsInScope(e.Scope)||t.scopeApi.scopeHasOnlyBooleanDataType(e.Scope))&&delete e.ColumnStyle,e);function NN(e){var u;let{api:t}=$e(),n=(u=e.data)!=null?u:e.popupParams.value,[r,o]=(0,_Ee.useState)(()=>{var c,m,f,h;let d=n?Bn(n):it.CreateEmptyFormatColumn();return d.Scope=(c=d.Scope)!=null?c:{ColumnIds:[]},((m=e.popupParams)==null?void 0:m.action)==="New"&&((f=e.popupParams)==null?void 0:f.column)&&(d.Scope={ColumnIds:[(h=e.popupParams)==null?void 0:h.column.columnId]}),d=NEe(d,t),d}),a=ri.useCallback(d=>{o(NEe(d,t))},[]),i=Rt(),l=()=>{i(n?Os(r):Hu(r)),e.onFinishWizard(r)};return ri.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:r,onHide:e.onCloseWizard,onFinish:l,sections:[{title:"Scope",details:"Apply formatting to: one or more Columns or Data Types or the whole row",isValid:Ni,renderSummary:hEe,render:()=>ri.createElement(Pg.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},ri.createElement(gEe,{onChange:a}))},{title:"Style",details:"Format Column Style",isValid:SEe,renderSummary:FN,render:()=>ri.createElement(Pg.Box,{padding:2},ri.createElement(vEe,{onChange:a}))},{title:"Display Format",renderSummary:TEe,render:()=>ri.createElement(OEe,{onChange:a})},{title:"Settings",renderSummary:FEe,render:()=>ri.createElement(Pg.Box,{padding:2},ri.createElement(MEe,{onChange:a}))},"-",{details:"Review the Format Column",render:()=>ri.createElement(Pg.Box,{padding:2},ri.createElement(Xn,null)),title:"Summary"}]})}var mq=class extends au.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.FormatColumns.find(r=>r.Uuid==n.Uuid)?this.props.onEditFormatColumn(n):this.props.onAddFormatColumn(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=this.props.api.formatColumnApi.getFormatColumnForColumn(this.props.summarisedColumn),r=n==null,o;return r?o=au.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"No Format Column Set",onNew:()=>this.onNew(),newButtonTooltip:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel}):o=au.createElement(va,{key:this.props.moduleInfo.FriendlyName,item1:au.createElement(Oi,{moduleInfo:this.props.moduleInfo}),item2:au.createElement(Aa,{Style:n.Style}),configEnity:n,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(n),onShare:a=>this.props.onShare(n,a),onDelete:nh(n),showBold:!0,accessLevel:this.props.accessLevel}),au.createElement("div",null,o,this.state.editedAdaptableObject&&au.createElement(NN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.FormatColumns,wizardStartIndex:this.state.wizardStartIndex,onCloseWizard:this.onCloseWizard,onFinishWizard:this.onFinishWizard}))}onNew(){let n=Vt.CreateEmptyFormatColumn();n.Scope={ColumnIds:[this.props.summarisedColumn.columnId]},this.setState({editedAdaptableObject:n,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){let r=Mt.cloneObject(n);this.setState({editedAdaptableObject:r,wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return n.Scope!=null&&Wt.IsNotEmptyStyle(n.Style)}};function Sxt(e,t){return{FormatColumns:e.FormatColumn.FormatColumns}}function vxt(e){return{onAddFormatColumn:t=>e(Hu(t)),onEditFormatColumn:t=>e(Os(t)),onShare:(t,n)=>e(da(t,yo,n))}}var LEe=Ye(Sxt,vxt)(mq);s();var Tg=A(require("react"));s();var Jc=A(require("react")),gq=A(J());var JEe=require("react");s();var Vo=A(require("react")),kEe=require("react"),Dg=A(J());var BEe=e=>{var t;return Vo.createElement(Dg.Box,{fontSize:2},"Column scalar expression: ",Vo.createElement(Fn,null,(t=e.Query)==null?void 0:t.ScalarExpression))},VEe=(e,t)=>{var a;let n=t.internalApi.getCalculatedColumnExpressionService();return((a=t.queryLanguageApi.getAdaptableQueryExpression(e.Query))==null?void 0:a.trim())?n.isCalculatedColumnQueryValid(e.Query)?!0:"Calculated column expression is not valid":"Calculated column expression cannot be empty"},fq=e=>{let i=e,{type:t,label:n,disabled:r=!1}=i,o=qe(i,["type","label","disabled"]),a=Vo.createElement(Dg.Flex,{flexDirection:"column"},n," ",Vo.createElement(Dg.Text,{fontSize:2},"query"));return Vo.createElement(j.Tab,g({style:{flex:1}},o),r?a:Vo.createElement(We,{tabIndex:-1,margin:0,checked:t===e.value,style:{alignItems:"baseline"}},a))};fq.defaultProps={isTabsTab:!0};var GEe=e=>{let{api:t,data:n,moduleInfo:r}=ze(),o=(0,kEe.useMemo)(()=>t.internalApi.getQueryPreviewData(),[]),a=n.Query.AggregatedScalarExpression!=null?"AggregatedScalarExpression":"ScalarExpression",[i,l]=Vo.useState(a),u=c=>{l(c),c==="ScalarExpression"?e.onChange(R(g({},n),{Query:{ScalarExpression:""}})):e.onChange(R(g({},n),{Query:{AggregatedScalarExpression:""}}))},d=c=>{let f=t.internalApi.getCalculatedColumnExpressionService().getCalculatedColumnDataType(c),h=f=="String",b=f=="Number";e.onChange(R(g({},n),{Query:c,CalculatedColumnSettings:R(g({},n.CalculatedColumnSettings),{DataType:f,Pivotable:h,Aggregatable:b})}))};return Vo.createElement(j,{onValueChange:u,value:i,p:2,style:{flex:1,overflow:"auto"}},Vo.createElement(fq,{value:"ScalarExpression",type:a,label:"Scalar"}),Vo.createElement(j.Content,{value:"ScalarExpression"},Vo.createElement($a,{type:"scalar",module:r.ModuleName,style:{paddingLeft:0},value:n.Query.ScalarExpression,onChange:c=>d({ScalarExpression:c}),initialData:o,columns:t.columnApi.getQueryableColumns(),namedQueries:t.queryApi.getAllNamedQuery(),isFullExpression:!0,api:t})),Vo.createElement(fq,{value:"AggregatedScalarExpression",type:a,label:"AggregatedScalar"}),Vo.createElement(j.Content,{value:"AggregatedScalarExpression"},Vo.createElement($a,{type:"aggregatedScalar",module:r.ModuleName,style:{paddingLeft:0},value:n.Query.AggregatedScalarExpression,onChange:c=>d({AggregatedScalarExpression:c}),initialData:o,columns:t.columnApi.getQueryableColumns(),namedQueries:t.queryApi.getAllNamedQuery(),isFullExpression:!0,api:t})))};s();var Nn=A(require("react")),qd=A(J());var kN=require("react");s();var _N=e=>{let{DataType:t,Width:n,Filterable:r,Resizable:o,Groupable:a,Sortable:i,Pivotable:l,Aggregatable:u}=e!=null?e:{};return[t?`DataType: ${t}`:null,n?`Width: ${n}px`:null,l?"Pivotable":null,r?"Filterable":null,o?"Resizable":null,a?"Groupable":null,i?"Sortable":null,u?"Aggregatable":null].filter(Boolean)};s();var YEe=A(jEe()),Mn=A(require("react")),KEe=A(J());var LN=e=>{var h,b;let t=$e(),n=t.api.internalApi.getAdaptableOptions().userInterfaceOptions.columnTypes,{Filterable:r,Resizable:o,Groupable:a,Sortable:i,Pivotable:l,Aggregatable:u,SuppressMenu:d,SuppressMovable:c}=(h=e.settings)!=null?h:{},m=(C,y)=>{var S,I,P;let v=(I=(S=e.settings)==null?void 0:S.ColumnTypes)!=null?I:[];y?e.onChange(R(g({},e.settings),{ColumnTypes:[...v,C]})):e.onChange(R(g({},e.settings),{ColumnTypes:(P=v==null?void 0:v.filter)==null?void 0:P.call(v,T=>T!==C)}))},f=C=>{e.onChange(g(g({},e.settings),C))};return Mn.createElement(Mn.Fragment,null,Mn.createElement(j,{marginTop:2,autoFocus:!1},Mn.createElement(j.Tab,null,"Column Properties"),Mn.createElement(j.Content,null,Mn.createElement(KEe.Flex,{flexDirection:"row"},Mn.createElement(Je,{style:{width:"100%"},columns:[{name:"first",size:"30%"},{size:"30%",name:"second"},{size:"30%",name:"third"}]},Mn.createElement(de,null,Mn.createElement(pe,{checked:r,onChange:C=>f({Filterable:C}),disabled:!t.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns},"Filterable"),Mn.createElement(pe,{checked:o,onChange:C=>f({Resizable:C})},"Resizable"),Mn.createElement(pe,{checked:a,onChange:C=>f({Groupable:C})},"Groupable")),Mn.createElement(de,null,Mn.createElement(pe,{checked:i,onChange:C=>f({Sortable:C})},"Sortable"),Mn.createElement(pe,{checked:l,onChange:C=>f({Pivotable:C})},"Pivotable"),Mn.createElement(pe,{checked:u,onChange:C=>f({Aggregatable:C})},"Aggregatable")),Mn.createElement(de,null,Mn.createElement(pe,{checked:d,onChange:C=>f({SuppressMenu:C})},"Suppress Menu"),Mn.createElement(pe,{checked:c,onChange:C=>f({SuppressMovable:C})},"Suppress Movable"),Mn.createElement(pe,{disabled:!0,checked:e.isEditable},"Editable")))))),Boolean(n==null?void 0:n.length)&&Mn.createElement(j,{marginTop:2,autoFocus:!1},Mn.createElement(j.Tab,null,"Column Types"),Mn.createElement(j.Content,null,Mn.createElement(Je,{columns:[{name:"first",size:"30%"},{name:"second"}]},(b=(0,YEe.default)(n!=null?n:[],2))==null?void 0:b.map(([C,y])=>{var v,S,I,P,T,O;return Mn.createElement(de,{key:C},C&&Mn.createElement(pe,{onChange:_=>m(C,_),checked:(I=(S=(v=e.settings)==null?void 0:v.ColumnTypes)==null?void 0:S.includes)==null?void 0:I.call(S,C)},C),y&&Mn.createElement(pe,{onChange:_=>m(y,_),checked:(O=(T=(P=e.settings)==null?void 0:P.ColumnTypes)==null?void 0:T.includes)==null?void 0:O.call(T,y)},y))})))))};var $Ee=e=>{var n;let t=_N(e.CalculatedColumnSettings);return Nn.createElement(qd.Box,{fontSize:2},Nn.createElement(qd.Box,null,"Column Identifier: ",Nn.createElement(Dt,null,e.ColumnId)),e.FriendlyName?Nn.createElement(qd.Box,{mt:3},"Column Name: ",Nn.createElement(Dt,null,(n=e.FriendlyName)!=null?n:e.ColumnId)):null,Nn.createElement(qd.Box,{mb:3}),Nn.createElement(Xo,{toLabel:r=>r,toIdentifier:r=>r,readOnly:!0,options:t,value:t}))},hq=(e,t)=>{var a;let n=t.columnApi.getColumns();if(!e.ColumnId)return"Column id cannot be empty";if(!((a=e.CalculatedColumnSettings)!=null&&a.DataType))return"No data type specified for column";let r=n.filter(i=>i.columnId===e.ColumnId).length;return(e.Uuid?r>1:r>0)?"A Column already exists with that id":!0},XEe=e=>{var I,P;let{data:t,api:n}=ze(),r=(0,kN.useMemo)(()=>n.internalApi.getCalculatedColumnExpressionService(),[]),o=T=>{let O=T.target;e.onChange(R(g({},t),{ColumnId:O.value}))},a=T=>{let O=T.target;e.onChange(R(g({},t),{FriendlyName:O.value}))},i=T=>{var _;let O=T=="Number"?(_=t.CalculatedColumnSettings)==null?void 0:_.Aggregatable:!1;e.onChange(R(g({},t),{CalculatedColumnSettings:R(g({},t.CalculatedColumnSettings),{DataType:T,Aggregatable:O})}))},l=e.isEdit,u=hq(t,n),d=u===!0?null:u,c=[{value:"Number",label:"Number"},{value:"String",label:"String"},{value:"Date",label:"Date"},{value:"Boolean",label:"Boolean"}],[m,f]=(0,kN.useState)(!1),h=t.FriendlyName,b=t.ColumnId,{DataType:C}=(I=t.CalculatedColumnSettings)!=null?I:{},{Width:y,ShowToolTip:v}=(P=t.CalculatedColumnSettings)!=null?P:{},S=T=>{e.onChange(R(g({},t),{CalculatedColumnSettings:g(g({},t.CalculatedColumnSettings),T)}))};return Nn.useEffect(()=>{if(!C){let T=r.getCalculatedColumnDataType(t.Query);S(R(g({},t==null?void 0:t.CalculatedColumnSettings),{DataType:T}))}},[]),Nn.createElement(qd.Box,{"data-name":"calculated-column-settings"},Nn.createElement(j,{autoFocus:!1},Nn.createElement(j.Tab,null,"Column Details"),Nn.createElement(j.Content,null,Nn.createElement(qd.Flex,{flexDirection:"row"},Nn.createElement(Je,null,Nn.createElement(de,{label:"Id"},Nn.createElement(Ke,{"data-name":"column-id",value:t.ColumnId||"",width:300,autoFocus:!l,disabled:l,type:"text",placeholder:"Enter an Id for the column",onChange:o})),Nn.createElement(de,{label:"Name"},Nn.createElement(Ke,{"data-name":"column-name",autoFocus:l,onFocus:()=>{f(!0)},onBlur:()=>{f(!1)},value:m?h||"":h||b||"",width:300,type:"text",placeholder:"Enter column name",onChange:a})),Nn.createElement(de,{label:"Type"},Nn.createElement(Ze,{"data-name":"column-type",style:{width:"300px",whiteSpace:"normal",overflow:"hidden",maxWidth:"inherit"},placeholder:"Select Data Type",showClearButton:!0,onClear:()=>i(null),columns:["label"],items:c.map(T=>({value:T.value,label:T.label,onClick:()=>i(T.value)}))},C||"Select Data Type")),Nn.createElement(de,{label:"Width"},Nn.createElement(Ke,{"data-name":"column-width",type:"number",width:300,value:y||"",onChange:T=>S({Width:Number(T.target.value)})})),Nn.createElement(de,{label:""},Nn.createElement(pe,{"data-name":"column-show-tooltip",onChange:T=>S({ShowToolTip:T}),checked:v},"Show Expression as Tooltip")))))),d?Nn.createElement(ja,{marginTop:2},d):null,Nn.createElement(LN,{isEditable:!1,settings:t.CalculatedColumnSettings,onChange:S}))};var BN=e=>{var u;let t=$e(),n=rr(d=>d.CalculatedColumn.CalculatedColumns),[r,o]=(0,JEe.useState)(()=>{var d;if(e.data)return Bn(e.data);if((d=e.popupParams)!=null&&d.column){let c=n.find(m=>m.ColumnId===e.popupParams.column.columnId);if(c)return c}return it.CreateEmptyCalculatedColumn(t.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns)}),a=Rt(),i=Boolean(e.data)||((u=e.popupParams)==null?void 0:u.action)==="Edit",l=()=>{a(i?Ps(r):_f(r)),e.onCloseWizard()};return Jc.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:r,onHide:e.onCloseWizard,onFinish:l,sections:[{title:"Expression",details:"Specify the Calculated Column Expression",isValid:VEe,renderSummary:BEe,render:()=>Jc.createElement(GEe,{onChange:o})},{title:"Settings",details:"Specify Column details and properties",isValid:hq,renderSummary:$Ee,render:()=>Jc.createElement(gq.Box,{padding:2},Jc.createElement(XEe,{isEdit:i,onChange:o}))},"-",{render:()=>Jc.createElement(gq.Box,{padding:2},Jc.createElement(Xn,null)),title:"Summary"}]})};var bq=class extends Tg.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.onEdit(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n,r=this.props.teamSharingActivated;return this.props.CalculatedColumns.map((o,a)=>{o.ColumnId==this.props.summarisedColumn.columnId&&(n=Tg.createElement(va,{key:"UF"+a,item1:this.props.moduleInfo.FriendlyName,item2:this.props.api.queryLanguageApi.getAdaptableQueryExpression(o.Query),configEnity:o,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(o),onShare:i=>this.props.onShare(o,i),onDelete:Lf(o),showBold:!0,accessLevel:this.props.accessLevel}))}),Tg.createElement("div",null,n,this.state.editedAdaptableObject&&Tg.createElement(BN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.CalculatedColumns,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onEdit(n){this.setState({editedAdaptableObject:Mt.cloneObject(n),wizardStartIndex:0,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNotNullOrEmpty(n.ColumnId)&&we.IsNotNullOrEmpty(this.props.api.queryLanguageApi.getAdaptableQueryExpression(n.Query))}};function Mxt(e){return{CalculatedColumns:e.CalculatedColumn.CalculatedColumns}}function Nxt(e){return{onEdit:t=>e(Ps(t))}}var ZEe=Ye(Mxt,Nxt)(bq);s();var Zc=A(require("react"));s();var wg=A(require("react")),rIe=require("react"),yq=A(J());s();var Sn=A(require("react")),zd=A(J());var eIe=require("react");var _xt=[{value:"Number",label:"Number"},{value:"String",label:"String"},{value:"Date",label:"Date"},{value:"Boolean",label:"Boolean"}],tIe=e=>{var t;return Sn.createElement(zd.Box,{fontSize:2},Sn.createElement(zd.Box,null,"Column Identifier: ",Sn.createElement(Dt,null,e.ColumnId)),e.FriendlyName?Sn.createElement(zd.Box,{mt:3},"Column Name: ",Sn.createElement(Dt,null,(t=e.FriendlyName)!=null?t:e.ColumnId)):null,Sn.createElement(zd.Box,{mt:3},"Data Type: ",Sn.createElement(Dt,null,e.DataType)),e.DefaultValue!==void 0?Sn.createElement(zd.Box,{mt:3},"Default Value: ",Sn.createElement(Dt,null,e.DefaultValue)):null,e.TextEditor!==void 0?Sn.createElement(zd.Box,{mt:3},"Editor Type: ",Sn.createElement(Dt,null,e.TextEditor)):null)},Cq=(e,t)=>{let n=t.columnApi.getColumns();if(!e.ColumnId)return"Column id cannot be empty";let r=n.filter(a=>a.columnId===e.ColumnId).length;return(e.Uuid?r>1:r>0)?"A Column already exists with that id":e.DataType?!0:"No data type specified for column"},nIe=e=>{let{data:t,api:n}=ze(),r=n.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat,[o,a]=(0,eIe.useState)(!1),i=e.isEdit,l=Cq(t,n),u=l===!0?null:l,d=C=>{let v=C.target.value;e.onChange(R(g({},t),{ColumnId:v}))},c=C=>{let v=C.target.value;e.onChange(R(g({},t),{FriendlyName:v}))},m=C=>{let y=R(g({},t),{DataType:C});delete y.DefaultValue,C||delete y.DataType,e.onChange(y)},f=C=>{let v=C.target.value;e.onChange(R(g({},t),{TextEditor:v}))},h=C=>{let v=C.target.value;t.DataType==="Date"&&(v=go(v,{Pattern:r})),e.onChange(R(g({},t),{DefaultValue:v}))},b=C=>{e.onChange(R(g({},t),{FreeTextColumnSettings:g(g({},t==null?void 0:t.FreeTextColumnSettings),C)}))};return Sn.createElement(Sn.Fragment,null,Sn.createElement(Je,null,Sn.createElement(de,{label:"ColumnId"},Sn.createElement(Ke,{autoFocus:!i,value:t.ColumnId||"",style:{width:"100%",maxWidth:500},disabled:i,type:"text",placeholder:"Enter an id",onChange:C=>d(C)})),Sn.createElement(de,{label:"Column Name"},Sn.createElement(Ke,{autoFocus:i,onFocus:()=>{a(!0)},onBlur:()=>{a(!1)},value:o?t.FriendlyName||"":t.FriendlyName||t.ColumnId||"",style:{width:"100%",maxWidth:500},type:"text",placeholder:"Enter a name",onChange:C=>c(C)})),Sn.createElement(de,{label:"Type"},Sn.createElement(Ze,{style:{width:"300px",whiteSpace:"normal",overflow:"hidden",maxWidth:"inherit"},placeholder:"Select Data Type",showClearButton:!!t.DataType,onClear:()=>m(null),columns:["label"],items:_xt.map(C=>({value:C.value,label:C.label,onClick:()=>m(C.value)}))},t.DataType?t.DataType:"Select Data Type")),Sn.createElement(de,{label:"Default Value"},t.DataType==="Boolean"?Sn.createElement(pe,{checked:!!t.DefaultValue,onChange:C=>{e.onChange(R(g({},t),{DefaultValue:C}))}}):Sn.createElement(Yn,{value:t.DataType==="Date"&&t.DefaultValue?TR(t.DefaultValue,r)||"":t.DefaultValue||"",style:{width:"100%",maxWidth:500},type:t.DataType==="Number"?"number":t.DataType==="Date"?"date":"text",placeholder:"Default Column Value (not required)",onChange:C=>h(C)})),t.DataType=="String"&&Sn.createElement(de,{label:"Editor Type"},Sn.createElement(We,{value:"Inline",checked:t.TextEditor=="Inline",onChange:(C,y)=>f(y),marginRight:2},"Inline Editor"),Sn.createElement(We,{value:"Large",checked:t.TextEditor=="Large",onChange:(C,y)=>f(y)},"Large Editor"))),u?Sn.createElement(ja,{mt:2,mb:2},u):null,Sn.createElement(zd.Box,{mt:2},Sn.createElement(LN,{isEditable:!0,settings:t.FreeTextColumnSettings,onChange:b})))};var VN=e=>{var l;let t=rr(u=>u.FreeTextColumn.FreeTextColumns),[n,r]=(0,rIe.useState)(()=>{var u,d;return e.data?Bn(e.data):((u=e.popupParams)==null?void 0:u.action)==="Edit"&&((d=e.popupParams)==null?void 0:d.column)?t.find(c=>c.ColumnId===e.popupParams.column.columnId):it.CreateEmptyFreeTextColumn(!1)}),o=Rt(),a=e.data||((l=e.popupParams)==null?void 0:l.action)==="Edit",i=()=>{o(a?Fs(n):Uu(n)),e.onFinishWizard(n)};return wg.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:n,onHide:e.onCloseWizard,onFinish:i,sections:[{title:"Settings",details:"Configure the Free Text Column",isValid:Cq,render:()=>wg.createElement(yq.Box,{padding:2},wg.createElement(nIe,{isEdit:Boolean(e.data),onChange:r}))},"-",{details:"Review the Free Text Column",renderSummary:tIe,render:()=>wg.createElement(yq.Box,{padding:2},wg.createElement(Xn,null)),title:"Summary"}]})};var Sq=class extends Zc.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.FreeTextColumns.find(r=>r.ColumnId==n.ColumnId)?this.props.onEditFreeTextColumn(n):this.props.onAddFreeTextColumn(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=this.props.FreeTextColumns.find(a=>a.ColumnId==this.props.summarisedColumn.columnId),r=n==null,o;if(!r){let a=Ee.IsNotEmpty(n.FreeTextStoredValues)?" Stored values: "+n.FreeTextStoredValues.length:"No stored values";o=Zc.createElement(va,{key:this.props.moduleInfo.FriendlyName,item1:Zc.createElement(Oi,{moduleInfo:this.props.moduleInfo}),item2:a,configEnity:n,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(n),onShare:i=>this.props.onShare(n,i),onDelete:oh(n),showBold:!0,accessLevel:this.props.accessLevel})}return Zc.createElement("div",null,o,this.state.editedAdaptableObject&&Zc.createElement(VN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.FreeTextColumns,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onNew(){let n=this.props.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns,r=Vt.CreateEmptyFreeTextColumn(n);r.ColumnId=this.props.summarisedColumn.columnId,this.setState({editedAdaptableObject:r,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){let r=Mt.cloneObject(n);this.setState({editedAdaptableObject:r,wizardStartIndex:0,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNotNullOrEmpty(n.ColumnId)}};function Lxt(e,t){return{FreeTextColumns:e.FreeTextColumn.FreeTextColumns}}function kxt(e){return{onAddFreeTextColumn:t=>e(Uu(t)),onEditFreeTextColumn:t=>e(Fs(t)),onShare:(t,n)=>e(da(t,ao,n))}}var oIe=Ye(Lxt,kxt)(Sq);s();var Bxt=A(require("react"));var GN=class extends lr.Component{constructor(t){super(t),this.state={SelectedColumn:t.column}}render(){let t=[{Content:"Module",Size:3},{Content:"Summary",Size:7},{Content:"",Size:2}],n=this.state.SelectedColumn?this.state.SelectedColumn.columnId:null,r=[{Key:"Column Id",Value:this.state.SelectedColumn?this.state.SelectedColumn.columnId:null},{Key:"Header",Value:this.state.SelectedColumn?this.state.SelectedColumn.friendlyName:null},{Key:"Aggregatable",Value:this.state.SelectedColumn?this.state.SelectedColumn.aggregatable:null},{Key:"DataType",Value:this.state.SelectedColumn?this.state.SelectedColumn.dataType:null},{Key:"Groupable",Value:this.state.SelectedColumn?this.state.SelectedColumn.groupable:null},{Key:"Filterable",Value:this.state.SelectedColumn?this.state.SelectedColumn.filterable:null},{Key:"Hideable",Value:this.state.SelectedColumn?this.state.SelectedColumn.hideable:null},{Key:"Editable",Value:this.state.SelectedColumn?!this.state.SelectedColumn.IsReadOnly:null},{Key:"Moveable",Value:this.state.SelectedColumn?this.state.SelectedColumn.moveable:null},{Key:"Pivotable",Value:this.state.SelectedColumn?this.state.SelectedColumn.pivotable:null},{Key:"Queryable",Value:this.state.SelectedColumn?this.state.SelectedColumn.queryable:null},{Key:"Sortable",Value:this.state.SelectedColumn?this.state.SelectedColumn.sortable:null},{Key:"Visible",Value:this.state.SelectedColumn?this.state.SelectedColumn.visible:null},{Key:"Grouped",Value:this.state.SelectedColumn?this.state.SelectedColumn.isGrouped:null}],o=this.props.api.internalApi.getModuleService(),a=[];return this.state.SelectedColumn&&(this.isModuleAvailable(bo)&&a.push(lr.createElement("div",{key:bo,className:this.isModuleReadOnly(bo)?br:""},lr.createElement(QRe,{key:bo,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(bo),api:this.props.api,moduleInfo:o.getModuleInfoByModule(bo)}))),this.isModuleAvailable(Vn)&&a.push(lr.createElement("div",{key:Vn,className:this.isModuleReadOnly(Vn)?br:""},lr.createElement(aEe,{key:Vn,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(Vn),api:this.props.api,moduleInfo:o.getModuleInfoByModule(Vn)}))),this.isModuleAvailable(Co)&&a.push(lr.createElement("div",{key:Co,className:this.isModuleReadOnly(Co)?br:""},lr.createElement(iEe,{key:Co,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(Co),api:this.props.api,moduleInfo:o.getModuleInfoByModule(Co)}))),this.isModuleAvailable(yo)&&a.push(lr.createElement("div",{key:yo,className:this.isModuleReadOnly(yo)?br:""},lr.createElement(LEe,{key:yo,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(yo),api:this.props.api,moduleInfo:o.getModuleInfoByModule(yo)}))),this.isModuleAvailable(ao)&&a.push(lr.createElement("div",{key:ao,className:this.isModuleReadOnly(ao)?br:""},lr.createElement(oIe,{key:ao,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(ao),api:this.props.api,moduleInfo:o.getModuleInfoByModule(ao)}))),this.isModuleAvailable(yr)&&this.state.SelectedColumn.dataType=="Number"&&a.push(lr.createElement("div",{key:yr,className:this.isModuleReadOnly(yr)?br:""},lr.createElement(mEe,{key:yr,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(yr),api:this.props.api,moduleInfo:o.getModuleInfoByModule(yr)}))),this.isModuleAvailable(Or)&&Ee.ContainsItem(this.props.api.calculatedColumnApi.getAllCalculatedColumn().map(i=>i.ColumnId),this.state.SelectedColumn.columnId)&&a.push(lr.createElement("div",{key:Or,className:this.isModuleReadOnly(Or)?br:""},lr.createElement(ZEe,{key:Or,summarisedColumn:this.state.SelectedColumn,accessLevel:this.getAccessLevel(Or),api:this.props.api,moduleInfo:o.getModuleInfoByModule(Or)})))),lr.createElement(Gt,{header:"Column Info",margin:2,"data-name":"column-component"},lr.createElement(Og.Flex,{flexDirection:"row",alignItems:"center",marginBottom:2},lr.createElement(Og.Box,{flex:1,marginLeft:2},lr.createElement(Xc,{SelectedColumnIds:[n],ColumnList:this.props.api.columnApi.getColumns(),onColumnChange:i=>this.onColumnSelectedChanged(i),SelectionMode:"Single"}))),lr.createElement(Og.Flex,{flex:1,style:{overflow:"auto",width:"100%"}},this.state.SelectedColumn&&!1),lr.createElement(Og.Flex,{flex:1,style:{overflow:"auto",width:"100%"}},this.state.SelectedColumn&&lr.createElement(wi,{style:{width:"100%"},colItems:t,items:a})))}onColumnSelectedChanged(t){this.setState({SelectedColumn:t.length>0?t[0]:null})}isModuleAvailable(t){return this.props.api.internalApi.getModuleService().getModuleById(t).isModuleAvailable()}isModuleReadOnly(t){return this.getAccessLevel(t)=="ReadOnly"}getAccessLevel(t){return this.props.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(t)}};s();var Pa=A(require("react")),Ng=require("react");s();var Ia=A(require("react"));var em=A(J());var ls=class extends Ia.Component{render(){let{buttonContent:t}=this.props,n=Gs[this.props.glyphicon],r=Ia.createElement(em.Flex,{alignItems:"center",width:"100%"},Ia.createElement(em.Flex,{alignItems:"center"},this.props.glyphicon!=null&&(n?Ia.createElement(n,null):null),Ia.createElement(em.Box,{marginRight:2,"data-name":"space-before"}),this.props.headerText,Ia.createElement(em.Box,{marginRight:2,"data-name":"space-after"}),this.props.infoLink!=null&&!this.props.infoLinkDisabled&&Ia.createElement(so,{style:{color:"var(--ab-color-text-on-add)",fill:"var(--ab-color-text-on-add)",background:"var(--ab-color-action-add)"},onClick:()=>window.open(this.props.infoLink,"_blank")})),Ia.createElement(em.Box,{style:{flex:1}}),t?Ia.createElement(re,{variant:"raised",tone:"accent",disabled:this.props.buttonDisabled,onClick:()=>this.props.buttonClick?this.props.buttonClick():null},t):null,this.props.button?Ia.cloneElement(this.props.button):null);return Ia.createElement(Gt,{flex:1,className:this.props.className,bodyScroll:this.props.bodyScroll!=null?this.props.bodyScroll:!0,bodyProps:this.props.bodyProps,variant:this.props.variant||"primary",header:r,headerProps:this.props.headerProps,style:this.props.style,borderRadius:this.props.borderRadius||"none",border:this.props.border||"none"},this.props.children)}};s();var HN=A(require("react"));var Fg=class extends HN.Component{render(){return HN.createElement(re,R(g({"data-name":"minimise",iconSize:20,tooltip:"Minimise"},this.props),{variant:"text",icon:"arrow-up"}))}};s();var UN=A(require("react"));var Mg=class extends UN.Component{render(){return UN.createElement(re,g({"data-name":"maximise",iconSize:20,tooltip:"Maximize",icon:this.props.useHoirzontalChevron?"arrow-right":"arrow-down",variant:"text"},this.props))}};var aIe=A(J()),iIe=e=>{let{api:t}=e,n=()=>[{Content:"Property",Size:5},{Content:"Value",Size:5},{Content:"",Size:2}],r=f=>{if(f==null||f==null)return"None";switch(typeof f){case"string":case"number":case"bigint":return f;case"boolean":return f?"True":"False";case"function":return"Function";case"object":if(Array.isArray(f))return`[${f.map(b=>r(b)).join(", ")}]`;if(f instanceof HTMLElement)return"HTMLElement";default:return"Complex value"}},o=f=>{let h=n();h[0].Content=f.name;let b=r(f.value),C=f.value!==f.defaultValue;h[1].Content=C?Pa.createElement(Pa.Fragment,null,Pa.createElement("span",{style:{fontWeight:"bold"}},b),Pa.createElement("span",{style:{fontStyle:"italic"}}," ","(Default: ",r(f.defaultValue),")")):b;let y=Pa.createElement(Cn,{headerText:null,bodyText:[f.description]});return h[2].Content=y,h},a=(f,h)=>{let b=h.items.map(C=>{let y=o(C);return Pa.createElement(hr,{key:`${C.name}`,colItems:y})});return Pa.createElement(wi,{colItems:n(),items:b})},[i,l]=(0,Ng.useState)(),[u,d]=(0,Ng.useState)();(0,Ng.useEffect)(()=>{let f=t.internalApi.getMetamodelService().getGridInfoOptions(),h=new Map;f.forEach((b,C)=>{h.set(C,a(C,b))}),d(h),l(f)},[]);let[c,m]=(0,Ng.useState)("");return Pa.createElement(aIe.Box,{className:"ab-AdaptableOptions",padding:2,"data-name":"gridInfo-adaptableOptions-content"},i&&Array.from(i.entries()).map(([f,h])=>Pa.createElement(Vxt,{key:f,name:f,label:h.containerLabel,viewMode:f===c?"expanded":"collapsed",onViewModeChange:b=>m(b==="expanded"?f:"")},u.get(f))))},Vxt=e=>{let{viewMode:t,name:n,label:r,onViewModeChange:o,children:a}=e,i=()=>{o(t==="expanded"?"collapsed":"expanded")},l=t==="expanded"?Pa.createElement(Fg,{onClick:()=>i(),tooltip:`Hide ${r}`}):Pa.createElement(Mg,{onClick:()=>i(),tooltip:`Show ${r}`});return Pa.createElement(ls,{className:`options-container-${n}`,variant:"default",headerText:r,headerProps:{fontSize:3,style:{fontWeight:t==="expanded"?800:400,cursor:"pointer"},"data-name":`options-container-header-${n}`,onClick:()=>i()},button:l,style:{marginBottom:3}},t==="expanded"&&a)};s();var tm=A(require("react"));s();s();var In=A(require("react"));var cl=A(J());var vq=26,Gxt=e=>{var T,O,_,M,x,D,N,q,F;let t=$e(),n=Rt(),[r,o]=In.useState(!1),[a,i]=In.useState(null),l=(O=(T=e.module)==null?void 0:T.getViewProperties)==null?void 0:O.call(T),u=(_=l.getEditWizard)==null?void 0:_.call(l,e.data.abObject),d=(M=l==null?void 0:l.getDeleteAction)==null?void 0:M.call(l,e.data.abObject),c=t.api.teamSharingApi.isTeamSharingActivated()&&t.api.teamSharingApi.hasTeamSharingFullRights(),m=e.module.moduleInfo.FriendlyName,f=t.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(e.module.moduleInfo.ModuleName),h=xt.getAppropriateAccessLevel(e.data.abObject,f),b=`${e.baseClassName}__Item`,C=He(b,e.data.abObject.IsSuspended&&`${b}--is-suspended`),y=In.useCallback(()=>{o(!1),i(null)},[]),v=In.useCallback(k=>{var Y;u&&(o(!0),k&&i(k)),(Y=l==null?void 0:l.onOpenEditPopup)==null||Y.call(l,e.data.abObject)},[]),S=Boolean(l.getSuspendAction),I=(D=(x=l==null?void 0:l.actions)==null?void 0:x.map)==null?void 0:D.call(x,(k,Y)=>In.createElement(k,{data:e.data.abObject,key:Y})),P=!Boolean(u||l.onOpenEditPopup);return In.createElement(cl.Flex,{"data-name":"adaptable-object-list-item","data-value":e.data.abObject.Uuid,as:"li",mb:3,className:C},In.createElement(cl.Box,{flex:1,className:`${b}__rows`},(F=(q=(N=e.data.items).filter)==null?void 0:q.call(N,Boolean))==null?void 0:F.map((k,Y)=>{var Z;return In.createElement(cl.Flex,{"data-name":k.name,key:Y,mb:2,className:`${b}__row`},In.createElement(cl.Box,{className:`${b}__label`,mr:3},k.label||k.name,u&&In.createElement(re,{accessLevel:h,className:`${b}__edit-property`,ml:1,icon:"edit",tooltip:"edit",iconSize:18,variant:"text",onClick:()=>{v(k.name)}})),In.createElement(cl.Box,{flex:1,className:`${b}__values`},k.view&&In.createElement(k.view,{data:e.data.abObject}),Boolean((k==null?void 0:k.values)&&((Z=k==null?void 0:k.values)==null?void 0:Z.length))&&In.createElement(Xo,{style:{marginRight:0},readOnly:!0,options:k.values,value:k.values,allowWrap:!0,toIdentifier:oe=>oe,toLabel:oe=>In.createElement(In.Fragment,null,oe)})))})),In.createElement(cl.Flex,{flexDirection:"column",className:`${b}__buttons`},In.createElement(cl.Flex,{justifyContent:"end"},I,c&&In.createElement(Rg,{iconSize:vq,Header:`TeamSharing ${m}`,accessLevel:h,onShare:k=>n(da(e.data.abObject,e.module.moduleInfo.ModuleName,k))}),d&&In.createElement(Fd,{iconSize:vq,ConfirmationMsg:`Are you sure you want to delete this ${m}?`,ConfirmationTitle:`Delete ${m}`,ConfirmAction:d,accessLevel:h}),In.createElement(Od,{iconSize:vq,disabled:P,accessLevel:h,onClick:()=>v()})),In.createElement(cl.Box,{flex:1}),S&&In.createElement(cl.Flex,{justifyContent:"end"},In.createElement(SN,{onSuspend:()=>n(l.getSuspendAction(e.data.abObject)),onUnSuspend:()=>n(l.getUnSuspendAction(e.data.abObject)),suspendableObject:e.data.abObject,accessLevel:h}))),r&&u&&In.createElement(u,{defaultCurrentSectionName:a,moduleInfo:e.module.moduleInfo,data:e.data.abObject,configEntities:null,onCloseWizard:y,onFinishWizard:y}))},NS=e=>{var n;let t="ab-Adaptable-Object-List";return In.createElement("ul",{className:t},(n=e==null?void 0:e.items)==null?void 0:n.map(r=>In.createElement(Gxt,{key:r.abObject.Uuid,baseClassName:t,data:r,module:e.module})))};var lIe=()=>{let e=rr(r=>r),n=$e().ModuleService.getModuleCollection();return tm.createElement(tm.Fragment,null,[...n].map(([r,o])=>{var i;if(!o.isModuleAvailable())return null;let a=(i=o==null?void 0:o.toViewAll)==null?void 0:i.call(o);return a!=null&&a.length?tm.createElement("div",{key:o.moduleInfo.ModuleName},tm.createElement("b",null,o.moduleInfo.FriendlyName),(a==null?void 0:a.length)&&tm.createElement(NS,{items:a,module:o})):null}))};var sIe=e=>{var C,y,v;let t=e.api.internalApi.getEntitlementService(),n=t.isGridInfoSectionVisible("GridSummary"),r=t.isGridInfoSectionVisible("AdaptableOptions"),o=t.isGridInfoSectionVisible("ColumnInfo"),a=!0,[i,l]=Hr.useState({ActiveTab:(C=e.popupParams)!=null&&C.column?"ColumnInfo":n?"GridSummary":r?"AdaptableOptions":"ColumnInfo",CurrentColumn:(v=(y=e.popupParams)==null?void 0:y.column)!=null?v:void 0,IsBaseOptionsMinimised:!0,IsContainerOptionsMinimised:!0,IsSearchOptionsMinimised:!0,IsLayoutOptionsMinimised:!0,IsGeneralOptionsMinimised:!0}),u=S=>{l(I=>g(g({},I),S))},d=S=>{let I=[],P=e.api.calculatedColumnApi.getAllCalculatedColumn().map(D=>D.ColumnId),T=e.api.userInterfaceApi.getAllActionColumn().map(D=>D.columnId),O=e.api.freeTextColumnApi.getAllFreeTextColumn().map(D=>D.ColumnId),_=e.api.filterApi.columnFiltersToString(e.api.filterApi.getAllColumnFilter()),M=De.IsNotNullOrEmpty(e.api.gridApi.getColumnSorts())?e.api.gridApi.getColumnSorts().map(D=>e.api.columnApi.getFriendlyNameFromColumnId(D.ColumnId)+": "+D.SortOrder):null,x=e.api.gridApi.getSelectedRowInfo();return I.push(c(S,"AdapTable Version",hRe)),I.push(c(S,"Sorted Columns",De.IsNotNullOrEmpty(M)?M.join("; "):"None")),I.push(c(S,"Column Filters",_)),I.push(c(S,"All Rows",e.api.gridApi.getRowCount())),I.push(c(S,"Visible Rows",e.api.gridApi.getVisibleRowCount())),I.push(c(S,"Selected Rows",x==null?void 0:x.gridRows.length)),I.push(c(S,"Visible Selected Rows",x==null?void 0:x.gridRows.filter(D=>{var N;return((N=D.rowNode)==null?void 0:N.displayed)==!0}).length)),I.push(c(S,"All Columns",e.api.gridApi.getColumnCount())),I.push(c(S,"Visible Columns",e.api.gridApi.getVisibleColumnCount())),I.push(c(S,"Calculated Columns",De.IsNotNullOrEmpty(P)?P:"None")),I.push(c(S,"Free Text Columns",De.IsNotNullOrEmpty(O)?O:"None")),I.push(c(S,"Action Columns",De.IsNotNullOrEmpty(T)?T:"None")),I},c=(S,I,P,T)=>{let O=sn.cloneObject(S);if(O[0].Content=I,O[1].Content=P,T){let _=Hr.createElement(Cn,{headerText:null,bodyText:[T]});O[2].Content=_}return O},m=S=>{u({ActiveTab:S})},f=[{Content:"Property",Size:5},{Content:"Value",Size:7}],h=d(f).map((S,I)=>Hr.createElement(hr,{key:I,colItems:S})),b=[n,r,o,a].filter(S=>S).length>1;return Hr.createElement(Vr,{headerText:"Grid Info",glyphicon:"info-sign"},Hr.createElement(WN.Flex,{marginBottom:2,padding:3},b&&Hr.createElement(Hr.Fragment,null,n&&Hr.createElement(We,{"data-name":"radioButton-GridSummary",marginRight:3,value:"GridSummary",checked:i.ActiveTab=="GridSummary",onChange:(S,I)=>m("GridSummary")},"Summary"),r&&Hr.createElement(We,{"data-name":"radioButton-AdaptableOptions",marginRight:3,value:"AdaptableOptions",checked:i.ActiveTab=="AdaptableOptions",onChange:(S,I)=>m("AdaptableOptions")},"Options"),o&&Hr.createElement(We,{"data-name":"radioButton-Column",marginRight:3,value:"Column",checked:i.ActiveTab=="ColumnInfo",onChange:(S,I)=>m("ColumnInfo")},"Columns"),a&&Hr.createElement(We,{"data-name":"radioButton-Column",value:"Column",checked:i.ActiveTab=="AdaptableObjectsSummary",onChange:(S,I)=>m("AdaptableObjectsSummary")},"Objects"))),i.ActiveTab=="GridSummary"&&Hr.createElement(WN.Box,{margin:2},Hr.createElement(wi,{colItems:f,items:h})),i.ActiveTab=="AdaptableOptions"&&Hr.createElement(iIe,{api:e.api}),i.ActiveTab=="ColumnInfo"&&Hr.createElement("div",null,Hr.createElement(GN,{api:e.api,teamSharingActivated:e.teamSharingActivated,column:i.CurrentColumn})),i.ActiveTab==="AdaptableObjectsSummary"&&Hr.createElement(lIe,null))};s();var jt=A(require("react"));var sm=A(J());s();var _g=A(require("react")),qN=A(J());var zN=class extends _g.Component{render(){let t=this.props.entity;return _g.createElement(qN.Flex,{flexDirection:"row",alignItems:"center"},_g.createElement(qN.Flex,{flex:4},this.props.api.columnApi.getFriendlyNameFromColumnId(t.ColumnId)),_g.createElement(qN.Flex,{flex:8},this.getCustomSortedValues(t)))}getCustomSortedValues(t){return De.IsNotNullOrEmpty(t.SortedValues)?t.SortedValues.join(", "):"[Has bespoke Custom Sort implementing using bespoke function]"}};s();var nm=A(require("react")),QN=A(J());var jN=class extends nm.Component{render(){let t=this.props.entity;return nm.createElement(QN.Flex,{flexDirection:"row",alignItems:"center"},nm.createElement(QN.Flex,{flex:4},t.ColumnId),nm.createElement(QN.Flex,{flex:8},nm.createElement(Fn,null," ",this.props.api.queryLanguageApi.getAdaptableQueryExpression(t.Query))))}};s();var Lg=A(require("react")),YN=A(J()),KN=class extends Lg.Component{render(){var n;let t=this.props.entity;return Lg.createElement(YN.Flex,{flexDirection:"row",alignItems:"center"},Lg.createElement(YN.Flex,{flex:4},t.Name),Lg.createElement(YN.Flex,{flex:8},(n=t.Query)==null?void 0:n.BooleanExpression))}};s();var Qd=A(require("react"));var _S=A(J());var $N=class extends Qd.Component{render(){let t=this.props.entity,n=Qe.IsNotNullOrEmpty(t.Rule.BooleanExpression)?t.Rule.BooleanExpression:this.props.api.predicateApi.predicateToString(t.Rule.Predicate);return Qd.createElement(_S.Flex,{flexDirection:"row",alignItems:"center",padding:1},Qd.createElement(_S.Flex,{flex:4},this.props.api.scopeApi.getScopeToString(t.Scope)),Qd.createElement(_S.Flex,{flex:3,marginLeft:2},Qd.createElement(Aa,{Style:t.Style})),Qd.createElement(_S.Flex,{flex:5},n))}};s();var rm=A(require("react"));var XN=A(J()),JN=class extends rm.Component{render(){let t=this.props.entity;return rm.createElement(XN.Flex,{flexDirection:"row",alignItems:"center"},rm.createElement(XN.Flex,{flex:4},this.props.api.scopeApi.getScopeDescription(t.Scope)),rm.createElement(XN.Flex,{flex:8},rm.createElement(Aa,{Style:t.Style})))}};s();var kg=A(require("react")),ZN=A(J()),e_=class extends kg.Component{render(){let t=this.props.entity;return kg.createElement(ZN.Flex,{flexDirection:"row",alignItems:"center"},kg.createElement(ZN.Flex,{flex:4},t.Name),kg.createElement(ZN.Flex,{flex:8},t.Columns.join(", ")))}};s();var om=A(require("react")),LS=A(J());var t_=class extends om.Component{render(){var r;let t=this.props.entity,n=Qe.IsNotNullOrEmpty((r=t.Rule)==null?void 0:r.BooleanExpression)?t.Rule.BooleanExpression:"Always";return om.createElement(LS.Flex,{flexDirection:"row",alignItems:"center"},om.createElement(LS.Flex,{flex:4},this.props.api.scopeApi.getScopeToString(t.Scope)),om.createElement(LS.Flex,{flex:3},t.NudgeValue.toString()),om.createElement(LS.Flex,{flex:5},n))}};s();var jd=A(require("react")),n_=A(J()),r_=class extends jd.Component{render(){let t=this.props.entity;return jd.createElement(n_.Flex,{flexDirection:"row",alignItems:"center"},jd.createElement(n_.Flex,{flex:4},"Key: ",jd.createElement("b",null,t.ShortcutKey)),jd.createElement(n_.Flex,{flex:4},"Value: ",jd.createElement("b",null,t.ShortcutValue)))}};s();var am=A(require("react")),o_=A(J());var a_=class extends am.Component{render(){let t=this.props.entity;return am.createElement(o_.Flex,{flexDirection:"row",alignItems:"center"},am.createElement(o_.Flex,{flex:4},t.Name),am.createElement(o_.Flex,{flex:8},am.createElement(Fn,null," ",t.BooleanExpression)))}};s();var im=A(require("react")),i_=A(J());var l_=class extends im.Component{render(){let t=this.props.entity,n=Qe.IsNotNullOrEmpty(t.DefaultValue)?t.DefaultValue:"None";return im.createElement(i_.Flex,{flexDirection:"row",alignItems:"center"},im.createElement(i_.Flex,{flex:4},t.ColumnId),im.createElement(i_.Flex,{flex:8,flexDirection:"column"},"ColumnName: ",t.FriendlyName,im.createElement("br",null),"Default Value: ",n))}};s();var Bg=A(require("react")),s_=A(J()),u_=class extends Bg.Component{render(){let t=this.props.entity;return Bg.createElement(s_.Flex,{flexDirection:"row",alignItems:"center"},Bg.createElement(s_.Flex,{flex:4},this.props.api.columnApi.getFriendlyNameFromColumnId(t.ColumnId)),Bg.createElement(s_.Flex,{flex:8,marginLeft:2},this.props.api.predicateApi.predicateToString(t.Predicate)))}};s();var lm=A(require("react")),d_=A(J());var p_=class extends lm.Component{render(){let t=this.props.entity;return lm.createElement(d_.Flex,{flexDirection:"row",alignItems:"center"},lm.createElement(d_.Flex,{flex:4},this.props.api.scopeApi.getScopeToString(t.Scope)),lm.createElement(d_.Flex,{flex:8},lm.createElement(Fn,null,this.props.api.alertApi.getAlertRuleDescription(t)," ")))}};var Aq=class extends jt.Component{componentDidMount(){this.props.onTeamSharingGet()}render(){let t=[{Content:"Module",Size:2},{Content:"Description",Size:2},{Content:"Audit",Size:5},{Content:"Details",Size:5},{Content:"",Size:1}],n=this.props.api.internalApi.getTeamSharingService().getStaleActiveSharedEntities(),r=this.props.Entities.sort((o,a)=>o.Module<a.Module?-1:1).map((o,a)=>jt.createElement(sm.Flex,{flexDirection:"row",alignItems:"center",key:a,padding:2,fontSize:"var( --ab-font-size-2)"},jt.createElement(sm.Flex,{flex:2},this.props.api.internalApi.getModuleService().getModuleInfoByModule(o.Module).FriendlyName),jt.createElement(sm.Flex,{flex:2,marginLeft:2},o.Description),jt.createElement(sm.Flex,{flex:5,marginLeft:2,flexDirection:"column"},jt.createElement("div",null,jt.createElement("b",null,o.Type==="Snapshot"?"Snaphot":"Active share")," by ",o.UserName," at"," ",new Date(o.Timestamp).toLocaleString()),o.Type==="Active"&&o.Revision>1&&jt.createElement("div",null,"Latest ",jt.createElement("b",null,"Revision ",o.Revision)," by ",o.ChangedBy," at"," ",new Date(o.ChangedAt).toLocaleString()),this.isUpToDateActive(o)&&jt.createElement("div",{style:{color:"var(--ab-color-success)"}},"Active & ",jt.createElement("b",null,"up-to-date")),this.isStaleActive(o,n)&&jt.createElement("div",{style:{color:"var(--ab-color-warn)"}},"Local Revision ",n[o.Uuid].importedRevision," is ",jt.createElement("b",null,"stale!"))),jt.createElement(sm.Flex,{flex:5,marginLeft:1},jt.createElement(Gt,{variant:"primary",style:{flex:1},fontSize:"var( --ab-font-size-2)"},this.getSharedItemDetails(o))),jt.createElement(sm.Flex,{flex:1},jt.createElement(re,{variant:"text",tooltip:"Import",onClick:()=>this.props.onImportItem(o)},jt.createElement(Ct,{name:"import-export"})),this.hasDeletionRights(o)&&jt.createElement(re,{variant:"text",tooltip:"Remove",onClick:()=>this.props.onRemoveItem(o.Uuid)},jt.createElement(Ct,{name:"delete"})))));return jt.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed(),glyphicon:this.props.moduleInfo.Glyph},this.props.Entities.length==0?jt.createElement(Nt,{margin:3},"Shared Items will appear here when available."):jt.createElement(Dd,{colItems:t}),r)}isPresentInLocalState(t){return!!this.props.api.internalApi.getModuleService().getModuleById(t.Module).getModuleAdaptableObjects().find(n=>n.Uuid===t.Entity.Uuid)}isStaleActive(t,n){return this.isPresentInLocalState(t)&&!!n[t.Uuid]}isUpToDateActive(t){var n;return this.isPresentInLocalState(t)&&t.Type==="Active"&&((n=this.props.ActiveEntities[t.Entity.Uuid])==null?void 0:n.Revision)===t.Revision}hasDeletionRights(t){return this.props.api.teamSharingApi.hasTeamSharingFullRights()&&!t.IsReadOnly}getSharedItemDetails(t){switch(t.Module){case Or:return jt.createElement(jN,{entity:t.Entity,api:this.props.api});case bo:return jt.createElement(zN,{entity:t.Entity,api:this.props.api});case Vn:return jt.createElement($N,{entity:t.Entity,api:this.props.api});case kr:return jt.createElement(KN,{entity:t.Entity,api:this.props.api});case Co:return jt.createElement(u_,{entity:t.Entity,api:this.props.api});case yo:return jt.createElement(JN,{entity:t.Entity,api:this.props.api});case ao:return jt.createElement(l_,{entity:t.Entity,api:this.props.api});case Ki:return jt.createElement(e_,{entity:t.Entity,api:this.props.api});case yr:return jt.createElement(t_,{entity:t.Entity,api:this.props.api});case Fl:return jt.createElement(r_,{entity:t.Entity,api:this.props.api});case Gn:return jt.createElement(a_,{entity:t.Entity,api:this.props.api});case wr:return jt.createElement(p_,{entity:t.Entity,api:this.props.api});default:return"Preview not available"}}};function Hxt(e,t){return{Entities:e.TeamSharing.SharedEntities,ActiveEntities:e.TeamSharing.ActiveSharedEntityMap}}function Uxt(e){return{onTeamSharingGet:()=>e(zoe()),onImportItem:t=>e(Uoe(t)),onRemoveItem:t=>e(qoe(t))}}var uIe=Ye(Hxt,Uxt)(Aq);s();var Io=A(require("react"));var Vg=A(J());s();var Yd=require("react"),en=A(require("react"));var xq=(0,Yd.createContext)({availableToolbars:[]}),dIe=(e,t)=>{let n=e.find(r=>r.Id===t);return n?n.Title:t};function Wxt({tabs:e,onRemoveTab:t,onRemoveToolbar:n,onChangeTabName:r,disabled:o}){return en.createElement($o,{droppableId:"MAIN",type:"TAB",direction:"horizontal"},a=>en.createElement("div",R(g({ref:a.innerRef},a.droppableProps),{style:{display:"flex"},"data-name":"dashboard-tabs"}),e.map((i,l)=>en.createElement(qxt,{disabled:o,key:l,tabIndex:l,tab:i,onRemove:()=>t(l),onRemoveToolbar:u=>n(l,u),onChangeTabName:u=>r(l,u)})),a.placeholder))}function qxt({tab:e,tabIndex:t,onRemove:n,onRemoveToolbar:r,onChangeTabName:o,disabled:a}){return en.createElement(ga,{isDragDisabled:a,draggableId:String(t),index:t},i=>en.createElement("div",R(g({"data-name":"dashboard-tab",ref:i.innerRef},i.draggableProps),{style:R(g({},a?{}:i.draggableProps.style),{boxSizing:"border-box",border:"1px solid var(--ab-color-primarydark)",borderRadius:"var(--ab__border-radius)",marginRight:"var(--ab-space-2)",width:160,display:"flex",flexDirection:"column"})}),en.createElement("div",{style:{display:"flex",alignItems:"center",padding:"var(--ab-space-1)",borderBottom:"1px solid var(--ab-color-primarydark)"}},en.createElement("div",R(g({},a?{}:i.dragHandleProps),{style:{}}),en.createElement(Ct,{name:"drag"})),en.createElement("input",{type:"text",disabled:a,value:e.Name,style:{flex:1,width:"100%",border:"none",marginLeft:"var(--ab-space-1)",marginRight:"var(--ab-space-1)",alignSelf:"stretch",background:"transparent",color:"var(--ab-color-text-on-primary)"},onChange:l=>{o(l.target.value)}}),en.createElement(re,{disabled:a,icon:"delete",variant:"text",onClick:n})),en.createElement(zxt,{disabled:a,toolbars:e.Toolbars,droppableId:String(t),onRemove:r})))}function zxt({toolbars:e,droppableId:t,onRemove:n,disabled:r}){return en.createElement($o,{droppableId:t,type:"TOOLBAR"},(o,a)=>en.createElement("div",R(g({ref:o.innerRef},r?{}:o.droppableProps),{"data-name":"dashboard-toolbar-drop-target",style:{flex:1,padding:4,paddingBottom:0,background:a.isDraggingOver?"var(--ab-dashboard-tab-drop-target__background)":"",minHeight:200}}),e.map((i,l)=>en.createElement(Qxt,{disabled:r,key:i,toolbar:i,toolbarIndex:l,onRemove:()=>n(l)})),o.placeholder))}function Qxt({toolbar:e,toolbarIndex:t,onRemove:n,disabled:r}){let{availableToolbars:o}=(0,Yd.useContext)(xq);return en.createElement(ga,{isDragDisabled:r,draggableId:e,index:t},(a,i)=>en.createElement("div",R(g(g({ref:a.innerRef},a.draggableProps),a.dragHandleProps),{style:R(g({},a.draggableProps.style),{display:"flex",alignItems:"center",border:"1px solid var(--ab-color-primary)",backgroundColor:i.isDragging?"var(--ab-dashboard-toolbar-drag__background)":"var(--ab-color-primarylight)",paddingLeft:"var(--ab-space-1)",marginBottom:"var(--ab-space-1)"})}),en.createElement("div",{style:{flex:1}},dIe(o,e)),en.createElement(re,{disabled:r,icon:"clear",variant:"text",padding:1,onClick:n})))}function jxt({toolbars:e,disabled:t}){return en.createElement("div",{"data-name":"dashboard-toolbars",style:{border:"1px solid var(--ab-color-primarydark)",borderRadius:"var(--ab__border-radius)",marginBottom:"var(--ab-space-2)",paddingBottom:"var(--ab-space-1)",backgroundColor:"var(--ab-color-defaultbackground)"}},en.createElement("div",{style:{padding:"var(--ab-space-2)"}},en.createElement("b",null,"Available Toolbars")," (drag into a Tab below)"),en.createElement(Yxt,{disabled:t,toolbars:e}))}function Yxt({toolbars:e,disabled:t}){return en.createElement($o,{droppableId:"UNUSED",type:"TOOLBAR",isDropDisabled:!0,direction:"horizontal"},n=>en.createElement("div",R(g({ref:n.innerRef,"data-name":"dashboard-toolbars-list"},n.droppableProps),{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingLeft:"var(--ab-space-2)",paddingRight:"var(--ab-space-2)"}}),e.map((r,o)=>en.createElement(Kxt,{disabled:t,key:r,toolbar:r,toolbarIndex:o})),n.placeholder))}function Kxt({toolbar:e,toolbarIndex:t,disabled:n}){let{availableToolbars:r}=(0,Yd.useContext)(xq);return en.createElement(ga,{isDragDisabled:n,draggableId:e,index:t},(o,a)=>{let i=n?{}:g(g({},o.draggableProps),o.dragHandleProps),l=n?{}:o.draggableProps.style;return en.createElement("div",R(g({"data-name":"dashboard-toolbar",ref:o.innerRef},i),{style:R(g({},l),{border:"1px solid var(--ab-color-primary)",backgroundColor:a.isDragging?"var(--ab-dashboard-toolbar-drag__background)":"var(--ab-color-primarylight)",padding:"var(--ab-space-1) var(--ab-space-2)",marginRight:"var(--ab-space-1)",marginBottom:"var(--ab-space-1)"})}),dIe(r,e))})}var $xt=({tabs:e,onTabsChange:t,availableToolbars:n,api:r,disabled:o})=>{let i=r.internalApi.getModuleService().getModuleInfoByModule("Dashboard"),l=(0,Yd.useMemo)(()=>({availableToolbars:n}),[n]),u=(0,Yd.useMemo)(()=>n.map(C=>C.Id).filter(C=>!e.some(y=>y.Toolbars.includes(C))),[e,n]),d=C=>{let{source:y,destination:v,draggableId:S}=C;!y||!v||(y.droppableId!=="UNUSED"&&e[Number(y.droppableId)].Toolbars.splice(y.index,1),v.droppableId!=="UNUSED"&&e[Number(v.droppableId)].Toolbars.splice(v.index,0,S),t([...e]))},c=C=>{let{source:y,destination:v}=C;if(!y||!v)return;let[S]=e.splice(y.index,1);e.splice(v.index,0,S),t([...e])},m=C=>{t(e.filter((y,v)=>v!==C))},f=()=>{t([...e,{Name:"New Tab",Toolbars:[]}])},h=(C,y)=>{t(e.map((v,S)=>S!==C?v:R(g({},v),{Toolbars:v.Toolbars.filter((I,P)=>P!==y)})))},b=(C,y)=>{t(e.map((v,S)=>S!==C?v:R(g({},v),{Name:y})))};return en.createElement(Xh,{onDragEnd:C=>{C.type==="TAB"&&c(C),C.type==="TOOLBAR"&&d(C)}},en.createElement(xq.Provider,{value:l},en.createElement("div",{style:{display:"flex",flexDirection:"column"}},en.createElement(jxt,{disabled:o,toolbars:u}),en.createElement(ls,{headerText:i.FriendlyName+" Tabs",button:en.createElement(re,{disabled:o,onClick:f},"Add Tab")},en.createElement("div",{style:{display:"flex",flex:1}},en.createElement(Wxt,{disabled:o,tabs:e,onRemoveTab:m,onRemoveToolbar:h,onChangeTabName:b}))))))},pIe=$xt;var Rq=class extends Io.Component{constructor(t){super(t),this.state={DashboardConfigView:"Toolbars"}}render(){let t=aRe,n=this.props.api.internalApi.getModuleService(),r=t.filter(h=>this.props.api.internalApi.getModuleService().isModuleAvailable(h)).map(h=>({Id:h,Title:n.getModuleInfoByModule(h).FriendlyName})),o=this.props.api.dashboardApi.getCustomToolbars().map(h=>({Id:h.name,Title:h.title?h.title:h.name})),a=this.props.DashboardState.Tabs.map(h=>{let b=h.Toolbars.filter(C=>this.props.api.dashboardApi.getCustomToolbars().find(v=>v.name===C)?!0:this.props.api.internalApi.getModuleService().isModuleAvailable(C));return R(g({},h),{Toolbars:b})}),i=[];this.props.DashboardState.ModuleButtons.forEach(h=>{let b=this.props.GridState.ModuleDropdownMenuItems.find(C=>C.module==h);b!=null&&b.isVisible&&i.push(h)});let l=this.props.GridState.ModuleDropdownMenuItems.map(h=>h.module),u="ab-Dashboard-Popup",d=this.props.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule("Dashboard"),c=d=="Full"||d=="ReadOnly",m=d==="ReadOnly",f=h=>h==="SettingsPanel"?this.props.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard:!1;return Io.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph},Io.createElement(Vg.Flex,{flex:1,height:"100%",flexDirection:"column"},c&&Io.createElement(Gt,{header:"Dashboard Views",style:{height:"auto",overflow:"visible"},variant:"default",borderRadius:"none",marginLeft:2,marginRight:2},Io.createElement(Vg.Flex,null,Io.createElement(pe,{mr:3,className:`${u}__Checkbox__collapsed-check`,checked:this.props.IsCollapsed,onChange:h=>this.props.onSetDashboardCollapsed(h)},"Collapse")," ",this.props.api.internalApi.getAdaptableOptions().dashboardOptions.canFloat&&Io.createElement(pe,{mr:3,className:`${u}__Checkbox__collapsed-check`,checked:this.props.IsFloating,onChange:h=>this.props.onSetDashboardFloating(h)},"Float")," ",Io.createElement(pe,{className:`${u}__Checkbox__hidden-check`,checked:this.props.IsHidden,onChange:h=>this.props.onSetDashboardHidden(h)},"Hidden"))),Io.createElement(Gt,{header:"Dashboard Contents",style:{borderBottom:"1px solid var(--ab-color-primary)"},variant:"default",borderRadius:"none",marginTop:4,marginLeft:2,marginRight:2},Io.createElement(Vg.Flex,{flexDirection:"row",padding:2,"data-name":"dashboard-configuration-select"},Io.createElement(We,{marginLeft:3,value:"Toolbars",checked:this.state.DashboardConfigView=="Toolbars",onChange:(h,b)=>this.onDashboardConfigViewChanged(b)},"Toolbars"),Io.createElement(We,{marginLeft:3,value:"Buttons",checked:this.state.DashboardConfigView=="Buttons",onChange:(h,b)=>this.onDashboardConfigViewChanged(b)},"Buttons")),Io.createElement(Vg.Box,{className:`${u}__Module-Selector`,style:{minHeight:0,flex:"1 1 0"},padding:2},this.state.DashboardConfigView=="Toolbars"&&Io.createElement(pIe,{disabled:m,availableToolbars:[...r,...o],tabs:a,onTabsChange:this.props.onDashboardSetTabs,api:this.props.api}),this.state.DashboardConfigView=="Buttons"&&Io.createElement(xS,{disabled:m,options:l,value:i,noSelectionLabel:"No selected Module Button",isOptionDisabled:f,xSelectedLabel:()=>"Visible Module Buttons:",onChange:h=>this.props.onDashboardSetModuleButtons(h)})))))}onDashboardConfigViewChanged(t){let r=t.target.value;this.setState({DashboardConfigView:r})}};function Xxt(e,t){return{DashboardState:e.Dashboard,GridState:e.Grid,IsCollapsed:e.Dashboard.IsCollapsed,IsHidden:e.Dashboard.IsHidden,IsFloating:e.Dashboard.IsFloating}}function Jxt(e){return{onDashboardSetModuleButtons:t=>e(DI(t)),onDashboardSetTabs:t=>e(xoe(t)),onSetDashboardCollapsed:t=>e(gi(t)),onSetDashboardHidden:t=>e(Vl(t)),onSetDashboardFloating:t=>e(bi(t))}}var cIe=Ye(Xxt,Jxt)(Rq);s();var Go=A(require("react"));var CIe=A(J());s();var Iq=A(require("react"));s();var Da=A(require("react")),Kd=A(J()),m_=require("react");s();var Zxt=(e,t)=>t.type==="DRAG_OVER"?R(g({},e),{dragOver:!0}):t.type==="DRAG_OUT"?R(g({},e),{dragOver:!1}):t.type==="SET_INVALID_FILE"?R(g({},e),{message:t.payload.message}):t.type==="DROP_SUCCES"?R(g({},e),{dragOver:!1,message:t.payload.message}):e,mIe=Zxt;var eRt={dragOver:!1,message:null},c_=e=>{e.preventDefault(),e.stopPropagation()},Eq=async(e,t)=>{let n=new FileReader;return new Promise((r,o)=>{n.onload=function(a){try{let l=(t||JSON.parse)(a.target.result);Promise.resolve(l).then(r)}catch(i){o("Invalid JSON")}},n.onerror=function(a){o(a)},n.readAsText(e)})},fIe=e=>{let v=e,{onDropSuccess:t,message:n,fileAccept:r=".json",helpText:o="AdapTable No Code Version",defaultText:a="Click here to select a JSON file to load or drag it here",dragOverText:i="Drop file here to start Adaptable Wizard",icon:l=Da.createElement(Ct,{name:"attach-file",size:48})}=v,u=qe(v,["onDropSuccess","message","fileAccept","helpText","defaultText","dragOverText","icon"]),[d,c]=(0,m_.useReducer)(mIe,eRt),m=S=>{c({type:"DRAG_OVER"})},f=S=>{c_(S),!(b.current!=S.target&&uc(b.current,S.target))&&c({type:"DRAG_OUT"})},h=async S=>{let I;c_(S);let P=S.nativeEvent;P&&P.dataTransfer?I=P.dataTransfer.files:I=S.target.files,f(S);let T=I[0];if(T){let O;try{O=await(e.readFile||Eq)(T,e.toJSON),c({type:"DROP_SUCCES",payload:{message:Da.createElement(Kd.Box,null,e.loadingText===void 0?"Initializing adaptable...":e.loadingText)}}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{t&&t(O,T)})})}catch(_){c({type:"SET_INVALID_FILE",payload:{message:Da.createElement(Kd.Box,null,"The file is not a valid JSON file! Please try again!")}})}}},b=(0,m_.useRef)(),C=Da.createElement("form",{onSubmit:c_},Da.createElement(re,{style:{cursor:"pointer"},variant:"outlined"},Da.createElement("div",null,d.dragOver?i:a),Da.createElement("input",{type:"file",onChange:h,accept:r,style:{opacity:0,position:"absolute",cursor:"pointer",fontSize:0,lineHeight:0,top:0,left:0,width:"100%",height:"100%",zIndex:1}}))),y=n||d.message;return Da.createElement(Kd.Flex,R(g({},u),{flexDirection:"column",className:He(e.className,"ab-FileDroppable",d.dragOver?"ab-FileDroppable--drag-over":""),alignItems:"center",justifyContent:"center",onDragEnter:m,onDragLeave:f,onDrop:h,onDragOver:c_,ref:b}),e.children,o||l?Da.createElement(Kd.Flex,{flexDirection:"column"},o?Da.createElement(Kd.Flex,{flexDirection:"column",alignItems:"center",margin:2},Da.createElement(Nt,null,Da.createElement("b",null,o))):null,l?Da.createElement(Kd.Flex,{flexDirection:"column",alignItems:"center",margin:2},l):null):null,y,C)};fIe.defaultProps={};var hIe=fIe;var f_=e=>{let t=n=>{let r=n.nativeEvent,o;r&&r.dataTransfer?o=r.dataTransfer.files:o=n.target.files;let a=o[0];Eq(a).then(i=>{e.onLoad(i)})};return Iq.createElement(re,R(g({},e),{className:"ab-StateManagement__Load-Button"}),Iq.createElement("input",{type:"file",onChange:n=>t(n),accept:".json",style:{opacity:0,position:"absolute",cursor:"pointer",fontSize:0,lineHeight:0,top:0,left:0,width:"100%",height:"100%",zIndex:1}})," ",e.children)};s();var gIe=A(require("react"));var h_=e=>gIe.createElement(re,R(g({},e),{className:"ab-StateManagement__Clear-Button",tooltip:"Clear User State"}),e.children);s();var bIe=A(require("react"));s();var g_=(e,t,n)=>{switch(e){case"Clipboard":let r=JSON.stringify(n);sn.copyToClipboard(r);break;case"Console":hj(n);break;case"JSON":let o=t+".json",a=JSON.stringify(n);sn.createDownloadedFile(a,o,"application/json");break}};var $d=e=>{let t=r=>{switch(e.type){case"allState":let o=e.api.configApi.getAllState();g_(r,"allState",o);break;case"userState":let a=e.api.configApi.getAllUserState();g_(r,"userState",a);break;case"predefinedConfig":let i=e.api.configApi.getPredefinedConfig();g_(r,"predefinedConfig",i);break}},n=[{value:"Clipboard",label:"Clipboard",onClick:()=>t("Clipboard")},{value:"Console",label:"Console",onClick:()=>t("Console")},{value:"JSON",label:"JSON",onClick:()=>t("JSON")}];return bIe.createElement(Ze,R(g({className:"ab-StateManagement__Export-Dropdown"},e),{items:n,value:void 0}))};var yIe=e=>Go.createElement(Vr,{headerText:e.moduleInfo.FriendlyName,glyphicon:e.moduleInfo.Glyph,infoLink:e.moduleInfo.HelpPage,infoLinkDisabled:!e.api.internalApi.isDocumentationLinksDisplayed()},Go.createElement(CIe.Box,null,Go.createElement(Gt,{header:"User State",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement(Nt,null,"Clear all current user state that has been applied."),Go.createElement(Nt,null,"When you restart / refresh the Application, any state that you have previously created will be lost, and the initial Predefined Config will then be re-applied."),Go.createElement(h_,{tone:"error",variant:"raised",marginTop:2,accessLevel:e.accessLevel,onClick:()=>e.api.configApi.reloadPredefinedConfig()},"Clear User State")),Go.createElement(Gt,{header:"Load Predefined Config",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement(Nt,{marginTop:3},"Load Predefined Config (from a .json file). This will cause this window to close.")," ",Go.createElement(f_,{tone:"info",variant:"raised",marginTop:2,accessLevel:e.accessLevel,onLoad:t=>e.api.configApi.reloadPredefinedConfig(t)},"Load Predefined Config")),Go.createElement(Gt,{header:"Export All Adaptable State",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement($d,{api:e.api,type:"allState",marginRight:3,style:{flex:1,maxWidth:"none"},columns:["label"]},"Select Export Destination")),Go.createElement(Gt,{header:"Export User State",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement($d,{api:e.api,type:"userState",marginRight:3,style:{flex:1,maxWidth:"none"},columns:["label"]},"Select Export Destination")),Go.createElement(Gt,{header:"Export Initial Predefined Config",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement($d,{api:e.api,type:"predefinedConfig",marginRight:3,style:{flex:1,maxWidth:"none"},columns:["label"]},"Select Export Destination"))));s();var or=A(require("react"));s();var Xd=A(require("react"));var Jd=class extends Xd.Component{constructor(n){super(n);this.loadPermittedValues=async()=>{var o;if(!((o=this.props.selectedColumn)!=null&&o.columnId))return;let n=await Ld(this.props.api.columnApi.getDistinctBulkUpdateDisplayValuesForColumn(this.props.selectedColumn.columnId,this.props.selectedGridCells),()=>this.setState({isDistinctColumnValuesLoading:!0}));this.setState({isDistinctColumnValuesLoading:!1});let r=Ee.sortArray(n,"Asc").map(a=>({label:a,value:a,onClick:()=>this.onSelectedValueChange([{DisplayValue:a}])}));this.setState({distinctColumnValues:r})};this.handleSelectedValueExpand=()=>{this.state.distinctColumnValues.length||this.loadPermittedValues()};this.state={newOrExisting:"Existing value",distinctColumnValues:[],isDistinctColumnValuesLoading:!1}}componentDidUpdate(n){(this.props.selectedColumn!==n.selectedColumn||this.props.selectedGridCells!==n.selectedGridCells)&&this.loadPermittedValues()}render(){let n="Select",r=this.props.allowNew!=null?this.props.allowNew:!0,o="ab-column-value-selector",a=He("ab-column-value-selector",this.state.isDistinctColumnValuesLoading&&`${o}--loading`),i=150,l=this.state.isDistinctColumnValuesLoading?[{label:"Loading",disabled:!0}]:this.state.distinctColumnValues,u=Xd.createElement("div",null,Xd.createElement(Ze,{className:a,columns:["label"],variant:"text",showClearButton:!0,onClear:()=>this.onSelectedValueChange([]),style:{fontSize:"small"},disabled:this.props.disabled,items:l,onExpand:this.handleSelectedValueExpand},this.props.selectedColumnValue?this.props.selectedColumnValue:n)),d=Xd.createElement(Yn,{type:this.props.selectedColumn?pn.getDescriptionForDataType(this.props.selectedColumn.dataType):"text",placeholder:this.props.selectedColumn?pn.getPlaceHolderforDataType(this.props.selectedColumn.dataType):"Enter Value",autoFocus:!0,disabled:this.props.disabled,style:{width:i},value:this.props.selectedColumnValue,onChange:c=>{this.onSelectedValueChange([{customOption:!0,DisplayValue:c.target.value}])}});return Xd.createElement(td,{style:R(g({},this.props.style),{overflow:"visible"})},this.state.newOrExisting==="Existing value"?u:d,Xd.createElement(Ze,g({variant:"raised",tone:"neutral",columns:["label"],style:{boxShadow:"none",color:"var(--ab-cmp-dashboardpanel__fill)",background:"var(--ab-color-defaultbackground)"},disabled:this.props.disabled,marginRight:1,items:[{label:"Existing value",onClick:()=>{this.setState({newOrExisting:"Existing value"}),this.onSelectedValueChange([])}},{label:"New value",onClick:()=>{this.setState({newOrExisting:"New value"}),this.onSelectedValueChange([])}}]},this.props.dropdownButtonProps),this.state.newOrExisting==="Existing value"?this.props.existingLabel:this.props.newLabel))}onSelectedValueChange(n){Ee.IsEmpty(n)&&we.IsNullOrEmpty(this.props.selectedColumnValue)||(Ee.IsEmpty(n)?this.props.onColumnValueChange(""):n[0].customOption?this.props.onColumnValueChange(n[0].DisplayValue):this.props.onColumnValueChange(n[0].DisplayValue))}};Jd.defaultProps={newLabel:"New value",existingLabel:"Existing value"};var um=A(J());var Pq=class extends or.Component{constructor(t){super(t),this.state={isShowingError:!1,errorText:"",useSelector:!1}}componentDidMount(){this.props.onBulkUpdateValueChange(""),this.props.onBulkUpdateCheckSelectedCells()}render(){let t=this.props.BulkUpdateValidationResult.Column,n=!1,r="";t&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&t.dataType=="Number"&&isNaN(Number(this.props.BulkUpdateValue))&&(n=!0,r="This column only accepts numbers");let o=Xi.GetValidationMessage(this.props.PreviewInfo,this.props.BulkUpdateValue),a=this.props.PreviewInfo&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&we.IsNotNullOrEmpty(o),i=a?or.createElement(ns,{previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:t,showPanel:a,showHeader:!0}):null;return t?or.createElement(Yl,{bodyProps:{padding:2},flex:1,glyphicon:this.props.moduleInfo.Glyph,header:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed(),variant:"primary"},t.dataType=="Date"?or.createElement(or.Fragment,null,or.createElement(Nt,{marginTop:2,marginBottom:2},"Enter a date value. Alternatively, tick the checkbox and select from an existing column value."),or.createElement(um.Box,null,or.createElement(pe,{marginLeft:2,onChange:l=>this.onUseColumnValuesSelectorChanged(l),checked:this.state.useSelector}," ","Select from existing column values")),or.createElement(um.Flex,{padding:2,flexDirection:"row",alignItems:"center"},or.createElement(um.Flex,{alignItems:"center",flexDirection:"row",flex:1,marginRight:2},this.state.useSelector?or.createElement(Jd,{selectedGridCells:this.props.SelectedGridCells,selectedColumnValue:this.props.BulkUpdateValue,selectedColumn:t,api:this.props.api,onColumnValueChange:l=>this.onColumnValueSelectedChanged(l),allowNew:!1,style:{width:"100%",maxWidth:"inherit"}}):or.createElement(Yn,{style:{width:"100%"},value:String(this.props.BulkUpdateValue),type:Wt.getDescriptionForDataType(t.dataType),placeholder:Wt.getPlaceHolderforDataType(t.dataType),onChange:l=>this.onBulkUpdateValueChange(l)})),or.createElement(re,{disabled:we.IsNullOrEmpty(this.props.BulkUpdateValue)||this.props.PreviewInfo.previewValidationSummary.validationResult=="All",onClick:()=>{this.onApplyClick()},variant:"raised",tone:"accent"},"Apply to Grid"))):or.createElement(or.Fragment,null,or.createElement(Nt,{marginTop:2,marginBottom:2},"Select an existing column value from the dropdown, or enter a new value"),or.createElement(um.Flex,{marginTop:2,flexDirection:"row",alignItems:"center"},or.createElement(um.Flex,{alignItems:"center",flexDirection:"row",flex:1,marginRight:2},or.createElement(Jd,{selectedGridCells:this.props.SelectedGridCells,selectedColumnValue:this.props.BulkUpdateValue,selectedColumn:t,api:this.props.api,onColumnValueChange:l=>this.onColumnValueSelectedChanged(l),style:{width:"100%",maxWidth:"inherit"}})),or.createElement(re,{disabled:we.IsNullOrEmpty(this.props.BulkUpdateValue)||this.props.PreviewInfo.previewValidationSummary.validationResult=="All"||n,variant:"raised",tone:"accent",marginRight:2,onClick:()=>{this.onApplyClick()}},"Apply to Grid")," ",n&&or.createElement(Cn,{headerText:"Update Error",bodyText:[r],MessageType:"Error"}),we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&this.props.PreviewInfo.previewValidationSummary.validationResult!="None"&&or.createElement(Cn,{headerText:"Validation Error",bodyText:[o],MessageType:"Error"}))),i):null}onColumnValueSelectedChanged(t){this.props.onBulkUpdateValueChange(t)}onUseColumnValuesSelectorChanged(t){this.setState({useSelector:t}),this.props.onBulkUpdateValueChange("")}onBulkUpdateValueChange(t){let n=t.target;this.props.onBulkUpdateValueChange(n.value)}onApplyClick(){this.onApplyBulkUpdate()}onApplyBulkUpdate(){this.props.onRunBulkUpdate()}};function tRt(e,t){var n;return{BulkUpdateValue:e.System.BulkUpdateValue,PreviewInfo:e.System.BulkUpdatePreviewInfo,BulkUpdateValidationResult:e.System.BulkUpdateValidationResult,SelectedGridCells:(n=e.Grid.SelectedCellInfo)==null?void 0:n.gridCells}}function nRt(e){return{onBulkUpdateValueChange:t=>e(of(t)),onBulkUpdateCheckSelectedCells:()=>e(nA()),onRunBulkUpdate:()=>e(qR(!1))}}var SIe=Ye(tRt,nRt)(Pq);s();var kS=A(require("react"));s();var ss=A(require("react"));s();var b_=A(require("react")),C_=A(J());var rRt="ab-EmptyContent",oRt=o=>{var a=o,{children:e,className:t,style:n}=a,r=qe(a,["children","className","style"]);return typeof e=="string"&&(e=b_.createElement("p",null,e)),b_.createElement(C_.Box,{style:{position:"relative"},width:"100%",flex:1,height:"100%"},b_.createElement(C_.Flex,R(g({alignItems:"center",justifyContent:"center",flexDirection:"column",padding:4,fontSize:"var(--ab-font-size-3)"},r),{className:He(rRt,t),style:g({position:"absolute",top:0,left:0,right:0,bottom:0},n)}),e))},y_=oRt;var aRt=new Map([["Operation",{field:"Operation",flex:1}],["Value",{field:"Value",flex:1}]]),iRt={style:{height:"100%",minWidth:"15rem",minHeight:"20rem"}},Gg=class extends ss.Component{render(){let t=[];return this.props.CellSummary!=null&&(t=Object.keys(this.props.CellSummary).map(n=>({Operation:n,Value:this.props.CellSummary[n]}))),ss.createElement(ss.Fragment,null,this.props.CellSummary!=null?ss.createElement(Gc,{data:t,primaryKey:"Operation"},ss.createElement(ts,{domProps:iRt,columns:aRt})):ss.createElement(y_,null,ss.createElement("p",null,"No cells are selected - please select some cells.")))}};var Dq=class extends kS.Component{componentDidMount(){this.props.onCreateCellSummary()}render(){return kS.createElement(ls,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},kS.createElement(Gg,{CellSummary:this.props.CellSummary}))}};function lRt(e,t){return{CellSummary:e.Grid.CellSummary}}function sRt(e){return{onCreateCellSummary:()=>e(NE())}}var vIe=Ye(lRt,sRt)(Dq);s();var Zd=A(require("react"));var xIe=A(J());s();var dm=A(require("react"));var v_=A(J());var S_=class extends dm.Component{render(){var o;let t=this.props.adaptableObject,n=pn.getColorByMessageType((o=t==null?void 0:t.statusType)!=null?o:"Success"),r=Bn(this.props.colItems);return r[0].Content=t?dm.createElement("details",null,dm.createElement(v_.Flex,{title:t.statusFurtherInformation?"Click to see more":"",style:{borderRadius:"var(--ab__border-radius)",fontWeight:"bold",cursor:t.statusFurtherInformation?"pointer":"auto"},className:"ab-DashboardToolbar__SystemStatus__text",marginRight:2,padding:2,color:"text-on-secondary",backgroundColor:n,fontSize:"var( --ab-font-size-2)",alignItems:"center",as:"summary"},t.statusMessage," ",t.statusFurtherInformation?"...":""),t.statusFurtherInformation?dm.createElement(v_.Box,{margin:2,style:{whiteSpace:"normal"}},t.statusFurtherInformation):null):null,r[1].Content=t.timestamp.toLocaleString(),dm.createElement(hr,{colItems:r})}};var AIe=[{Content:"Message",Size:10},{Content:"Timestamp",Size:3}],Tq=class extends Zd.Component{constructor(t){super(t)}onSystemStatusMessageInfoDeleteAll(){this.props.onSystemStatusMessageInfoDeleteAll()}render(){let t=Zd.createElement(re,{onClick:()=>this.onSystemStatusMessageInfoDeleteAll(),tooltip:"Clear All",tone:"neutral",variant:"raised",accessLevel:this.props.accessLevel,disabled:De.IsNullOrEmpty(this.props.SystemStatusMessages)},"Delete All Messages"),n=De.sortArrayWithProperty("Desc",this.props.SystemStatusMessages,"Timestamp").map((r,o)=>{let a=xt.getAppropriateAccessLevel(r,this.props.accessLevel);return Zd.createElement(S_,{adaptableObject:r,key:"smi"+o,onEdit:null,moduleInfo:this.props.moduleInfo,colItems:AIe,api:this.props.api,accessLevel:a,teamSharingActivated:this.props.teamSharingActivated,onDeleteConfirm:null,onShare:null})});return Zd.createElement(Vr,{button:t,headerText:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},De.IsNotNullOrEmpty(this.props.SystemStatusMessages)&&Zd.createElement(xIe.Box,{className:"ab-SystemStatus-Popup-List",padding:2},Zd.createElement(wi,{colItems:AIe,items:n})))}};function uRt(e,t){return{SystemStatusMessageInfos:e.System.SystemStatusMessages,SystemStatusMessages:e.System.SystemStatusMessages}}function dRt(e){return{onSystemStatusMessageInfoDeleteAll:()=>e(eA())}}var RIe=Ye(uRt,dRt)(Tq);s();var ep=A(require("react"));s();var Ho=A(require("react"));s();var EIe=A(require("react"));var IIe=e=>EIe.createElement(re,R(g({},e),{icon:"trash",variant:"text","data-name":"preview-delete"}));var E_=A(J());s();var A_=A(require("react"));s();var wq=A(require("react")),Oq=require("react");var pRt=wq.createContext({clickInfoRef:null,selected:{},getItemId:e=>e,toggleOnSimpleClick:!1,setSelected:e=>{}}),PIe=()=>{let{selected:e,setSelected:t,toggleOnSimpleClick:n,clickInfoRef:r,getItemId:o}=(0,Oq.useContext)(pRt);return(a,{index:i})=>{if(i===void 0){nt('No "index" was passed to the list item');return}let{lastClickIndexWithoutShift:l,lastShiftSelectionRange:u}=r.current,{shiftKey:d,metaKey:c,ctrlKey:m}=a;m&&(c=!0),c&&(d=!1);let f=`${o(i)}`,h;if(d){let b=l,C=i;if(h=g({},e),u){let{start:S,end:I}=u;for(;S<=I;S++)delete h[o(S)]}let[y,v]=[Math.min(b,C),Math.max(b,C)];for(r.current.lastShiftSelectionRange={start:y,end:v};y<=v;y++)h[o(y)]=!0;t(h)}else{if(r.current.lastClickIndexWithoutShift=i,!c&&!n)h={[f]:!0};else{let b=e[f];h=g({},e),b?(delete h[f],r.current.lastClickIndexWithoutShift=l):h[f]=!0}r.current.lastShiftSelectionRange=null,t(h)}}};var Fq="ab-ListGroupItem",cRt=A_.forwardRef((e,t)=>{let d=e,{className:n,active:r,factory:o="button",noZebra:a}=d,i=qe(d,["className","active","factory","noZebra"]),l=PIe();return A_.createElement(o,R(g({},i),{onClick:c=>{i.onClick&&i.onClick(c),l(c,{index:e.index})},ref:t,className:He(n,Fq,a?`${Fq}--no-zebra`:null,`${Fq}--${r?"active":"not-active"}`)}))}),Hg=cRt;s();var DIe=A(require("react"));var TIe=A(J()),mRt="ab-ListGroup",fRt=e=>{let r=e,{className:t}=r,n=qe(r,["className"]);return DIe.createElement(TIe.Box,R(g({},n),{className:He(t,mRt)}))},x_=fRt;var R_=class extends Ho.Component{componentWillUnmount(){this.props.onRender()}render(){let t=this.props.Alerts.map((r,o)=>{let a=we.IsNotNullOrEmpty(r.header),i=Wt.getColorByMessageType(r.alertDefinition.MessageType),l={color:i,fill:i},u=Wt.getGlyphByMessageType(r.alertDefinition.MessageType),d=Gs[u],c=d?Ho.createElement(d,null):null,m=Ho.createElement("div",{key:r.Uuid,style:{maxWidth:"600px",width:"100%"}},Ho.createElement(E_.Flex,{alignItems:"center",width:"100%"},Ho.createElement(E_.Text,{style:l},c),a?Ho.createElement("b",{style:{flex:1}},r.header):Ho.createElement("div",{style:{fontSize:10,flex:1,display:"inline-block"}},r.message),Ho.createElement(IIe,{onClick:()=>this.props.onClearAlert(r),tooltip:"Clear Alert",disabled:!1,style:{float:"left"},accessLevel:"Full"})),Ho.createElement("div",null,a&&Ho.createElement("span",{style:{fontSize:10}},r.message)));return Ho.createElement(Hg,{factory:"div",key:r.Uuid||o},m)});return Ho.createElement(ls,{variant:"default",bodyProps:{padding:0},headerText:"Alerts",button:Ho.createElement(re,{onClick:()=>this.props.onClearAllAlerts(this.props.Alerts),variant:"raised",tone:"neutral",accessLevel:"Full"},"Clear All")},Ho.createElement(x_,null,t))}};var I_=A(J());var Mq=class extends ep.Component{constructor(t){super(t),this.state={ShowMessage:!1,Alerts:this.props.AdaptableAlerts}}componentDidUpdate(){this.state.Alerts.length!=this.props.AdaptableAlerts.length&&this.setState({ShowMessage:!0,Alerts:this.props.AdaptableAlerts})}render(){let t=pn.getMessageTypeFromAdaptableAlerts(this.props.AdaptableAlerts),n=pn.getColorByMessageType(t),r=ep.createElement(R_,{Alerts:this.props.AdaptableAlerts,ShowPanel:!0,ShowHeader:!1,onClearAlert:this.props.onDeleteAlert,onRender:()=>this.setState({ShowMessage:!1}),onClearAllAlerts:this.props.onDeleteAllAlert}),o=this.props.AdaptableAlerts.length==0?"0 Alerts":this.props.AdaptableAlerts.length==1?"1 Alert":this.props.AdaptableAlerts.length+" Alerts",a=pn.getButtonColourForAdaptableAlerts(this.props.AdaptableAlerts,n),i=pn.getButtonTextColourForArrayandMessageType(this.props.AdaptableAlerts,t),l=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return ep.createElement(I_.Flex,{alignItems:"stretch",className:`ab-${l}__Alert__wrap`},ep.createElement(I_.Flex,{style:{borderRadius:"var(--ab__border-radius)"},className:`ab-${l}__Alert__text`,marginRight:2,padding:2,color:i,backgroundColor:a,fontSize:"var( --ab-font-size-2)",alignItems:"center"},o),this.props.AdaptableAlerts.length>0&&ep.createElement(I_.Flex,{alignItems:"center"},ep.createElement(Cn,{className:`ab-${l}__Alert__info`,headerText:"",bodyText:[r],MessageType:t,useButton:!0,showEvent:"focus",hideEvent:"blur"})))}};function hRt(e,t){return{AlertDefinitions:e.Alert.AlertDefinitions,AdaptableAlerts:e.System.AdaptableAlerts}}function gRt(e){return{onDeleteAlert:t=>e(Zv(t)),onDeleteAllAlert:t=>e($j(t))}}var wIe=Ye(hRt,gRt)(Mq);s();var us=A(require("react"));var D_=A(J());s();var P_=A(require("react"));var Ug=class extends P_.Component{render(){return P_.createElement(re,g({"data-name":"apply",tooltip:"Apply",iconSize:20,icon:"check",variant:"text"},this.props))}};var Nq=class extends us.Component{constructor(n){super(n);this.state={Disabled:!0}}componentDidMount(){if(this.props.api){let n=this.props.api.internalApi.getAdaptableInstance();n&&(this.cleanupEvent=n._on("CellsSelected",()=>{this.checkSelectedCells()}))}this.checkSelectedCells()}componentWillUnmount(){var n;(n=this.cleanupEvent)==null||n.call(this)}render(){let n=this.getStatusColour(),r=this.props.BulkUpdateValidationResult.Column,o=us.createElement(ns,{previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:r,showPanel:!0,showHeader:!1}),a=this.props.accessLevel=="ReadOnly"||!this.props.BulkUpdateValidationResult.IsValid||this.props.InPivotMode==!0,i={color:n,fill:"currentColor"},l=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return us.createElement(D_.Flex,{flexDirection:"row",className:He(a?br:"",`ab-${l}__BulkUpdate__wrap`),flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},us.createElement(D_.Flex,null,us.createElement(Jd,{selectedGridCells:this.props.SelectedGridCells,newLabel:"New",existingLabel:"Existing",dropdownButtonProps:{listMinWidth:160},className:`ab-${l}__BulkUpdate__select`,disabled:a,selectedColumnValue:this.props.BulkUpdateValue,selectedColumn:r,api:this.props.api,onColumnValueChange:u=>this.onColumnValueSelectedChanged(u)})),us.createElement(D_.Flex,null,!a&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&us.createElement(Ug,{marginLeft:2,className:`ab-${l}__BulkUpdate__apply`,onClick:()=>this.onApplyClick(),style:i,tooltip:"Apply Bulk Update",disabled:we.IsNullOrEmpty(this.props.BulkUpdateValue)||this.props.PreviewInfo!=null&&this.props.PreviewInfo.previewValidationSummary.validationResult=="All",accessLevel:this.props.accessLevel},this.props.viewType==="ToolPanel"&&"Update"),!a&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&us.createElement(Cn,{className:`ab-${l}__BulkUpdate__info`,headerText:"Preview Results",bodyText:[o],MessageType:Wt.getMessageTypeByStatusColour(n),useButton:!0,showEvent:"focus",hideEvent:"blur"})))}onColumnValueSelectedChanged(n){this.props.onBulkUpdateValueChange(n)}checkSelectedCells(){this.props.onBulkUpdateCheckSelectedCells(),we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&this.props.onBulkUpdateValueChange("")}getStatusColour(){if(we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&this.props.PreviewInfo){if(this.props.PreviewInfo.previewValidationSummary.validationResult=="All")return"var(--ab-color-error)";if(this.props.PreviewInfo.previewValidationSummary.validationResult=="Some")return"var(--ab-color-warn)"}return"var(--ab-color-success)"}onApplyClick(){this.onApplyBulkUpdate()}onApplyBulkUpdate(){this.props.onRunBulkUpdate(),this.props.onBulkUpdateValueChange("")}};function bRt(e,t){var n;return{SelectedGridCells:(n=e.Grid.SelectedCellInfo)==null?void 0:n.gridCells,BulkUpdateValue:e.System.BulkUpdateValue,BulkUpdateValidationResult:e.System.BulkUpdateValidationResult,PreviewInfo:e.System.BulkUpdatePreviewInfo,InPivotMode:e.Grid.IsGridInPivotMode}}function CRt(e){return{onBulkUpdateValueChange:t=>e(of(t)),onBulkUpdateCheckSelectedCells:()=>e(nA()),onRunBulkUpdate:()=>e(qR(!1))}}var OIe=Ye(bRt,CRt)(Nq);s();var Ta=A(require("react"));s();var w_=A(require("react"));var T_=class extends w_.Component{render(){return w_.createElement(Gg,{CellSummary:this.props.CellSummary})}};var Wg=A(J());var _q=class extends Ta.Component{constructor(n){super(n)}componentDidMount(){let n=this.props.api.internalApi.getAdaptableInstance();n&&(this.cleanupEvent=n._on("CellsSelected",()=>{this.checkSelectedCells()})),this.checkSelectedCells()}componentWillUnmount(){var n;(n=this.cleanupEvent)==null||n.call(this)}render(){let n=ba.getNames(xv).map((d,c)=>({label:d,onClick:()=>this.props.onCellSummaryOperationChange(d)})),r=this.props.api.internalApi.getAdaptableOptions().generalOptions.cellSummaryOperations,o=De.IsNullOrEmpty(r)?[]:r.map(d=>({onClick:()=>this.props.onCellSummaryOperationChange(d.operationName),label:d.operationName})),a=Ta.createElement(T_,{CellSummary:this.props.CellSummary}),i=this.props.accessLevel=="ReadOnly"||this.props.api.internalApi.isGridInPivotMode()||this.props.CellSummary==null,l=()=>{if(i)return;let d=this.getOperationValue();if(d!=null)return this.props.viewType==="ToolPanel"?Ta.createElement(Wg.Flex,{className:`ab-${u}__CellSummary__value`,style:{borderRadius:"var(--ab__border-radius)"},marginRight:2,padding:2,color:"var( --ab-color-text-on-info)",backgroundColor:"var(--ab-color-info)",fontSize:"var( --ab-font-size-2)"},d):Ta.createElement(Wg.Flex,{flex:1,marginRight:2,marginLeft:1,justifyContent:"center",className:`ab-${u}__CellSummary__value`,color:"var(--ab-color-text-on-primary)"},d)},u=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return Ta.createElement(Wg.Flex,{flexDirection:"row",className:i?br:`ab-${u}__CellSummary__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},Ta.createElement(Wg.Flex,{flex:1},Ta.createElement(Ze,{style:{fontSize:"small",width:"100%"},marginRight:2,columns:["label"],className:`ab-${u}__CellSummary__select`,items:[...n,...o],disabled:i,variant:"outlined",tone:"neutral"},this.props.CellSummaryOperation)),Ta.createElement(Wg.Flex,{alignItems:"center"},Ta.createElement(Ta.Fragment,null,l(),this.props.CellSummary!=null&&this.props.CellSummary.Count>0&&Ta.createElement(Cn,{className:"ab-ToolPanel__CellSummary__info",bodyText:[a],useButton:!0,showEvent:"focus",hideEvent:"blur"}))))}checkSelectedCells(){this.props.onCreateCellSummary()}getOperationValue(){switch(this.props.CellSummaryOperation){case"Sum":return this.props.CellSummary.Sum;case"Average":return this.props.CellSummary.Average;case"Median":return this.props.CellSummary.Median;case"Mode":return this.props.CellSummary.Mode;case"Max":return this.props.CellSummary.Max;case"Min":return this.props.CellSummary.Min;case"Distinct":return this.props.CellSummary.Distinct;case"Count":return this.props.CellSummary.Count;default:return this.props.CellSummary[this.props.CellSummaryOperation]}}};function yRt(e,t){return{SelectedCellInfo:e.Grid.SelectedCellInfo,CellSummaryOperation:e.System.CellSummaryOperation,CellSummary:e.Grid.CellSummary}}function SRt(e){return{onCellSummaryOperationChange:t=>e(rA(t)),onCreateCellSummary:()=>e(NE())}}var FIe=Ye(yRt,SRt)(_q);s();var oi=A(require("react"));s();var iu=A(require("react"));var MIe=A(J()),vRt=e=>{e.stopPropagation()},O_=class extends iu.Component{render(){let t=[{Content:"Column Filter",Size:9},{Content:"",Size:3}],n=[];return this.props.columnFilters.forEach(r=>{n.push(this.createRow(t,r))}),iu.createElement("div",null,iu.createElement(Dd,{colItems:t}),iu.createElement("div",null,n))}createRow(t,n){let r=Mt.cloneObject(t);return r[0].Content=this.props.api.filterApi.columnFilterToString(n),r[1].Content=iu.createElement(MIe.Flex,{justifyContent:"center",margin:0,padding:0,onClick:vRt},iu.createElement(ti,{onClick:()=>this.props.onClear(n),tooltip:"Clear Filter",disabled:n==null,accessLevel:this.props.accessLevel})),iu.createElement(hr,{key:n.ColumnId,colItems:r})}};var F_=A(J());var Lq=class extends oi.Component{constructor(t){super(t)}render(){let t=oi.createElement(O_,{columns:this.props.Columns,columnFilters:this.props.ColumnFilters,api:this.props.api,accessLevel:this.props.accessLevel,onClear:r=>this.onClearColumnFilter(r)}),n=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return oi.createElement(F_.Flex,{flexDirection:"row",className:`ab-${n}__Filter__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},oi.createElement(F_.Flex,null,Ee.IsNotNullOrEmpty(this.props.ColumnFilters)&&oi.createElement(oi.Fragment,null,oi.createElement(Cn,{className:`ab-${n}__Filter__info`,headerText:"",bodyText:[t],useButton:!0,showEvent:"focus",hideEvent:"blur",popoverMinWidth:400}),oi.createElement(ti,{marginLeft:1,marginBottom:0,marginRight:1,className:`ab-${n}__Filter__clear`,onClick:()=>this.onClearFilters(),tooltip:"Clear Filters",disabled:this.props.ColumnFilters.length==0,showText:this.props.viewType==="ToolPanel"},this.props.viewType==="ToolPanel"&&"Clear"))),oi.createElement(F_.Flex,{alignItems:"center"},this.props.api.filterApi.isQuickFilterAvailable()&&oi.createElement(pe,{className:`ab-${n}__Filter__active-check`,disabled:this.props.accessLevel==="ReadOnly"||this.props.api.internalApi.isGridInPivotMode(),marginTop:0,marginBottom:0,fontSize:2,padding:1,checked:this.props.IsQuickFilterVisible,onChange:r=>{r?this.props.onShowQuickFilterBar():this.props.onHideQuickFilterBar()}},"Show Quick Filter")))}onClearFilters(){this.props.api.filterApi.clearAllColumnFilter()}onClearColumnFilter(t){this.props.api.filterApi.clearColumnFilterByColumn(t.ColumnId)}};function ARt(e){return{ColumnFilters:e.Filter.ColumnFilters,IsQuickFilterVisible:e.Filter.IsQuickFilterVisible}}function xRt(e){return{onHideQuickFilterBar:()=>e(eh()),onShowQuickFilterBar:()=>e(Zf())}}var NIe=Ye(ARt,xRt)(Lq);s();var pm=A(require("react"));var _Ie=A(J()),kq=class extends pm.Component{constructor(t){super(t)}render(){let t=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return pm.createElement(_Ie.Flex,{flexDirection:"row",className:`ab-${t}__Dashboard__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"}," ",pm.createElement(pe,{className:`ab-${t}__Dashboard__collapsed-check`,marginTop:0,fontSize:2,padding:1,checked:this.props.IsCollapsed,onChange:n=>this.props.onSetDashboardCollapsed(n)},"Collapse"),"",this.props.api.internalApi.getAdaptableOptions().dashboardOptions.canFloat&&pm.createElement(pe,{className:`ab-${t}__Dashboard__collapsed-check`,marginTop:0,fontSize:2,padding:1,checked:this.props.IsFloating,onChange:n=>this.props.onSetDashboardFloating(n)},"Float")," ",pm.createElement(pe,{className:`ab-${t}__Dashboard__hidden-check`,marginTop:0,fontSize:2,padding:1,checked:this.props.IsHidden,onChange:n=>this.props.onSetDashboardHidden(n)},"Hidden"))}};function RRt(e,t){return{IsCollapsed:e.Dashboard.IsCollapsed,IsHidden:e.Dashboard.IsHidden,IsFloating:e.Dashboard.IsFloating}}function ERt(e){return{onSetDashboardCollapsed:t=>e(gi(t)),onSetDashboardHidden:t=>e(Vl(t)),onSetDashboardFloating:t=>e(bi(t))}}var LIe=Ye(RRt,ERt)(kq);s();var wa=A(require("react"));var BS=A(J());s();var N_=A(require("react"));var M_=class extends N_.Component{render(){return N_.createElement(re,g({"data-name":"export",tooltip:"Export",iconSize:20,icon:"export-data",variant:"text"},this.props))}};s();var L_=A(require("react"));var __=class extends L_.Component{render(){return L_.createElement(re,g({"data-name":"schedule",tooltip:"Schedule",iconSize:20,icon:"schedule",variant:"text"},this.props))}};var Bq="Select Report",kIe="Select Destination",Vq=class extends wa.Component{render(){let t=this.props.api.exportApi.getReportByName(this.props.CurrentReport),n=we.IsNullOrEmpty(this.props.CurrentReport)?Bq:this.props.CurrentReport,r=this.getAllReportNames(),o=r.map(f=>({label:f,value:f,onClick:()=>this.onSelectedReportChanged(f)}));t&&!r.includes(t.Name)&&(t=void 0,n=Bq);let a=this.props.api.exportApi.getDestinationByName(this.props.CurrentDestination),i=we.IsNullOrEmpty(this.props.CurrentDestination)?kIe:this.props.CurrentDestination,l=[...this.props.api.exportApi.getAvailableExportDestinations().map(f=>({label:f,onClick:()=>this.onSelectedDestinationChanged(f)})),...this.props.api.exportApi.getAllCustomDestination().map(f=>({label:f.name,onClick:()=>this.onSelectedDestinationChanged(f.name)}))];(t==null?void 0:t.Name)===Mo&&l.forEach(f=>f.disabled=f.label!=="Excel"),a&&!l.filter(f=>!f.disabled).map(f=>f.label).includes(this.props.CurrentDestination)&&(a=void 0,i=kIe);let u=xt.getAppropriateAccessLevel(t,this.props.accessLevel),d="Are you sure you want to delete '";t!=null&&(d=d+t.Name+"'?");let c=()=>{this.props.onApplyExport(t,this.isCustomDestination(a)?a.name:a)},m=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return wa.createElement(BS.Flex,{style:{gap:5},flexDirection:"row",className:`ab-${m}__Export__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},wa.createElement(BS.Flex,{flex:1},wa.createElement(Ze,{disabled:r.length==0,style:{width:"100%",fontSize:"small"},items:o,columns:["label"],className:`ab-${m}__Export__select`,onClear:()=>this.onSelectedReportChanged(null),showClearButton:!!t,variant:"outlined",marginRight:2},n)),wa.createElement(BS.Flex,{flex:1},wa.createElement(Ze,{disabled:n===Bq,style:{width:"100%",fontSize:"small"},items:l,columns:["label"],className:`ab-${m}__Export__export`,onClear:()=>this.onSelectedDestinationChanged(null),showClearButton:!!a,variant:"outlined",marginRight:2},i)),wa.createElement(BS.Flex,{className:He(u=="ReadOnly"?br:"",`ab-${m}__Export__controls`),style:{width:"100%"}},wa.createElement(M_,{onClick:()=>c(),tooltip:"Export Report",className:`ab-${m}__Export__export`,disabled:t==null||a==null}),wa.createElement(Od,{onClick:()=>this.props.onEditReport(this.props.moduleInfo.Popup),tooltip:"Edit Report",className:`ab-${m}__Export__edit`,disabled:t==null||t.ReportColumnScope=="CustomColumns",accessLevel:u}),wa.createElement(Td,{variant:"text",className:`ab-${m}__Export__new`,tone:"neutral",children:null,onClick:()=>this.props.onNewReport(this.props.moduleInfo.Popup),tooltip:"Create New Report",accessLevel:u}),wa.createElement(Fd,{tooltip:"Delete Report",className:`ab-${m}__Export__delete`,disabled:t==null,ConfirmAction:QE(t),ConfirmationMsg:d,ConfirmationTitle:"Delete Report",accessLevel:u}),this.props.api.internalApi.getEntitlementService().isModuleFullEntitlement("Schedule")&&wa.createElement(__,{marginLeft:1,className:`ab-${m}__Export__schedule`,onClick:()=>this.onNewReportSchedule(),tooltip:"Schedule",disabled:t==null,accessLevel:this.props.accessLevel})))}onSelectedReportChanged(t){this.props.onSelectReport(t)}onSelectedDestinationChanged(t){this.props.onSelectDestination(t)}getAllReportNames(){return[...this.props.api.exportApi.getAvailableSystemReports(),...this.props.Reports.map(t=>t.Name)]}isCustomDestination(t){return!!(t!=null&&t.name)}onNewReportSchedule(){let t=it.CreateReportSchedule(this.props.CurrentReport);this.props.onNewReportSchedule(t)}};function IRt(e){return{CurrentReport:e.Export.CurrentReport,CurrentDestination:e.Export.CurrentDestination,Reports:e.Export.Reports}}function PRt(e){return{onApplyExport:(t,n)=>e(jf(t,n)),onSelectReport:t=>e(qE(t)),onSelectDestination:t=>e(jE(t)),onNewReport:t=>e(Rn(kr,t,{action:"New",source:"Toolbar"})),onEditReport:t=>e(Rn(kr,t,{action:"Edit",source:"Toolbar"})),onNewReportSchedule:t=>e(Rn(Ol,"SchedulePopup",{action:"New",source:"Toolbar",value:t}))}}var BIe=Ye(IRt,PRt)(Vq);s();var Li=A(require("react"));var B_=A(J());s();var k_=A(require("react"));var qg=class extends k_.Component{render(){return k_.createElement(re,g({"data-name":"save",iconSize:20,icon:"save",tooltip:"Save",variant:"text"},this.props))}};var Gq=class extends Li.Component{render(){let t=this.props.Layouts.find(u=>u.Name==this.props.CurrentLayoutName||u.Uuid==this.props.CurrentLayoutName),n=this.props.accessLevel,r=this.props.accessLevel,o=xt.getAppropriateAccessLevel(t,this.props.accessLevel),a=!this.props.api.layoutApi.shouldAutoSaveLayout(this.props.CurrentDraftLayout),i=this.props.Layouts.map((u,d)=>R(g({},u),{label:u.Name,value:u.Name,onClick:()=>this.props.onSelectLayout(u.Name)})),l=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return Li.createElement(B_.Flex,{flexDirection:"row",className:`ab-${l}__Layout__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},Li.createElement(B_.Flex,{flex:1},Li.createElement(Ze,{marginRight:2,columns:["label"],style:{width:"100%",fontSize:"small"},className:`ab-${l}__Layout__select`,items:i,disabled:i.length==0},t?t.Name:null)),Li.createElement(B_.Flex,{flexDirection:"row",className:He(this.props.accessLevel=="ReadOnly"?br:"",`ab-${l}__Layout__wrap`)},a&&Li.createElement(qg,{className:`ab-${l}__Layout__save`,onClick:()=>this.onSaveLayout(),tooltip:"Save Changes to Current Layout",disabled:!this.props.CanSave,accessLevel:o}),Li.createElement(Od,{onClick:()=>this.props.api.layoutApi.showLayoutEditor(t.Name),tooltip:"Edit Layout",className:`ab-${l}__Layout__edit`,accessLevel:o}),Li.createElement(CN,{onClick:()=>this.props.api.layoutApi.showLayoutEditor(t.Name,"Clone"),tooltip:"Clone Layout",className:`ab-${l}__Layout__clone`,tone:"neutral",variant:"text",children:null,accessLevel:n}),Li.createElement(Td,{children:null,tone:"neutral",variant:"text",className:`ab-${l}__Layout__new`,onClick:()=>this.props.api.layoutApi.showLayoutEditor(null,"New"),tooltip:"Create a new Layout",accessLevel:r}),Li.createElement(Fd,{tooltip:"Delete Layout",disabled:this.props.Layouts.length<=1,className:`ab-${l}__Layout__delete`,ConfirmAction:qf(t),ConfirmationMsg:"Are you sure you want to delete '"+this.props.CurrentLayoutName+"'?",ConfirmationTitle:"Delete Layout",accessLevel:o})))}onSaveLayout(){let t=this.props.CurrentDraftLayout;t&&this.props.onSaveLayout(t)}};function DRt(e,t){let n=e.Layout.CurrentLayout,r=e.Layout.Layouts||[],o=r.find(i=>i.Name===n),a=t.api;return{CurrentLayoutName:n,CurrentDraftLayout:e.Grid.CurrentLayout||o,Layouts:r,CanSave:e.Grid.CurrentLayout&&!a.layoutApi.areLayoutsEqual(o,e.Grid.CurrentLayout)}}function TRt(e){return{onSelectLayout:t=>e(kl(t)),onSaveLayout:t=>{e(ku(t)),e($p(null))}}}var VIe=Ye(DRt,TRt)(Gq);s();var _n=A(require("react"));var W_=A(J());s();var V_=A(require("react"));var VS=class extends V_.Component{render(){return V_.createElement(re,g({"data-name":"expand",tooltip:"Expand",iconSize:20,icon:"arrowexpand",variant:"text"},this.props))}};s();var G_=A(require("react"));var ml=class extends G_.Component{render(){return G_.createElement(re,g({"data-name":"play",tooltip:Qe.IsNullOrEmpty(this.props.tooltip)?"Play":this.props.tooltip,iconSize:20,icon:"play",variant:"text"},this.props))}};s();var U_=A(require("react"));var H_=class extends U_.Component{render(){return U_.createElement(re,g({"data-name":"invalid",tooltip:"Invalid",iconSize:20,icon:"invalid"},this.props))}};var Hq=class extends _n.Component{constructor(t){super(t),this.state={isAdaptableReady:!1,expression:this.props.CurrentQuery||""}}componentDidMount(){this.props.api.eventApi.on("AdaptableReady",()=>{this.setState({isAdaptableReady:!0})})}componentDidUpdate(t){t.CurrentQuery!==this.props.CurrentQuery&&this.setState({expression:this.props.CurrentQuery})}render(){if(this.state.isAdaptableReady===!1)return null;let t=this.state.expression==""||this.props.api.internalApi.getQueryLanguageService().validateBoolean(this.state.expression,Gn).isValid,n=this.props.NamedQueries.find(f=>f.BooleanExpression==this.state.expression)!=null,o=[...Ee.sortArrayWithProperty("Asc",this.props.NamedQueries,"Name").map(f=>({label:f.Name,icon:f.BooleanExpression===this.props.CurrentQuery?_n.createElement(Ct,{name:"check"}):null,onClick:()=>this.runQuery(f.BooleanExpression)})),...Ee.IsNotNullOrEmpty(this.props.CachedQueries)?[{separator:!0}]:[],...Ee.IsNotNullOrEmpty(this.props.CachedQueries)?this.props.CachedQueries.slice(-5).reverse().map(f=>({label:`Query at ${f.time.toLocaleTimeString("en-US")}`,icon:_n.createElement(Ct,{name:"history"}),onClick:()=>this.props.onRunQuery(f.expression)})):[]],a=this.props.api.columnApi.getColumns().map(f=>({label:f.friendlyName,onClick:()=>this.setState({expression:this.state.expression+`[${f.columnId}]`})})),i=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel",l=f=>{f.key==="Enter"&&this.runQuery()},u=()=>this.props.viewType==="Toolbar"?_n.createElement(td,{marginRight:1,width:600},_n.createElement(VS,{variant:"text",tone:"neutral",onClick:()=>this.props.onExpand(this.state.expression),tooltip:"Expand",marginLeft:1}),_n.createElement(Ke,{type:"text",placeholder:"Query",spellCheck:!1,value:this.state.expression,onChange:f=>this.setState({expression:f.target.value}),style:{fontFamily:"monospace",fontSize:12}}),t?_n.createElement(ml,{onClick:()=>this.runQuery(),tooltip:"",accessLevel:"Full",variant:"text",tone:"neutral",disabled:this.state.expression==""||this.state.expression==this.props.CurrentQuery,marginRight:1}):_n.createElement(H_,{variant:"text",tone:"neutral",tooltip:"Invalid Query",marginRight:1})," ",this.props.CurrentQuery!==""&&_n.createElement(ti,{onClick:()=>this.clearQuery(),tooltip:"Clear Query",accessLevel:"Full"})):_n.createElement(Ke,{type:"text",placeholder:"Query",spellCheck:!1,value:this.state.expression,onChange:f=>this.setState({expression:f.target.value}),style:{width:"100%"}}),d=this.props.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(Gn),c=_n.createElement(qg,{onClick:()=>this.saveQuery(),tooltip:"Save as New Query",accessLevel:d,disabled:!t||n||this.state.expression=="",variant:"text",tone:"neutral",marginRight:1}),m=()=>this.props.viewType==="Toolbar"?_n.createElement(_n.Fragment,null,c,_n.createElement(Ze,{variant:"text",items:a,marginRight:1,tooltip:"Pick Columns"},_n.createElement(Ct,{name:"list"})),_n.createElement(Ze,{disabled:Ee.IsNullOrEmpty(o),variant:"text",items:o,marginRight:1,tooltip:"Load Query",icon:"folder-open"})," "):_n.createElement(_n.Fragment,null,c,_n.createElement(VS,{variant:"text",tone:"neutral",onClick:()=>this.props.onExpand(this.state.expression),tooltip:"Expand",marginLeft:1}),_n.createElement(ti,{onClick:()=>this.clearQuery(),tooltip:"Clear Query",accessLevel:"Full",disabled:this.state.expression==""}),_n.createElement(ml,{onClick:()=>this.runQuery(),tooltip:"Run Query",accessLevel:"Full",variant:"text",tone:"neutral",disabled:!t||this.state.expression==""||this.state.expression==this.props.CurrentQuery,marginRight:1}),_n.createElement(Ze,{variant:"text",disabled:Ee.IsNullOrEmpty(o),items:o,marginRight:1,tooltip:"Load Query",icon:"folder-open"}));return _n.createElement(W_.Flex,{onKeyDown:l,flexDirection:"row",className:`ab-${i}__Query__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},_n.createElement(W_.Flex,null,u()),_n.createElement(W_.Flex,null,m()))}clearQuery(){this.props.onRunQuery("")}saveQuery(){this.props.onShowNamedQueries(this.state.expression,this.props.moduleInfo.Popup)}onSelectedSearchChanged(t){this.props.onRunQuery(t)}runQuery(t=this.state.expression){if(Qe.IsNullOrEmpty(t)&&Qe.IsNotNullOrEmpty(this.props.CurrentQuery)){this.props.onRunQuery("");return}if(!!this.props.api.internalApi.getQueryLanguageService().validateBoolean(t,Gn).isValid){if(Qe.IsNotNullOrEmpty(this.state.expression)){let n={expression:this.state.expression,time:new Date};n&&this.props.onAddCachedQuery(n)}this.props.onRunQuery(t)}}};function wRt(e){return{CurrentQuery:e.Query.CurrentQuery,NamedQueries:e.Query.NamedQueries,CachedQueries:e.System.CachedQueries}}function ORt(e){return{onAddCachedQuery:t=>e(rY(t)),onRunQuery:t=>e(Zp(t)),onShowNamedQueries:(t,n)=>e(Rn(Gn,n,{action:"New",source:"Toolbar",value:t})),onExpand:t=>e(sA({Id:SW,Title:"Current Query",Icon:"query",PopupProps:{value:t}}))}}var GIe=Ye(wRt,ORt)(Hq);s();var HIe=A(require("react")),FRt=e=>{let[t,n]=Cg(e),r=e.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return HIe.createElement(Ii,{type:"text",placeholder:e.api.internalApi.getAdaptableOptions().searchOptions.quickSearchPlaceholder,className:`ab-${r}__QuickSearch__text`,value:t,OnTextChange:n,style:{height:"100%"},inputStyle:{width:"7rem"}})};function MRt(e){return{QuickSearchText:e.QuickSearch.QuickSearchText}}function NRt(e){return{onRunQuickSearch:t=>e(Ts(t))}}var UIe=Ye(MRt,NRt)(FRt);s();var fl=A(require("react"));var q_=A(J());var Uq=class extends fl.Component{constructor(n){super(n);this.state={SelectedColumnId:""}}componentDidMount(){if(this.props.api){let n=this.props.api.internalApi.getAdaptableInstance();n&&(this.cleanupEvent=n._on("CellsSelected",()=>{this.checkSelectedCells()}))}this.checkSelectedCells()}componentWillUnmount(){var n;(n=this.cleanupEvent)==null||n.call(this)}render(){var c,m,f;let n=this.getStatusColour(),r=we.IsNotNullOrEmpty(this.state.SelectedColumnId)?this.props.api.columnApi.getColumnFromId(this.state.SelectedColumnId):null,o=fl.createElement(ns,{previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:r,showPanel:!0,showHeader:!1}),a=ba.getNames(Cl).map((h,b)=>({onClick:()=>this.props.onSmartEditOperationChange(h),label:h})),i=(f=(m=(c=this.props.api.internalApi.getAdaptableOptions())==null?void 0:c.editOptions)==null?void 0:m.smartEdit)==null?void 0:f.customOperations;i!=null&&i.length&&a.push(...i.map(h=>({onClick:()=>this.props.onSmartEditOperationChange(h),label:h.Name})));let l={color:n,fill:"currentColor"},u=this.props.accessLevel=="ReadOnly"||!this.props.IsValidSelection||this.props.InPivotMode==!0,d=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return fl.createElement(q_.Flex,{flexDirection:"row",className:`ab-${d}__SmartEdit__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},fl.createElement(q_.Flex,null,fl.createElement(Ze,{className:`ab-${d}__SmartEdit__select`,marginRight:2,items:a,style:{fontSize:"small"},columns:["label"],disabled:u,variant:"outlined"},typeof this.props.SmartEditOperation=="object"?this.props.SmartEditOperation.Name:this.props.SmartEditOperation),fl.createElement(Ke,{style:{width:"5rem"},className:`ab-${d}__SmartEdit__select-value`,value:this.props.SmartEditValue.toString(),type:"number",placeholder:"Enter a Number",step:"any",onChange:h=>this.onSmartEditValueChange(h),disabled:u,marginRight:2})),fl.createElement(q_.Flex,null,!u&&fl.createElement(Ug,{onClick:()=>this.onApplyClick(),style:l,className:`ab-${d}__SmartEdit__apply`,tooltip:"Apply Smart Edit",disabled:we.IsNullOrEmpty(`${this.props.SmartEditValue}`)||this.props.PreviewInfo!=null&&this.props.PreviewInfo.previewValidationSummary.validationResult=="All",accessLevel:this.props.accessLevel},this.props.viewType==="ToolPanel"&&"Apply Smart Edit"),!u&&fl.createElement(Cn,{headerText:"Preview Results",className:`ab-${d}__SmartEdit__info`,bodyText:[o],MessageType:Wt.getMessageTypeByStatusColour(n),useButton:!0,showEvent:"focus",hideEvent:"blur"})))}checkSelectedCells(){this.props.onSmartEditCheckSelectedCells()}onSmartEditValueChange(n){let r=n.target;this.props.onSmartEditValueChange(Number(r.value))}getStatusColour(){if(we.IsNotNullOrEmpty(`${this.props.SmartEditValue}`)&&this.props.PreviewInfo){if(this.props.PreviewInfo.previewValidationSummary.validationResult=="All")return"var(--ab-color-error)";if(this.props.PreviewInfo.previewValidationSummary.validationResult=="Some")return"var(--ab-color-warn)"}return"var(--ab-color-success)"}onApplyClick(){this.onApplySmartEdit()}onApplySmartEdit(){this.props.onRunSmartEdit()}};function _Rt(e,t){return{SmartEditValue:e.System.SmartEditValue,SmartEditOperation:e.System.SmartEditOperation,IsValidSelection:e.System.IsValidSmartEditSelection,PreviewInfo:e.System.SmartEditPreviewInfo,InPivotMode:e.Grid.IsGridInPivotMode}}function LRt(e){return{onSmartEditValueChange:t=>e(nf(t)),onSmartEditOperationChange:t=>e(rf(t)),onSmartEditCheckSelectedCells:()=>e(tA()),onRunSmartEdit:()=>e(gE(!1))}}var WIe=Ye(_Rt,LRt)(Uq);s();var GS=A(require("react"));var Wq=A(J());var qq=class extends GS.Component{constructor(t){super(t)}render(){var i;let t=this.props.api.systemStatusApi.getCurrentSystemStatusMessageInfo(),n=pn.getColorByMessageType((i=t==null?void 0:t.statusType)!=null?i:"Success"),r=t?pn.getButtonTextColourForMessageType(t.statusType):"",o=t==null?void 0:t.statusMessage,a=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return GS.createElement(Wq.Flex,{flexDirection:"row",className:`ab-${a}__SystemStatus__wrap`},GS.createElement(Wq.Flex,{style:{borderRadius:"var(--ab__border-radius)"},className:`ab-${a}__SystemStatus__text`,marginRight:2,padding:2,color:r,backgroundColor:o?n:"",fontSize:"var( --ab-font-size-2)",alignItems:"center","data-name":"system-status-message"},o||"0 Messages"))}};function kRt(e){return{SystemStatusMessageInfos:e.System.SystemStatusMessages}}function BRt(e){return{}}var qIe=Ye(kRt,BRt)(qq);s();var HS=A(require("react"));var zq=class extends HS.Component{render(){let t=[...this.props.SystemThemes,...this.props.UserThemes],n=t.map((l,u)=>(typeof l=="string"&&(l={Name:l,Description:l}),{label:l.Description,onClick:()=>this.onSelectTheme(l)})),r=t.filter(l=>l.Name===this.props.CurrentTheme)[0],o=r?r.Description:this.props.CurrentTheme,a=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel",i=this.props.viewType==="Toolbar"?{maxWidth:"25rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"small"}:{minWidth:"100%",fontSize:"small"};return HS.createElement("div",{className:He(this.props.accessLevel=="ReadOnly"?br:"",`ab-${a}__Theme__wrap`)},HS.createElement(Ze,{className:`ab-${a}__Theme__select`,style:i,items:n,columns:["label"],accessLevel:this.props.accessLevel},o))}onSelectTheme(t){this.props.onSelectTheme(t.Name)}};function VRt(e,t){return{SystemThemes:e.Theme.SystemThemes,CurrentTheme:e.Theme.CurrentTheme,UserThemes:e.Theme.UserThemes}}function GRt(e){return{onSelectTheme:t=>e(th(t))}}var zIe=Ye(VRt,GRt)(zq);s();var US=A(require("react"));var QIe=A(J());var Qq=class extends US.Component{constructor(t){super(t),this.state={CurrentDataSource:we.IsNullOrEmpty(this.props.CurrentDataSourceName)?null:this.props.DataSources.find(n=>n.Name==this.props.CurrentDataSourceName)}}render(){let t="Select Data Source",n=this.state.CurrentDataSource==null?t:this.state.CurrentDataSource.Name,r=this.props.DataSources.map(a=>({value:a.Name,label:a.Name,onClick:()=>this.onSelectedDataSourceChanged(a.Name)})),o=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return US.createElement(QIe.Flex,{flexDirection:"row",className:`ab-${o}__DataSource__wrap`},US.createElement(Ze,{marginRight:2,columns:["label"],style:{minWidth:160,fontSize:"small"},className:`ab-${o}__DataSource__select`,items:r,variant:"outlined",tone:"neutral"},n))}onSelectedDataSourceChanged(t){if(we.IsNullOrEmpty(t))this.setState({CurrentDataSource:null});else{let n=this.props.DataSources.find(r=>r.Name==t);this.setState({CurrentDataSource:n}),this.props.onSelectDataSource(n)}}};function HRt(e){return{CurrentDataSourceName:e.DataSource.CurrentDataSource,DataSources:e.DataSource.DataSources}}function URt(e){return{onSelectDataSource:t=>t.Form?e(uA({Id:"data-source-form",Form:t.Form})):e(PC(t))}}var jIe=Ye(HRt,URt)(Qq);s();var Wn=A(require("react"));s();var z_=A(require("react"));var KIe=require("@ag-grid-community/all-modules"),cm=require("react");var $Ie=e=>{let{changeHistoryLog:t,adaptableContainerId:n,agGridContainerId:r,onUndoChange:o}=e,a=$e(),[i,l]=(0,cm.useState)(null),u=(0,cm.useRef)(null);u.current=i;let d=a.api.internalApi.getEntitlementService().isModuleFullEntitlement(wl),c=Ga(t,t);return(0,cm.useEffect)(()=>((async()=>{let f=qRt(a,t),h=WRt(a,f,n,r,d,o),C=await Object.getPrototypeOf(a).constructor.init(h);l(C)})(),()=>{var f;(f=u.current)==null||f.internalApi.getAdaptableInstance().destroy({unmount:!0,destroyApi:!0})}),[]),(0,cm.useEffect)(()=>{let m=u.current;if(!m)return;let f=Object.keys(t).filter(S=>{let I=c[S];return I?t[S].changedAt!==I.changedAt:!0}),h=Object.keys(c).filter(S=>{let I=t[S];return I?c[S].changedAt!==I.changedAt:!0}),b=YIe(t,f),C=YIe(c,h),y=Yq(b,a),v=Yq(C,a);m.internalApi.getAdaptableOptions().gridOptions.api.applyTransactionAsync({add:y,remove:v})},[t]),z_.createElement(z_.Fragment,null)},WRt=(e,t,n,r,o,a)=>{var c,m;let i=e.adaptableOptions,l=e.api.themeApi.getCurrentTheme(),u=f=>{var b;let h=(b=f==null?void 0:f.data)==null?void 0:b.changeKey;h&&a(h)},d={gridOptions:t,modules:[...KIe.AllCommunityModules],primaryKey:"primaryKey",licenseKey:i.licenseKey,userName:`${i.userName}`,adaptableId:`${i.adaptableId}::DataChangeHistory`,containerOptions:{adaptableContainer:n,agGridContainer:r},entitlementOptions:{defaultAccessLevel:"Hidden"},layoutOptions:{createDefaultLayout:!1},userInterfaceOptions:{actionColumns:[{columnId:"undoActionColumn",friendlyName:" ",includeGroupedRows:!0,actionColumnButton:{label:(f,h)=>h.adaptableApi.gridApi.isGroupRowNode(h.rowNode)?"Undo Group":"Undo Change",onClick:(f,h)=>{var C;let b=h.rowNode;if(h.adaptableApi.gridApi.isGroupRowNode(b)){let y=(C=h.rowNode)==null?void 0:C.childrenAfterFilter;y&&y.forEach(v=>u(v))}else u(b)},buttonStyle:{variant:"raised",tone:"accent"}}}]},predefinedConfig:{Layout:{Revision:Date.now(),CurrentLayout:"DataChangeHistoryLayout",Layouts:[{Name:"DataChangeHistoryLayout",Columns:["changeInfo.primaryKeyValue","changedColumnLabel","changeInfo.oldValue","changeInfo.newValue","changeInfo.changedAt","changeTriggerLabel","undoActionColumn"],ColumnSorts:[{ColumnId:"changeInfo.changedAt",SortOrder:"Desc"}],ColumnWidthMap:{undoActionColumn:110},PinnedColumnsMap:{undoActionColumn:"right"}}]},FormatColumn:{Revision:Date.now(),FormatColumns:[{Scope:{ColumnIds:["changeInfo.changedAt"]},DisplayFormat:{Formatter:"DateFormatter",Options:{Pattern:`${(m=(c=i.userInterfaceOptions)==null?void 0:c.dateInputOptions)==null?void 0:m.dateFormat} HH:mm:ss`}}}]},Theme:{Revision:Date.now(),CurrentTheme:l}}};if(!o){let f=d.predefinedConfig.Layout.Layouts[0].Columns;f.includes("undoActionColumn")&&(d.predefinedConfig.Layout.Layouts[0].Columns=f.filter(h=>h!=="undoActionColumn"))}return d},qRt=(e,t)=>{var o,a;let n=(a=(o=e.api.columnApi.getPrimaryKeyColumn())==null?void 0:o.friendlyName)!=null?a:"Row ID";return{suppressLoadingOverlay:!0,overlayNoRowsTemplate:'<div style="font-size: var(--ab-font-size-2);color: var(--ab-color-text-on-primary);">No Data Changes</div>',defaultColDef:{floatingFilter:!0,filter:!0,sortable:!0,resizable:!0,enableRowGroup:!0,editable:!1,enablePivot:!1,enableValue:!1,lockPinned:!0,suppressAutoSize:!0,suppressMenu:!0,menuTabs:["generalMenuTab","filterMenuTab"]},autoGroupColumnDef:{sortable:!0,suppressMenu:!1},columnDefs:[{field:"primaryKey",type:["abColDefString"],hide:!0},{headerName:`Row (${n})`,field:"changeInfo.primaryKeyValue",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Changed Column",field:"changedColumnLabel",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Previous Value",field:"changeInfo.oldValue",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"New Value",field:"changeInfo.newValue",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Changed at",field:"changeInfo.changedAt",type:["abColDefDate"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Source",field:"changeTriggerLabel",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:2,initialFlex:2}],rowData:Yq(t,e),enableRangeSelection:!0,suppressColumnVirtualisation:!1,sideBar:!1,suppressMenuHide:!0,rowSelection:"multiple",skipHeaderOnAutoSize:!0}},Yq=(e={},t)=>Object.entries(e).map(([n,r])=>({primaryKey:`${n}::${r.changedAt}`,changeKey:n,changeTriggerLabel:QRt(r),changedColumnLabel:zRt(r.column.columnId,t),changeInfo:r})),jq=new Map,zRt=(e,t)=>{var n,r;return jq.has(e)||jq.set(e,(r=(n=t.api.columnApi.getColumnFromId(e))==null?void 0:n.friendlyName)!=null?r:e),jq.get(e)},QRt=e=>e.trigger==="tick"?"Ticking data":"User edit",YIe=(e,t)=>{let n={};return t.forEach(r=>{n[r]=e[r]}),n};var ai=A(J());s();var Q_=A(require("react"));var zg=class extends Q_.Component{render(){return Q_.createElement(re,g({"data-name":"pause",tooltip:"Pause",iconSize:20,icon:this.props.fillColor==="red"?"pause-red":"pause",variant:"text"},this.props))}};s();var j_=A(require("react"));var Qg=class extends j_.Component{render(){return j_.createElement(re,g({"data-name":"stop",tooltip:"Stop",iconSize:20,icon:"stop",variant:"text"},this.props))}};var Kq=class extends Wn.Component{constructor(t){super(t),this.state={dataChangeHistoryAdaptableApi:void 0}}render(){let{changeHistoryMode:t,activationTime:n,suspensionTime:r,onChangeHistoryEnable:o,onChangeHistoryDisable:a,onChangeHistorySuspend:i,onChangeHistoryResume:l}=this.props,u="dataChangeHistoryAdaptableContainer",d="dataChangeHistoryAgGridContainer",c=t==="ACTIVE",m=t==="INACTIVE",f=t==="SUSPENDED",h=Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup--button-panel",padding:2,style:{gap:"var(--ab-space-1)"}},m&&Wn.createElement(ml,{className:"ab-DataChangeHistoryPopup--button-activate","data-name":'data-change-history--button-activate"',variant:"raised",tone:"accent",tooltip:"",onClick:()=>o()},"Activate data change tracking"),f&&Wn.createElement(ml,{className:"ab-DataChangeHistoryPopup--button-resume","data-name":"data-change-history--button-resume",variant:"outlined",tooltip:"Resume tracking data changes",onClick:()=>l()},"Resume"),c&&Wn.createElement(zg,{className:"ab-DataChangeHistoryPopup--button-suspend","data-name":"data-change-history--button-suspend",variant:"outlined",tooltip:"Suspend tracking data changes",onClick:()=>i()},"Suspend"),(c||f)&&Wn.createElement(Qg,{className:"ab-DataChangeHistoryPopup--button-deactivate","data-name":"data-change-history--button-deactivate",variant:"outlined",tooltip:"Deactivate data change tracking",onClick:()=>a()},"Deactivate")),b=`${this.props.api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat} HH:mm:ss`,C=Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup--status-panel",alignItems:"center",style:{gap:"var(--ab-space-1)"}},c&&Wn.createElement(Wn.Fragment,null,Wn.createElement(ai.Text,{className:"ab-DataChangeHistoryPanel--status-active",style:{color:"var(--ab-color-success)",fontWeight:"bold"}},"Active"),!!n&&Wn.createElement(ai.Text,{style:{fontStyle:"italic"},fontSize:2},"(since ",go(n,{Pattern:b}),")")),f&&Wn.createElement(Wn.Fragment,null,Wn.createElement(ai.Text,{className:"ab-DataChangeHistoryPopup--status-suspended",style:{color:"var(--ab-color-warn)",fontWeight:"bold"}},"Suspended"),!!r&&Wn.createElement(ai.Text,{style:{fontStyle:"italic"},fontSize:2},"(since ",go(r,{Pattern:b}),")")),m&&Wn.createElement(ai.Text,{className:"ab-DataChangeHistoryPopup--status-disabled",fontSize:2})),y=S=>{let I=this.props.changeHistoryLog[S];I&&this.props.api.dataChangeHistoryApi.undoDataChangeHistoryEntry(I)},v=this.props.api.themeApi.getAgGridCurrentThemeName();return Wn.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup",flexDirection:"column",style:{height:"100%"}},Wn.createElement(ai.Flex,{style:{color:"var(--ab-dashboard__color)",background:"var(--ab-dashboard__background)"}},Wn.createElement(ai.Flex,{flexDirection:"row"},h,C)),Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup--grid","data-name":"data-change-history--grid",flex:1,alignSelf:"stretch",flexDirection:"column"},Wn.createElement("div",{id:u}),Wn.createElement("div",{id:d,className:v,style:{height:"100%"}}),Wn.createElement($Ie,{adaptableContainerId:u,agGridContainerId:d,changeHistoryLog:this.props.changeHistoryLog,onUndoChange:y}))))}};function jRt(e,t){return{changeHistoryLog:e.System.DataChangeHistory.logs,changeHistoryMode:e.System.DataChangeHistory.currentMode,activationTime:e.System.DataChangeHistory.enableTime,suspensionTime:e.System.DataChangeHistory.suspendTime}}function YRt(e){return{onChangeHistoryEnable:()=>e(yu()),onChangeHistoryDisable:()=>e(Su()),onChangeHistorySuspend:()=>e(af()),onChangeHistoryResume:()=>e(lf())}}var XIe=Ye(jRt,YRt)(Kq);s();var Jo=A(require("react"));var tp=A(J());var $q=class extends Jo.Component{constructor(t){super(t)}render(){let{changeHistoryMode:t,activationTime:n,suspensionTime:r,onChangeHistoryEnable:o,onChangeHistoryDisable:a,onChangeHistorySuspend:i,onChangeHistoryResume:l}=this.props,u=t==="ACTIVE",d=t==="INACTIVE",c=t==="SUSPENDED",m=Jo.createElement(tp.Flex,{className:"ab-DataChangeHistoryPanel--button-panel",paddingY:2,style:{gap:"var(--ab-space-1)"}},d&&Jo.createElement(ml,{className:"ab-DataChangeHistoryPanel--button-activate","data-name":"data-change-history--button-activate",tooltip:"",onClick:()=>o()}),c&&Jo.createElement(ml,{className:"ab-DataChangeHistoryPanel--button-resume","data-name":"data-change-history--button-resume",tooltip:"Resume tracking data changes",onClick:()=>l()}),u&&Jo.createElement(zg,{className:"ab-DataChangeHistoryPanel--button-suspend","data-name":"data-change-history--button-suspend",tooltip:"Suspend tracking data changes",onClick:()=>i()}),(u||c)&&Jo.createElement(Qg,{className:"ab-DataChangeHistoryPanel--button-deactivate","data-name":"data-change-history--button-deactivate",tooltip:"Deactivate data change tracking",onClick:()=>a()})),f=`${this.props.api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat} HH:mm:ss`,h=Jo.createElement(tp.Flex,{className:"ab-DataChangeHistoryPanel--status-panel",alignItems:"center",style:{gap:"var(--ab-space-1)"}},u&&Jo.createElement(ny,{label:!!n&&`since ${go(n,{Pattern:f})}`},Jo.createElement(tp.Text,{className:"ab-DataChangeHistoryPanel--status-active",fontSize:2,style:{color:"var(--ab-color-success)"}},"Active")),c&&Jo.createElement(ny,{label:!!r&&`since ${go(r,{Pattern:f})}`},Jo.createElement(tp.Text,{className:"ab-DataChangeHistoryPanel--status-suspended",fontSize:2,style:{color:"var(--ab-color-warn)"}},"Suspended")),d&&Jo.createElement(tp.Text,{className:"ab-DataChangeHistoryPanel--status-disabled",fontSize:2},"Activate data tracking"));return Jo.createElement(tp.Flex,{flexDirection:"row"},m,h)}};function KRt(e){return{changeHistoryMode:e.System.DataChangeHistory.currentMode,activationTime:e.System.DataChangeHistory.enableTime,suspensionTime:e.System.DataChangeHistory.suspendTime}}function $Rt(e){return{onChangeHistoryEnable:()=>e(yu()),onChangeHistoryDisable:()=>e(Su()),onChangeHistorySuspend:()=>e(af()),onChangeHistoryResume:()=>e(lf())}}var JIe=Ye(KRt,$Rt)($q);s();var np=A(require("react"));var Xq=A(J());var ZIe=e=>{let t=e.viewType==="Toolbar",n=t?"DashboardToolbar":"ToolPanel";return np.createElement(Xq.Flex,{flexDirection:t?"row":"column",className:He(e.accessLevel=="ReadOnly"?br:"",`ab-${n}__StateManagement__wrap`)},np.createElement(Xq.Flex,{flexDirection:"row"},np.createElement(f_,{tooltip:"Load Predefined Config",variant:"text",icon:"upload",onLoad:r=>e.api.configApi.reloadPredefinedConfig(r),accessLevel:e.accessLevel},!t&&"Load"),np.createElement(h_,{icon:"trash",tooltip:"Clear User State",variant:"text",onClick:()=>e.api.configApi.reloadPredefinedConfig(),accessLevel:e.accessLevel},!t&&"Clear")),np.createElement($d,{api:e.api,type:"allState"},"All State"),np.createElement($d,{api:e.api,type:"userState"},"User State"),np.createElement($d,{api:e.api,type:"predefinedConfig"},"Predefined Config"))};var ePe={BulkUpdatePopup:SIe,DashboardPopup:cIe,StateManagementPopup:yIe,GridInfoPopup:sIe,QuickSearchPopup:rRe,CellSummaryPopup:vIe,SmartEditPopup:Xxe,ThemePopup:oRe,TeamSharingPopup:uIe,ToolPanelPopup:fRe,SystemStatusPopup:RIe,DataChangeHistoryPopup:XIe},Y_=new Map([[wr,wIe],[Yi,OIe],[Dl,FIe],[Co,NIe],[Tl,LIe],[kr,BIe],[Ki,VIe],[Gn,GIe],[fi,UIe],[hi,WIe],[Tu,qIe],[Ou,zIe],[Du,jIe],[wl,JIe],[Ff,ZIe]]);s();var Uo=A(require("react"));var tPe=e=>{var b,C,y,v;rr(S=>S);let[t,n]=Uo.useState(null),r=e.module.moduleInfo,o=(b=e.module)==null?void 0:b.toViewAll(),a=e.module.getViewProperties(),i=(C=a==null?void 0:a.getEditWizard)==null?void 0:C.call(a),[l,u]=Uo.useState(()=>{var S,I;return((S=e.popupParams)==null?void 0:S.action)==="New"||((I=e.popupParams)==null?void 0:I.action)==="Edit"}),d=Uo.useCallback(()=>{i&&u(!0),a.onOpenEditPopup&&a.onOpenEditPopup()},[]);Uo.useEffect(()=>{var S,I;(((S=e.popupParams)==null?void 0:S.action)==="New"||((I=e.popupParams)==null?void 0:I.action)==="Edit")&&d()},[(y=e.popupParams)==null?void 0:y.action]);let c=a.emptyView,m=null;typeof c=="function"?m=Uo.createElement(c,{module:e.module}):typeof c=="string"&&(m=c);let f=null;if((v=a==null?void 0:a.abObjectTypes)!=null&&v.length){let S=a==null?void 0:a.abObjectTypes.map(I=>{var P;return{disabled:(I==null?void 0:I.accessLevel)==="ReadOnly",onClick:()=>{n(I),d()},label:(P=I.label)!=null?P:I.name}});f=Uo.createElement(Ze,{tone:"accent",variant:"raised",columns:["label"],items:S,tooltip:"Create "+r.FriendlyName},Uo.createElement(Ct,{name:"plus"})," New")}else(i||a.onOpenEditPopup)&&(f=Uo.createElement(Td,{onClick:()=>d(),tooltip:"Create "+r.FriendlyName,accessLevel:e.accessLevel,style:{color:"var(--ab-color-text-on-add)",fill:"var(--ab-color-text-on-add)",background:"var(--ab-color-action-add)"}}));let h=()=>{var S;n(null),u(!1),["Toolbar","ContextMenu","ColumnMenu"].includes((S=e==null?void 0:e.popupParams)==null?void 0:S.source)&&e.onClosePopup()};return Uo.createElement(Vr,{glyphicon:r.Glyph,infoLink:r.HelpPage,headerText:r.FriendlyName,button:f},o!=null&&o.length?Uo.createElement(NS,{module:e.module,items:o}):Uo.createElement(y_,null,m!=null?m:`Click 'New' to create a new ${r.FriendlyName}`),l&&i&&Uo.createElement(i,{abObjectType:t,moduleInfo:r,data:null,popupParams:e.popupParams,configEntities:null,onCloseWizard:h,onFinishWizard:h}))};var rPe=e=>{var l,u;let t=Wt.getModalContainer(e.api.internalApi.getAdaptableOptions(),document),n=e.module.moduleInfo.ModuleName,r=e.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(n),o=e.api.internalApi.getModuleService().getModuleInfoByModule(n),a={popupParams:e.moduleParams,onClearPopupParams:()=>e.onClearParams?e.onClearParams():null,onClosePopup:()=>{e.onHide&&e.onHide()},teamSharingActivated:e.api.teamSharingApi.isTeamSharingActivated()&&e.api.teamSharingApi.hasTeamSharingFullRights(),modalContainer:t,accessLevel:r,api:e.api,moduleInfo:o},i=((u=ePe)==null?void 0:u[(l=e==null?void 0:e.componentName)!=null?l:o.Popup])||tPe;return nPe.createElement(i,g({key:e==null?void 0:e.componentName,module:e.module},a))};s();var K_=["BulkUpdate","SmartEdit","CellSummary"],oPe=["GridInfo","Dashboard","ToolPanel","StateManagement","-","Alert","CalculatedColumn","ConditionalStyle","CustomSort","DataSource","Export","Filter","FlashingCell","FormatColumn","FreeTextColumn","Layout","PlusMinus","Query","QuickSearch","Schedule","Shortcut","-","SystemStatus","DataChangeHistory","TeamSharing","Theme"];s();var iPe=A(require("react"));s();var rp=A(require("react"));var aPe=o=>{var a=o,{render:e,frameworkComponent:t,componentName:n="N/A"}=a,r=qe(a,["render","frameworkComponent","componentName"]);let i=rp.useRef(),l=$e(),[u,d]=rp.useState("");return rp.useLayoutEffect(()=>{let c=i.current,m=l.api;if(e){let f=e({visible:!0,node:c,adaptableApi:m});d(f)}else t&&m.internalApi.createFrameworkComponent(c,t,"toolbar");return()=>{e?e({visible:!1,node:c,adaptableApi:m}):t&&m.internalApi.destroyFrameworkComponent(c,t,n)}},[]),rp.createElement("div",R(g({},r),{dangerouslySetInnerHTML:{__html:u},ref:i}))};var lPe=e=>iPe.createElement(aPe,{render:e.settingsPanel.render,componentName:e.settingsPanel.name,frameworkComponent:e.settingsPanel.frameworkComponent});s();var sPe=A(require("react"));var uPe=()=>{let t=$e().adaptableOptions.settingsPanelOptions,n=rr(r=>{var o;return(o=r==null?void 0:r.Grid)==null?void 0:o.ModuleDropdownMenuItems});return sPe.useMemo(()=>{var a;let r=(a=t==null?void 0:t.navigation)==null?void 0:a.items;r||(r=[...oPe],t.customSettingsPanels&&r.push(...t.customSettingsPanels.map(i=>i.name)));let o=n.filter(i=>i.module!=="General"&&!K_.includes(i.module)&&i.isVisible);return r.map(i=>{var d,c;if(i==="-")return i;let l=(c=(d=t==null?void 0:t.customSettingsPanels)==null?void 0:d.find)==null?void 0:c.call(d,m=>m.name===i),u=null;return l&&(u={label:l.name,isVisible:!0,reduxAction:Rn(null,l.name)}),u||o.find(m=>m.module===i)}).filter(Boolean)},[n])};s();var op=A(require("react")),cPe=require("react-dom");s();var $_=e=>{let t=window.innerHeight;return{x:window.innerWidth/2-e.width/2,y:t/2-e.height/2}},dPe=()=>{let e=window.innerHeight,t=window.innerWidth;return{height:tf(600,0,e*.9),width:tf(800,0,t*.9)}},Jq=()=>{let e=window.innerHeight,t=window.innerWidth;return{height:tf(e*.9,0,800),width:tf(t*.9,0,800)}},pPe=()=>Jq();var XRt=e=>{var y,v;let C=e,{onChange:t,style:n,baseClassName:r,className:o,isActionModule:a,settingsPanelOptionsKey:i,onHide:l}=C,u=qe(C,["onChange","style","baseClassName","className","isActionModule","settingsPanelOptionsKey","onHide"]),d=$e(),c=Rt(),m=d.adaptableOptions.settingsPanelOptions,f=rr(S=>{var I,P;return(P=(I=S==null?void 0:S.System)==null?void 0:I.SettingsPanel)==null?void 0:P[i]}),h=S=>{c(dY(i,S))};if(!f){let S=a?dPe():(y=m.size)!=null?y:Jq();f={size:S,position:(v=m.position)!=null?v:$_(S)}}let b={handleSelector:a?`.${r} .ab-Panel__header`:".ab-Adaptable-Popup__TopBar",size:f.size,position:f.position,onChange:h};return op.createElement(vr,g({windowModal:!0,fixed:!1,windowModalProps:b,style:R(g({},e.style),{height:"100%"}),padding:0,className:o,onDismiss:l,isOpen:!0,showCloseButton:!0},u))},JRt=e=>{let i=e,{style:t,className:n,onHide:r,children:o}=i,a=qe(i,["style","className","onHide","children"]);return op.createElement(vr,g({fixed:!1,style:e.style,padding:0,height:"90vh",width:"90vw",className:n,onDismiss:r,isOpen:!0,showCloseButton:!0},a),o)},mPe=e=>{let{isActionModule:t,style:n,friendlyName:r,baseClassName:o,className:a,children:i,onHide:l,isWindowModal:u,modalContainer:d}=e,c=op.useMemo(()=>{if(!d)return null;let m=null;return typeof d=="string"?m=globalThis.document.querySelector(d):m=d,m},[d]);if(d){let m=null;return typeof d=="string"?m=globalThis.document.querySelector(d):m=d,(0,cPe.createPortal)(op.createElement(vr,{modal:!1,fixed:!1,onDismiss:l,className:a},i),m)}if(u){let m=t?`action-${r}`:"settings";return op.createElement(XRt,{settingsPanelOptionsKey:m,isActionModule:t,onHide:l,style:n,baseClassName:o,className:a},i)}else{let m=g(g({},n),t?{maxWidth:800,maxHeight:600}:{maxWidth:1200,maxHeight:1e3});return op.createElement(JRt,{onHide:l,style:m,className:a},i)}};var e9=e=>{var P,T,O;let t=$e(),n=t.adaptableOptions.settingsPanelOptions,r=t.api.internalApi.getModuleFriendlyName("SettingsPanel"),o=uPe(),a=n.popupType==="window",i=(T=(P=t.adaptableOptions)==null?void 0:P.containerOptions)==null?void 0:T.modalContainer,l=null,u=!1,d=null,c=null,m="Full",f=o.find(_=>_!=="-"),h=f==null?void 0:f.module,b=e.componentModule,C=e.componentName,y=!e.componentName;y&&h!=="General"&&(b=h);let v=(O=n==null?void 0:n.customSettingsPanels)==null?void 0:O.find(_=>y?_.name===f.label:_.name===C);if(v)l=v.name,c=v.name,d=lu.createElement(lPe,{settingsPanel:v});else{let _=e.api.internalApi.getModuleService().getModuleById(b),M=_==null?void 0:_.moduleInfo;m=e.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(b),l=M.FriendlyName,u=M&&(K_.includes(M==null?void 0:M.ModuleName)||e.componentName&&e.componentName!==(M==null?void 0:M.Popup)),c=M.ModuleName,d=lu.createElement(rPe,{api:e.api,module:_,componentName:e.componentName,moduleParams:e.moduleParams,onClearParams:e.onClearParams,onHide:e.onHide})}let S="ab-Adaptable-Popup",I=He(S,`${S}--${a?"window":"modal"}`,u?`${S}--action-popup`:`${S}--settings-popup`);return lu.createElement(wAe.Provider,{value:{hidePopup:()=>{e.onHide&&e.onHide()}}},lu.createElement(mPe,{baseClassName:S,className:I,friendlyName:l,isActionModule:u,isWindowModal:a,onHide:e.onHide,modalContainer:i},!u&&lu.createElement(PAe,{icon:n.icon},r),lu.createElement(Zq.Flex,{"data-name":e.componentName,flexDirection:"row",flex:"1 1 0",style:{minHeight:0},className:m=="ReadOnly"?br:""},!u&&lu.createElement(TAe,{menuItems:o,api:e.api,activeItem:c,customSettingsPanels:n.customSettingsPanels}),lu.createElement(Zq.Flex,{flex:1,className:"ab-Adaptable-Popup__Body"},d))))};s();var Wo=A(require("react"));var mm=A(J());var fPe=e=>{var l;let t=Rt(),[n,r]=Wo.useState((l=e.defaultValue)!=null?l:""),o=()=>{r(""),e.onClose()},a=()=>{e.onConfirm(n);let u=typeof e.onConfirmActionCreator=="function"&&e.onConfirmActionCreator(n);u&&t(u),r("")},i=u=>{r(u.target.value)};return Wo.createElement(vr,{modal:!0,"data-name":"prompt-popup",isOpen:!0,onDismiss:e.onClose,showCloseButton:!1,style:{minHeight:"auto",maxWidth:"50%"}},Wo.createElement(mm.Flex,{flexDirection:"column"},Wo.createElement(mm.Box,{marginTop:3,mx:2},e.header),we.IsNotNullOrEmpty(e.message)&&Wo.createElement(mm.Box,{marginTop:3,mx:2}," ",Wo.createElement("div",{style:{display:"flex",alignItems:"center"}},e.message.split(`
|
|
288
|
+
`)}};var $xe=A(J());var FAt=e=>e.preventDefault(),JW=class extends rs.Component{constructor(t){super(t),this.state={isShowingError:!1,errorText:""}}componentDidMount(){this.props.onSmartEditCheckSelectedCells()}render(){var l,u,d;let t;this.props.PreviewInfo&&(t=this.props.PreviewInfo.column);let n=Xi.GetValidationMessage(this.props.PreviewInfo,`${this.props.SmartEditValue}`),r=this.props.PreviewInfo&&we.IsNotNullOrEmpty(`${this.props.SmartEditValue}`),o=r?rs.createElement(ns,{style:{flex:"1 1 100%",overflow:"initial",height:"100%"},previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:t,showPanel:r,showHeader:!0}):null,a=ba.getNames(Cl).map((c,m)=>({label:c,onClick:()=>{this.props.onSmartEditOperationChange(c)}})),i=(d=(u=(l=this.props.api.internalApi.getAdaptableOptions())==null?void 0:l.editOptions)==null?void 0:u.smartEdit)==null?void 0:d.customOperations;return i!=null&&i.length&&a.push(...i.map(c=>({onClick:()=>this.props.onSmartEditOperationChange(c),label:c.Name}))),rs.createElement(Yl,{flex:1,style:{height:"100%"},variant:"primary",bodyProps:{style:{display:"flex",flexFlow:"column"}},bodyScroll:!0,glyphicon:this.props.moduleInfo.Glyph,header:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed(),onKeyDown:c=>{c.key==="Enter"&&this.submit()}},rs.createElement($xe.Flex,{flexDirection:"row",padding:2,"data-name":"smart-edit-operation"},rs.createElement(Ze,{items:a,columns:["label"],onMouseDown:FAt},typeof this.props.SmartEditOperation=="object"?this.props.SmartEditOperation.Name:this.props.SmartEditOperation),rs.createElement(Ke,{value:this.props.SmartEditValue.toString(),marginLeft:2,marginRight:2,type:"number",placeholder:"Enter a Number",onChange:c=>this.onSmartEditValueChange(c)}),rs.createElement(re,{tone:this.getButtonStyle(),variant:"raised",disabled:we.IsNullOrEmpty(`${this.props.SmartEditValue}`)||this.props.PreviewInfo&&this.props.PreviewInfo.previewValidationSummary.validationResult=="All",onClick:()=>{this.submit()},marginRight:2},"Apply to Grid")," ",this.props.PreviewInfo&&this.props.PreviewInfo.previewValidationSummary.validationResult!="None"&&rs.createElement(Cn,{headerText:"Validation Error",bodyText:[n],MessageType:"Error"})),o)}submit(){this.onApplySmartEdit()}onSmartEditValueChange(t){let n=t.target;this.props.onSmartEditValueChange(Number(n.value))}onApplySmartEdit(){this.props.onRunSmartEdit()}getButtonStyle(){if(this.props.PreviewInfo){if(this.props.PreviewInfo.previewValidationSummary.validationResult=="All")return"neutral";if(this.props.PreviewInfo.previewValidationSummary.validationResult=="Some")return"error"}return"success"}};function MAt(e,t){return{SmartEditValue:e.System.SmartEditValue,SmartEditOperation:e.System.SmartEditOperation,PreviewInfo:e.System.SmartEditPreviewInfo}}function NAt(e){return{onSmartEditValueChange:t=>e(nf(t)),onSmartEditOperationChange:t=>e(rf(t)),onSmartEditCheckSelectedCells:()=>e(tA()),onRunSmartEdit:()=>e(gE(!1))}}var Xxe=Ye(MAt,NAt)(JW);s();var ul=A(require("react")),tRe=require("react");s();var sl=A(require("react")),Ed=A(J());var Vr=e=>{let t="ab-Adaptable-Popup__Panel";return sl.createElement(Ed.Flex,{flexDirection:"column",flex:"1 1 0",className:t,width:"100%"},sl.createElement("div",{className:`${t}__Header`},sl.createElement(Ed.Flex,{alignItems:"center"},sl.createElement(Ed.Box,{marginRight:0,"data-name":"space-before"}),sl.createElement("div",{className:`${t}__Header__Title`},e.headerText),sl.createElement(Ed.Box,{marginRight:2,"data-name":"space-after"}),e.infoLink!=null&&!e.infoLinkDisabled&&sl.createElement(so,{iconSize:24,onClick:()=>window.open(e.infoLink,"_blank")})),sl.createElement(Ed.Box,{style:{flex:1}}),e.button),sl.createElement(Ed.Box,{className:`${t}__Body`,width:"100%",height:"100%",flex:1},e.children))};s();var Lt=A(require("react"));s();var Zs=A(require("react"));s();var Hc=e=>{let t={};return e.BackColor!==void 0&&e.BackColor!==null&&(t.backgroundColor=e.BackColor),e.ForeColor!==void 0&&e.ForeColor!==null&&(t.color=e.ForeColor),e.FontWeight!==void 0&&e.FontWeight!==null&&(t.fontWeight=e.FontWeight.toLocaleLowerCase()),e.FontStyle!==void 0&&e.FontStyle!==null&&(t.fontStyle=e.FontStyle.toLocaleLowerCase()),e.FontSize!==void 0&&e.FontSize!==null&&(t.fontSize=ba.getCssFontSizeFromFontSizeEnum(e.FontSize)),e.BorderColor!==void 0&&e.BorderColor!==null&&(t.borderColor=e.BorderColor),t},Jxe=e=>{switch(e){case"x-large":return 18;case"large":return 13.5;case"medium":return 12;case"small":return 10;case"x-small":return 7;default:return 12}},Zxe=e=>R(g({},Hc(e!=null?e:{})),{borderWidth:e!=null&&e.BorderColor?2:0,borderStyle:"solid"}),gg=e=>{var r;if(!((r=e==null?void 0:e.startsWith)==null?void 0:r.call(e,"var(")))return e;let n=/\((.+)\)/.exec(e);return n?getComputedStyle(document.documentElement).getPropertyValue(n[1]).trim():e};var _At=pN(),eu=Zs.forwardRef((e,t)=>{let n=e.api.userInterfaceApi.getColorPalette(),c=e,{api:r,value:o}=c,a=qe(c,["api","value"]),i=n.reduce((m,f)=>R(g({},m),{[gg(f)]:f}),{}),l=Object.keys(i).map(m=>Zs.createElement("option",{key:m,value:m},m)),u=Zs.createElement("datalist",{id:"ABcolorChoices"},l),d=Zs.useMemo(()=>{let m=gg(o);return _At(m).toHexString()},[o]);return Zs.createElement("div",{className:"ColorPicker"},Zs.createElement(Ke,R(g({},a),{onChange:m=>{var h;let f=(h=i[m.target.value])!=null?h:m.target.value;e.onChange(f)},value:d,ref:t,type:"color",style:{width:70,padding:0},list:"ABcolorChoices"})),u)});var Uc=A(J());var ya=class extends Lt.Component{constructor(t){super(t),this.state={componentStyle:this.props.Style,ShowClassName:we.IsNotNullOrEmpty(this.props.Style.ClassName)}}render(){let t=this.props.headless?Lt.Fragment:Gt,n=this.props.headless?{}:{header:"Style",margin:2,"data-name":"style-component"},r=this.props.api.userInterfaceApi.getStyleClassNames();return Lt.createElement(t,g({},n),De.IsNotNullOrEmpty(r)&&Lt.createElement(Uc.Flex,{flexDirection:"row",padding:2},Lt.createElement(We,{value:"Predicate",checked:this.state.ShowClassName,onChange:o=>this.onShowClassNameChanged(o)},"Use Style Class Name")," ",Lt.createElement(We,{marginLeft:3,value:"Expression",checked:!this.state.ShowClassName,onChange:o=>this.onShowClassNameChanged(!o)},"Create Style")," "),this.state.ShowClassName?Lt.createElement("div",null,Lt.createElement(Nt,{fontSize:2},"Choose a style name from the dropdown."),Lt.createElement(Ze,{margin:3,placeholder:"Select",variant:"outlined",tone:"none",disabled:De.IsNullOrEmpty(r),style:{minWidth:"15rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},items:r.map(o=>({value:o,label:o,onClick:()=>this.onStyleClassNameChanged(o)}))},this.state.componentStyle.ClassName),Lt.createElement(Uc.Text,{color:"var(--ab-color-warn)",style:{flex:2},margin:2},"Please ensure that the styles listed are in the current stylesheet")):Lt.createElement(Uc.Flex,{flexDirection:"column"},Lt.createElement(Uc.Flex,{flex:1},Lt.createElement("div",null,Lt.createElement(Nt,{fontSize:2,marginTop:2,marginBottom:2},"Set colours by ticking a checkbox and selecting from the dropdown; leave unchecked to use cell's existing colours"),Lt.createElement(Je,{columns:[1,2]},Lt.createElement(de,null,Lt.createElement(pe,{value:"existing",margin:1,checked:!!this.state.componentStyle.BackColor,onChange:o=>this.onUseBackColorCheckChange(o)},"Set Back Colour"),this.state.componentStyle.BackColor!=null?Lt.createElement(eu,{api:this.props.api,value:this.state.componentStyle.BackColor,onChange:o=>this.onBackColorSelectChange(o)}):Lt.createElement("span",null)),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"existing",checked:!!this.state.componentStyle.ForeColor,onChange:o=>this.onUseForeColorCheckChange(o)},"Set Fore Colour"),this.state.componentStyle.ForeColor!=null?Lt.createElement(eu,{api:this.props.api,value:this.state.componentStyle.ForeColor,onChange:o=>this.onForeColorSelectChange(o)}):Lt.createElement("span",null)),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"existing",checked:!!this.state.componentStyle.BorderColor,onChange:o=>this.onUseBorderColorCheckChange(o)},"Set Border Colour"),this.state.componentStyle.BorderColor!=null?Lt.createElement(eu,{api:this.props.api,value:this.state.componentStyle.BorderColor,onChange:o=>this.onBorderColorSelectChange(o)}):Lt.createElement("span",null))),Lt.createElement(Nt,{fontSize:2,marginTop:2,marginBottom:2},"Set the font properties of the Style"),Lt.createElement(Je,{columns:[1]},Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"Normal".toString(),checked:this.state.componentStyle.FontWeight=="Bold",onChange:o=>this.onFontWeightChange(o)},"Bold")),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,value:"Normal".toString(),checked:this.state.componentStyle.FontStyle=="Italic",onChange:o=>this.onFontStyleChange(o)},"Italic")),Lt.createElement(de,null,Lt.createElement(pe,{margin:1,checked:!!this.state.componentStyle.FontSize,onChange:o=>this.onUseFontSizeCheckChange(o)},"Set Font Size")),Lt.createElement(de,null,this.state.componentStyle.FontSize!=null&&Lt.createElement(Uc.Flex,{flexDirection:"row",alignItems:"center"},Lt.createElement(Ze,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"inherit"},mr:1,items:ba.getNames(Av).map(o=>({value:o,label:o,onClick:()=>this.onFontSizeChange(o)})),columns:["label"]},this.state.componentStyle.FontSize.toString()),Lt.createElement(Cn,{headerText:"Conditional Style: Font Size",bodyText:["Select the size of the font for the Conditional Style. The default is 'Medium'."]}))))))))}onShowClassNameChanged(t){this.state.componentStyle.BackColor=null,this.state.componentStyle.ForeColor=null,this.state.componentStyle.BorderColor=null,this.state.componentStyle.FontSize=null,this.state.componentStyle.FontStyle=null,this.state.componentStyle.FontWeight=null,this.state.componentStyle.ClassName="",this.setState({ShowClassName:t})}onStyleClassNameChanged(t){this.state.componentStyle.ClassName=t=="select"?"":t,this.props.UpdateStyle(this.state.componentStyle)}onUseBackColorCheckChange(t){this.state.componentStyle.BackColor=t?"#ffffff":null,this.props.UpdateStyle(this.state.componentStyle)}onUseForeColorCheckChange(t){this.state.componentStyle.ForeColor=t?"#000000":null,this.props.UpdateStyle(this.state.componentStyle)}onUseBorderColorCheckChange(t){this.state.componentStyle.BorderColor=t?"#000000":null,this.props.UpdateStyle(this.state.componentStyle)}onUseFontSizeCheckChange(t){this.state.componentStyle.FontSize=t?"Medium":null,this.props.UpdateStyle(this.state.componentStyle)}onBackColorSelectChange(t){this.state.componentStyle.BackColor=t,this.props.UpdateStyle(this.state.componentStyle)}onForeColorSelectChange(t){this.state.componentStyle.ForeColor=t,this.props.UpdateStyle(this.state.componentStyle)}onBorderColorSelectChange(t){this.state.componentStyle.BorderColor=t,this.props.UpdateStyle(this.state.componentStyle)}onFontWeightChange(t){let n=t?"Bold":"Normal";this.state.componentStyle.FontWeight=n,this.props.UpdateStyle(this.state.componentStyle)}onFontStyleChange(t){let n=t?"Italic":"Normal";this.state.componentStyle.FontStyle=n,this.props.UpdateStyle(this.state.componentStyle)}onFontSizeChange(t){this.state.componentStyle.FontSize=t,this.props.UpdateStyle(this.state.componentStyle)}};var nRe=A(J());s();var bg=require("react"),eRe=A(Fm());var Cg=e=>{var a;let[t,n]=(0,bg.useState)((a=e.QuickSearchText)!=null?a:""),r=(0,bg.useMemo)(()=>(0,eRe.default)(e.onRunQuickSearch,oj),[e.onRunQuickSearch]);return(0,bg.useEffect)(()=>{n(e.QuickSearchText)},[e.QuickSearchText]),[t,i=>{n(i),r(i)}]};var LAt=e=>{let[t,n]=Cg(e),[r,o]=(0,tRe.useState)({RunQueryAfterQuickSearch:e.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch,EditedStyle:e.QuickSearchStyle}),a=l=>{o(R(g({},r),{EditedStyle:l})),e.onSetStyle(l)},i=l=>{o(R(g({},r),{RunQueryAfterQuickSearch:l})),e.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch=l};return ul.createElement(Vr,{headerText:e.moduleInfo.FriendlyName,glyphicon:e.moduleInfo.Glyph,infoLink:e.moduleInfo.HelpPage,infoLinkDisabled:!e.api.internalApi.isDocumentationLinksDisplayed()},ul.createElement(Gt,{header:e.moduleInfo.FriendlyName+" Text",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginLeft:2,marginRight:2}," ",ul.createElement(Je,null,ul.createElement(Ii,{type:"text",marginLeft:2,marginRight:5,padding:20,style:{height:"100%"},placeholder:e.api.internalApi.getAdaptableOptions().searchOptions.quickSearchPlaceholder,value:t,OnTextChange:n}))),ul.createElement(Gt,{header:"Behaviour",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginLeft:2,marginRight:2}," ",ul.createElement(nRe.Flex,{flexDirection:"column"},ul.createElement(Je,{columns:[1,2]},ul.createElement(de,null,ul.createElement(pe,{value:"existing",marginLeft:1,marginRight:3,checked:r.RunQueryAfterQuickSearch,disabled:Qe.IsNotNullOrEmpty(t),onChange:i},"Run Simultaneous Query"))))),ul.createElement(ya,{style:{height:"100%"},api:e.api,Style:e.QuickSearchStyle,UpdateStyle:a}))};function kAt(e,t){return{QuickSearchText:e.QuickSearch.QuickSearchText,QuickSearchStyle:e.QuickSearch.Style}}function BAt(e){return{onRunQuickSearch:t=>e(Ts(t)),onSetStyle:t=>e($E(t))}}var rRe=Ye(kAt,BAt)(LAt);s();var Wc=A(require("react"));var ZW=class extends Wc.Component{render(){let t=[];this.props.SystemThemes.forEach(o=>{t.push(o)}),this.props.UserThemes.forEach(o=>{t.push(o)});let n="",r=t.map(o=>(typeof o=="string"&&(o={Name:o,Description:o}),o.Name===this.props.CurrentTheme&&(n=o.Description),{value:o.Name,label:o.Description,onClick:()=>this.onChangeTheme(o.Name)}));return Wc.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},Wc.createElement(Je,null,Wc.createElement(de,{label:"Current Theme:"},Wc.createElement(Ze,{columns:["label"],style:{width:"50%",minWidth:200},placeholder:"Select theme",value:this.props.CurrentTheme,items:r,accessLevel:this.props.accessLevel},n))))}onChangeTheme(t){this.props.SelectTheme(t)}};function VAt(e,t){return{SystemThemes:e.Theme.SystemThemes,UserThemes:e.Theme.UserThemes,CurrentTheme:e.Theme.CurrentTheme}}function GAt(e){return{SelectTheme:t=>e(th(t))}}var oRe=Ye(VAt,GAt)(ZW);s();var Za=A(require("react"));s();var aRe=["Alert","BulkUpdate","CellSummary","DataChangeHistory","DataSource","Export","Filter","Glue42","IPushPull","Layout","OpenFin","Query","QuickSearch","SmartEdit","StateManagement","SystemStatus","Theme"],yg=["Alert","BulkUpdate","CellSummary","Dashboard","DataChangeHistory","Export","Filter","IPushPull","Layout","OpenFin","Query","QuickSearch","SmartEdit","StateManagement","SystemStatus","Theme"];s();var pRe=A(require("react"));s();var yn=A(require("react")),tu=require("react"),Sa=A(J());s();var Zr=A(require("react")),lRe=A(J()),Id=require("react");s();var cN=require("react"),iRe=e=>{let t=(0,cN.useRef)(e);return t.current=e,(0,cN.useCallback)(()=>t.current,[])};var HAt=({children:e,index:t,hidden:n,observerRef:r})=>{var c;let[o,a]=(0,Id.useState)(!1);Zr.useEffect(()=>{let m=setTimeout(()=>{a(!0)},50);return()=>clearTimeout(m)},[]);let i=(0,Id.useRef)(null),l=m=>{var f,h;if(m){if(!m.getAttribute("data-index"))throw'The element you render from "renderItem" should accept a "data-index" prop.';(f=r.current)==null||f.observe(m)}else(h=r.current)==null||h.unobserve(i.current);i.current=m},u=Zr.Children.toArray(e)[0],d={ref:l,"data-index":t};return(n||!o)&&(d.style=R(g({},(c=u.props)==null?void 0:c.style),{visibility:"hidden"})),u=Zr.cloneElement(u,d),Zr.createElement(Zr.Fragment,null,u)},sRe=e=>{let y=e,{allowWrap:t,count:n,direction:r,renderItem:o,renderEllipsis:a}=y,i=qe(y,["allowWrap","count","direction","renderItem","renderEllipsis"]),l=(0,Id.useRef)(null),u=(0,Id.useRef)(null),[d,c]=Zr.useState(e.count),[m]=(0,Id.useState)(()=>new Set),[f]=(0,Id.useState)(()=>new Set),h=iRe(e.count);Zr.useEffect(()=>{let v=I=>{let P=h(),T=_=>_.intersectionRatio===1;I.forEach(_=>{let{target:M}=_,x=Number(M.getAttribute("data-index"));T(_)?(m.add(x),f.delete(x)):(m.delete(x),f.add(x))});let O=Math.min(P,...f.values());c(O)};if(t)return;let S=new IntersectionObserver(v,{root:l.current,threshold:.01});return u.current=S,()=>{S.disconnect()}},[]);let b=Ga(n,n);Zr.useLayoutEffect(()=>{t||d===b&&c(n)},[n,d,t]);let C=[...new Array(n)].map((v,S)=>{var T;let I=n-1-S,P=t?!1:S>=d;return Zr.createElement(Zr.Fragment,{key:S},Zr.createElement(HAt,{hidden:P,index:S,observerRef:u},o(S,n)),!t&&S===d-1&&I?(T=a==null?void 0:a({remaining:I}))!=null?T:"...":null)});return Zr.createElement(lRe.Flex,R(g({ref:l,flexWrap:t?"wrap":"nowrap",alignItems:"center","data-name":"options-container"},i),{flexDirection:r==="horizontal"?"row":"column"}),C)};s();s();var mN=A(require("react")),uRe=A(J());var Dt=mN.forwardRef((e,t)=>{var n,r,o,a;return mN.createElement(uRe.Box,R(g({},e),{ref:t,className:He("ab-Tag",e.className),backgroundColor:"primary",paddingTop:(n=e.paddingTop)!=null?n:1,paddingBottom:(r=e.paddingBottom)!=null?r:1,paddingLeft:(o=e.paddingLeft)!=null?o:2,paddingRight:(a=e.paddingRight)!=null?a:2,style:g({borderRadius:"var(--ab__border-radius)"},e.style)}))});function dRe({options:e,value:t,toIdentifier:n,selectedMap:r}){let o=(0,tu.useMemo)(()=>{if(r)return;let i=new Map([]);return e.forEach(l=>{i.set(n(l),l)}),i},[e,r]);return{selectedMap:(0,tu.useMemo)(()=>{if(r)return r;let i=new Map([]);return t.forEach(l=>{var u;i.set(l,(u=o.get(l))!=null?u:null)}),i},[o,r,t]),optionsMap:o}}function qc(e){let{options:t,value:n,filter:r,onChange:o,allowReorder:a,singleSelect:i,toLabel:l,toIdentifier:u,noSelectionLabel:d,clearSelectionLabel:c,showSelectedOnlyLabel:m,xSelectedLabel:f,selectionBoxPosition:h="bottom",onShowSelectedOnlyChange:b,isOptionDisabled:C,disabled:y}=e,[v,S]=(0,tu.useState)(!1),I=(0,tu.useCallback)(M=>{S(M),b==null||b(M)},[b]),{selectedMap:P}=dRe({options:t,toIdentifier:u,value:n}),T=(0,tu.useCallback)(()=>{let M=[...P.keys()];!M.length&&v&&I(!1),o(M,new Map(P))},[o,v,P]),O=(M,x)=>{let D=u(M),N=a?null:l(M),q=typeof a=="function"?a(M):a,F=(k,Y)=>yn.createElement(Sa.Flex,R(g({alignItems:"center",mt:x?1:0,key:D,backgroundColor:"primary",padding:2,"data-index":x,"data-id":D,"data-name":"option"},k),{style:g({borderRadius:"var(--ab__border-radius)"},k==null?void 0:k.style)}),yn.createElement(Sa.Flex,{flexDirection:"row",alignItems:"center"},q?yn.createElement(Sa.Box,g({mr:3},Y),yn.createElement(Ct,{name:"drag",style:{cursor:"grab"}})):null,i?yn.createElement(We,{checked:P.has(D),"data-name":D,onChange:Z=>{Z?(P.clear(),P.set(D,M)):P.delete(D),T()}},N):yn.createElement(pe,{"data-name":D,disabled:y||(C?C(M):!1),onChange:Z=>{Z?P.set(D,M):P.delete(D),T()},checked:P.has(D)},N),yn.createElement(Sa.Text,{ml:2},a?l(M):null)));return yn.createElement(ga,{key:D,index:x,draggableId:`${D}`,isDragDisabled:!q},k=>F(R(g({ref:k.innerRef},k.draggableProps),{style:k.draggableProps.style}),k.dragHandleProps))},_=()=>{let M=yn.createElement(Sa.Box,{fontSize:2,style:{whiteSpace:"nowrap",flex:"none"}},n.length?yn.createElement(yn.Fragment,null,yn.createElement(re,{disabled:y,tabIndex:0,px:1,mr:1,variant:"text",style:{textDecoration:"underline",display:"inline-block"},onClick:()=>{P.clear(),T()}},c!=null?c:"Clear selection."),f?f(n.length):`Your selected ${n.length} ${n.length>1?"options":"option"}.`):yn.createElement(yn.Fragment,null,d!=null?d:"No selected options",i?null:yn.createElement(re,{px:1,disabled:y,variant:"text",style:{textDecoration:"underline",display:"inline-block"},onClick:()=>{t.forEach(x=>{P.set(u(x),x)}),T()}},"Select all")));return yn.createElement(Sa.Box,{mt:h==="bottom"?3:0,mb:h==="top"?3:0},M,yn.createElement(Xo,{options:t,value:n,selectedMap:P,toLabel:l,toIdentifier:u,onClearOption:T,readOnly:y}))};return yn.createElement(Sa.Flex,{flexDirection:"column",flex:1,className:"ab-ValueSelector",style:{overflow:"hidden"}},h==="top"&&_(),yn.createElement(Xh,{onDragEnd:M=>{let{source:x,destination:D}=M,N=[],q=[];for(let[Y,Z]of P)Z!=null?N.push(Y):q.push(Y);let F=new Map(P),k=Xl(N,x.index,D.index);k.push(...q),P.clear(),k.forEach(Y=>{P.set(Y,F.get(Y))}),T()}},yn.createElement(Sa.Flex,{flexDirection:"column",flex:1,style:{overflow:"auto"}},yn.createElement(Sa.Box,{style:{position:"sticky",top:0,zIndex:1e4}},yn.createElement(Sa.Box,{mr:1,mt:1,px:2,"data-name":"show-selected-only",style:{position:"absolute",top:0,right:0,borderRadius:"var(--ab__border-radius)",overflow:"hidden"},fontSize:2,backgroundColor:"defaultbackground"},yn.createElement(pe,{disabled:!n.length,checked:v,onChange:I},m!=null?m:"Show Selected Only"))),yn.createElement($o,{droppableId:"droppable"},M=>yn.createElement("div",g({ref:M.innerRef},M.droppableProps),t.filter(x=>{let D=!0;return r&&(D=r(x)),D=D&&(v?P.has(u(x)):!0),D}).map(O),M.placeholder)))),h==="bottom"&&_())}qc.defaultProps={allowReorder:!0};function Xo(e){let{allowWrap:t,value:n,toLabel:r,onChange:o,onClearOption:a,readOnly:i,renderLabel:l}=e,{selectedMap:u}=dRe(e),d=m=>{let f=n[m],h=()=>{u.delete(f),a==null||a(f),o&&o([...u.keys()],new Map(u))},b=u.get(f),C=b!=null?r(b):`${f}`;return yn.createElement(Dt,{flexDirection:"row",alignItems:"center","data-name":"selected-option","data-id":f,mt:t?1:0,mr:1,className:"ab-ValueSelector__tag",onClick:y=>{var v,S,I;(I=(S=(v=y.target)==null?void 0:v.lastChild)==null?void 0:S.focus)==null||I.call(S)},style:{flex:"none"}},l?l(C):C,i?null:yn.createElement(re,{icon:"clear",ml:2,iconSize:14,variant:"text",style:{border:"none"},onClick:h}))},c=(0,tu.useCallback)(({remaining:m})=>yn.createElement(Sa.Text,{fontSize:2,style:{whiteSpace:"nowrap"}},"+",m," ",m>1?"others":"other"),[]);return yn.createElement(sRe,{style:e.style,marginRight:4,my:1,allowWrap:t,count:n.length,direction:"horizontal",renderItem:d,renderEllipsis:c})}var Sg=require("react");s();function fN(e,t,{sortUnorderedItems:n}){let r=e.reduce((i,l,u)=>(i.set(l,u),i),new Map),o=t.reduce((i,l,u)=>(i.set(l,u),i),new Map);function a(i,l){let u=o.has(i),d=u?o.get(i):-1,c=o.has(l),m=c?o.get(l):-1;return!u&&!c?n?i==l?0:i<l?-1:1:r.get(i)-r.get(l):u?c?d-m:-1:1}return[].concat(e).sort(a)}var xS=e=>{let m=e,{options:t,value:n,onChange:r,selectionBoxPosition:o="top"}=m,a=qe(m,["options","value","onChange","selectionBoxPosition"]),{api:i}=$e(),l=(0,Sg.useMemo)(()=>!n||!n.length?new Map:n.reduce((f,h)=>(f.set(h,!0),f),new Map),[n]),u=(0,Sg.useCallback)(f=>l.has(f),[l]),d=(0,Sg.useMemo)(()=>{let f=new Map;return t.forEach(h=>{var b;return f.set(h,(b=i.internalApi.getModuleFriendlyName(h))!=null?b:h)}),f},[t]),c=(0,Sg.useMemo)(()=>fN(t,n,{sortUnorderedItems:!0}),[u,t,n]);return pRe.createElement(qc,R(g({},a),{options:c,value:n,onChange:r,allowReorder:u,toIdentifier:f=>f,toLabel:f=>d.get(f),selectionBoxPosition:o,isOptionDisabled:e.isOptionDisabled,disabled:e.disabled}))};s();var Mr=A(require("react")),Pd=A(J()),cRe=require("react");var mRe=Mr.createContext({selectedIndex:0,tabCount:0,setSelectedIndex:e=>{}}),UAt=e=>e.type===eq||e.props.isTabsTab,WAt=e=>e.type===tq||e.props.isTabsContent,j=e=>{let x=e,{autoFocus:t=!0,children:n,onValueChange:r,defaultValue:o,value:a,keyboardNavigation:i=!0,selectedIndex:l,defaultSelectedIndex:u,onSelectedIndexChange:d}=x,c=qe(x,["autoFocus","children","onValueChange","defaultValue","value","keyboardNavigation","selectedIndex","defaultSelectedIndex","onSelectedIndexChange"]),[m,f]=fn(e,"selectedIndex",0),[h,b]=fn(e,"value",0),C=Mr.Children.toArray(n),y=[],v=C.filter(UAt).map((N,q)=>(y.push(N.props.value),Mr.cloneElement(N,{index:q,keyboardNavigation:i,autoFocus:t}))),S=C.filter(WAt),I=S.map(N=>N.props.value),P=(e.value!==void 0||e.defaultValue!==void 0)&&e.selectedIndex===void 0&&e.defaultSelectedIndex===void 0;if(P){let N=y.indexOf(h);N>-1&&(m=N),I.filter(F=>y.indexOf(F)!=-1).length===v.length&&S.sort((F,k)=>{let Y=F.props.value,Z=k.props.value;return y.indexOf(Y)-y.indexOf(Z)})}let T=N=>{if(P){let q=y[N];b(q)}f(N)},O=S[m],D=(O==null?void 0:O.props)||{},{value:_}=D,M=qe(D,["value"]);return Mr.createElement(mRe.Provider,{value:{selectedIndex:m,tabCount:v.length,setSelectedIndex:T}},Mr.createElement(Pd.Box,R(g({},c),{className:He(c.className,"ab-Tabs"),"data-selected-index":m}),Mr.createElement(Pd.Flex,{flexDirection:"row",className:"ab-Tabs__Strip"},Mr.createElement(Pd.Box,{className:"ab-Tabs__Filler"}),v,Mr.createElement(Pd.Flex,{flex:1,className:"ab-Tabs__Filler"})),Mr.createElement(Pd.Box,R(g({padding:2},M),{className:`${M.className||""} ab-Tabs__Body`}),O)))},eq=e=>{let f=e,{index:t,autoFocus:n,keyboardNavigation:r=!0,className:o}=f,a=qe(f,["index","autoFocus","keyboardNavigation","className"]),i=Mr.useContext(mRe),l="ab-Tabs__Tab",u=i.selectedIndex===e.index,d=i.selectedIndex===e.index+1,c=He(o,l,u?`${l}--active`:"",d?`${l}--before-active`:""),m=(0,cRe.useRef)(null);return Mr.useEffect(()=>{var h;u&&n&&r&&((h=m.current)==null||h.focus())},[u,n]),Mr.createElement(Pd.Box,R(g({ref:m,padding:2,tabIndex:u?0:-1},a),{className:c,onClick:h=>{var b;i.setSelectedIndex(e.index),(b=e.onClick)==null||b.call(e,h)},onKeyDown:h=>{var b;if(r){if(h.key==="Enter"&&i.setSelectedIndex(e.index),h.key==="ArrowLeft"){h.preventDefault();let C=e.index-1;C<0&&(C=i.tabCount-1),i.setSelectedIndex(C)}if(h.key==="ArrowRight"){h.preventDefault();let C=e.index+1;C>i.tabCount-1&&(C=0),i.setSelectedIndex(C)}}(b=e.onKeyDown)==null||b.call(e,h)}}))};eq.defaultProps={isTabsTab:!0};var tq=e=>Mr.createElement(Mr.Fragment,null,e.children);tq.defaultProps={isTabsContent:!0};j.Tab=eq;j.Content=tq;var nq=class extends Za.Component{constructor(t){var r,o,a;super(t);let n=(a=(o=(r=t.popupParams)==null?void 0:r.config)==null?void 0:o.initialTab)!=null?a:"ToolPanels";this.state={ToolPanelConfigView:n}}render(){let t=this.props.api.internalApi.getModuleService(),n=this.props.api.internalApi.getEntitlementService(),r=[];De.IsNotNullOrEmpty(this.props.ToolPanelState.ModuleButtons)&&this.props.ToolPanelState.ModuleButtons.forEach(f=>{let h=this.props.GridState.ModuleDropdownMenuItems.find(b=>b.module==f);h!=null&&h.isVisible&&r.push(f)});let o=this.props.GridState.ModuleDropdownMenuItems.map(f=>f.module),a=this.props.GridState.ModuleDropdownMenuItems.filter(f=>f.isVisible).map(f=>f.module);n.isModuleHiddenEntitlement("Dashboard")||a.push("Dashboard"),this.props.api.pluginsApi.getipushpullPluginApi()&&!n.isModuleHiddenEntitlement("IPushPull")&&a.push("IPushPull"),this.props.api.pluginsApi.getOpenFinPluginApi()&&!n.isModuleHiddenEntitlement("OpenFin")&&a.push("OpenFin");let i=yg.filter(f=>De.ContainsItem(a,f)),u=[...this.props.api.toolPanelApi.getCustomToolPanels().map(f=>f.name),...i],d=this.props.ToolPanelState.ToolPanels.map(f=>f.Name).filter(f=>u.includes(f)),c=n.isModuleReadOnlyEntitlement("ToolPanel"),m=f=>f==="SettingsPanel"?this.props.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard:!1;return Za.createElement(Vr,{headerText:"ToolPanel Configuration",glyphicon:this.props.moduleInfo.Glyph},Za.createElement(j,{"data-name":"toolPanelPopup-component",className:"ab-ToolPanelPopup",value:this.state.ToolPanelConfigView,style:{height:"100%"},onValueChange:f=>this.setState({ToolPanelConfigView:f})},Za.createElement(j.Tab,{value:"ToolPanels"},Za.createElement(We,{margin:0,value:"ToolPanels",checked:this.state.ToolPanelConfigView=="ToolPanels",tabIndex:-1},"Tool Panels")),Za.createElement(j.Tab,{value:"Buttons"},Za.createElement(We,{margin:0,value:"Buttons",checked:this.state.ToolPanelConfigView=="Buttons",tabIndex:-1},"Module Buttons")),Za.createElement(j.Content,{value:"ToolPanels",style:{flex:1,overflow:"auto"}},Za.createElement(xS,{options:u,value:d,noSelectionLabel:"No selected Tool Panel",xSelectedLabel:()=>"Visible ToolPanels:",onChange:f=>this.onToolPanelToolPanelsChanged(f),disabled:c})),Za.createElement(j.Content,{value:"Buttons",style:{flex:1,overflow:"auto"}},Za.createElement(xS,{options:o,value:r,noSelectionLabel:"No selected Module Button",xSelectedLabel:()=>"Visible Module Buttons:",isOptionDisabled:m,disabled:c,onChange:f=>this.props.onToolPanelSetModuleButtons(f)}))))}onShowGridPropertiesChanged(t){let r=t.target.value;this.setState({ToolPanelConfigView:r})}onToolPanelToolPanelsChanged(t){let n=this.props.ToolPanelState.ToolPanels,r=t.map(o=>{var a;return(a=n.find(i=>i.Name===o))!=null?a:{Name:o,VisibilityMode:"collapsed"}});this.props.onToolPanelSetToolPanels(r)}};function qAt(e){return{ToolPanelState:e.ToolPanel,GridState:e.Grid}}function zAt(e){return{onToolPanelSetModuleButtons:t=>e(_oe(t)),onToolPanelSetToolPanels:t=>e(Jp(t))}}var fRe=Ye(qAt,zAt)(nq);s();var Hr=A(require("react"));s();var vg=A(require("react")),hN=A(J());var hr=class extends vg.Component{render(){let t=this.props.colItems.map((r,o)=>vg.createElement(hN.Text,{key:o,fontSize:"var(--ab-font-size-3)",title:typeof r.Content=="string"?r.Content:void 0,style:{flex:r.Size,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"data-name":"list-group-cell",paddingLeft:1,paddingRight:1},r.Content)),n=He("ab-AdaptableObjectRow",this.props.isSuspended&&"ab-AdaptableObjectRow--is-suspended");return vg.createElement("div",{className:n,onClick:this.props.onClick,style:this.props.style},vg.createElement(hN.Flex,{"data-name":"list-group-item",className:"list-group-item",alignItems:"center",padding:2,margin:0,style:{overflowY:"visible"}},t))}};var WN=A(J());s();var Ag=A(require("react"));s();var zc=A(require("react")),gN=A(J());var Dd=class extends zc.Component{render(){let t=this.props.colItems.map((r,o)=>zc.createElement(gN.Text,{key:r.key||r.Content||o,fontWeight:"bold",fontSize:"var(--ab-font-size-3)",paddingLeft:1,paddingRight:1,style:{flex:r.Size}},r.Content)),n=zc.createElement(gN.Flex,{alignItems:this.props.headerAlign||"center",style:{width:"100%"}},t);return zc.createElement("div",{style:this.props.style,className:this.props.className},zc.createElement(Gt,{bodyScroll:!0,header:n,border:this.props.border,bodyProps:this.props.bodyProps},this.props.children))}};var wi=class extends Ag.Component{render(){let t=this.props.allowOverflow?"visible":"auto";return Ag.createElement("div",{style:g({},this.props.style),className:"ab-ObjectCollection"},Ag.createElement(Dd,{border:"none",colItems:this.props.colItems,headerAlign:this.props.headerAlign}),Ag.createElement("div",{style:{overflowY:t,boxShadow:"none"}},this.props.items))}};s();var hRe="11.1.7";s();var lr=A(require("react")),Og=A(J());s();var as=A(require("react"));s();var Qc=A(require("react"));s();var gRe=A(require("react"));var Td=e=>gRe.createElement(re,g({"data-name":"new",tooltip:"New",tone:"accent",icon:"plus",variant:"raised"},e),e.children===void 0?"New":e.children);s();var bN=A(require("react"));var wd=class extends bN.Component{render(){let t=[];return t.push({Size:3,Content:this.props.SummaryItems[0]}),t.push({Size:7,Content:this.props.SummaryItems[1]}),t.push({Size:2,Content:this.props.SummaryItems[2]}),bN.createElement(hr,{colItems:t})}};s();var RS=A(require("react"));var Oi=class extends RS.Component{render(){return RS.createElement("div",null,RS.createElement(Ct,{name:this.props.moduleInfo.Glyph,style:{fill:"var(--ab-color-text-on-primary)"}})," ",this.props.moduleInfo.FriendlyName)}};var Fi=class extends Qc.Component{render(){let t=[],n=this.props.newButtonDisabled?null:Qc.createElement(Td,{onClick:()=>this.props.onNew(),tooltip:"Create "+this.props.newButtonTooltip,accessLevel:this.props.accessLevel});return t.push(Qc.createElement("b",null,Qc.createElement(Oi,{moduleInfo:this.props.moduleInfo}))),t.push(this.props.moduleSummary),t.push(n),Qc.createElement(wd,{SummaryItems:t})}};s();var Nd=A(require("react"));s();var nu=A(require("react"));s();var bRe=A(require("react"));var Od=e=>{var t;return bRe.createElement(re,g({"data-name":"edit",tooltip:"Edit",variant:"text",icon:"edit",iconSize:(t=e.iconSize)!=null?t:24},e))};s();var CRe=A(require("react"));var CN=e=>CRe.createElement(re,g({"data-name":"clone",tooltip:"Clone",tone:"accent",icon:"clone",variant:"raised"},e),e.children===void 0?"Clone":e.children);s();var yN=A(require("react"));var rq=class extends yN.Component{render(){var u;let l=this.props,{onConfirmWarning:t,ConfirmAction:n,ConfirmationMsg:r,ConfirmationTitle:o,onClickAction:a}=l,i=qe(l,["onConfirmWarning","ConfirmAction","ConfirmationMsg","ConfirmationTitle","onClickAction"]);return yN.createElement(re,R(g({"data-name":"delete",tooltip:"Delete",variant:"text",icon:"trash",iconSize:(u=i.iconSize)!=null?u:24},i),{onClick:()=>this.onClick()}))}onClick(){if(this.props.ConfirmAction){let t={CancelButtonText:"Cancel",Header:this.props.ConfirmationTitle,Msg:this.props.ConfirmationMsg,ConfirmButtonText:"Delete",CancelAction:null,ConfirmAction:this.props.ConfirmAction,ShowInputBox:!1,MessageType:"Warning"};this.props.onConfirmWarning(t)}else this.props.onClickAction()}};function QAt(e,t){return{ConfirmAction:t.ConfirmAction,ConfirmationMsg:t.ConfirmationMsg,ConfirmationTitle:t.ConfirmationTitle}}function jAt(e){return{onConfirmWarning:t=>e(sf(t))}}var Fd=Ye(QAt,jAt)(rq);var xRe=A(J());s();var Md=A(require("react"));s();var xg=A(J());var yRe=require("react");var ir=A(require("react"));var SRe=e=>{let{showPopup:t,onClose:n,onConfirm:r,header:o}=e,[a,i]=(0,yRe.useState)({description:"",type:"Snapshot"});return ir.createElement(ir.Fragment,null,ir.createElement(vr,{modal:!0,"data-name":"teamsharing-popup",isOpen:t,onDismiss:n,autoFocus:!1,showCloseButton:!1,style:{minHeight:"auto",maxWidth:"50%"}},ir.createElement(xg.Flex,{flexDirection:"column"},ir.createElement(Nt,{"data-name":"teamsharing-popup-description",margin:2,mb:2,p:2,style:{fontSize:"var(--ab-font-size-3)"}},"Create a ",o," which may be either:",ir.createElement("ul",null,ir.createElement("li",null,ir.createElement("strong",null,"Snapshot"),": a one-off share of an exact copy of the current object"),ir.createElement("li",null,ir.createElement("strong",null,"Active"),': a "live" share that is automatically updated with every local change'))),ir.createElement(Je,{padding:2},ir.createElement(de,{label:"Description: "},ir.createElement(Ke,{autoFocus:!0,value:a.description,type:"string",width:300,placeholder:"Enter text",onChange:l=>i(R(g({},a),{description:l.target.value}))})),ir.createElement(de,{label:"Share: "},ir.createElement(xg.Flex,{flexDirection:"row"},ir.createElement(We,{checked:a.type==="Snapshot",onChange:()=>i(R(g({},a),{type:"Snapshot"}))},"Snapshot")," ",ir.createElement(We,{marginLeft:3,checked:a.type==="Active",onChange:()=>i(R(g({},a),{type:"Active"}))},"Active")," "))),ir.createElement(xg.Box,{marginTop:3},ir.createElement(xg.Flex,{padding:2},ir.createElement(re,{tone:"neutral",variant:"raised",onClick:()=>n(),"data-name":"cancel"},"Cancel"),ir.createElement("div",{style:{flex:1}}),ir.createElement(re,{tone:"accent","data-name":"ok",variant:"raised",disabled:we.IsNullOrEmpty(a.description),onClick:()=>r(a)},"OK"))))))};var Rg=class extends Md.Component{constructor(t){super(t),this.state={open:!1}}render(){var a;let o=this.props,{onShare:t,Header:n}=o,r=qe(o,["onShare","Header"]);return Md.createElement(Md.Fragment,null,Md.createElement(re,g({"data-name":"share",tooltip:"Share",variant:"text",icon:"team-share",iconSize:(a=r.iconSize)!=null?a:24,onClick:()=>this.setState({open:!0})},r)),this.state.open&&Md.createElement(SRe,{header:n,showPopup:!0,onClose:()=>this.setState({open:!1}),onConfirm:i=>{this.setState({open:!1}),t(i)}}))}};s();var Eg=A(require("react"));s();var ES=A(require("react")),vRe=A(J());var ARe=({checked:e,onChange:t,disabled:n,className:r,children:o,style:a={},"data-name":i})=>{let l=c=>{n||t(Boolean(c.target.checked))},u="ab-ToggleButton",d=He(r,u,e&&`${u}--checked`,n&&`${u}--disabled`);return ES.createElement("label",{"data-name":i,style:a,className:d},ES.createElement("input",{type:"checkbox",disabled:n,checked:Boolean(e),className:`${u}__input`,onChange:l}),ES.createElement(vRe.Flex,{alignItems:"center",justifyContent:e?"start":"end",className:`${u}__slider`},ES.createElement("div",{className:`${u}__text`},o)))};var SN=Eg.memo(({suspendableObject:e,onUnSuspend:t,onSuspend:n,style:r,disabled:o,accessLevel:a})=>{let i=Eg.useCallback(d=>{d?t(e):n(e)},[t,n]),l=a&&a==="ReadOnly"||o,u=e.IsSuspended;return Eg.createElement(ARe,{className:"ab-SuspendButton","data-name":e.IsSuspended?"un-suspend":"suspend",disabled:l,style:r,onChange:i,checked:!u},u?"inactive":"active")});var YAt=e=>{e.stopPropagation()},IS=class extends nu.Component{render(){return nu.createElement(xRe.Flex,{justifyContent:this.props.justifyContent||"center",margin:0,padding:0,onClick:YAt},this.props.showEdit&&nu.createElement(Od,{onClick:()=>this.props.editClick?this.props.editClick():null,style:{marginLeft:"0px",marginTop:"2px",marginBottom:"2px",marginRight:"2px",color:"var(--ab-color-text-on-edit)",fill:"var(--ab-color-text-on-edit)",background:"var(--ab-color-action-edit)"},disabled:this.props.overrideDisableEdit||this.props.accessLevel=="ReadOnly",tooltip:this.props.overrideTooltipEdit,accessLevel:this.props.accessLevel}),this.props.showClone&&nu.createElement(CN,{onClick:()=>this.props.cloneClick?this.props.cloneClick():null,style:{marginLeft:"0px",marginTop:"2px",marginBottom:"2px",marginRight:"2px",color:"var(--ab-color-text-on-clone)",fill:"var(--ab-color-text-on-clone)",background:"var(--ab-color-action-clone)"},children:null,disabled:this.props.overrideDisableClone||this.props.cloneAccessLevel=="ReadOnly",tooltip:this.props.overrideTooltipClone,accessLevel:this.props.cloneAccessLevel}),this.props.showDelete&&nu.createElement(Fd,{"data-name":"delete",style:{marginLeft:"1px",marginTop:"2px",marginBottom:"2px",marginRight:"1px",color:"var(--ab-color-text-on-delete)",fill:"var(--ab-color-text-on-delete)",background:"var(--ab-color-action-delete)"},disabled:this.props.overrideDisableDelete||this.props.accessLevel=="ReadOnly",tooltip:this.props.overrideTooltipDelete,ConfirmAction:this.props.confirmDeleteAction,ConfirmationMsg:"Are you sure you want to delete this "+this.props.entityType+"?",ConfirmationTitle:"Delete "+this.props.entityType,accessLevel:this.props.accessLevel}),this.props.showShare&&nu.createElement(Rg,{style:{marginLeft:"1px",marginTop:"2px",marginBottom:"2px",marginRight:"1px",color:"var(--ab-color-text-on-share)",fill:"var(--ab-color-text-on-share)",background:"var(--ab-color-action-share)"},onShare:t=>this.props.shareClick?this.props.shareClick(t):null,Header:`TeamSharing ${this.props.entityType}`,disabled:this.props.overrideDisableShare||this.props.accessLevel=="ReadOnly",tooltip:this.props.overrideTooltipShare,accessLevel:this.props.accessLevel}),this.props.showSuspend&&this.props.suspendableObject&&nu.createElement(SN,{style:{marginLeft:2,alignSelf:"center"},onSuspend:this.props.onSuspend,onUnSuspend:this.props.onUnSuspend,suspendableObject:this.props.suspendableObject,disabled:this.props.accessLevel=="ReadOnly"}))}};IS.defaultProps={suspendableObject:null,showEdit:!0,showDelete:!0,showShare:!1,showSuspend:!1,overrideDisableEdit:!1,overrideDisableDelete:!1,overrideDisableClone:!1,overrideDisableShare:!1,confirmDeleteAction:null,entityType:"",accessLevel:"Full",editSize:"xsmall",deleteSize:"xsmall",shareSize:"xsmall"};var va=class extends Nd.Component{render(){let t=[];return this.props.showBold?t.push(Nd.createElement("b",null,this.props.item1)):t.push(Nd.createElement("i",null,this.props.item1)),t.push(Nd.createElement("i",null,this.props.item2)),t.push(Nd.createElement(IS,{justifyContent:"start",confirmDeleteAction:this.props.onDelete,showEdit:this.props.showEdit,editClick:()=>this.props.onEdit(),shareClick:n=>this.props.onShare(n),showShare:this.props.showShare,entityType:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel})),Nd.createElement(wd,{SummaryItems:t})}};s();var Bd=A(require("react")),zRe=require("react"),xN=A(J());s();var Ot=A(require("react")),_d=require("react");var Ro=A(J());var FRe=A(PS());s();var ERe=()=>{let e=typeof globalThis!="undefined"?globalThis:window;return/(Mac|iPhone|iPod|iPad)/i.test(e.navigator.platform)};s();var IRe=A(require("react")),PRe=A(J()),vN=e=>IRe.createElement(PRe.Text,g({fontSize:1,color:"inputcolor"},e));s();var TRe=A(require("react")),Mi=require("react");s();var DRe=()=>(typeof globalThis!="undefined"?globalThis:window).ResizeObserver;var XAt=(e,t)=>{let n=DRe();if(!n)return()=>{};let r=new n(o=>{var u;let a=o[0],{width:i,height:l}=a.contentRect;if((u=a.borderBoxSize)!=null&&u[0])l=a.borderBoxSize[0].blockSize,i=a.borderBoxSize[0].inlineSize;else{let d=e.getBoundingClientRect();l=d.height,i=d.width}t({width:i,height:l})});return r.observe(e),()=>{r.disconnect()}},oq=(e,t,n={earlyAttach:!1})=>{let r=(0,Mi.useRef)({width:0,height:0}),o=a=>{let i;return e.current&&(i=XAt(e.current,l=>{l={width:Math.round(l.width),height:Math.round(l.height)};let u=r.current;(u.width!==l.width||u.height!==l.height)&&(r.current=l,a(l))})),()=>{i&&i()}};(0,Mi.useEffect)(()=>n.earlyAttach?()=>{}:o(t),[e.current,t,n.earlyAttach]),(0,Mi.useLayoutEffect)(()=>n.earlyAttach?o(t):()=>{},[e.current,t,n.earlyAttach])},JAt=e=>{let t=(0,Mi.useMemo)(()=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box"}),[]),{notifyOnMount:n,earlyAttach:r}=e,o=(0,Mi.useRef)(!0),a=(0,Mi.useRef)(null),i=(0,Mi.useCallback)(l=>{if(o.current&&!n){o.current=!1;return}e.onResize(l)},[e.onResize]);return oq(a,i,{earlyAttach:r||!1}),TRe.createElement("div",{ref:a,style:t})};JAt.defaultProps={notifyOnMount:!0,earlyAttach:!1};s();var wRe=A(require("react"));var ORe=(e,t)=>{let n=wRe.useCallback(r=>{if((r.ctrlKey||r.metaKey)&&(r.code==="ArrowUp"||r.code==="ArrowDown")){let o=r.code==="ArrowUp",a=t.reduce((i,l,u)=>(l!=="-"&&i.push(u),i),[]);e(i=>{let l=null,u=a.indexOf(i);if(o){let d=a[u-1];l=typeof d=="number"?d:a[a.length-1]}else{let d=a[u+1];l=typeof d=="number"?d:a[0]}return l})}},[t,e]);VM("keydown",n)};var Eo=e=>Ot.createElement(Ro.Text,g({fontSize:2,mb:3},e)),MRe=e=>Ot.createElement(Ro.Text,g({fontSize:2,mt:1},e)),NRe=Ot.createContext({data:null,sections:[],moduleInfo:null,setCurrentSection:e=>{},api:null,namedQuery:!1});function ze(){return Ot.useContext(NRe)}var $n=e=>{var M,x;let t=Rt(),n=Ot.useCallback(D=>t(Gl(D)),[]),{api:r}=$e(),o=0;if(e.defaultCurrentSectionName){let D=e.sections.findIndex(N=>N!=="-"&&N.title===e.defaultCurrentSectionName);D>=0&&(o=D)}let[a,i]=fn(e,"currentIndex",o,{onChange:D=>{var N;(N=e.onSectionChange)==null||N.call(e,D)}}),[l,u]=(0,_d.useState)(!1),[d]=(0,_d.useState)(()=>new Map),c=()=>{var D;l&&l.Name&&n(l),(D=e.onFinish)==null||D.call(e,e.data)},m=D=>{let N=e.sections[D];return N==="-"?Ot.createElement(Ot.Fragment,{key:D}):Ot.createElement(Ro.Flex,{flexDirection:"column",key:D,"data-name":`section-${D}`,style:{minHeight:"100%"},mr:2},Ot.createElement(Ro.Box,{py:3,paddingLeft:2,fontSize:4,className:"ab-OnePageWizard__details"},N.details),Ot.createElement(Ro.Box,{flex:1,className:"ab-OnePageWizard__section"},N.render(e.data,D)))},f=(0,_d.useRef)(null),h=Ot.createElement("div",{ref:f,className:"ab-OnePageWizard__selected-title-overlay",style:{position:"absolute",background:"var(--ab-cmp-one-page-wizard-selected-title__background)",pointerEvents:"none",borderRadius:"var(--ab__border-radius)",transition:"top 0.2s"}}),b=(0,_d.useRef)(null),[C,y]=(0,_d.useState)(0);oq(b,({width:D})=>{y(D)}),Ot.useEffect(()=>{let D=f.current,q=D.parentNode.children[a];D.style.top=`${q.offsetTop}px`,D.style.left=`${q.offsetLeft}px`,D.style.height=`${q.offsetHeight}px`,D.style.width=`${q.offsetWidth}px`},[a,C]),ORe(i,e.sections);let v=0,S=(0,_d.useRef)(null),I=0,P=null,T={data:e.data,api:r,sections:e.sections,setCurrentSection:i,namedQuery:l,moduleInfo:e.moduleInfo},O=e.sections.reduce((D,N,q)=>{if(N==="-")return D.set(q,!0),D;let F=N.isValid?N.isValid(e.data,r,T):!0;return F!==!0&&(I++,P==null&&(P=F)),D.set(q,F),D},new Map),_=!I;return Ot.createElement(lS.Provider,{value:{namedQuery:l,setNamedQuery:u}},Ot.createElement(NRe.Provider,{value:T},Ot.createElement(vr,{modal:!0,isOpen:!0,showCloseButton:!1,focusOnBrowserVisible:!0,style:{borderRadius:"var(--ab__border-radius)",overflow:"hidden",height:"80vh"},ref:S,onDismiss:()=>{var D;return(D=e.onHide)==null?void 0:D.call(e)},onKeyDown:D=>{if(D.metaKey||D.ctrlKey){let{key:N}=D;if(!isNaN(Number(N))){let q=Number(N);if(d.has(q)){let F=d.get(q);i(F),D.preventDefault(),D.stopPropagation(),requestAnimationFrame(()=>{var k;(k=S==null?void 0:S.current)==null||k.bringToFront()})}}}}},Ot.createElement(Ro.Flex,{className:"ab-OnePageWizard",flexDirection:"column","data-name":e.moduleInfo.FriendlyName?`${(0,FRe.default)(e.moduleInfo.FriendlyName)}-wizard`:"",style:g({height:"100%",width:"90vw",maxWidth:1e3},e.style)},Ot.createElement(Ro.Flex,{flexDirection:"row",alignItems:"stretch",flex:1,style:{overflow:"auto"}},Ot.createElement(Ro.Flex,{flexDirection:"column",padding:3,className:"ab-OnePageWizard__section-title-container",ref:b,style:{overflow:"auto",position:"relative",flex:"none"}},e.sections.map((D,N)=>{if(D==="-")return Ot.createElement(Ro.Box,{as:"hr",mt:2,className:"ab-OnePageWizard__section-separator",key:`${N}-`,style:{width:"100%",border:"none",borderTop:"1px solid var(--ab-color-inputborder)"}});v++,d.set(v,N);let q=N===a,F=!1;return Ot.createElement(Ro.Flex,{className:"ab-OnePageWizard__section-title","data-name":D.title,flexDirection:"row",style:{cursor:F?"auto":"pointer",zIndex:10,transition:"color 0.2s",opacity:F?.5:1},key:D.title,color:q?"var(--ab-cmp-one-page-wizard-section-title__color)":"",px:2,py:1,mt:N?2:0,onClick:()=>{F||i(N)}},Ot.createElement(vN,{mr:2,style:{display:"inline-block"}},v),Ot.createElement("div",{style:{flex:1}},D.title),Ot.createElement(Ct,{name:"error",style:{marginLeft:"var(--ab-space-2)",visibility:O.get(N)!==!0?"visible":"hidden"}}))}),h,Ot.createElement(Ro.Box,{flex:1}),Ot.createElement(vN,{style:{lineHeight:1.5},className:"ab-OnePageWizard__key-hint"},ERe()?"Cmd":"Ctrl"," + #",Ot.createElement("br",null),"to navigate")),Ot.createElement(Ro.Flex,{flex:1,flexDirection:"column",className:"ab-OnePageWizard__section-container"},m(a))),Ot.createElement(Ro.Flex,{flexDirection:"row",padding:2,alignItems:"center",className:"ab-WizardDialog__footer ab-OnePageWizard__footer"},Ot.createElement(re,{tone:"neutral",variant:"text","data-name":"close",onClick:()=>{var D;return(D=e.onHide)==null?void 0:D.call(e)},tooltip:(M=e.closeTooltip)!=null?M:"Close wizard",accessLevel:"Full"},(x=e.closeText)!=null?x:"CLOSE"),Ot.createElement(vN,{ml:2},"Esc"),Ot.createElement(Ro.Text,{fontSize:2,mr:3,className:"ab-OnePageWizard__error",style:{flex:1,color:"var(--ab-color-error)",textAlign:"end"}},P),Ot.createElement(re,{tone:"accent","data-name":"finish",variant:"raised",disabled:_!==!0,onClick:()=>c(),icon:"check",accessLevel:"Full"},"Finish"))))))},Xn=()=>{let{sections:e,setCurrentSection:t,data:n,api:r}=ze(),o=a=>Ot.createElement(re,{px:1,variant:"text",style:{textDecoration:"underline",display:"inline-block",fontSize:"var(--ab-font-size-2)"},onClick:()=>{t(a)}},"edit");return Ot.createElement(Ot.Fragment,null,e.map((a,i)=>a==="-"||!a.renderSummary?null:Ot.createElement(j,{keyboardNavigation:!1,mt:i?2:0,key:i},Ot.createElement(j.Tab,null,a.title," ",o(i)),Ot.createElement(j.Content,null,a.renderSummary(n,r)))).filter(Boolean))};s();var ru=A(require("react")),kRe=A(J());s();var _Re=A(require("react")),LRe=require("react");var DS=e=>{let{columnFilterText:t,availableColumns:n,selected:r,onChange:o,singleSelect:a}=e,i=(0,LRe.useMemo)(()=>t?l=>l.friendlyName.toLowerCase().indexOf(t.toLowerCase())!=-1:null,[t]);return _Re.createElement(qc,{value:r,options:n,filter:i,singleSelect:a,allowReorder:!1,onChange:l=>{o(a?l.length?[l.pop()]:[]:l)},toIdentifier:l=>l.columnId,toLabel:l=>l.friendlyName,noSelectionLabel:a?"Please select a column":"You have not selected any columns.",xSelectedLabel:a?()=>null:l=>l>1?`You selected ${l} columns.`:"You selected one column."})};DS.defaultProps={allowReorder:!0};var BRe=e=>{let{api:t}=ze();return ru.createElement(kRe.Text,{pr:2,py:2,fontSize:2},"Custom sort column: ",ru.createElement(Dt,null,t.columnApi.getFriendlyNameFromColumnId(e.ColumnId)))},VRe=e=>e.ColumnId?!0:"You have to select a Column for Custom Sort",GRe=e=>{let{data:t,api:n}=ze(),r=ru.useMemo(()=>{var u,d;let o=n.columnApi.getSortableColumns(),a=n.customSortApi.getAllCustomSort(),i=((d=(u=n.internalApi.getAdaptableOptions())==null?void 0:u.generalOptions)==null?void 0:d.customSortComparers)||[],l=[...a.map(c=>c.ColumnId),...i.map(c=>n.scopeApi.getColumnIdsInScope(c.scope))];return o.filter(c=>!e.isNew&&c.columnId===(t==null?void 0:t.ColumnId)?!0:l.every(m=>c.columnId!==m))},[]);return ru.createElement(j,{style:{height:"100%"}},ru.createElement(j.Tab,null,"Column"),ru.createElement(j.Content,null,ru.createElement(DS,{availableColumns:r,selected:t.ColumnId?[t.ColumnId]:[],singleSelect:!0,onChange:o=>{e.onChange(R(g({},t),{ColumnId:o[0]}))},allowReorder:!1})))};s();var os=A(require("react")),kd=require("react"),HRe=A(J());s();s();var TS=A(require("react")),AN=e=>TS.createElement("div",{style:e.style,className:"ab-Loader__Spinner"}),wS=e=>TS.createElement("div",{style:e.style,className:"ab-Loader"},TS.createElement(AN,null),TS.createElement("span",{className:"ab-Loader__text"},e.children));s();var Ld=async(e,t,n=100)=>{let r=!1;return e==null||e.then(()=>{r=!0}),(async()=>(await new Promise(o=>setTimeout(o,n)),r||t()))(),e};var URe=e=>!e.SortedValues||!e.SortedValues.length?"You have to specify at least one value for Custom Sort order":!0,WRe=e=>e.SortedValues.length?os.createElement(HRe.Text,{fontSize:2},os.createElement(Xo,{options:e.SortedValues,value:e.SortedValues,toIdentifier:t=>`${t}`,toLabel:t=>`${t}`,allowWrap:!0,readOnly:!0})):null,qRe=e=>{let{data:t,api:n}=ze(),[r,o]=(0,kd.useState)([]),[a,i]=(0,kd.useState)(!1);(0,kd.useEffect)(()=>{let f=!0;return(async()=>{o([]);let h=await Ld(n.columnApi.getDistinctCustomSortDisplayValuesForColumn(t.ColumnId),()=>f&&i(!0));!f||(i(!1),o(h))})(),()=>{f=!1}},[t.ColumnId]);let l=(0,kd.useMemo)(()=>!t.SortedValues||!t.SortedValues.length?new Map:t.SortedValues.reduce((f,h)=>(f.set(h,!0),f),new Map),[t.SortedValues]),u=os.useCallback(f=>l.has(f),[l]),d=(0,kd.useMemo)(()=>fN(r,t.SortedValues,{sortUnorderedItems:!1}),[u,r,t.SortedValues]),c="ab-CustomSortWizard__SortOrder",m=He(c,a&&`${c}--loading`);return os.createElement(j,{style:{height:"100%"},className:m},os.createElement(j.Tab,null,"Sort Order"),os.createElement(j.Content,null,a&&os.createElement(wS,null,"Loading"),os.createElement(qc,{toIdentifier:f=>`${f}`,toLabel:f=>`${f}`,options:d,value:t.SortedValues,allowReorder:u,xSelectedLabel:()=>"Your Sort Order:",onChange:f=>{e.onChange(R(g({},t),{SortedValues:f}))}})))};var RN=e=>{var l,u;let t=e.data,n=rr(d=>{var c;return(c=d.CustomSort)==null?void 0:c.CustomSorts});((l=e.popupParams)==null?void 0:l.action)==="Edit"&&((u=e.popupParams)==null?void 0:u.column)&&(t=n.find(d=>{var c;return d.ColumnId==((c=e.popupParams)==null?void 0:c.column.columnId)}));let[r,o]=(0,zRe.useState)(()=>{var c,m;if(t)return Bn(t);let d=it.CreateEmptyCustomSort();return(c=e.popupParams)!=null&&c.column&&(d.ColumnId=(m=e.popupParams)==null?void 0:m.column.columnId),d}),a=Rt(),i=()=>{a(t?Lu(r):_u(r)),e.onFinishWizard(r)};return Bd.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:r,onFinish:i,onHide:e.onCloseWizard,sections:[{isValid:VRe,renderSummary:BRe,details:"Select a Column for Custom Sort",render:()=>Bd.createElement(xN.Box,{padding:2,style:{height:"100%"}},Bd.createElement(GRe,{isNew:e.isNew,onChange:o})),title:"Column"},{title:"Sort Order",details:'Select values to specify Custom Sort order - use "Drag to reorder" checkbox to modify order',isValid:URe,renderSummary:WRe,render:()=>Bd.createElement(xN.Box,{padding:2,style:{height:"100%"}},Bd.createElement(qRe,{onChange:o}))},"-",{title:"Summary",details:"Review your Custom Sort",render:()=>Bd.createElement(xN.Box,{padding:2},Bd.createElement(Xn,null))}]})};var aq=class extends as.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.CustomSorts.find(r=>r.ColumnId==n.ColumnId)?this.props.onEditCustomSort(n):this.props.onAddCustomSort(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=this.props.CustomSorts.find(i=>i.ColumnId==this.props.summarisedColumn.columnId),r=this.props.api.internalApi.getCustomSortComparer(this.props.summarisedColumn),o=n==null&&r==null,a;return this.props.summarisedColumn.sortable?o?a=as.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"No Custom Sort Set",onNew:()=>this.onNew(),accessLevel:this.props.accessLevel,newButtonTooltip:this.props.moduleInfo.FriendlyName}):r!=null?a=as.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"Using a Custom Sort Comparer Function",onNew:()=>this.onNew(),accessLevel:this.props.accessLevel,newButtonTooltip:this.props.moduleInfo.FriendlyName}):a=as.createElement(va,{key:this.props.moduleInfo.FriendlyName,item1:as.createElement(Oi,{moduleInfo:this.props.moduleInfo}),item2:this.getCustomSortedValues(n),configEnity:n,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(n),showEdit:n!=null,onShare:i=>this.props.onShare(n,i),showShare:this.props.teamSharingActivated,onDelete:Hf(n),showBold:!0,accessLevel:this.props.accessLevel}):a=as.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"Column is not sortable",newButtonDisabled:!0,onNew:()=>this.onNew(),newButtonTooltip:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel}),as.createElement("div",null,a,this.state.editedAdaptableObject&&as.createElement(RN,{isNew:this.state.wizardStatus==="New",moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.CustomSorts,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onNew(){let n=Vt.CreateEmptyCustomSort();n.ColumnId=this.props.summarisedColumn.columnId,this.setState({editedAdaptableObject:n,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){this.setState({editedAdaptableObject:Mt.cloneObject(n),wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNotNullOrEmpty(n.ColumnId)&&Ee.IsNotNullOrEmpty(n.SortedValues)}getCustomSortedValues(n){return Ee.IsNotNullOrEmpty(n.SortedValues)?n.SortedValues.join(", "):"[Has bespoke Custom Sort implementing using bespoke function]"}};function ZAt(e,t){return{CustomSorts:e.CustomSort.CustomSorts}}function ext(e){return{onAddCustomSort:t=>e(_u(t)),onEditCustomSort:t=>e(Lu(t)),onShare:(t,n)=>e(da(t,bo,n))}}var QRe=Ye(ZAt,ext)(aq);s();var Wd=A(require("react"));s();var OS=A(require("react"));var Aa=class extends OS.Component{render(){if(!this.props.Style)return null;let t=Qe.IsNotNullOrEmpty(this.props.Text)?this.props.Text:"Style",n;if(this.props.Style.ClassName)n=OS.createElement("div",null,"CSS Class: "+this.props.Style.ClassName);else{let r=this.props.Style.BackColor!=null?this.props.Style.BackColor:null,o=this.props.Style.ForeColor!=null?this.props.Style.ForeColor:"black",a=this.props.Style.BorderColor!=null?this.props.Style.BorderColor:null,i=this.props.Style.FontWeight=="Bold"?"bold":"normal",l=this.props.Style.FontStyle=="Italic"?"italic":"normal",u=ba.getCssFontSizeFromFontSizeEnum(this.props.Style.FontSize);n=OS.createElement("div",{className:this.props.Style.BackColor!=null?"":"ab_white_grey_stripes",style:{textAlign:"center",margin:"2px",padding:"3px",background:r,color:o,borderColor:a,borderStyle:a?"solid":"none",fontWeight:i,fontStyle:l,fontSize:u}},t)}return n}};s();var Ra=A(require("react")),oEe=require("react"),jc=A(J());s();var iq=A(require("react"));var jRe=A(J());var txt=e=>R(g({},Hc(e!=null?e:{})),{borderWidth:e!=null&&e.BorderColor?2:0,borderStyle:"solid"}),YRe=e=>iq.createElement(jRe.Text,{padding:2,style:txt(e.Style)},"Preview result");function KRe(e){let{data:t,api:n}=ze();return iq.createElement(ya,{headless:!0,api:n,Style:t.Style,UpdateStyle:r=>{e.onChange(R(g({},t),{Style:r}))}})}s();var FS=A(require("react"));s();var Zt=A(require("react")),$Re=require("react"),ei=A(J());var Ni=({Scope:e})=>{let t=[];return e?(e&&"ColumnIds"in e&&e.ColumnIds.length===0&&t.push("No columns selected for scope"),e&&"DataTypes"in e&&e.DataTypes.length===0&&t.push("No data types selected for scope"),t.length?t.join(", "):!0):"No scope specified or scope is empty"},XRe={Date:{label:"Date",value:"Date"},Number:{label:"Number",value:"Number"},String:{label:"String",value:"String"},Boolean:{label:"Boolean",value:"Boolean"}},nxt=Object.values(XRe),is=(e,t)=>{let r=$e().api.scopeApi,o=r.getColumnsForScope(e);return Zt.createElement(Zt.Fragment,null,Zt.createElement(ei.Box,null,Zt.createElement(Eo,{mb:0},r.scopeIsAll(e)?t.scopeWholeRow:null)),Zt.createElement(ei.Box,{style:{overflow:"hidden"}},"ColumnIds"in e?Zt.createElement(Zt.Fragment,null,Zt.createElement(Eo,{mb:o.length?2:0},t.scopeColumns),o.length?Zt.createElement(Xo,{options:o,value:o.map(a=>a.columnId),toLabel:a=>a.friendlyName,allowWrap:!0,readOnly:!0,renderLabel:a=>Zt.createElement(Eo,{mb:0},a),toIdentifier:a=>a.columnId}):null):null),Zt.createElement(ei.Box,null,"DataTypes"in e?Zt.createElement(Zt.Fragment,null,Zt.createElement(ei.Text,{fontSize:2,mb:2},t.scopeDataTypes),Zt.createElement(Xo,{readOnly:!0,options:e.DataTypes,value:e.DataTypes,toLabel:a=>a,allowWrap:!0,renderLabel:a=>Zt.createElement(ei.Text,{fontSize:2},`DataType: ${a}`),toIdentifier:a=>a})):null))},xa=e=>{let{api:t}=$e(),{scopeApi:n,columnApi:r}=t,[o,a]=(0,$Re.useState)(""),i=e.scopeColumns||r.getColumns(),l=b=>{if(!!b){if(n.scopeIsAll(b))return"All";if(n.scopeHasColumns(e.scope))return"Column";if(n.scopeHasDataType(e.scope))return"DataType"}},u=b=>{let C;b=="Column"?C={ColumnIds:[]}:b=="DataType"?C={DataTypes:[]}:C={All:!0},e.updateScope(C)},d=b=>{let C={ColumnIds:b};e.updateScope(C)},c=(b,C)=>{let y=[].concat(n.getDataTypesInScope(e.scope));if(b)y.push(C);else{let S=y.indexOf(C,0);S>-1&&y.splice(S,1)}let v={DataTypes:y};e.updateScope(v)},m=l(e.scope),f=e.scope&&"DataTypes"in e.scope?n.getDataTypesInScope(e.scope):null,h=nxt;return Array.isArray(e.availableDataTypes)&&(h=e.availableDataTypes.map(b=>XRe[b])),Zt.createElement(j,{"data-name":"scope-component",className:"ab-ScopeComponent",value:m,style:g({height:"100%"},e.style),onValueChange:u},e.hideWholeRow?null:Zt.createElement(j.Tab,{value:"Row"},Zt.createElement(We,{margin:0,checked:m=="All",tabIndex:-1},"Whole Row")),Zt.createElement(j.Tab,{value:"Column"},Zt.createElement(We,{margin:0,value:"Column",checked:m=="Column",tabIndex:-1},"Columns")),Zt.createElement(j.Tab,{value:"DataType"},Zt.createElement(We,{margin:0,value:"DataType",checked:m=="DataType",tabIndex:-1},"Data Types")),e.hideWholeRow?null:Zt.createElement(j.Content,{value:"Row",style:{flex:"none"},"data-name":"row-scope"},Zt.createElement(ei.Text,{padding:2,fontSize:2},e.descriptions.rowScope)),Zt.createElement(j.Content,{value:"Column",style:{flex:1,overflow:"auto"},"data-name":"column-scope",padding:0},Zt.createElement(ei.Flex,{flexDirection:"row",alignItems:"center",padding:2},Zt.createElement(ei.Text,{fontSize:2},e.descriptions.columnScope),Zt.createElement(ei.Flex,{flex:3}),Zt.createElement(Ii,{value:o,OnTextChange:a,placeholder:"Type to search columns",style:{flex:1}})),Zt.createElement(ei.Flex,{paddingLeft:2,flex:1,style:{overflow:"hidden"}},Zt.createElement(DS,{columnFilterText:o,allowReorder:!1,availableColumns:i,selected:n.getColumnIdsInScope(e.scope),onChange:d}))),Zt.createElement(j.Content,{value:"DataType",style:{flex:"none"},"data-name":"datatype-scope"},h.map(b=>Zt.createElement(pe,{key:b.value,"data-name":"scope",checked:f&&f.includes(b.value),onChange:C=>c(C,b.value)},b.label))))};s();var EN="NonBlanks";var JRe=e=>is(e.Scope,{scopeWholeRow:"Matching rows will display the Conditionally Style",scopeColumns:"Cells in selected columns will display the Conditionally Style",scopeDataTypes:"Cells in columns of the selected data-types will display the Conditionally Style"});function ZRe(e){let{data:t,api:n}=ze();return FS.createElement(FS.Fragment,null,FS.createElement(xa,{scope:t.Scope,descriptions:{rowScope:"Matching Rows will have the Conditional Style applied",columnScope:"Matching Columns will have the Conditional Style applied"},updateScope:r=>{let o=R(g({},t),{Scope:r}),a=n.scopeApi.scopeIsAll(r);o.Rule.Predicate&&(a?(delete o.Rule.Predicate,o.Rule.BooleanExpression=""):o.Rule.Predicate={PredicateId:EN}),e.onChange(o)}}))}s();var Rr=A(require("react"));s();var ln=A(require("react")),Vd=A(J());var PN=(e,t,n)=>{var r,o,a,i,l,u;return!((r=e==null?void 0:e.Rule)!=null&&r.Predicate)&&!((o=e==null?void 0:e.Rule)!=null&&o.BooleanExpression)?"No valid Condition is specified":(a=e==null?void 0:e.Rule)!=null&&a.Predicate&&!t.predicateApi.isValidPredicate((i=e==null?void 0:e.Rule)==null?void 0:i.Predicate)?"The Predicate is not valid":(l=e==null?void 0:e.Rule)!=null&&l.BooleanExpression&&!t.queryLanguageApi.isValidBooleanExpression((u=e==null?void 0:e.Rule)==null?void 0:u.BooleanExpression,n.moduleInfo.ModuleName)?"The Expression is not a valid Boolean Expression":!0},IN=e=>{let i=e,{type:t,label:n,disabled:r=!1}=i,o=qe(i,["type","label","disabled"]),a=ln.createElement(Vd.Flex,{flexDirection:"column"},n," ",ln.createElement(Vd.Text,{fontSize:2},"query"));return ln.createElement(j.Tab,g({style:{flex:1}},o),r?a:ln.createElement(We,{tabIndex:-1,margin:0,checked:t===e.value,style:{alignItems:"baseline"}},a))};IN.defaultProps={isTabsTab:!0};var Gd=e=>{let{data:t}=e,{api:{predicateApi:n,queryLanguageApi:r}}=$e();return ln.createElement(Vd.Text,{fontSize:2},t.Rule.Predicate?ln.createElement(ln.Fragment,null,e.renderPredicate(n.predicateToString(t.Rule.Predicate))):ln.createElement(ln.Fragment,null,e.renderQueryExpression(r.getAdaptableQueryExpression(t.Rule))))},Hd=e=>{var N,q;let{data:t,children:n,descriptions:r,predicateDefs:o,showPredicate:a=!0,showObservable:i=!0,showBoolean:l=!0,showAggregation:u=!0,flexProps:d,module:c}=e,{api:m}=$e(),f=t.Rule.BooleanExpression!=null?"BooleanExpression":t.Rule.ObservableExpression!=null&&i?"ObservableExpression":t.Rule.AggregatedBooleanExpression!=null&&u?"AggregatedBooleanExpression":"Predicate",[h,b]=ln.useState(f),C=F=>{b(F),F==="BooleanExpression"&&l?e.onChange(R(g({},t),{Rule:{BooleanExpression:""}})):F==="ObservableExpression"&&i?e.onChange(R(g({},t),{Rule:{ObservableExpression:""}})):F==="AggregatedBooleanExpression"&&u?e.onChange(R(g({},t),{Rule:{AggregatedBooleanExpression:""}})):e.onChange(R(g({},t),{Rule:{Predicate:{PredicateId:e.defaultPredicateId}}}))},y=t.Rule.Predicate!=null?t.Rule.Predicate.PredicateId:void 0,v=y?(N=t.Rule.Predicate.Inputs)!=null?N:[]:[],S=m.predicateApi.getPredicateDefById(y),I=(F,k)=>{let{value:Y}=F.target,Z=[...v];Z[k]=Y,e.onChange(R(g({},t),{Rule:{Predicate:{PredicateId:y,Inputs:Z}}}))},P=F=>{var k;F?e.onChange(R(g({},t),{Rule:{Predicate:{PredicateId:F.id,Inputs:((k=F==null?void 0:F.inputs)!=null?k:[]).map(Y=>{var Z;return(Z=Y.defaultValue)!=null?Z:""})}}})):e.onChange(R(g({},t),{Rule:{BooleanExpression:""}}))},T=()=>{e.onChange(R(g({},t),{Rule:{Predicate:void 0}}))},O=F=>{e.onChange(R(g({},t),{Rule:{BooleanExpression:F}}))},_=F=>{e.onChange(R(g({},t),{Rule:{ObservableExpression:F}}))},M=F=>{e.onChange(R(g({},t),{Rule:{AggregatedBooleanExpression:F}}))},x=m.internalApi.getQueryPreviewData(),D=m.internalApi.isDocumentationLinksDisplayed();return ln.createElement(Vd.Flex,R(g({flexDirection:"column",padding:2,pt:0,pl:0},d),{style:g({height:"100%"},d==null?void 0:d.style)}),n,ln.createElement(j,{onValueChange:C,value:h,pt:2,pl:2,style:{flex:1,overflow:"auto"}},a?ln.createElement(j.Tab,{value:"Predicate",style:{flex:1}},ln.createElement(We,{tabIndex:-1,margin:0,checked:f==="Predicate"},"Predicate")):null,a?ln.createElement(j.Content,{value:"Predicate"},ln.createElement(Vd.Text,{fontSize:2,mb:2},r.selectPredicate),ln.createElement(Ze,{style:{minWidth:"15rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"inherit"},placeholder:"Select Rule",showClearButton:!!t.Rule.Predicate,onClear:T,items:o.map(F=>({value:F.id,label:F.label,onClick:()=>P(F)})),columns:["label"]},S?S.label:"Select Rule"),(q=S==null?void 0:S.inputs)==null?void 0:q.map((F,k)=>ln.createElement(Vd.Flex,{key:y+k,flexDirection:"column"},k>0&&ln.createElement(Nt,{marginTop:2},"AND"),ln.createElement(Yn,{marginTop:2,type:F.type,autoFocus:k===0,value:v[k],onChange:Y=>I(Y,k)}))),D&&ln.createElement(Nt,{"data-name":"query-documentation",mt:3,mb:2,style:{fontSize:"var(--ab-font-size-3)",padding:0}},ln.createElement(so,{mr:2,style:{color:"var(--ab-color-text-on-add)",fill:"var(--ab-color-text-on-add)",background:"var(--ab-color-action-add)"},onClick:()=>window.open(Gve,"_blank")}),"See Predicate documentation for more details and examples")):null,l?ln.createElement(IN,{value:"BooleanExpression",type:f,label:"Boolean"}):null,l?ln.createElement(j.Content,{value:"BooleanExpression",paddingLeft:0},ln.createElement($a,{type:"boolean",module:c,value:t.Rule.BooleanExpression,onChange:O,initialData:x,columns:m.columnApi.getQueryableColumns(),namedQueries:m.queryApi.getAllNamedQuery(),api:m})):null,i?ln.createElement(IN,{value:"ObservableExpression",type:f,label:"Observable"}):null,i?ln.createElement(j.Content,{value:"ObservableExpression",paddingLeft:0},ln.createElement($a,{type:"observable",module:c,value:t.Rule.ObservableExpression,onChange:_,initialData:x,columns:m.columnApi.getQueryableColumns(),namedQueries:m.queryApi.getAllNamedQuery(),api:m})):null,u?ln.createElement(IN,{value:"AggregatedBooleanExpression",type:f,label:"AggregatedBoolean"}):null,u?ln.createElement(j.Content,{value:"AggregatedBooleanExpression",paddingLeft:0},ln.createElement($a,{type:"aggregatedBoolean",module:c,value:t.Rule.AggregatedBooleanExpression,onChange:M,initialData:x,columns:m.columnApi.getQueryableColumns(),namedQueries:m.queryApi.getAllNamedQuery(),api:m})):null))};function eEe(e){return Rr.createElement(Gd,{data:e,renderPredicate:t=>Rr.createElement(Rr.Fragment,null,"Apply Conditional Style on ",Rr.createElement(Fn,null,t)),renderQueryExpression:t=>Rr.createElement(Rr.Fragment,null,"Apply Conditional Style when"," ",Rr.createElement("b",null,Rr.createElement(Fn,null,t)))})}function tEe(e){let{data:t,api:n,moduleInfo:r}=ze();return Rr.createElement(Rr.Fragment,null,Rr.createElement(Hd,{module:r.ModuleName,defaultPredicateId:e.defaultPredicateId,predicateDefs:n.conditionalStyleApi.getCondStylePredicateDefsForScope(t.Scope),showAggregation:!1,showObservable:!1,showPredicate:!n.scopeApi.scopeIsAll(t.Scope),data:t,onChange:e.onChange,descriptions:{selectPredicate:"Select a Conditional Style Rule - to be applied when data changes",useBooleanQuery:Rr.createElement(Rr.Fragment,null,"Use an BooleanQuery if ",Rr.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:Rr.createElement(Rr.Fragment,null,"Use an ObservableQuery if ",Rr.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression"),useAggregationQuery:Rr.createElement(Rr.Fragment,null,"Use an AggregatedBooleanQuery if ",Rr.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")}}))}s();var _i=A(require("react")),Ud=A(J());var nEe=e=>_i.createElement(Ud.Box,{padding:2},_i.createElement(Ud.Text,null,"Include grouped rows"),_i.createElement(Ud.Text,{mt:3},e.IncludeGroupedRows?"Yes":"No")),rEe=e=>{let{data:t}=ze(),n=r=>{e.onChange(R(g({},t),{IncludeGroupedRows:r}))};return _i.createElement(j,null,_i.createElement(j.Tab,null,"Settings"),_i.createElement(j.Content,null,_i.createElement(Ud.Flex,{flexDirection:"row"},_i.createElement(Je,null,_i.createElement(de,{label:"Include Grouped Rows:"},_i.createElement(Ud.Flex,{alignItems:"center",marginLeft:2},_i.createElement(pe,{checked:t.IncludeGroupedRows,onChange:n,mr:2})))))))};var DN=e=>{var i;let t=(i=e.data)!=null?i:e.popupParams.value,[n,r]=(0,oEe.useState)(()=>{var d,c,m;let l={BooleanExpression:""},u=t?Bn(t):it.CreateEmptyConditionalStyle();return u.Scope=(d=u.Scope)!=null?d:{All:!0},u.Rule||(u.Rule=l),!u.Rule.Predicate&&u.Rule.BooleanExpression==null&&(u.Rule.BooleanExpression=""),((c=e.popupParams)==null?void 0:c.action)==="New"&&((m=e.popupParams)==null?void 0:m.column)&&(u.Scope={ColumnIds:[e.popupParams.column.columnId]}),u}),o=Rt(),a=()=>{o(t?Nu(n):Mu(n)),e.onCloseWizard()};return Ra.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:n,onHide:e.onCloseWizard,onFinish:a,sections:[{title:"Style",details:"Specify the Style to be applied conditionally",renderSummary:YRe,render:()=>Ra.createElement(jc.Box,{padding:2},Ra.createElement(KRe,{onChange:r}))},{title:"Target",isValid:Ni,renderSummary:JRe,details:Ra.createElement(jc.Flex,{flexDirection:"row",alignItems:"center"},"Specify where the Conditional Style should be applied",Ra.createElement("div",{style:{flex:1}}),Ra.createElement(pe,{margin:0,marginLeft:2,onChange:l=>{r(R(g({},n),{IncludeGroupedRows:l}))},checked:n.IncludeGroupedRows},"Include Grouped Rows")),render:()=>Ra.createElement(jc.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},Ra.createElement(ZRe,{onChange:r}))},{isValid:PN,title:"Condition",details:"Build the rules when the Conditional Style should be applied",render:()=>Ra.createElement(tEe,{onChange:r,defaultPredicateId:EN}),renderSummary:eEe},{title:"Settings",renderSummary:nEe,render:()=>Ra.createElement(jc.Box,{padding:2},Ra.createElement(rEe,{onChange:r}))},"-",{details:"Review the Conditional Style",render:()=>Ra.createElement(jc.Box,{padding:2},Ra.createElement(Xn,null)),title:"Summary"}]})};var lq=class extends Wd.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.state.wizardStatus=="Edit"?this.props.onEditConditionalStyle(n):this.props.onAddConditionalStyle(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=[],r=Wd.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:Mt.ReturnItemCount(this.props.ConditionalStyles.filter(o=>this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,o.Scope)),this.props.moduleInfo.FriendlyName),onNew:()=>this.onNew(),newButtonTooltip:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel});return n.push(r),this.props.ConditionalStyles.map((o,a)=>{if(this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,o.Scope)){let i=Wd.createElement(va,{key:"CS"+a,item1:Wd.createElement(Aa,{Style:o.Style}),item2:o.Rule.BooleanExpression?o.Rule.BooleanExpression:this.props.api.predicateApi.predicateToString(o.Rule.Predicate),configEnity:o,moduleInfo:this.props.moduleInfo,showShare:this.props.teamSharingActivated,onEdit:()=>this.onEdit(o),onShare:l=>this.props.onShare(o,l),onDelete:eE(o),accessLevel:this.props.accessLevel});n.push(i)}}),Wd.createElement("div",null,n,this.state.editedAdaptableObject&&Wd.createElement(DN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:null,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onNew(){let n=Vt.CreateEmptyConditionalStyle();n.Scope={ColumnIds:[this.props.summarisedColumn.columnId]},this.setState({editedAdaptableObject:n,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){this.setState({editedAdaptableObject:Mt.cloneObject(n),wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNullOrEmpty(n.Rule.BooleanExpression)||!this.props.api.queryLanguageApi.isValidBooleanExpression(n.Rule.BooleanExpression,Vn)?!1:Wt.IsNotEmptyStyle(n.Style)}};function rxt(e,t){return{ConditionalStyles:e.ConditionalStyle.ConditionalStyles,NamedQueries:e.Query.NamedQueries}}function oxt(e){return{onAddConditionalStyle:t=>e(Mu(t)),onEditConditionalStyle:t=>e(Nu(t)),onAddNamedQuery:t=>e(Gl(t)),onShare:(t,n)=>e(da(t,Vn,n))}}var aEe=Ye(rxt,oxt)(lq);s();var Yc=A(require("react"));s();var TN=A(require("react"));var ti=class extends TN.Component{render(){return TN.createElement(re,R(g({"data-name":"clear",tooltip:"Clear",iconSize:20,icon:this.props.showIcon==!1?"":"clear"},this.props),{variant:"text"}),this.props.showText?"Clear":"")}};var sq=class extends Yc.Component{constructor(t){super(t),this.state=Wt.getEmptyConfigState()}render(){let t=this.props.ColumnFilters.find(o=>o.ColumnId==this.props.summarisedColumn.columnId),n=this.getDescription(t),r=[];return r.push(Yc.createElement("b",null,Yc.createElement(Oi,{moduleInfo:this.props.moduleInfo}))),r.push(n),r.push(Yc.createElement(ti,{marginLeft:1,onClick:()=>this.props.onClearFilter(t),tooltip:"Clear Filter",disabled:t==null,accessLevel:this.props.accessLevel})),Yc.createElement(wd,{SummaryItems:r})}getDescription(t){return this.props.summarisedColumn&&!this.props.summarisedColumn.filterable?"Column is not filterable":t==null?"No Column Filter Active":this.props.api.filterApi.columnFilterToString(t)}};function axt(e,t){return{ColumnFilters:e.Filter.ColumnFilters}}function ixt(e){return{onClearFilter:t=>e(Bl(t)),onClearPopupParams:()=>e(uf()),onShare:(t,n)=>e(da(t,Co,n))}}var iEe=Ye(axt,ixt)(sq);s();var Kc=A(require("react"));s();var ni=A(require("react")),dq=A(J());s();var wN=A(require("react"));var lEe=e=>{let{data:t,api:n}=ze(),r=wN.useMemo(()=>n.columnApi.getNumericColumns(),[]);return wN.createElement(xa,{availableDataTypes:["Number"],scopeColumns:r,scope:t.Scope,descriptions:{rowScope:"Matching rows will have the plus/minus applied",columnScope:"Matching Columns will have the plus/minus applied"},updateScope:o=>{let a=o;o&&"DataTypes"in o&&o.DataTypes.length===0&&(a=R(g({},o),{DataTypes:["Number"]})),e.onChange(R(g({},t),{Scope:a}))}})};s();var eo=A(require("react")),uq=A(J());s();var Ea=A(require("react"));function sEe(){let{data:e}=ze();return Ea.createElement(Gd,{data:e,renderPredicate:t=>Ea.createElement(Ea.Fragment,null,"Apply Plus Minus on ",Ea.createElement(Fn,null,t)),renderQueryExpression:t=>Ea.createElement(Ea.Fragment,null,"Apply Plus Minus when"," ",Ea.createElement("b",null,Ea.createElement(Fn,null,t)))})}function uEe(e){var o;let{data:t,moduleInfo:n}=ze(),r=R(g({},t),{Rule:(o=t==null?void 0:t.Rule)!=null?o:{BooleanExpression:""}});return Ea.createElement(Hd,{module:n.ModuleName,flexProps:{style:{minHeight:0}},defaultPredicateId:e.defaultPredicateId,predicateDefs:[],showAggregation:!1,showObservable:!1,showPredicate:!1,data:r,onChange:a=>e.onChange(a),descriptions:{selectPredicate:null,useBooleanQuery:Ea.createElement(Ea.Fragment,null,"Use an BooleanQuery if ",Ea.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:null,useAggregationQuery:null}})}var dEe=e=>{var n;let{data:t}=ze();return eo.createElement(eo.Fragment,null,eo.createElement(Eo,null,"Nudge Value ",eo.createElement(Dt,null,(n=t.NudgeValue)!=null?n:"Not selected")),e.hasCondition&&eo.createElement(sEe,null))},pEe=e=>(t,n,r)=>{let o=e?PN(t,n,r):!0;return typeof o=="string"?o:typeof t.NudgeValue!="number"?"Nudge value is not specified":t.NudgeValue===0?"Nudge value must be different than 0":!0},cEe=e=>{var r;let{data:t}=ze(),n=o=>{let a=parseFloat(o.target.value);e.onChange(R(g({},t),{NudgeValue:isNaN(a)?"":a}))};return eo.createElement(uq.Flex,{height:"100%",flexDirection:"column","data-name":"plus-minus-column-settings"},eo.createElement(j,{autoFocus:!1,padding:2},eo.createElement(j.Tab,null,"Plus Minus Settings"),eo.createElement(j.Content,null,eo.createElement(Je,null,eo.createElement(de,{label:"Nudge Value"},eo.createElement(Ke,{flex:1,marginRight:3,onChange:n,placeholder:"Enter Number",type:"number",value:(r=t.NudgeValue)!=null?r:""})),eo.createElement(de,{label:"Nudge Type"},eo.createElement(uq.Flex,null,eo.createElement(We,{value:"Always",checked:!e.hasCondition,onChange:()=>e.onConditionChange(!1)},"Always Apply Nudge"),eo.createElement(We,{marginLeft:3,value:"Expression",checked:e.hasCondition,onChange:()=>e.onConditionChange(!0)},"Create a Rule")))))),e.hasCondition&&eo.createElement(uEe,{defaultPredicateId:"NonBlanks",onChange:e.onChange}))};var ON=e=>{let[t,n]=ni.useState(()=>{var u,d,c,m,f;let l=R(g({},e.data?e.data:it.CreateEmptyPlusMinusNudge()),{Scope:(d=(u=e==null?void 0:e.data)==null?void 0:u.Scope)!=null?d:{All:!0},NudgeValue:(m=(c=e==null?void 0:e.data)==null?void 0:c.NudgeValue)!=null?m:20});return(f=e==null?void 0:e.popupParams)!=null&&f.column&&(l.Scope={ColumnIds:[e.popupParams.column.columnId]}),l}),[r,o]=ni.useState(()=>{var l;return Boolean((l=e==null?void 0:e.data)==null?void 0:l.Rule)});ni.useEffect(()=>{var u;let l=g({},t);r?l.Rule=(u=l.Rule)!=null?u:{BooleanExpression:""}:delete l.Rule,n(l)},[r]);let a=Rt(),i=()=>{e.data?a(Vu(t)):a(Bu(t)),e.onFinishWizard(t)};return ni.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:t,onHide:e.onCloseWizard,onFinish:i,sections:[{title:"Target",isValid:Ni,details:"Specify where Plus/Minus should be applied",renderSummary:()=>is(t.Scope,{scopeWholeRow:"Plus/Minus is applied for matching rows",scopeColumns:"Plus/Minus is applied in cells in selected columns",scopeDataTypes:"Plus/Minus is applied for cells with selected data type"}),render:()=>ni.createElement(dq.Box,{padding:2},ni.createElement(lEe,{onChange:n}))},{title:"Settings",isValid:pEe(r),renderSummary:()=>ni.createElement(dEe,{hasCondition:r}),render:()=>ni.createElement(cEe,{hasCondition:r,onConditionChange:o,onChange:n})},"-",{render:()=>ni.createElement(dq.Box,{padding:2},ni.createElement(Xn,null)),title:"Summary"}]})};var pq=class extends Kc.Component{constructor(t){super(t),this.state=Wt.getEmptyConfigState()}render(){let t=[],n=Kc.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:Mt.ReturnItemCount(this.props.PlusMinusNudges.filter(r=>this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,r.Scope)),this.props.moduleInfo.FriendlyName),onNew:()=>this.onNew(),newButtonTooltip:"Plus / Minus Rule",accessLevel:this.props.accessLevel});return t.push(n),this.props.PlusMinusNudges.map((r,o)=>{var a;if(this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn,r.Scope)){let i=Kc.createElement(va,{key:"PM"+o,item1:"Nudge Value: "+r.NudgeValue,item2:(a=r.Rule)!=null&&a.BooleanExpression?r.Rule.BooleanExpression:"Always",configEnity:r,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(r),onShare:l=>this.props.onShare(r,l),onDelete:VE(r),accessLevel:this.props.accessLevel});t.push(i)}}),Kc.createElement("div",null,t,this.state.editedAdaptableObject&&Kc.createElement(ON,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:null,wizardStartIndex:this.state.wizardStartIndex,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:()=>this.onFinishWizard()}))}onNew(){let t=Vt.CreateEmptyPlusMinusNudge();t.Scope={ColumnIds:[this.props.summarisedColumn.columnId]},this.setState({editedAdaptableObject:t,wizardStartIndex:1,wizardStatus:"New"})}onEdit(t){this.setState({editedAdaptableObject:Mt.cloneObject(t),wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}onFinishWizard(){let t=this.state.editedAdaptableObject;this.state.wizardStatus=="Edit"?this.props.onEditPlusMinusNudge(t):this.props.onAddPlusMinusNudge(t),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){return!!this.state.editedAdaptableObject.NudgeValue}};function lxt(e,t){return{PlusMinusNudges:e.PlusMinus.PlusMinusNudges}}function sxt(e){return{onAddPlusMinusNudge:t=>e(Bu(t)),onEditPlusMinusNudge:t=>e(Vu(t)),onClearPopupParams:()=>e(uf()),onShare:(t,n)=>e(da(t,yr,n))}}var mEe=Ye(lxt,sxt)(pq);s();var au=A(require("react"));s();var ri=A(require("react")),_Ee=require("react"),Pg=A(J());s();var fEe=A(require("react"));var hEe=e=>is(e.Scope,{scopeWholeRow:"Matching rows will be formatted",scopeColumns:"Cells in selected columns will be formatted",scopeDataTypes:"Cells in columns of the selected data-types will be formatted"}),gEe=e=>{let{data:t}=ze();return fEe.createElement(xa,{descriptions:{rowScope:"Apply a style to an entire row",columnScope:"Select columns to format"},scope:t.Scope,updateScope:n=>{e.onChange(R(g({},t),{Scope:n}))}})};s();var _t=A(require("react")),dl=A(J());s();var un=A(require("react"));var Ig=A(J());s();var $c=A(require("react"));var Xc=class extends $c.Component{render(){var l;let t=Ee.sortArrayWithProperty("Asc",this.props.ColumnList,"friendlyName"),n=this.props.SelectedColumnIds.filter(u=>we.IsNotNullOrEmpty(u)),r=we.IsNotNullOrEmpty(this.props.placeHolder)?this.props.placeHolder.toString():this.props.SelectionMode=="Single"?"Select a column":"Select columns",o=this.props.SelectedColumnIds.filter(u=>we.IsNotNullOrEmpty(u)).length==0,a=t.map(u=>({label:u.friendlyName,value:u.columnId,onClick:()=>{let d=t.filter(c=>c.columnId===u.columnId);d.length?this.onColumnChange(d,o):this.onClearButton()}})),i=n.length>0?(l=this.props.ColumnList.find(u=>u.columnId==n[0]))==null?void 0:l.friendlyName:"Select a column";return $c.createElement("div",{"data-name":"column-selector"},$c.createElement(Je,{columns:[{name:"columnSelector",style:{display:"flex"}}],style:this.props.style},$c.createElement(de,null,$c.createElement(Ze,{marginRight:2,columns:["label"],showClearButton:i!="Select a column",onClear:()=>this.onClearButton(),style:{width:"100%",fontSize:"small"},className:"ab-DashboardToolbar__Layout__select",items:a,disabled:a.length==0},i))))}onClearButton(){this.props.onColumnChange([])}onColumnChange(t,n){t.length==0&&n||this.props.onColumnChange(t)}};var MS=class extends un.Component{constructor(t){super(t),this.state={ranges:this.props.ranges,columnComparison:this.props.columnComparison,rangesType:this.props.columnComparison?"ColumnComparison":"Standard"}}render(){var i;let t=this.state.columnComparison!=null&&this.state.columnComparison.MinValue!=null&&!isNaN(Number(this.state.columnComparison.MinValue))?Number(this.state.columnComparison.MinValue):"",n=this.state.columnComparison!=null&&this.state.columnComparison.MaxValue!=null&&!isNaN(Number(this.state.columnComparison.MaxValue))?Number(this.state.columnComparison.MaxValue):"",r=this.state.columnComparison!=null&&this.state.columnComparison.MinValue!=null&&isNaN(Number(this.state.columnComparison.MinValue))?String(this.state.columnComparison.MinValue):void 0,o=this.state.columnComparison!=null&&this.state.columnComparison.MaxValue!=null&&isNaN(Number(this.state.columnComparison.MaxValue))?String(this.state.columnComparison.MaxValue):void 0,a=this.state.columnComparison!=null&&this.state.columnComparison.Color!=null?this.state.columnComparison.Color:void 0;return un.createElement(un.Fragment,null,un.createElement(Ig.Flex,{flexDirection:"row"},un.createElement(pe,{marginTop:3,checked:this.state.rangesType=="ColumnComparison",onChange:l=>this.onRangesTypeChanged(l)},"Use a Column Comparison")),this.state.rangesType=="Standard"&&un.createElement(j,{autoFocus:!1,marginTop:2},un.createElement(j.Tab,null,"Ranges"),un.createElement(j.Content,null,(i=this.state.ranges)==null?void 0:i.map((l,u)=>un.createElement(Ig.Flex,{key:u,mb:2,"data-name":"percent-bar-range"},un.createElement(Ke,{type:"number",value:l.Min,onChange:d=>{let{value:c}=d.target;this.changeRangeMin(u,c)},mr:2}),un.createElement(Ke,{type:"number",value:l.Max,onChange:d=>{let{value:c}=d.target;this.changeRangeMax(u,c)},mr:2}),un.createElement(eu,{api:this.props.api,value:l.Color,onChange:d=>{this.changeRangeColor(u,d)},mr:2,height:"100%"}),this.props.showRangeDirection&&un.createElement(pe,{marginLeft:2,marginRight:2,checked:l.ReverseGradient&&l.ReverseGradient==!0,onChange:d=>this.changeRangeDirectionUp(u,d)},"Reverse Gradient"),un.createElement(re,{icon:"delete",disabled:this.state.ranges&&this.state.ranges.length==1,onClick:()=>this.removeRange(u)}))),un.createElement("div",null,un.createElement(re,{variant:"raised","data-name":"add",onClick:()=>this.addRange()},"Add New Range")))),this.state.rangesType=="ColumnComparison"&&un.createElement(j,{autoFocus:!1,marginTop:2},un.createElement(j.Tab,null,"Column Comparison"),un.createElement(j.Content,null,un.createElement(Ig.Flex,{flexDirection:"column",key:"cc","data-name":"percent-bar-column-comparison"},un.createElement(Ig.Text,{padding:2,fontSize:2},"Create Minimum and Maximum Values by providing a value or selecting another Column, and choose a Colour for the Bar."),un.createElement(Je,{columns:["label","first","or","second"],sizes:["auto","auto","auto","1fr"]},un.createElement(de,{label:"Min Value:",first:un.createElement(Ke,{type:"number",value:t,onChange:l=>{this.changeColumnComparisonMinValue(l)}}),or:"OR",second:un.createElement(Xc,{style:{maxWidth:"15rem"},SelectedColumnIds:[r],ColumnList:this.props.api.columnApi.getNumericColumns(),onColumnChange:l=>this.onMinColumnSelectedChanged(l),SelectionMode:"Single"})})," ",un.createElement(de,{label:"Max Value:",first:un.createElement(Ke,{type:"number",value:n,onChange:l=>{this.changeColumnComparisonMaxValue(l)}}),or:"OR",second:un.createElement(Xc,{style:{maxWidth:"15rem"},SelectedColumnIds:[o],ColumnList:this.props.api.columnApi.getNumericColumns(),onColumnChange:l=>this.onMaxColumnSelectedChanged(l),SelectionMode:"Single"})}),un.createElement(de,{label:"Bar Colour:",first:un.createElement(eu,{api:this.props.api,value:a,onChange:l=>{this.changeColumnComparisonColor(l)}})}))))))}onRangesTypeChanged(t){if(t){let n={Color:Qt(Ym),MinValue:void 0,MaxValue:void 0};this.setState({rangesType:"ColumnComparison",columnComparison:n}),this.props.updateColumnComparison(n)}else{let n=this.props.api.scopeApi.createCellColorRangesForScope(this.props.scope);this.setState({rangesType:"Standard",ranges:n}),this.props.updateRanges(n)}}changeRangeMin(t,n){let{ranges:r}=this.state;r[t].Min=Number(n),r[t-1]&&(r[t-1].Max=Number(n)),this.props.updateRanges(r)}changeRangeMax(t,n){let{ranges:r}=this.state;r[t].Max=Number(n),r[t+1]&&(r[t+1].Min=Number(n)),this.props.updateRanges(r)}changeRangeColor(t,n){let{ranges:r}=this.state;r[t].Color=n,this.props.updateRanges(r)}changeRangeDirectionUp(t,n){let{ranges:r}=this.state;r[t].ReverseGradient=n,this.props.updateRanges(r)}removeRange(t){let{ranges:n}=this.state;n.splice(t,1),this.props.updateRanges(n)}addRange(){let t=this.state.ranges[this.state.ranges.length-1];this.state.ranges.push({Min:t.Max,Max:t.Max,Color:Qt(yl)}),this.props.updateRanges(this.state.ranges)}changeColumnComparisonMinValue(t){let n=t.target,{columnComparison:r}=this.state;r.MinValue=we.IsNotNullOrEmpty(n.value)?Number(n.value):void 0,this.props.updateColumnComparison(r)}onMinColumnSelectedChanged(t){let{columnComparison:n}=this.state;n.MinValue=t.length>0?t[0].columnId:void 0,this.props.updateColumnComparison(n)}changeColumnComparisonMaxValue(t){let n=t.target,{columnComparison:r}=this.state;r.MaxValue=we.IsNotNullOrEmpty(n.value)?Number(n.value):void 0,this.props.updateColumnComparison(r)}onMaxColumnSelectedChanged(t){let{columnComparison:n}=this.state;n.MaxValue=t.length>0?t[0].columnId:void 0,this.props.updateColumnComparison(n)}changeColumnComparisonColor(t){let{columnComparison:n}=this.state;n.Color=t,this.props.updateColumnComparison(n)}};var SEe=(e,t)=>{var n,r,o,a,i;return!e.ColumnStyle&&e.Style&&pn.IsEmptyStyle(e.Style)&&e.DisplayFormat===void 0&&e.HeaderName===void 0&&e.CellAlignment===void 0&&!t.scopeApi.isSingleBooleanColumnScope(e.Scope)?"No format applied":(o=(r=(n=e.ColumnStyle)==null?void 0:n.PercentBarStyle)==null?void 0:r.CellRanges)!=null&&o.length&&e.ColumnStyle.PercentBarStyle.CellRanges.some(l=>l.Min==null||l.Max==null)?"Invalid Cell Range":(i=(a=e.ColumnStyle)==null?void 0:a.PercentBarStyle)!=null&&i.ColumnComparison&&(e.ColumnStyle.PercentBarStyle.ColumnComparison.MinValue==null||e.ColumnStyle.PercentBarStyle.ColumnComparison.MaxValue==null)?"Invalid Column Comparison Range":!0},uxt=e=>R(g({},Hc(e!=null?e:{})),{borderWidth:e!=null&&e.BorderColor?2:0,borderStyle:"solid"}),CEe=e=>e.map((t,n)=>_t.createElement(dl.Flex,{key:n,alignItems:"center",mr:3},_t.createElement(dl.Box,{mr:1},t.Min," to ",t.Max," "),_t.createElement(Aa,{Style:{BackColor:t.Color,ForeColor:t.Color}}))),yEe=(e,t)=>_t.createElement(dl.Flex,{key:"cc",alignItems:"center",mr:3},_t.createElement(dl.Box,{mr:1},"Min Value:"," ",isNaN(Number(e.MinValue))?"["+t.columnApi.getFriendlyNameFromColumnId(String(e.MinValue))+"]":e.MinValue," ",", Max Value:"," ",isNaN(Number(e.MaxValue))?"["+t.columnApi.getFriendlyNameFromColumnId(String(e.MaxValue))+"]":e.MaxValue," "),_t.createElement(Aa,{Style:{BackColor:e.Color,ForeColor:e.Color}})),FN=(e,t)=>{if(e.ColumnStyle){if(e.ColumnStyle.CheckBoxStyle)return"Checkbox Style";if(e.ColumnStyle.GradientStyle){if(e.ColumnStyle.GradientStyle.CellRanges)return CEe(e.ColumnStyle.GradientStyle.CellRanges);if(e.ColumnStyle.GradientStyle.ColumnComparison)return yEe(e.ColumnStyle.GradientStyle.ColumnComparison,t)}if(e.ColumnStyle.PercentBarStyle){if(e.ColumnStyle.PercentBarStyle.CellRanges)return CEe(e.ColumnStyle.PercentBarStyle.CellRanges);if(e.ColumnStyle.PercentBarStyle.ColumnComparison)return yEe(e.ColumnStyle.PercentBarStyle.ColumnComparison,t)}return e.Style==null||pn.IsEmptyStyle(e.Style)?"[None]":_t.createElement(Aa,{Style:e.Style})}return _t.createElement(dl.Text,{padding:2,style:uxt(e.Style)},"Preview result")};function vEe(e){var y,v,S,I,P,T,O,_,M,x,D,N,q,F,k,Y,Z,oe,ae,ee,Se,se,X,ye,ue,fe,Te,ke,et,ce,dn,Be;let{data:t,api:n}=ze(),r=n.scopeApi.isSingleNumericColumnScope(t.Scope),o=n.scopeApi.areAllBooleanColumnsInScope(t.Scope)||n.scopeApi.scopeHasOnlyBooleanDataType(t.Scope),a=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.CellText?V.CellText.push("CellValue"):V.CellText=["CellValue"]:V.CellText&&V.CellText.includes("PercentageValue")?V.CellText=["PercentageValue"]:V.CellText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},i=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.CellText?V.CellText.push("PercentageValue"):V.CellText=["PercentageValue"]:V.CellText&&V.CellText.includes("CellValue")?V.CellText=["CellValue"]:V.CellText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},l=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.ToolTipText?V.ToolTipText.push("CellValue"):V.ToolTipText=["CellValue"]:V.ToolTipText&&V.ToolTipText.includes("PercentageValue")?V.ToolTipText=["PercentageValue"]:V.ToolTipText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},u=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;w?V.ToolTipText?V.ToolTipText.push("PercentageValue"):V.ToolTipText=["PercentageValue"]:V.ToolTipText&&V.ToolTipText.includes("CellValue")?V.ToolTipText=["CellValue"]:V.ToolTipText=[],e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},d=w=>{let V={PercentBarStyle:{ColumnComparison:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},c=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;V.BackColor=w?Qt(yl):null,e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},m=w=>{var L;let V=(L=t.ColumnStyle)==null?void 0:L.PercentBarStyle;V.BackColor=w,e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:V}}))},f=w=>{let V={PercentBarStyle:{CellRanges:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},h=w=>{let V={GradientStyle:{CellRanges:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},b=w=>{let V={GradientStyle:{ColumnComparison:w}};e.onChange(R(g({},t),{ColumnStyle:V}))},C=w=>{let V=w.target;if(V.value=="Gradient")e.onChange(R(g({},t),{ColumnStyle:{GradientStyle:{CellRanges:n.scopeApi.createCellColorRangesForScope(t.Scope)}}}));else if(V.value=="PercentBar")e.onChange(R(g({},t),{ColumnStyle:{PercentBarStyle:{CellRanges:n.scopeApi.createCellColorRangesForScope(t.Scope)}}}));else if(V.value=="None"){let L=g({},t);delete L.ColumnStyle,e.onChange(L)}};return _t.createElement(_t.Fragment,null,o&&_t.createElement(j,null,_t.createElement(j.Tab,null,"CheckBox Column"),_t.createElement(j.Content,null,_t.createElement(Nt,{fontSize:2},"Shows each cell in the Column as a Checkbox")," ",_t.createElement(pe,{marginLeft:2,checked:!!((y=t.ColumnStyle)!=null&&y.CheckBoxStyle),onChange:w=>{let V=R(g({},t),{ColumnStyle:{CheckBoxStyle:w}});w||delete V.ColumnStyle,e.onChange(V)}},"Display Column As CheckBox"))),r?_t.createElement(_t.Fragment,null,_t.createElement(j,null,_t.createElement(j.Tab,null,"Create a Format Column Style"),_t.createElement(j.Content,null,_t.createElement(dl.Flex,{flexDirection:"row"},_t.createElement(We,{marginLeft:2,value:"None",checked:!t.ColumnStyle,onChange:(w,V)=>C(V)},"Standard")," ",_t.createElement(We,{marginLeft:3,value:"Gradient",checked:!!((v=t.ColumnStyle)!=null&&v.GradientStyle),onChange:(w,V)=>C(V)},"Gradient")," ",_t.createElement(We,{marginLeft:3,value:"PercentBar",checked:!!((S=t.ColumnStyle)!=null&&S.PercentBarStyle),onChange:(w,V)=>C(V)},"Percent Bar"," ")," "))),((I=t.ColumnStyle)==null?void 0:I.GradientStyle)&&_t.createElement(MS,{api:n,scope:t==null?void 0:t.Scope,showRangeDirection:!0,ranges:(T=(P=t.ColumnStyle)==null?void 0:P.GradientStyle)==null?void 0:T.CellRanges,columnComparison:(_=(O=t==null?void 0:t.ColumnStyle)==null?void 0:O.GradientStyle)==null?void 0:_.ColumnComparison,updateRanges:w=>h(w),updateColumnComparison:w=>b(w)}),((M=t.ColumnStyle)==null?void 0:M.PercentBarStyle)&&_t.createElement(_t.Fragment,null,_t.createElement(MS,{api:n,scope:t==null?void 0:t.Scope,showRangeDirection:!1,ranges:(D=(x=t.ColumnStyle)==null?void 0:x.PercentBarStyle)==null?void 0:D.CellRanges,columnComparison:(q=(N=t==null?void 0:t.ColumnStyle)==null?void 0:N.PercentBarStyle)==null?void 0:q.ColumnComparison,updateRanges:w=>f(w),updateColumnComparison:w=>d(w)}),_t.createElement(Je,{marginLeft:2,marginTop:2},_t.createElement(de,{label:"Cell Display:"},_t.createElement(pe,{marginLeft:2,checked:(Y=(k=(F=t.ColumnStyle)==null?void 0:F.PercentBarStyle)==null?void 0:k.CellText)==null?void 0:Y.includes("CellValue"),onChange:w=>a(w)},"Cell Value")," ",_t.createElement(pe,{marginLeft:3,checked:(ae=(oe=(Z=t.ColumnStyle)==null?void 0:Z.PercentBarStyle)==null?void 0:oe.CellText)==null?void 0:ae.includes("PercentageValue"),onChange:w=>i(w)},"Percent Value"," ")," "),_t.createElement(de,{label:"ToolTip Display:"},_t.createElement(pe,{marginLeft:2,checked:(se=(Se=(ee=t.ColumnStyle)==null?void 0:ee.PercentBarStyle)==null?void 0:Se.ToolTipText)==null?void 0:se.includes("CellValue"),onChange:w=>l(w)},"Cell Value")," ",_t.createElement(pe,{marginLeft:3,checked:(ue=(ye=(X=t.ColumnStyle)==null?void 0:X.PercentBarStyle)==null?void 0:ye.ToolTipText)==null?void 0:ue.includes("PercentageValue"),onChange:w=>u(w)},"Percent Value"," ")," "),_t.createElement(de,{label:"Back Colour:"},_t.createElement(dl.Flex,{alignItems:"center",marginLeft:2},_t.createElement(pe,{checked:!!((Te=(fe=t.ColumnStyle)==null?void 0:fe.PercentBarStyle)!=null&&Te.BackColor),onChange:w=>c(w),mr:2}),((et=(ke=t.ColumnStyle)==null?void 0:ke.PercentBarStyle)==null?void 0:et.BackColor)!==void 0&&_t.createElement(eu,{api:n,value:(dn=(ce=t.ColumnStyle)==null?void 0:ce.PercentBarStyle)==null?void 0:dn.BackColor,onChange:w=>m(w)})))),_t.createElement(dl.Flex,{flexDirection:"row",padding:2}))):null,t.ColumnStyle?null:_t.createElement(ya,{headless:!0,api:n,Style:(Be=t.Style)!=null?Be:{},UpdateStyle:w=>{e.onChange(R(g({},t),{Style:w}))}}))}s();var Ue=A(require("react")),pl=A(J()),PEe=A(xEe()),DEe=A(Eb());var cxt={FractionDigits:2,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"$",Suffix:"",Multiplier:1,Parentheses:!1},mxt={FractionDigits:2,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"\xA3",Suffix:"",Multiplier:1,Parentheses:!1},REe={FractionDigits:void 0,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"M",Multiplier:1e-6,Parentheses:!1},EEe={FractionDigits:void 0,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"K",Multiplier:.001,Parentheses:!1},IEe={FractionDigits:2,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"%",Multiplier:100,Parentheses:!1},fxt=["MM/dd/yyyy","dd-MM-yyyy","MMMM do yyyy, h:mm:ss a","EEEE","MMM do yyyy","yyyyMMdd","HH:mm:ss"],cq=e=>{let t="N/A";return e.DisplayFormat?(e.DisplayFormat.Formatter==="NumberFormatter"&&(t=Yr.NumberFormatter(12345.6789,e.DisplayFormat.Options)),e.DisplayFormat.Formatter==="DateFormatter"&&(t=Yr.DateFormatter(new Date,e.DisplayFormat.Options)),e.DisplayFormat.Formatter==="StringFormatter"&&(t=Yr.StringFormatter("Hello World ",e.DisplayFormat.Options))):t="N/A",t},TEe=e=>Ue.createElement(Dt,null,cq(e)),wEe=(e,t)=>{if(e!=null&&!("All"in e)){if("ColumnIds"in e){let n=e.ColumnIds.map(o=>t.columnApi.getColumnFromId(o)),r=(0,PEe.default)(n.map(o=>o.dataType));return r.length==1&&r[0]=="Number"?"Number":r.length==1&&r[0]=="Date"?"Date":r.length==1&&r[0]=="String"?"String":void 0}if("DataTypes"in e&&e.DataTypes.length==1&&e.DataTypes[0]=="Number")return"Number";if("DataTypes"in e&&e.DataTypes.length==1&&e.DataTypes[0]=="Date")return"Date";if("DataTypes"in e&&e.DataTypes.length==1&&e.DataTypes[0]=="String")return"String"}},hxt=(e,t,n)=>e.DisplayFormat.Formatter!=="DateFormatter"?null:Ue.createElement(pl.Box,{padding:2},Ue.createElement(j,null,Ue.createElement(j.Tab,null,"Format"),Ue.createElement(j.Content,null,Ue.createElement(pl.Text,{padding:2,fontSize:2},"Either create your own date pattern, or select one of the preset date formats (check out"," ",Ue.createElement("a",{href:"https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table",target:"_blank"},"available symbols"),")."),Ue.createElement(Je,null,Ue.createElement(de,{label:"Pattern"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Pattern,onChange:r=>n("Pattern",r.currentTarget.value),mr:2}),Ue.createElement("span",null,Yr.DateFormatter(new Date,e.DisplayFormat.Options)))))),Ue.createElement(j,{marginTop:2},Ue.createElement(j.Tab,null,"Presets"),Ue.createElement(j.Content,null,Ue.createElement(hr,{style:{fontWeight:"bold"},colItems:[{Content:"Pattern",Size:1},{Content:"Formatted Date",Size:1},{Content:"",Size:1}]}),fxt.map((r,o)=>Ue.createElement(hr,{key:o,colItems:[{Content:r,Size:1},{Content:Yr.DateFormatter(new Date,{Pattern:r}),Size:1},{Content:Ue.createElement(re,{onClick:()=>n("Pattern",r)},"Apply"),Size:1}]}))))),gxt=(e,t,n)=>{if(e.DisplayFormat.Formatter!=="NumberFormatter")return null;let r=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:IEe}})},o=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:EEe}})},a=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:REe}})},i=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:cxt}})},l=()=>{t({DisplayFormat:{Formatter:"NumberFormatter",Options:mxt}})},u=e.DisplayFormat.Options.Suffix==="%"&&e.DisplayFormat.Options.Multiplier===IEe.Multiplier,d=e.DisplayFormat.Options.Suffix==="K"&&e.DisplayFormat.Options.Multiplier===EEe.Multiplier,c=e.DisplayFormat.Options.Suffix==="M"&&e.DisplayFormat.Options.Multiplier===REe.Multiplier,m=e.DisplayFormat.Options.Prefix==="$",f=e.DisplayFormat.Options.Prefix==="\xA3";return Ue.createElement(pl.Box,{"data-name":"format-column-display-format",padding:2},Ue.createElement(j,null,Ue.createElement(j.Tab,null,"Format"),Ue.createElement(j.Content,null,Ue.createElement(pl.Flex,{flexDirection:"row"},Ue.createElement(Je,{mr:3},Ue.createElement(de,{label:"Fraction Separator"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.FractionSeparator,onChange:h=>n("FractionSeparator",h.currentTarget.value)})),Ue.createElement(de,{label:"Integer Separator"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.IntegerSeparator,onChange:h=>n("IntegerSeparator",h.currentTarget.value)})),Ue.createElement(de,{label:"Prefix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Prefix,onChange:h=>n("Prefix",h.currentTarget.value)})),Ue.createElement(de,{label:"Suffix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Suffix,onChange:h=>n("Suffix",h.currentTarget.value)}))),Ue.createElement(Je,null,Ue.createElement(de,{label:"Fraction Digits"},Ue.createElement(Ke,{type:"number",min:"0",value:typeof e.DisplayFormat.Options.FractionDigits=="number"?e.DisplayFormat.Options.FractionDigits:"",onChange:h=>n("FractionDigits",Qe.IsNumeric(h.currentTarget.value)?(0,DEe.default)(Number(h.currentTarget.value),0,20):void 0)})),Ue.createElement(de,{label:"Integer Digits"},Ue.createElement(Ke,{type:"number",min:"0",value:e.DisplayFormat.Options.IntegerDigits,onChange:h=>n("IntegerDigits",Number(h.currentTarget.value))})),Ue.createElement(de,{label:"Multiplier"},Ue.createElement(Ke,{type:"number",value:e.DisplayFormat.Options.Multiplier,onChange:h=>n("Multiplier",Number(h.currentTarget.value))})),Ue.createElement(de,{label:"Parentheses"},Ue.createElement(pe,{checked:e.DisplayFormat.Options.Parentheses,onChange:h=>n("Parentheses",h)})),Ue.createElement(de,{label:"Truncate"},Ue.createElement(pe,{checked:e.DisplayFormat.Options.Truncate,onChange:h=>n("Truncate",h)})))))),Ue.createElement(j,{marginTop:2,autoFocus:!1,keyboardNavigation:!1},Ue.createElement(j.Tab,null,"Presets"),Ue.createElement(j.Content,null,Ue.createElement(pl.Text,{padding:2,fontSize:2},"Select a preset for common use cases"),Ue.createElement(pl.Flex,{flexDirection:"row"},Ue.createElement(Je,{margin:2},Ue.createElement(de,{label:"Show As:"},Ue.createElement(We,{marginLeft:2,checked:u,onChange:()=>r()},"Percentage"),Ue.createElement(We,{marginLeft:3,checked:d,onChange:()=>o()},"K (Thousand)"),Ue.createElement(We,{marginLeft:3,checked:c,onChange:()=>a()},"M (Million)"),Ue.createElement(We,{marginLeft:3,checked:m,onChange:()=>i()},"Dollar"),Ue.createElement(We,{marginLeft:3,checked:f,onChange:()=>l()},"Sterling")))))),Ue.createElement(j,{marginTop:2,autoFocus:!1,keyboardNavigation:!1},Ue.createElement(j.Tab,null,"Examples"),Ue.createElement(j.Content,null,Ue.createElement(hr,{style:{fontWeight:"bold"},colItems:[{Content:"Raw Number",Size:1},{Content:"Formatted Number",Size:1}]}),Ue.createElement(hr,{colItems:[{Content:"12345.6789",Size:1},{Content:Yr.NumberFormatter(12345.6789,e.DisplayFormat.Options),Size:1}]}),Ue.createElement(hr,{colItems:[{Content:"-12345.6789",Size:1},{Content:Yr.NumberFormatter(-12345.6789,e.DisplayFormat.Options),Size:1}]}),Ue.createElement(hr,{colItems:[{Content:"0.123",Size:1},{Content:Yr.NumberFormatter(.123,e.DisplayFormat.Options),Size:1}]}))))},bxt=(e,t,n)=>e.DisplayFormat.Formatter!=="StringFormatter"?null:Ue.createElement(pl.Box,{"data-name":"format-column-display-format",padding:2},Ue.createElement(j,null,Ue.createElement(j.Tab,null,"Format"),Ue.createElement(j.Content,null,Ue.createElement(pl.Flex,{flexDirection:"column"},Ue.createElement(Je,{mr:3},Ue.createElement(de,{label:"Case: "},Ue.createElement(We,{checked:e.DisplayFormat.Options.Case=="Lower",onChange:r=>n("Case","Lower")},"Lower"),Ue.createElement(We,{marginLeft:2,checked:e.DisplayFormat.Options.Case=="Upper",onChange:r=>n("Case","Upper")},"Upper"),Ue.createElement(We,{marginLeft:2,checked:e.DisplayFormat.Options.Case=="Sentence",onChange:r=>n("Case","Sentence")},"Sentence"),Ue.createElement(We,{marginLeft:2,checked:e.DisplayFormat.Options.Case==null,onChange:r=>n("Case",void 0)},"None"),Ue.createElement(pe,{marginLeft:5,checked:e.DisplayFormat.Options.Trim,onChange:r=>n("Trim",r)},"Trim")),Ue.createElement(de,{label:"Prefix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Prefix,onChange:r=>n("Prefix",r.currentTarget.value)})),Ue.createElement(de,{label:"Suffix"},Ue.createElement(Ke,{value:e.DisplayFormat.Options.Suffix,onChange:r=>n("Suffix",r.currentTarget.value)})))))),Ue.createElement(j,{marginTop:2,keyboardNavigation:!1},Ue.createElement(j.Tab,null,"Example"),Ue.createElement(j.Content,null,Ue.createElement(hr,{style:{fontWeight:"bold"},colItems:[{Content:"Raw String",Size:1},{Content:"Formatted String",Size:1}]}),Ue.createElement(hr,{colItems:[{Content:'"Hello World "',Size:1},{Content:'"'+Yr.StringFormatter("Hello World ",e.DisplayFormat.Options)+'"',Size:1}]})))),OEe=e=>{let{data:t}=ze(),n=a=>{e.onChange(g(g({},t),a))},r=(a,i)=>{let l=g({},t.DisplayFormat);l.Options=R(g({},l.Options),{[a]:i}),n({DisplayFormat:l})},o=t.DisplayFormat&&t.DisplayFormat.Formatter;return o==="NumberFormatter"?gxt(t,n,r):o==="DateFormatter"?hxt(t,n,r):o==="StringFormatter"?bxt(t,n,r):Ue.createElement(Nt,{margin:3},"Setting a Display Format is only available if ",Ue.createElement("b",null,"all")," the columns in Scope are Numeric, String or Date.")};s();var Gr=A(require("react")),ou=A(J());var MN=require("react");var Cxt=[{value:"Left",label:"Left"},{value:"Right",label:"Right"},{value:"Center",label:"Center"}],FEe=e=>{var t;return Gr.createElement(ou.Box,{padding:2},Gr.createElement(ou.Text,null,"Cell alignment ",Gr.createElement(Dt,null,(t=e.CellAlignment)!=null?t:"default")),e.HeaderName?Gr.createElement(ou.Text,{mt:3},"Header name ",Gr.createElement(Dt,null,e.HeaderName)):null,Gr.createElement(ou.Text,{mt:3},"Include grouped rows ",Gr.createElement(Dt,null,e.IncludeGroupedRows?"yes":"no")))},MEe=e=>{let{data:t,api:n}=ze(),r=u=>{e.onChange(R(g({},t),{CellAlignment:u}))},o=u=>{e.onChange(R(g({},t),{IncludeGroupedRows:u}))},a=u=>{let d=u.target;e.onChange(R(g({},t),{HeaderName:d.value}))},[i,l]=(0,MN.useState)(!1);return(0,MN.useEffect)(()=>{let u=Qe.IsNotNullOrEmpty(t.HeaderName);l(u),u&&Qo("DEPRECATED: The 'FormatColumn.HeaderName' property is deprecated; use a Layout custom Column Header instead!")},[]),Gr.createElement(j,null,Gr.createElement(j.Tab,null,"Format"),Gr.createElement(j.Content,null,Gr.createElement(ou.Flex,{flexDirection:"row"},Gr.createElement(Je,null,Gr.createElement(de,{label:"Cell Alignment"},Gr.createElement(Ze,{style:{minWidth:"15rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"inherit"},placeholder:"Select Option",showClearButton:!!t.CellAlignment,onClear:()=>r(null),items:Cxt.map(u=>({value:u.value,label:u.label,onClick:()=>r(u.value)})),columns:["label"]},t.CellAlignment?t.CellAlignment:"Select Option")),i&&n.scopeApi.isSingleColumnScope(t.Scope)&&Gr.createElement(de,{label:"Header Name"},Gr.createElement(Ke,{value:t.HeaderName,onChange:u=>a(u),style:{minWidth:"15rem"}})," "),Gr.createElement(de,{label:"Include Grouped Rows:"},Gr.createElement(ou.Flex,{alignItems:"center",marginLeft:2},Gr.createElement(pe,{checked:t.IncludeGroupedRows,onChange:o,mr:2})))))))};var yxt=(e,t)=>{e=g({},e);let n=wEe(e.Scope,t);return!n&&e.DisplayFormat&&(e.DisplayFormat=void 0),(!e.DisplayFormat||e.DisplayFormat.Formatter!=="NumberFormatter")&&n==="Number"&&(e.DisplayFormat={Formatter:"NumberFormatter",Options:{FractionDigits:void 0,FractionSeparator:".",IntegerDigits:void 0,IntegerSeparator:",",Prefix:"",Suffix:"",Multiplier:1,Parentheses:!1}}),(!e.DisplayFormat||e.DisplayFormat.Formatter!=="DateFormatter")&&n==="Date"&&(e.DisplayFormat={Formatter:"DateFormatter",Options:{Pattern:"MM/dd/yyyy"}}),(!e.DisplayFormat||e.DisplayFormat.Formatter!=="StringFormatter")&&n==="String"&&(e.DisplayFormat={Formatter:"StringFormatter",Options:{Case:void 0,Trim:!1}}),e},NEe=(e,t)=>(e=yxt(e,t),!t.scopeApi.isSingleNumericColumnScope(e.Scope)&&!(t.scopeApi.areAllBooleanColumnsInScope(e.Scope)||t.scopeApi.scopeHasOnlyBooleanDataType(e.Scope))&&delete e.ColumnStyle,e);function NN(e){var u;let{api:t}=$e(),n=(u=e.data)!=null?u:e.popupParams.value,[r,o]=(0,_Ee.useState)(()=>{var c,m,f,h;let d=n?Bn(n):it.CreateEmptyFormatColumn();return d.Scope=(c=d.Scope)!=null?c:{ColumnIds:[]},((m=e.popupParams)==null?void 0:m.action)==="New"&&((f=e.popupParams)==null?void 0:f.column)&&(d.Scope={ColumnIds:[(h=e.popupParams)==null?void 0:h.column.columnId]}),d=NEe(d,t),d}),a=ri.useCallback(d=>{o(NEe(d,t))},[]),i=Rt(),l=()=>{i(n?Os(r):Hu(r)),e.onFinishWizard(r)};return ri.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:r,onHide:e.onCloseWizard,onFinish:l,sections:[{title:"Scope",details:"Apply formatting to: one or more Columns or Data Types or the whole row",isValid:Ni,renderSummary:hEe,render:()=>ri.createElement(Pg.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},ri.createElement(gEe,{onChange:a}))},{title:"Style",details:"Format Column Style",isValid:SEe,renderSummary:FN,render:()=>ri.createElement(Pg.Box,{padding:2},ri.createElement(vEe,{onChange:a}))},{title:"Display Format",renderSummary:TEe,render:()=>ri.createElement(OEe,{onChange:a})},{title:"Settings",renderSummary:FEe,render:()=>ri.createElement(Pg.Box,{padding:2},ri.createElement(MEe,{onChange:a}))},"-",{details:"Review the Format Column",render:()=>ri.createElement(Pg.Box,{padding:2},ri.createElement(Xn,null)),title:"Summary"}]})}var mq=class extends au.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.FormatColumns.find(r=>r.Uuid==n.Uuid)?this.props.onEditFormatColumn(n):this.props.onAddFormatColumn(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=this.props.api.formatColumnApi.getFormatColumnForColumn(this.props.summarisedColumn),r=n==null,o;return r?o=au.createElement(Fi,{key:this.props.moduleInfo.FriendlyName,moduleInfo:this.props.moduleInfo,moduleSummary:"No Format Column Set",onNew:()=>this.onNew(),newButtonTooltip:this.props.moduleInfo.FriendlyName,accessLevel:this.props.accessLevel}):o=au.createElement(va,{key:this.props.moduleInfo.FriendlyName,item1:au.createElement(Oi,{moduleInfo:this.props.moduleInfo}),item2:au.createElement(Aa,{Style:n.Style}),configEnity:n,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(n),onShare:a=>this.props.onShare(n,a),onDelete:nh(n),showBold:!0,accessLevel:this.props.accessLevel}),au.createElement("div",null,o,this.state.editedAdaptableObject&&au.createElement(NN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.FormatColumns,wizardStartIndex:this.state.wizardStartIndex,onCloseWizard:this.onCloseWizard,onFinishWizard:this.onFinishWizard}))}onNew(){let n=Vt.CreateEmptyFormatColumn();n.Scope={ColumnIds:[this.props.summarisedColumn.columnId]},this.setState({editedAdaptableObject:n,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){let r=Mt.cloneObject(n);this.setState({editedAdaptableObject:r,wizardStartIndex:1,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return n.Scope!=null&&Wt.IsNotEmptyStyle(n.Style)}};function Sxt(e,t){return{FormatColumns:e.FormatColumn.FormatColumns}}function vxt(e){return{onAddFormatColumn:t=>e(Hu(t)),onEditFormatColumn:t=>e(Os(t)),onShare:(t,n)=>e(da(t,yo,n))}}var LEe=Ye(Sxt,vxt)(mq);s();var Tg=A(require("react"));s();var Jc=A(require("react")),gq=A(J());var JEe=require("react");s();var Vo=A(require("react")),kEe=require("react"),Dg=A(J());var BEe=e=>{var t;return Vo.createElement(Dg.Box,{fontSize:2},"Column scalar expression: ",Vo.createElement(Fn,null,(t=e.Query)==null?void 0:t.ScalarExpression))},VEe=(e,t)=>{var a;let n=t.internalApi.getCalculatedColumnExpressionService();return((a=t.queryLanguageApi.getAdaptableQueryExpression(e.Query))==null?void 0:a.trim())?n.isCalculatedColumnQueryValid(e.Query)?!0:"Calculated column expression is not valid":"Calculated column expression cannot be empty"},fq=e=>{let i=e,{type:t,label:n,disabled:r=!1}=i,o=qe(i,["type","label","disabled"]),a=Vo.createElement(Dg.Flex,{flexDirection:"column"},n," ",Vo.createElement(Dg.Text,{fontSize:2},"query"));return Vo.createElement(j.Tab,g({style:{flex:1}},o),r?a:Vo.createElement(We,{tabIndex:-1,margin:0,checked:t===e.value,style:{alignItems:"baseline"}},a))};fq.defaultProps={isTabsTab:!0};var GEe=e=>{let{api:t,data:n,moduleInfo:r}=ze(),o=(0,kEe.useMemo)(()=>t.internalApi.getQueryPreviewData(),[]),a=n.Query.AggregatedScalarExpression!=null?"AggregatedScalarExpression":"ScalarExpression",[i,l]=Vo.useState(a),u=c=>{l(c),c==="ScalarExpression"?e.onChange(R(g({},n),{Query:{ScalarExpression:""}})):e.onChange(R(g({},n),{Query:{AggregatedScalarExpression:""}}))},d=c=>{let f=t.internalApi.getCalculatedColumnExpressionService().getCalculatedColumnDataType(c),h=f=="String",b=f=="Number";e.onChange(R(g({},n),{Query:c,CalculatedColumnSettings:R(g({},n.CalculatedColumnSettings),{DataType:f,Pivotable:h,Aggregatable:b})}))};return Vo.createElement(j,{onValueChange:u,value:i,p:2,style:{flex:1,overflow:"auto"}},Vo.createElement(fq,{value:"ScalarExpression",type:a,label:"Scalar"}),Vo.createElement(j.Content,{value:"ScalarExpression"},Vo.createElement($a,{type:"scalar",module:r.ModuleName,style:{paddingLeft:0},value:n.Query.ScalarExpression,onChange:c=>d({ScalarExpression:c}),initialData:o,columns:t.columnApi.getQueryableColumns(),namedQueries:t.queryApi.getAllNamedQuery(),isFullExpression:!0,api:t})),Vo.createElement(fq,{value:"AggregatedScalarExpression",type:a,label:"AggregatedScalar"}),Vo.createElement(j.Content,{value:"AggregatedScalarExpression"},Vo.createElement($a,{type:"aggregatedScalar",module:r.ModuleName,style:{paddingLeft:0},value:n.Query.AggregatedScalarExpression,onChange:c=>d({AggregatedScalarExpression:c}),initialData:o,columns:t.columnApi.getQueryableColumns(),namedQueries:t.queryApi.getAllNamedQuery(),isFullExpression:!0,api:t})))};s();var Nn=A(require("react")),qd=A(J());var kN=require("react");s();var _N=e=>{let{DataType:t,Width:n,Filterable:r,Resizable:o,Groupable:a,Sortable:i,Pivotable:l,Aggregatable:u}=e!=null?e:{};return[t?`DataType: ${t}`:null,n?`Width: ${n}px`:null,l?"Pivotable":null,r?"Filterable":null,o?"Resizable":null,a?"Groupable":null,i?"Sortable":null,u?"Aggregatable":null].filter(Boolean)};s();var YEe=A(jEe()),Mn=A(require("react")),KEe=A(J());var LN=e=>{var h,b;let t=$e(),n=t.api.internalApi.getAdaptableOptions().userInterfaceOptions.columnTypes,{Filterable:r,Resizable:o,Groupable:a,Sortable:i,Pivotable:l,Aggregatable:u,SuppressMenu:d,SuppressMovable:c}=(h=e.settings)!=null?h:{},m=(C,y)=>{var S,I,P;let v=(I=(S=e.settings)==null?void 0:S.ColumnTypes)!=null?I:[];y?e.onChange(R(g({},e.settings),{ColumnTypes:[...v,C]})):e.onChange(R(g({},e.settings),{ColumnTypes:(P=v==null?void 0:v.filter)==null?void 0:P.call(v,T=>T!==C)}))},f=C=>{e.onChange(g(g({},e.settings),C))};return Mn.createElement(Mn.Fragment,null,Mn.createElement(j,{marginTop:2,autoFocus:!1},Mn.createElement(j.Tab,null,"Column Properties"),Mn.createElement(j.Content,null,Mn.createElement(KEe.Flex,{flexDirection:"row"},Mn.createElement(Je,{style:{width:"100%"},columns:[{name:"first",size:"30%"},{size:"30%",name:"second"},{size:"30%",name:"third"}]},Mn.createElement(de,null,Mn.createElement(pe,{checked:r,onChange:C=>f({Filterable:C}),disabled:!t.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns},"Filterable"),Mn.createElement(pe,{checked:o,onChange:C=>f({Resizable:C})},"Resizable"),Mn.createElement(pe,{checked:a,onChange:C=>f({Groupable:C})},"Groupable")),Mn.createElement(de,null,Mn.createElement(pe,{checked:i,onChange:C=>f({Sortable:C})},"Sortable"),Mn.createElement(pe,{checked:l,onChange:C=>f({Pivotable:C})},"Pivotable"),Mn.createElement(pe,{checked:u,onChange:C=>f({Aggregatable:C})},"Aggregatable")),Mn.createElement(de,null,Mn.createElement(pe,{checked:d,onChange:C=>f({SuppressMenu:C})},"Suppress Menu"),Mn.createElement(pe,{checked:c,onChange:C=>f({SuppressMovable:C})},"Suppress Movable"),Mn.createElement(pe,{disabled:!0,checked:e.isEditable},"Editable")))))),Boolean(n==null?void 0:n.length)&&Mn.createElement(j,{marginTop:2,autoFocus:!1},Mn.createElement(j.Tab,null,"Column Types"),Mn.createElement(j.Content,null,Mn.createElement(Je,{columns:[{name:"first",size:"30%"},{name:"second"}]},(b=(0,YEe.default)(n!=null?n:[],2))==null?void 0:b.map(([C,y])=>{var v,S,I,P,T,O;return Mn.createElement(de,{key:C},C&&Mn.createElement(pe,{onChange:_=>m(C,_),checked:(I=(S=(v=e.settings)==null?void 0:v.ColumnTypes)==null?void 0:S.includes)==null?void 0:I.call(S,C)},C),y&&Mn.createElement(pe,{onChange:_=>m(y,_),checked:(O=(T=(P=e.settings)==null?void 0:P.ColumnTypes)==null?void 0:T.includes)==null?void 0:O.call(T,y)},y))})))))};var $Ee=e=>{var n;let t=_N(e.CalculatedColumnSettings);return Nn.createElement(qd.Box,{fontSize:2},Nn.createElement(qd.Box,null,"Column Identifier: ",Nn.createElement(Dt,null,e.ColumnId)),e.FriendlyName?Nn.createElement(qd.Box,{mt:3},"Column Name: ",Nn.createElement(Dt,null,(n=e.FriendlyName)!=null?n:e.ColumnId)):null,Nn.createElement(qd.Box,{mb:3}),Nn.createElement(Xo,{toLabel:r=>r,toIdentifier:r=>r,readOnly:!0,options:t,value:t}))},hq=(e,t)=>{var a;let n=t.columnApi.getColumns();if(!e.ColumnId)return"Column id cannot be empty";if(!((a=e.CalculatedColumnSettings)!=null&&a.DataType))return"No data type specified for column";let r=n.filter(i=>i.columnId===e.ColumnId).length;return(e.Uuid?r>1:r>0)?"A Column already exists with that id":!0},XEe=e=>{var I,P;let{data:t,api:n}=ze(),r=(0,kN.useMemo)(()=>n.internalApi.getCalculatedColumnExpressionService(),[]),o=T=>{let O=T.target;e.onChange(R(g({},t),{ColumnId:O.value}))},a=T=>{let O=T.target;e.onChange(R(g({},t),{FriendlyName:O.value}))},i=T=>{var _;let O=T=="Number"?(_=t.CalculatedColumnSettings)==null?void 0:_.Aggregatable:!1;e.onChange(R(g({},t),{CalculatedColumnSettings:R(g({},t.CalculatedColumnSettings),{DataType:T,Aggregatable:O})}))},l=e.isEdit,u=hq(t,n),d=u===!0?null:u,c=[{value:"Number",label:"Number"},{value:"String",label:"String"},{value:"Date",label:"Date"},{value:"Boolean",label:"Boolean"}],[m,f]=(0,kN.useState)(!1),h=t.FriendlyName,b=t.ColumnId,{DataType:C}=(I=t.CalculatedColumnSettings)!=null?I:{},{Width:y,ShowToolTip:v}=(P=t.CalculatedColumnSettings)!=null?P:{},S=T=>{e.onChange(R(g({},t),{CalculatedColumnSettings:g(g({},t.CalculatedColumnSettings),T)}))};return Nn.useEffect(()=>{if(!C){let T=r.getCalculatedColumnDataType(t.Query);S(R(g({},t==null?void 0:t.CalculatedColumnSettings),{DataType:T}))}},[]),Nn.createElement(qd.Box,{"data-name":"calculated-column-settings"},Nn.createElement(j,{autoFocus:!1},Nn.createElement(j.Tab,null,"Column Details"),Nn.createElement(j.Content,null,Nn.createElement(qd.Flex,{flexDirection:"row"},Nn.createElement(Je,null,Nn.createElement(de,{label:"Id"},Nn.createElement(Ke,{"data-name":"column-id",value:t.ColumnId||"",width:300,autoFocus:!l,disabled:l,type:"text",placeholder:"Enter an Id for the column",onChange:o})),Nn.createElement(de,{label:"Name"},Nn.createElement(Ke,{"data-name":"column-name",autoFocus:l,onFocus:()=>{f(!0)},onBlur:()=>{f(!1)},value:m?h||"":h||b||"",width:300,type:"text",placeholder:"Enter column name",onChange:a})),Nn.createElement(de,{label:"Type"},Nn.createElement(Ze,{"data-name":"column-type",style:{width:"300px",whiteSpace:"normal",overflow:"hidden",maxWidth:"inherit"},placeholder:"Select Data Type",showClearButton:!0,onClear:()=>i(null),columns:["label"],items:c.map(T=>({value:T.value,label:T.label,onClick:()=>i(T.value)}))},C||"Select Data Type")),Nn.createElement(de,{label:"Width"},Nn.createElement(Ke,{"data-name":"column-width",type:"number",width:300,value:y||"",onChange:T=>S({Width:Number(T.target.value)})})),Nn.createElement(de,{label:""},Nn.createElement(pe,{"data-name":"column-show-tooltip",onChange:T=>S({ShowToolTip:T}),checked:v},"Show Expression as Tooltip")))))),d?Nn.createElement(ja,{marginTop:2},d):null,Nn.createElement(LN,{isEditable:!1,settings:t.CalculatedColumnSettings,onChange:S}))};var BN=e=>{var u;let t=$e(),n=rr(d=>d.CalculatedColumn.CalculatedColumns),[r,o]=(0,JEe.useState)(()=>{var d;if(e.data)return Bn(e.data);if((d=e.popupParams)!=null&&d.column){let c=n.find(m=>m.ColumnId===e.popupParams.column.columnId);if(c)return c}return it.CreateEmptyCalculatedColumn(t.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns)}),a=Rt(),i=Boolean(e.data)||((u=e.popupParams)==null?void 0:u.action)==="Edit",l=()=>{a(i?Ps(r):_f(r)),e.onCloseWizard()};return Jc.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:r,onHide:e.onCloseWizard,onFinish:l,sections:[{title:"Expression",details:"Specify the Calculated Column Expression",isValid:VEe,renderSummary:BEe,render:()=>Jc.createElement(GEe,{onChange:o})},{title:"Settings",details:"Specify Column details and properties",isValid:hq,renderSummary:$Ee,render:()=>Jc.createElement(gq.Box,{padding:2},Jc.createElement(XEe,{isEdit:i,onChange:o}))},"-",{render:()=>Jc.createElement(gq.Box,{padding:2},Jc.createElement(Xn,null)),title:"Summary"}]})};var bq=class extends Tg.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.onEdit(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n,r=this.props.teamSharingActivated;return this.props.CalculatedColumns.map((o,a)=>{o.ColumnId==this.props.summarisedColumn.columnId&&(n=Tg.createElement(va,{key:"UF"+a,item1:this.props.moduleInfo.FriendlyName,item2:this.props.api.queryLanguageApi.getAdaptableQueryExpression(o.Query),configEnity:o,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(o),onShare:i=>this.props.onShare(o,i),onDelete:Lf(o),showBold:!0,accessLevel:this.props.accessLevel}))}),Tg.createElement("div",null,n,this.state.editedAdaptableObject&&Tg.createElement(BN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.CalculatedColumns,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onEdit(n){this.setState({editedAdaptableObject:Mt.cloneObject(n),wizardStartIndex:0,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNotNullOrEmpty(n.ColumnId)&&we.IsNotNullOrEmpty(this.props.api.queryLanguageApi.getAdaptableQueryExpression(n.Query))}};function Mxt(e){return{CalculatedColumns:e.CalculatedColumn.CalculatedColumns}}function Nxt(e){return{onEdit:t=>e(Ps(t))}}var ZEe=Ye(Mxt,Nxt)(bq);s();var Zc=A(require("react"));s();var wg=A(require("react")),rIe=require("react"),yq=A(J());s();var Sn=A(require("react")),zd=A(J());var eIe=require("react");var _xt=[{value:"Number",label:"Number"},{value:"String",label:"String"},{value:"Date",label:"Date"},{value:"Boolean",label:"Boolean"}],tIe=e=>{var t;return Sn.createElement(zd.Box,{fontSize:2},Sn.createElement(zd.Box,null,"Column Identifier: ",Sn.createElement(Dt,null,e.ColumnId)),e.FriendlyName?Sn.createElement(zd.Box,{mt:3},"Column Name: ",Sn.createElement(Dt,null,(t=e.FriendlyName)!=null?t:e.ColumnId)):null,Sn.createElement(zd.Box,{mt:3},"Data Type: ",Sn.createElement(Dt,null,e.DataType)),e.DefaultValue!==void 0?Sn.createElement(zd.Box,{mt:3},"Default Value: ",Sn.createElement(Dt,null,e.DefaultValue)):null,e.TextEditor!==void 0?Sn.createElement(zd.Box,{mt:3},"Editor Type: ",Sn.createElement(Dt,null,e.TextEditor)):null)},Cq=(e,t)=>{let n=t.columnApi.getColumns();if(!e.ColumnId)return"Column id cannot be empty";let r=n.filter(a=>a.columnId===e.ColumnId).length;return(e.Uuid?r>1:r>0)?"A Column already exists with that id":e.DataType?!0:"No data type specified for column"},nIe=e=>{let{data:t,api:n}=ze(),r=n.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat,[o,a]=(0,eIe.useState)(!1),i=e.isEdit,l=Cq(t,n),u=l===!0?null:l,d=C=>{let v=C.target.value;e.onChange(R(g({},t),{ColumnId:v}))},c=C=>{let v=C.target.value;e.onChange(R(g({},t),{FriendlyName:v}))},m=C=>{let y=R(g({},t),{DataType:C});delete y.DefaultValue,C||delete y.DataType,e.onChange(y)},f=C=>{let v=C.target.value;e.onChange(R(g({},t),{TextEditor:v}))},h=C=>{let v=C.target.value;t.DataType==="Date"&&(v=go(v,{Pattern:r})),e.onChange(R(g({},t),{DefaultValue:v}))},b=C=>{e.onChange(R(g({},t),{FreeTextColumnSettings:g(g({},t==null?void 0:t.FreeTextColumnSettings),C)}))};return Sn.createElement(Sn.Fragment,null,Sn.createElement(Je,null,Sn.createElement(de,{label:"ColumnId"},Sn.createElement(Ke,{autoFocus:!i,value:t.ColumnId||"",style:{width:"100%",maxWidth:500},disabled:i,type:"text",placeholder:"Enter an id",onChange:C=>d(C)})),Sn.createElement(de,{label:"Column Name"},Sn.createElement(Ke,{autoFocus:i,onFocus:()=>{a(!0)},onBlur:()=>{a(!1)},value:o?t.FriendlyName||"":t.FriendlyName||t.ColumnId||"",style:{width:"100%",maxWidth:500},type:"text",placeholder:"Enter a name",onChange:C=>c(C)})),Sn.createElement(de,{label:"Type"},Sn.createElement(Ze,{style:{width:"300px",whiteSpace:"normal",overflow:"hidden",maxWidth:"inherit"},placeholder:"Select Data Type",showClearButton:!!t.DataType,onClear:()=>m(null),columns:["label"],items:_xt.map(C=>({value:C.value,label:C.label,onClick:()=>m(C.value)}))},t.DataType?t.DataType:"Select Data Type")),Sn.createElement(de,{label:"Default Value"},t.DataType==="Boolean"?Sn.createElement(pe,{checked:!!t.DefaultValue,onChange:C=>{e.onChange(R(g({},t),{DefaultValue:C}))}}):Sn.createElement(Yn,{value:t.DataType==="Date"&&t.DefaultValue?TR(t.DefaultValue,r)||"":t.DefaultValue||"",style:{width:"100%",maxWidth:500},type:t.DataType==="Number"?"number":t.DataType==="Date"?"date":"text",placeholder:"Default Column Value (not required)",onChange:C=>h(C)})),t.DataType=="String"&&Sn.createElement(de,{label:"Editor Type"},Sn.createElement(We,{value:"Inline",checked:t.TextEditor=="Inline",onChange:(C,y)=>f(y),marginRight:2},"Inline Editor"),Sn.createElement(We,{value:"Large",checked:t.TextEditor=="Large",onChange:(C,y)=>f(y)},"Large Editor"))),u?Sn.createElement(ja,{mt:2,mb:2},u):null,Sn.createElement(zd.Box,{mt:2},Sn.createElement(LN,{isEditable:!0,settings:t.FreeTextColumnSettings,onChange:b})))};var VN=e=>{var l;let t=rr(u=>u.FreeTextColumn.FreeTextColumns),[n,r]=(0,rIe.useState)(()=>{var u,d;return e.data?Bn(e.data):((u=e.popupParams)==null?void 0:u.action)==="Edit"&&((d=e.popupParams)==null?void 0:d.column)?t.find(c=>c.ColumnId===e.popupParams.column.columnId):it.CreateEmptyFreeTextColumn(!1)}),o=Rt(),a=e.data||((l=e.popupParams)==null?void 0:l.action)==="Edit",i=()=>{o(a?Fs(n):Uu(n)),e.onFinishWizard(n)};return wg.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:n,onHide:e.onCloseWizard,onFinish:i,sections:[{title:"Settings",details:"Configure the Free Text Column",isValid:Cq,render:()=>wg.createElement(yq.Box,{padding:2},wg.createElement(nIe,{isEdit:Boolean(e.data),onChange:r}))},"-",{details:"Review the Free Text Column",renderSummary:tIe,render:()=>wg.createElement(yq.Box,{padding:2},wg.createElement(Xn,null)),title:"Summary"}]})};var Sq=class extends Zc.Component{constructor(n){super(n);this.onFinishWizard=n=>{this.props.FreeTextColumns.find(r=>r.ColumnId==n.ColumnId)?this.props.onEditFreeTextColumn(n):this.props.onAddFreeTextColumn(n),this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})};this.state=Wt.getEmptyConfigState()}render(){let n=this.props.FreeTextColumns.find(a=>a.ColumnId==this.props.summarisedColumn.columnId),r=n==null,o;if(!r){let a=Ee.IsNotEmpty(n.FreeTextStoredValues)?" Stored values: "+n.FreeTextStoredValues.length:"No stored values";o=Zc.createElement(va,{key:this.props.moduleInfo.FriendlyName,item1:Zc.createElement(Oi,{moduleInfo:this.props.moduleInfo}),item2:a,configEnity:n,showShare:this.props.teamSharingActivated,moduleInfo:this.props.moduleInfo,onEdit:()=>this.onEdit(n),onShare:i=>this.props.onShare(n,i),onDelete:oh(n),showBold:!0,accessLevel:this.props.accessLevel})}return Zc.createElement("div",null,o,this.state.editedAdaptableObject&&Zc.createElement(VN,{moduleInfo:this.props.moduleInfo,data:this.state.editedAdaptableObject,configEntities:this.props.FreeTextColumns,onCloseWizard:()=>this.onCloseWizard(),onFinishWizard:this.onFinishWizard}))}onNew(){let n=this.props.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns,r=Vt.CreateEmptyFreeTextColumn(n);r.ColumnId=this.props.summarisedColumn.columnId,this.setState({editedAdaptableObject:r,wizardStartIndex:1,wizardStatus:"New"})}onEdit(n){let r=Mt.cloneObject(n);this.setState({editedAdaptableObject:r,wizardStartIndex:0,wizardStatus:"Edit"})}onCloseWizard(){this.setState({editedAdaptableObject:null,wizardStartIndex:0,wizardStatus:"None"})}canFinishWizard(){let n=this.state.editedAdaptableObject;return we.IsNotNullOrEmpty(n.ColumnId)}};function Lxt(e,t){return{FreeTextColumns:e.FreeTextColumn.FreeTextColumns}}function kxt(e){return{onAddFreeTextColumn:t=>e(Uu(t)),onEditFreeTextColumn:t=>e(Fs(t)),onShare:(t,n)=>e(da(t,ao,n))}}var oIe=Ye(Lxt,kxt)(Sq);s();var Bxt=A(require("react"));var GN=class extends lr.Component{constructor(t){super(t),this.state={SelectedColumn:t.column}}render(){let t=[{Content:"Module",Size:3},{Content:"Summary",Size:7},{Content:"",Size:2}],n=this.state.SelectedColumn?this.state.SelectedColumn.columnId:null,r=[{Key:"Column Id",Value:this.state.SelectedColumn?this.state.SelectedColumn.columnId:null},{Key:"Header",Value:this.state.SelectedColumn?this.state.SelectedColumn.friendlyName:null},{Key:"Aggregatable",Value:this.state.SelectedColumn?this.state.SelectedColumn.aggregatable:null},{Key:"DataType",Value:this.state.SelectedColumn?this.state.SelectedColumn.dataType:null},{Key:"Groupable",Value:this.state.SelectedColumn?this.state.SelectedColumn.groupable:null},{Key:"Filterable",Value:this.state.SelectedColumn?this.state.SelectedColumn.filterable:null},{Key:"Hideable",Value:this.state.SelectedColumn?this.state.SelectedColumn.hideable:null},{Key:"Editable",Value:this.state.SelectedColumn?!this.state.SelectedColumn.IsReadOnly:null},{Key:"Moveable",Value:this.state.SelectedColumn?this.state.SelectedColumn.moveable:null},{Key:"Pivotable",Value:this.state.SelectedColumn?this.state.SelectedColumn.pivotable:null},{Key:"Queryable",Value:this.state.SelectedColumn?this.state.SelectedColumn.queryable:null},{Key:"Sortable",Value:this.state.SelectedColumn?this.state.SelectedColumn.sortable:null},{Key:"Visible",Value:this.state.SelectedColumn?this.state.SelectedColumn.visible:null},{Key:"Grouped",Value:this.state.SelectedColumn?this.state.SelectedColumn.isGrouped:null}],o=this.props.api.internalApi.getModuleService(),a=[];return this.state.SelectedColumn&&(this.isModuleAvailable(bo)&&a.push(lr.createElement("div",{key:bo,className:this.isModuleReadOnly(bo)?br:""},lr.createElement(QRe,{key:bo,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(bo),api:this.props.api,moduleInfo:o.getModuleInfoByModule(bo)}))),this.isModuleAvailable(Vn)&&a.push(lr.createElement("div",{key:Vn,className:this.isModuleReadOnly(Vn)?br:""},lr.createElement(aEe,{key:Vn,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(Vn),api:this.props.api,moduleInfo:o.getModuleInfoByModule(Vn)}))),this.isModuleAvailable(Co)&&a.push(lr.createElement("div",{key:Co,className:this.isModuleReadOnly(Co)?br:""},lr.createElement(iEe,{key:Co,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(Co),api:this.props.api,moduleInfo:o.getModuleInfoByModule(Co)}))),this.isModuleAvailable(yo)&&a.push(lr.createElement("div",{key:yo,className:this.isModuleReadOnly(yo)?br:""},lr.createElement(LEe,{key:yo,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(yo),api:this.props.api,moduleInfo:o.getModuleInfoByModule(yo)}))),this.isModuleAvailable(ao)&&a.push(lr.createElement("div",{key:ao,className:this.isModuleReadOnly(ao)?br:""},lr.createElement(oIe,{key:ao,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(ao),api:this.props.api,moduleInfo:o.getModuleInfoByModule(ao)}))),this.isModuleAvailable(yr)&&this.state.SelectedColumn.dataType=="Number"&&a.push(lr.createElement("div",{key:yr,className:this.isModuleReadOnly(yr)?br:""},lr.createElement(mEe,{key:yr,summarisedColumn:this.state.SelectedColumn,teamSharingActivated:this.props.teamSharingActivated,accessLevel:this.getAccessLevel(yr),api:this.props.api,moduleInfo:o.getModuleInfoByModule(yr)}))),this.isModuleAvailable(Or)&&Ee.ContainsItem(this.props.api.calculatedColumnApi.getAllCalculatedColumn().map(i=>i.ColumnId),this.state.SelectedColumn.columnId)&&a.push(lr.createElement("div",{key:Or,className:this.isModuleReadOnly(Or)?br:""},lr.createElement(ZEe,{key:Or,summarisedColumn:this.state.SelectedColumn,accessLevel:this.getAccessLevel(Or),api:this.props.api,moduleInfo:o.getModuleInfoByModule(Or)})))),lr.createElement(Gt,{header:"Column Info",margin:2,"data-name":"column-component"},lr.createElement(Og.Flex,{flexDirection:"row",alignItems:"center",marginBottom:2},lr.createElement(Og.Box,{flex:1,marginLeft:2},lr.createElement(Xc,{SelectedColumnIds:[n],ColumnList:this.props.api.columnApi.getColumns(),onColumnChange:i=>this.onColumnSelectedChanged(i),SelectionMode:"Single"}))),lr.createElement(Og.Flex,{flex:1,style:{overflow:"auto",width:"100%"}},this.state.SelectedColumn&&!1),lr.createElement(Og.Flex,{flex:1,style:{overflow:"auto",width:"100%"}},this.state.SelectedColumn&&lr.createElement(wi,{style:{width:"100%"},colItems:t,items:a})))}onColumnSelectedChanged(t){this.setState({SelectedColumn:t.length>0?t[0]:null})}isModuleAvailable(t){return this.props.api.internalApi.getModuleService().getModuleById(t).isModuleAvailable()}isModuleReadOnly(t){return this.getAccessLevel(t)=="ReadOnly"}getAccessLevel(t){return this.props.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(t)}};s();var Pa=A(require("react")),Ng=require("react");s();var Ia=A(require("react"));var em=A(J());var ls=class extends Ia.Component{render(){let{buttonContent:t}=this.props,n=Gs[this.props.glyphicon],r=Ia.createElement(em.Flex,{alignItems:"center",width:"100%"},Ia.createElement(em.Flex,{alignItems:"center"},this.props.glyphicon!=null&&(n?Ia.createElement(n,null):null),Ia.createElement(em.Box,{marginRight:2,"data-name":"space-before"}),this.props.headerText,Ia.createElement(em.Box,{marginRight:2,"data-name":"space-after"}),this.props.infoLink!=null&&!this.props.infoLinkDisabled&&Ia.createElement(so,{style:{color:"var(--ab-color-text-on-add)",fill:"var(--ab-color-text-on-add)",background:"var(--ab-color-action-add)"},onClick:()=>window.open(this.props.infoLink,"_blank")})),Ia.createElement(em.Box,{style:{flex:1}}),t?Ia.createElement(re,{variant:"raised",tone:"accent",disabled:this.props.buttonDisabled,onClick:()=>this.props.buttonClick?this.props.buttonClick():null},t):null,this.props.button?Ia.cloneElement(this.props.button):null);return Ia.createElement(Gt,{flex:1,className:this.props.className,bodyScroll:this.props.bodyScroll!=null?this.props.bodyScroll:!0,bodyProps:this.props.bodyProps,variant:this.props.variant||"primary",header:r,headerProps:this.props.headerProps,style:this.props.style,borderRadius:this.props.borderRadius||"none",border:this.props.border||"none"},this.props.children)}};s();var HN=A(require("react"));var Fg=class extends HN.Component{render(){return HN.createElement(re,R(g({"data-name":"minimise",iconSize:20,tooltip:"Minimise"},this.props),{variant:"text",icon:"arrow-up"}))}};s();var UN=A(require("react"));var Mg=class extends UN.Component{render(){return UN.createElement(re,g({"data-name":"maximise",iconSize:20,tooltip:"Maximize",icon:this.props.useHoirzontalChevron?"arrow-right":"arrow-down",variant:"text"},this.props))}};var aIe=A(J()),iIe=e=>{let{api:t}=e,n=()=>[{Content:"Property",Size:5},{Content:"Value",Size:5},{Content:"",Size:2}],r=f=>{if(f==null||f==null)return"None";switch(typeof f){case"string":case"number":case"bigint":return f;case"boolean":return f?"True":"False";case"function":return"Function";case"object":if(Array.isArray(f))return`[${f.map(b=>r(b)).join(", ")}]`;if(f instanceof HTMLElement)return"HTMLElement";default:return"Complex value"}},o=f=>{let h=n();h[0].Content=f.name;let b=r(f.value),C=f.value!==f.defaultValue;h[1].Content=C?Pa.createElement(Pa.Fragment,null,Pa.createElement("span",{style:{fontWeight:"bold"}},b),Pa.createElement("span",{style:{fontStyle:"italic"}}," ","(Default: ",r(f.defaultValue),")")):b;let y=Pa.createElement(Cn,{headerText:null,bodyText:[f.description]});return h[2].Content=y,h},a=(f,h)=>{let b=h.items.map(C=>{let y=o(C);return Pa.createElement(hr,{key:`${C.name}`,colItems:y})});return Pa.createElement(wi,{colItems:n(),items:b})},[i,l]=(0,Ng.useState)(),[u,d]=(0,Ng.useState)();(0,Ng.useEffect)(()=>{let f=t.internalApi.getMetamodelService().getGridInfoOptions(),h=new Map;f.forEach((b,C)=>{h.set(C,a(C,b))}),d(h),l(f)},[]);let[c,m]=(0,Ng.useState)("");return Pa.createElement(aIe.Box,{className:"ab-AdaptableOptions",padding:2,"data-name":"gridInfo-adaptableOptions-content"},i&&Array.from(i.entries()).map(([f,h])=>Pa.createElement(Vxt,{key:f,name:f,label:h.containerLabel,viewMode:f===c?"expanded":"collapsed",onViewModeChange:b=>m(b==="expanded"?f:"")},u.get(f))))},Vxt=e=>{let{viewMode:t,name:n,label:r,onViewModeChange:o,children:a}=e,i=()=>{o(t==="expanded"?"collapsed":"expanded")},l=t==="expanded"?Pa.createElement(Fg,{onClick:()=>i(),tooltip:`Hide ${r}`}):Pa.createElement(Mg,{onClick:()=>i(),tooltip:`Show ${r}`});return Pa.createElement(ls,{className:`options-container-${n}`,variant:"default",headerText:r,headerProps:{fontSize:3,style:{fontWeight:t==="expanded"?800:400,cursor:"pointer"},"data-name":`options-container-header-${n}`,onClick:()=>i()},button:l,style:{marginBottom:3}},t==="expanded"&&a)};s();var tm=A(require("react"));s();s();var In=A(require("react"));var cl=A(J());var vq=26,Gxt=e=>{var T,O,_,M,x,D,N,q,F;let t=$e(),n=Rt(),[r,o]=In.useState(!1),[a,i]=In.useState(null),l=(O=(T=e.module)==null?void 0:T.getViewProperties)==null?void 0:O.call(T),u=(_=l.getEditWizard)==null?void 0:_.call(l,e.data.abObject),d=(M=l==null?void 0:l.getDeleteAction)==null?void 0:M.call(l,e.data.abObject),c=t.api.teamSharingApi.isTeamSharingActivated()&&t.api.teamSharingApi.hasTeamSharingFullRights(),m=e.module.moduleInfo.FriendlyName,f=t.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(e.module.moduleInfo.ModuleName),h=xt.getAppropriateAccessLevel(e.data.abObject,f),b=`${e.baseClassName}__Item`,C=He(b,e.data.abObject.IsSuspended&&`${b}--is-suspended`),y=In.useCallback(()=>{o(!1),i(null)},[]),v=In.useCallback(k=>{var Y;u&&(o(!0),k&&i(k)),(Y=l==null?void 0:l.onOpenEditPopup)==null||Y.call(l,e.data.abObject)},[]),S=Boolean(l.getSuspendAction),I=(D=(x=l==null?void 0:l.actions)==null?void 0:x.map)==null?void 0:D.call(x,(k,Y)=>In.createElement(k,{data:e.data.abObject,key:Y})),P=!Boolean(u||l.onOpenEditPopup);return In.createElement(cl.Flex,{"data-name":"adaptable-object-list-item","data-value":e.data.abObject.Uuid,as:"li",mb:3,className:C},In.createElement(cl.Box,{flex:1,className:`${b}__rows`},(F=(q=(N=e.data.items).filter)==null?void 0:q.call(N,Boolean))==null?void 0:F.map((k,Y)=>{var Z;return In.createElement(cl.Flex,{"data-name":k.name,key:Y,mb:2,className:`${b}__row`},In.createElement(cl.Box,{className:`${b}__label`,mr:3},k.label||k.name,u&&In.createElement(re,{accessLevel:h,className:`${b}__edit-property`,ml:1,icon:"edit",tooltip:"edit",iconSize:18,variant:"text",onClick:()=>{v(k.name)}})),In.createElement(cl.Box,{flex:1,className:`${b}__values`},k.view&&In.createElement(k.view,{data:e.data.abObject}),Boolean((k==null?void 0:k.values)&&((Z=k==null?void 0:k.values)==null?void 0:Z.length))&&In.createElement(Xo,{style:{marginRight:0},readOnly:!0,options:k.values,value:k.values,allowWrap:!0,toIdentifier:oe=>oe,toLabel:oe=>In.createElement(In.Fragment,null,oe)})))})),In.createElement(cl.Flex,{flexDirection:"column",className:`${b}__buttons`},In.createElement(cl.Flex,{justifyContent:"end"},I,c&&In.createElement(Rg,{iconSize:vq,Header:`TeamSharing ${m}`,accessLevel:h,onShare:k=>n(da(e.data.abObject,e.module.moduleInfo.ModuleName,k))}),d&&In.createElement(Fd,{iconSize:vq,ConfirmationMsg:`Are you sure you want to delete this ${m}?`,ConfirmationTitle:`Delete ${m}`,ConfirmAction:d,accessLevel:h}),In.createElement(Od,{iconSize:vq,disabled:P,accessLevel:h,onClick:()=>v()})),In.createElement(cl.Box,{flex:1}),S&&In.createElement(cl.Flex,{justifyContent:"end"},In.createElement(SN,{onSuspend:()=>n(l.getSuspendAction(e.data.abObject)),onUnSuspend:()=>n(l.getUnSuspendAction(e.data.abObject)),suspendableObject:e.data.abObject,accessLevel:h}))),r&&u&&In.createElement(u,{defaultCurrentSectionName:a,moduleInfo:e.module.moduleInfo,data:e.data.abObject,configEntities:null,onCloseWizard:y,onFinishWizard:y}))},NS=e=>{var n;let t="ab-Adaptable-Object-List";return In.createElement("ul",{className:t},(n=e==null?void 0:e.items)==null?void 0:n.map(r=>In.createElement(Gxt,{key:r.abObject.Uuid,baseClassName:t,data:r,module:e.module})))};var lIe=()=>{let e=rr(r=>r),n=$e().ModuleService.getModuleCollection();return tm.createElement(tm.Fragment,null,[...n].map(([r,o])=>{var i;if(!o.isModuleAvailable())return null;let a=(i=o==null?void 0:o.toViewAll)==null?void 0:i.call(o);return a!=null&&a.length?tm.createElement("div",{key:o.moduleInfo.ModuleName},tm.createElement("b",null,o.moduleInfo.FriendlyName),(a==null?void 0:a.length)&&tm.createElement(NS,{items:a,module:o})):null}))};var sIe=e=>{var C,y,v;let t=e.api.internalApi.getEntitlementService(),n=t.isGridInfoSectionVisible("GridSummary"),r=t.isGridInfoSectionVisible("AdaptableOptions"),o=t.isGridInfoSectionVisible("ColumnInfo"),a=!0,[i,l]=Hr.useState({ActiveTab:(C=e.popupParams)!=null&&C.column?"ColumnInfo":n?"GridSummary":r?"AdaptableOptions":"ColumnInfo",CurrentColumn:(v=(y=e.popupParams)==null?void 0:y.column)!=null?v:void 0,IsBaseOptionsMinimised:!0,IsContainerOptionsMinimised:!0,IsSearchOptionsMinimised:!0,IsLayoutOptionsMinimised:!0,IsGeneralOptionsMinimised:!0}),u=S=>{l(I=>g(g({},I),S))},d=S=>{let I=[],P=e.api.calculatedColumnApi.getAllCalculatedColumn().map(D=>D.ColumnId),T=e.api.userInterfaceApi.getAllActionColumn().map(D=>D.columnId),O=e.api.freeTextColumnApi.getAllFreeTextColumn().map(D=>D.ColumnId),_=e.api.filterApi.columnFiltersToString(e.api.filterApi.getAllColumnFilter()),M=De.IsNotNullOrEmpty(e.api.gridApi.getColumnSorts())?e.api.gridApi.getColumnSorts().map(D=>e.api.columnApi.getFriendlyNameFromColumnId(D.ColumnId)+": "+D.SortOrder):null,x=e.api.gridApi.getSelectedRowInfo();return I.push(c(S,"AdapTable Version",hRe)),I.push(c(S,"Sorted Columns",De.IsNotNullOrEmpty(M)?M.join("; "):"None")),I.push(c(S,"Column Filters",_)),I.push(c(S,"All Rows",e.api.gridApi.getRowCount())),I.push(c(S,"Visible Rows",e.api.gridApi.getVisibleRowCount())),I.push(c(S,"Selected Rows",x==null?void 0:x.gridRows.length)),I.push(c(S,"Visible Selected Rows",x==null?void 0:x.gridRows.filter(D=>{var N;return((N=D.rowNode)==null?void 0:N.displayed)==!0}).length)),I.push(c(S,"All Columns",e.api.gridApi.getColumnCount())),I.push(c(S,"Visible Columns",e.api.gridApi.getVisibleColumnCount())),I.push(c(S,"Calculated Columns",De.IsNotNullOrEmpty(P)?P:"None")),I.push(c(S,"Free Text Columns",De.IsNotNullOrEmpty(O)?O:"None")),I.push(c(S,"Action Columns",De.IsNotNullOrEmpty(T)?T:"None")),I},c=(S,I,P,T)=>{let O=sn.cloneObject(S);if(O[0].Content=I,O[1].Content=P,T){let _=Hr.createElement(Cn,{headerText:null,bodyText:[T]});O[2].Content=_}return O},m=S=>{u({ActiveTab:S})},f=[{Content:"Property",Size:5},{Content:"Value",Size:7}],h=d(f).map((S,I)=>Hr.createElement(hr,{key:I,colItems:S})),b=[n,r,o,a].filter(S=>S).length>1;return Hr.createElement(Vr,{headerText:"Grid Info",glyphicon:"info-sign"},Hr.createElement(WN.Flex,{marginBottom:2,padding:3},b&&Hr.createElement(Hr.Fragment,null,n&&Hr.createElement(We,{"data-name":"radioButton-GridSummary",marginRight:3,value:"GridSummary",checked:i.ActiveTab=="GridSummary",onChange:(S,I)=>m("GridSummary")},"Summary"),r&&Hr.createElement(We,{"data-name":"radioButton-AdaptableOptions",marginRight:3,value:"AdaptableOptions",checked:i.ActiveTab=="AdaptableOptions",onChange:(S,I)=>m("AdaptableOptions")},"Options"),o&&Hr.createElement(We,{"data-name":"radioButton-Column",marginRight:3,value:"Column",checked:i.ActiveTab=="ColumnInfo",onChange:(S,I)=>m("ColumnInfo")},"Columns"),a&&Hr.createElement(We,{"data-name":"radioButton-Column",value:"Column",checked:i.ActiveTab=="AdaptableObjectsSummary",onChange:(S,I)=>m("AdaptableObjectsSummary")},"Objects"))),i.ActiveTab=="GridSummary"&&Hr.createElement(WN.Box,{margin:2},Hr.createElement(wi,{colItems:f,items:h})),i.ActiveTab=="AdaptableOptions"&&Hr.createElement(iIe,{api:e.api}),i.ActiveTab=="ColumnInfo"&&Hr.createElement("div",null,Hr.createElement(GN,{api:e.api,teamSharingActivated:e.teamSharingActivated,column:i.CurrentColumn})),i.ActiveTab==="AdaptableObjectsSummary"&&Hr.createElement(lIe,null))};s();var jt=A(require("react"));var sm=A(J());s();var _g=A(require("react")),qN=A(J());var zN=class extends _g.Component{render(){let t=this.props.entity;return _g.createElement(qN.Flex,{flexDirection:"row",alignItems:"center"},_g.createElement(qN.Flex,{flex:4},this.props.api.columnApi.getFriendlyNameFromColumnId(t.ColumnId)),_g.createElement(qN.Flex,{flex:8},this.getCustomSortedValues(t)))}getCustomSortedValues(t){return De.IsNotNullOrEmpty(t.SortedValues)?t.SortedValues.join(", "):"[Has bespoke Custom Sort implementing using bespoke function]"}};s();var nm=A(require("react")),QN=A(J());var jN=class extends nm.Component{render(){let t=this.props.entity;return nm.createElement(QN.Flex,{flexDirection:"row",alignItems:"center"},nm.createElement(QN.Flex,{flex:4},t.ColumnId),nm.createElement(QN.Flex,{flex:8},nm.createElement(Fn,null," ",this.props.api.queryLanguageApi.getAdaptableQueryExpression(t.Query))))}};s();var Lg=A(require("react")),YN=A(J()),KN=class extends Lg.Component{render(){var n;let t=this.props.entity;return Lg.createElement(YN.Flex,{flexDirection:"row",alignItems:"center"},Lg.createElement(YN.Flex,{flex:4},t.Name),Lg.createElement(YN.Flex,{flex:8},(n=t.Query)==null?void 0:n.BooleanExpression))}};s();var Qd=A(require("react"));var _S=A(J());var $N=class extends Qd.Component{render(){let t=this.props.entity,n=Qe.IsNotNullOrEmpty(t.Rule.BooleanExpression)?t.Rule.BooleanExpression:this.props.api.predicateApi.predicateToString(t.Rule.Predicate);return Qd.createElement(_S.Flex,{flexDirection:"row",alignItems:"center",padding:1},Qd.createElement(_S.Flex,{flex:4},this.props.api.scopeApi.getScopeToString(t.Scope)),Qd.createElement(_S.Flex,{flex:3,marginLeft:2},Qd.createElement(Aa,{Style:t.Style})),Qd.createElement(_S.Flex,{flex:5},n))}};s();var rm=A(require("react"));var XN=A(J()),JN=class extends rm.Component{render(){let t=this.props.entity;return rm.createElement(XN.Flex,{flexDirection:"row",alignItems:"center"},rm.createElement(XN.Flex,{flex:4},this.props.api.scopeApi.getScopeDescription(t.Scope)),rm.createElement(XN.Flex,{flex:8},rm.createElement(Aa,{Style:t.Style})))}};s();var kg=A(require("react")),ZN=A(J()),e_=class extends kg.Component{render(){let t=this.props.entity;return kg.createElement(ZN.Flex,{flexDirection:"row",alignItems:"center"},kg.createElement(ZN.Flex,{flex:4},t.Name),kg.createElement(ZN.Flex,{flex:8},t.Columns.join(", ")))}};s();var om=A(require("react")),LS=A(J());var t_=class extends om.Component{render(){var r;let t=this.props.entity,n=Qe.IsNotNullOrEmpty((r=t.Rule)==null?void 0:r.BooleanExpression)?t.Rule.BooleanExpression:"Always";return om.createElement(LS.Flex,{flexDirection:"row",alignItems:"center"},om.createElement(LS.Flex,{flex:4},this.props.api.scopeApi.getScopeToString(t.Scope)),om.createElement(LS.Flex,{flex:3},t.NudgeValue.toString()),om.createElement(LS.Flex,{flex:5},n))}};s();var jd=A(require("react")),n_=A(J()),r_=class extends jd.Component{render(){let t=this.props.entity;return jd.createElement(n_.Flex,{flexDirection:"row",alignItems:"center"},jd.createElement(n_.Flex,{flex:4},"Key: ",jd.createElement("b",null,t.ShortcutKey)),jd.createElement(n_.Flex,{flex:4},"Value: ",jd.createElement("b",null,t.ShortcutValue)))}};s();var am=A(require("react")),o_=A(J());var a_=class extends am.Component{render(){let t=this.props.entity;return am.createElement(o_.Flex,{flexDirection:"row",alignItems:"center"},am.createElement(o_.Flex,{flex:4},t.Name),am.createElement(o_.Flex,{flex:8},am.createElement(Fn,null," ",t.BooleanExpression)))}};s();var im=A(require("react")),i_=A(J());var l_=class extends im.Component{render(){let t=this.props.entity,n=Qe.IsNotNullOrEmpty(t.DefaultValue)?t.DefaultValue:"None";return im.createElement(i_.Flex,{flexDirection:"row",alignItems:"center"},im.createElement(i_.Flex,{flex:4},t.ColumnId),im.createElement(i_.Flex,{flex:8,flexDirection:"column"},"ColumnName: ",t.FriendlyName,im.createElement("br",null),"Default Value: ",n))}};s();var Bg=A(require("react")),s_=A(J()),u_=class extends Bg.Component{render(){let t=this.props.entity;return Bg.createElement(s_.Flex,{flexDirection:"row",alignItems:"center"},Bg.createElement(s_.Flex,{flex:4},this.props.api.columnApi.getFriendlyNameFromColumnId(t.ColumnId)),Bg.createElement(s_.Flex,{flex:8,marginLeft:2},this.props.api.predicateApi.predicateToString(t.Predicate)))}};s();var lm=A(require("react")),d_=A(J());var p_=class extends lm.Component{render(){let t=this.props.entity;return lm.createElement(d_.Flex,{flexDirection:"row",alignItems:"center"},lm.createElement(d_.Flex,{flex:4},this.props.api.scopeApi.getScopeToString(t.Scope)),lm.createElement(d_.Flex,{flex:8},lm.createElement(Fn,null,this.props.api.alertApi.getAlertRuleDescription(t)," ")))}};var Aq=class extends jt.Component{componentDidMount(){this.props.onTeamSharingGet()}render(){let t=[{Content:"Module",Size:2},{Content:"Description",Size:2},{Content:"Audit",Size:5},{Content:"Details",Size:5},{Content:"",Size:1}],n=this.props.api.internalApi.getTeamSharingService().getStaleActiveSharedEntities(),r=this.props.Entities.sort((o,a)=>o.Module<a.Module?-1:1).map((o,a)=>jt.createElement(sm.Flex,{flexDirection:"row",alignItems:"center",key:a,padding:2,fontSize:"var( --ab-font-size-2)"},jt.createElement(sm.Flex,{flex:2},this.props.api.internalApi.getModuleService().getModuleInfoByModule(o.Module).FriendlyName),jt.createElement(sm.Flex,{flex:2,marginLeft:2},o.Description),jt.createElement(sm.Flex,{flex:5,marginLeft:2,flexDirection:"column"},jt.createElement("div",null,jt.createElement("b",null,o.Type==="Snapshot"?"Snaphot":"Active share")," by ",o.UserName," at"," ",new Date(o.Timestamp).toLocaleString()),o.Type==="Active"&&o.Revision>1&&jt.createElement("div",null,"Latest ",jt.createElement("b",null,"Revision ",o.Revision)," by ",o.ChangedBy," at"," ",new Date(o.ChangedAt).toLocaleString()),this.isUpToDateActive(o)&&jt.createElement("div",{style:{color:"var(--ab-color-success)"}},"Active & ",jt.createElement("b",null,"up-to-date")),this.isStaleActive(o,n)&&jt.createElement("div",{style:{color:"var(--ab-color-warn)"}},"Local Revision ",n[o.Uuid].importedRevision," is ",jt.createElement("b",null,"stale!"))),jt.createElement(sm.Flex,{flex:5,marginLeft:1},jt.createElement(Gt,{variant:"primary",style:{flex:1},fontSize:"var( --ab-font-size-2)"},this.getSharedItemDetails(o))),jt.createElement(sm.Flex,{flex:1},jt.createElement(re,{variant:"text",tooltip:"Import",onClick:()=>this.props.onImportItem(o)},jt.createElement(Ct,{name:"import-export"})),this.hasDeletionRights(o)&&jt.createElement(re,{variant:"text",tooltip:"Remove",onClick:()=>this.props.onRemoveItem(o.Uuid)},jt.createElement(Ct,{name:"delete"})))));return jt.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed(),glyphicon:this.props.moduleInfo.Glyph},this.props.Entities.length==0?jt.createElement(Nt,{margin:3},"Shared Items will appear here when available."):jt.createElement(Dd,{colItems:t}),r)}isPresentInLocalState(t){return!!this.props.api.internalApi.getModuleService().getModuleById(t.Module).getModuleAdaptableObjects().find(n=>n.Uuid===t.Entity.Uuid)}isStaleActive(t,n){return this.isPresentInLocalState(t)&&!!n[t.Uuid]}isUpToDateActive(t){var n;return this.isPresentInLocalState(t)&&t.Type==="Active"&&((n=this.props.ActiveEntities[t.Entity.Uuid])==null?void 0:n.Revision)===t.Revision}hasDeletionRights(t){return this.props.api.teamSharingApi.hasTeamSharingFullRights()&&!t.IsReadOnly}getSharedItemDetails(t){switch(t.Module){case Or:return jt.createElement(jN,{entity:t.Entity,api:this.props.api});case bo:return jt.createElement(zN,{entity:t.Entity,api:this.props.api});case Vn:return jt.createElement($N,{entity:t.Entity,api:this.props.api});case kr:return jt.createElement(KN,{entity:t.Entity,api:this.props.api});case Co:return jt.createElement(u_,{entity:t.Entity,api:this.props.api});case yo:return jt.createElement(JN,{entity:t.Entity,api:this.props.api});case ao:return jt.createElement(l_,{entity:t.Entity,api:this.props.api});case Ki:return jt.createElement(e_,{entity:t.Entity,api:this.props.api});case yr:return jt.createElement(t_,{entity:t.Entity,api:this.props.api});case Fl:return jt.createElement(r_,{entity:t.Entity,api:this.props.api});case Gn:return jt.createElement(a_,{entity:t.Entity,api:this.props.api});case wr:return jt.createElement(p_,{entity:t.Entity,api:this.props.api});default:return"Preview not available"}}};function Hxt(e,t){return{Entities:e.TeamSharing.SharedEntities,ActiveEntities:e.TeamSharing.ActiveSharedEntityMap}}function Uxt(e){return{onTeamSharingGet:()=>e(zoe()),onImportItem:t=>e(Uoe(t)),onRemoveItem:t=>e(qoe(t))}}var uIe=Ye(Hxt,Uxt)(Aq);s();var Io=A(require("react"));var Vg=A(J());s();var Yd=require("react"),en=A(require("react"));var xq=(0,Yd.createContext)({availableToolbars:[]}),dIe=(e,t)=>{let n=e.find(r=>r.Id===t);return n?n.Title:t};function Wxt({tabs:e,onRemoveTab:t,onRemoveToolbar:n,onChangeTabName:r,disabled:o}){return en.createElement($o,{droppableId:"MAIN",type:"TAB",direction:"horizontal"},a=>en.createElement("div",R(g({ref:a.innerRef},a.droppableProps),{style:{display:"flex"},"data-name":"dashboard-tabs"}),e.map((i,l)=>en.createElement(qxt,{disabled:o,key:l,tabIndex:l,tab:i,onRemove:()=>t(l),onRemoveToolbar:u=>n(l,u),onChangeTabName:u=>r(l,u)})),a.placeholder))}function qxt({tab:e,tabIndex:t,onRemove:n,onRemoveToolbar:r,onChangeTabName:o,disabled:a}){return en.createElement(ga,{isDragDisabled:a,draggableId:String(t),index:t},i=>en.createElement("div",R(g({"data-name":"dashboard-tab",ref:i.innerRef},i.draggableProps),{style:R(g({},a?{}:i.draggableProps.style),{boxSizing:"border-box",border:"1px solid var(--ab-color-primarydark)",borderRadius:"var(--ab__border-radius)",marginRight:"var(--ab-space-2)",width:160,display:"flex",flexDirection:"column"})}),en.createElement("div",{style:{display:"flex",alignItems:"center",padding:"var(--ab-space-1)",borderBottom:"1px solid var(--ab-color-primarydark)"}},en.createElement("div",R(g({},a?{}:i.dragHandleProps),{style:{}}),en.createElement(Ct,{name:"drag"})),en.createElement("input",{type:"text",disabled:a,value:e.Name,style:{flex:1,width:"100%",border:"none",marginLeft:"var(--ab-space-1)",marginRight:"var(--ab-space-1)",alignSelf:"stretch",background:"transparent",color:"var(--ab-color-text-on-primary)"},onChange:l=>{o(l.target.value)}}),en.createElement(re,{disabled:a,icon:"delete",variant:"text",onClick:n})),en.createElement(zxt,{disabled:a,toolbars:e.Toolbars,droppableId:String(t),onRemove:r})))}function zxt({toolbars:e,droppableId:t,onRemove:n,disabled:r}){return en.createElement($o,{droppableId:t,type:"TOOLBAR"},(o,a)=>en.createElement("div",R(g({ref:o.innerRef},r?{}:o.droppableProps),{"data-name":"dashboard-toolbar-drop-target",style:{flex:1,padding:4,paddingBottom:0,background:a.isDraggingOver?"var(--ab-dashboard-tab-drop-target__background)":"",minHeight:200}}),e.map((i,l)=>en.createElement(Qxt,{disabled:r,key:i,toolbar:i,toolbarIndex:l,onRemove:()=>n(l)})),o.placeholder))}function Qxt({toolbar:e,toolbarIndex:t,onRemove:n,disabled:r}){let{availableToolbars:o}=(0,Yd.useContext)(xq);return en.createElement(ga,{isDragDisabled:r,draggableId:e,index:t},(a,i)=>en.createElement("div",R(g(g({ref:a.innerRef},a.draggableProps),a.dragHandleProps),{style:R(g({},a.draggableProps.style),{display:"flex",alignItems:"center",border:"1px solid var(--ab-color-primary)",backgroundColor:i.isDragging?"var(--ab-dashboard-toolbar-drag__background)":"var(--ab-color-primarylight)",paddingLeft:"var(--ab-space-1)",marginBottom:"var(--ab-space-1)"})}),en.createElement("div",{style:{flex:1}},dIe(o,e)),en.createElement(re,{disabled:r,icon:"clear",variant:"text",padding:1,onClick:n})))}function jxt({toolbars:e,disabled:t}){return en.createElement("div",{"data-name":"dashboard-toolbars",style:{border:"1px solid var(--ab-color-primarydark)",borderRadius:"var(--ab__border-radius)",marginBottom:"var(--ab-space-2)",paddingBottom:"var(--ab-space-1)",backgroundColor:"var(--ab-color-defaultbackground)"}},en.createElement("div",{style:{padding:"var(--ab-space-2)"}},en.createElement("b",null,"Available Toolbars")," (drag into a Tab below)"),en.createElement(Yxt,{disabled:t,toolbars:e}))}function Yxt({toolbars:e,disabled:t}){return en.createElement($o,{droppableId:"UNUSED",type:"TOOLBAR",isDropDisabled:!0,direction:"horizontal"},n=>en.createElement("div",R(g({ref:n.innerRef,"data-name":"dashboard-toolbars-list"},n.droppableProps),{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingLeft:"var(--ab-space-2)",paddingRight:"var(--ab-space-2)"}}),e.map((r,o)=>en.createElement(Kxt,{disabled:t,key:r,toolbar:r,toolbarIndex:o})),n.placeholder))}function Kxt({toolbar:e,toolbarIndex:t,disabled:n}){let{availableToolbars:r}=(0,Yd.useContext)(xq);return en.createElement(ga,{isDragDisabled:n,draggableId:e,index:t},(o,a)=>{let i=n?{}:g(g({},o.draggableProps),o.dragHandleProps),l=n?{}:o.draggableProps.style;return en.createElement("div",R(g({"data-name":"dashboard-toolbar",ref:o.innerRef},i),{style:R(g({},l),{border:"1px solid var(--ab-color-primary)",backgroundColor:a.isDragging?"var(--ab-dashboard-toolbar-drag__background)":"var(--ab-color-primarylight)",padding:"var(--ab-space-1) var(--ab-space-2)",marginRight:"var(--ab-space-1)",marginBottom:"var(--ab-space-1)"})}),dIe(r,e))})}var $xt=({tabs:e,onTabsChange:t,availableToolbars:n,api:r,disabled:o})=>{let i=r.internalApi.getModuleService().getModuleInfoByModule("Dashboard"),l=(0,Yd.useMemo)(()=>({availableToolbars:n}),[n]),u=(0,Yd.useMemo)(()=>n.map(C=>C.Id).filter(C=>!e.some(y=>y.Toolbars.includes(C))),[e,n]),d=C=>{let{source:y,destination:v,draggableId:S}=C;!y||!v||(y.droppableId!=="UNUSED"&&e[Number(y.droppableId)].Toolbars.splice(y.index,1),v.droppableId!=="UNUSED"&&e[Number(v.droppableId)].Toolbars.splice(v.index,0,S),t([...e]))},c=C=>{let{source:y,destination:v}=C;if(!y||!v)return;let[S]=e.splice(y.index,1);e.splice(v.index,0,S),t([...e])},m=C=>{t(e.filter((y,v)=>v!==C))},f=()=>{t([...e,{Name:"New Tab",Toolbars:[]}])},h=(C,y)=>{t(e.map((v,S)=>S!==C?v:R(g({},v),{Toolbars:v.Toolbars.filter((I,P)=>P!==y)})))},b=(C,y)=>{t(e.map((v,S)=>S!==C?v:R(g({},v),{Name:y})))};return en.createElement(Xh,{onDragEnd:C=>{C.type==="TAB"&&c(C),C.type==="TOOLBAR"&&d(C)}},en.createElement(xq.Provider,{value:l},en.createElement("div",{style:{display:"flex",flexDirection:"column"}},en.createElement(jxt,{disabled:o,toolbars:u}),en.createElement(ls,{headerText:i.FriendlyName+" Tabs",button:en.createElement(re,{disabled:o,onClick:f},"Add Tab")},en.createElement("div",{style:{display:"flex",flex:1}},en.createElement(Wxt,{disabled:o,tabs:e,onRemoveTab:m,onRemoveToolbar:h,onChangeTabName:b}))))))},pIe=$xt;var Rq=class extends Io.Component{constructor(t){super(t),this.state={DashboardConfigView:"Toolbars"}}render(){let t=aRe,n=this.props.api.internalApi.getModuleService(),r=t.filter(h=>this.props.api.internalApi.getModuleService().isModuleAvailable(h)).map(h=>({Id:h,Title:n.getModuleInfoByModule(h).FriendlyName})),o=this.props.api.dashboardApi.getCustomToolbars().map(h=>({Id:h.name,Title:h.title?h.title:h.name})),a=this.props.DashboardState.Tabs.map(h=>{let b=h.Toolbars.filter(C=>this.props.api.dashboardApi.getCustomToolbars().find(v=>v.name===C)?!0:this.props.api.internalApi.getModuleService().isModuleAvailable(C));return R(g({},h),{Toolbars:b})}),i=[];this.props.DashboardState.ModuleButtons.forEach(h=>{let b=this.props.GridState.ModuleDropdownMenuItems.find(C=>C.module==h);b!=null&&b.isVisible&&i.push(h)});let l=this.props.GridState.ModuleDropdownMenuItems.map(h=>h.module),u="ab-Dashboard-Popup",d=this.props.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule("Dashboard"),c=d=="Full"||d=="ReadOnly",m=d==="ReadOnly",f=h=>h==="SettingsPanel"?this.props.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard:!1;return Io.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph},Io.createElement(Vg.Flex,{flex:1,height:"100%",flexDirection:"column"},c&&Io.createElement(Gt,{header:"Dashboard Views",style:{height:"auto",overflow:"visible"},variant:"default",borderRadius:"none",marginLeft:2,marginRight:2},Io.createElement(Vg.Flex,null,Io.createElement(pe,{mr:3,className:`${u}__Checkbox__collapsed-check`,checked:this.props.IsCollapsed,onChange:h=>this.props.onSetDashboardCollapsed(h)},"Collapse")," ",this.props.api.internalApi.getAdaptableOptions().dashboardOptions.canFloat&&Io.createElement(pe,{mr:3,className:`${u}__Checkbox__collapsed-check`,checked:this.props.IsFloating,onChange:h=>this.props.onSetDashboardFloating(h)},"Float")," ",Io.createElement(pe,{className:`${u}__Checkbox__hidden-check`,checked:this.props.IsHidden,onChange:h=>this.props.onSetDashboardHidden(h)},"Hidden"))),Io.createElement(Gt,{header:"Dashboard Contents",style:{borderBottom:"1px solid var(--ab-color-primary)"},variant:"default",borderRadius:"none",marginTop:4,marginLeft:2,marginRight:2},Io.createElement(Vg.Flex,{flexDirection:"row",padding:2,"data-name":"dashboard-configuration-select"},Io.createElement(We,{marginLeft:3,value:"Toolbars",checked:this.state.DashboardConfigView=="Toolbars",onChange:(h,b)=>this.onDashboardConfigViewChanged(b)},"Toolbars"),Io.createElement(We,{marginLeft:3,value:"Buttons",checked:this.state.DashboardConfigView=="Buttons",onChange:(h,b)=>this.onDashboardConfigViewChanged(b)},"Buttons")),Io.createElement(Vg.Box,{className:`${u}__Module-Selector`,style:{minHeight:0,flex:"1 1 0"},padding:2},this.state.DashboardConfigView=="Toolbars"&&Io.createElement(pIe,{disabled:m,availableToolbars:[...r,...o],tabs:a,onTabsChange:this.props.onDashboardSetTabs,api:this.props.api}),this.state.DashboardConfigView=="Buttons"&&Io.createElement(xS,{disabled:m,options:l,value:i,noSelectionLabel:"No selected Module Button",isOptionDisabled:f,xSelectedLabel:()=>"Visible Module Buttons:",onChange:h=>this.props.onDashboardSetModuleButtons(h)})))))}onDashboardConfigViewChanged(t){let r=t.target.value;this.setState({DashboardConfigView:r})}};function Xxt(e,t){return{DashboardState:e.Dashboard,GridState:e.Grid,IsCollapsed:e.Dashboard.IsCollapsed,IsHidden:e.Dashboard.IsHidden,IsFloating:e.Dashboard.IsFloating}}function Jxt(e){return{onDashboardSetModuleButtons:t=>e(DI(t)),onDashboardSetTabs:t=>e(xoe(t)),onSetDashboardCollapsed:t=>e(gi(t)),onSetDashboardHidden:t=>e(Vl(t)),onSetDashboardFloating:t=>e(bi(t))}}var cIe=Ye(Xxt,Jxt)(Rq);s();var Go=A(require("react"));var CIe=A(J());s();var Iq=A(require("react"));s();var Da=A(require("react")),Kd=A(J()),m_=require("react");s();var Zxt=(e,t)=>t.type==="DRAG_OVER"?R(g({},e),{dragOver:!0}):t.type==="DRAG_OUT"?R(g({},e),{dragOver:!1}):t.type==="SET_INVALID_FILE"?R(g({},e),{message:t.payload.message}):t.type==="DROP_SUCCES"?R(g({},e),{dragOver:!1,message:t.payload.message}):e,mIe=Zxt;var eRt={dragOver:!1,message:null},c_=e=>{e.preventDefault(),e.stopPropagation()},Eq=async(e,t)=>{let n=new FileReader;return new Promise((r,o)=>{n.onload=function(a){try{let l=(t||JSON.parse)(a.target.result);Promise.resolve(l).then(r)}catch(i){o("Invalid JSON")}},n.onerror=function(a){o(a)},n.readAsText(e)})},fIe=e=>{let v=e,{onDropSuccess:t,message:n,fileAccept:r=".json",helpText:o="AdapTable No Code Version",defaultText:a="Click here to select a JSON file to load or drag it here",dragOverText:i="Drop file here to start Adaptable Wizard",icon:l=Da.createElement(Ct,{name:"attach-file",size:48})}=v,u=qe(v,["onDropSuccess","message","fileAccept","helpText","defaultText","dragOverText","icon"]),[d,c]=(0,m_.useReducer)(mIe,eRt),m=S=>{c({type:"DRAG_OVER"})},f=S=>{c_(S),!(b.current!=S.target&&uc(b.current,S.target))&&c({type:"DRAG_OUT"})},h=async S=>{let I;c_(S);let P=S.nativeEvent;P&&P.dataTransfer?I=P.dataTransfer.files:I=S.target.files,f(S);let T=I[0];if(T){let O;try{O=await(e.readFile||Eq)(T,e.toJSON),c({type:"DROP_SUCCES",payload:{message:Da.createElement(Kd.Box,null,e.loadingText===void 0?"Initializing adaptable...":e.loadingText)}}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{t&&t(O,T)})})}catch(_){c({type:"SET_INVALID_FILE",payload:{message:Da.createElement(Kd.Box,null,"The file is not a valid JSON file! Please try again!")}})}}},b=(0,m_.useRef)(),C=Da.createElement("form",{onSubmit:c_},Da.createElement(re,{style:{cursor:"pointer"},variant:"outlined"},Da.createElement("div",null,d.dragOver?i:a),Da.createElement("input",{type:"file",onChange:h,accept:r,style:{opacity:0,position:"absolute",cursor:"pointer",fontSize:0,lineHeight:0,top:0,left:0,width:"100%",height:"100%",zIndex:1}}))),y=n||d.message;return Da.createElement(Kd.Flex,R(g({},u),{flexDirection:"column",className:He(e.className,"ab-FileDroppable",d.dragOver?"ab-FileDroppable--drag-over":""),alignItems:"center",justifyContent:"center",onDragEnter:m,onDragLeave:f,onDrop:h,onDragOver:c_,ref:b}),e.children,o||l?Da.createElement(Kd.Flex,{flexDirection:"column"},o?Da.createElement(Kd.Flex,{flexDirection:"column",alignItems:"center",margin:2},Da.createElement(Nt,null,Da.createElement("b",null,o))):null,l?Da.createElement(Kd.Flex,{flexDirection:"column",alignItems:"center",margin:2},l):null):null,y,C)};fIe.defaultProps={};var hIe=fIe;var f_=e=>{let t=n=>{let r=n.nativeEvent,o;r&&r.dataTransfer?o=r.dataTransfer.files:o=n.target.files;let a=o[0];Eq(a).then(i=>{e.onLoad(i)})};return Iq.createElement(re,R(g({},e),{className:"ab-StateManagement__Load-Button"}),Iq.createElement("input",{type:"file",onChange:n=>t(n),accept:".json",style:{opacity:0,position:"absolute",cursor:"pointer",fontSize:0,lineHeight:0,top:0,left:0,width:"100%",height:"100%",zIndex:1}})," ",e.children)};s();var gIe=A(require("react"));var h_=e=>gIe.createElement(re,R(g({},e),{className:"ab-StateManagement__Clear-Button",tooltip:"Clear User State"}),e.children);s();var bIe=A(require("react"));s();var g_=(e,t,n)=>{switch(e){case"Clipboard":let r=JSON.stringify(n);sn.copyToClipboard(r);break;case"Console":hj(n);break;case"JSON":let o=t+".json",a=JSON.stringify(n);sn.createDownloadedFile(a,o,"application/json");break}};var $d=e=>{let t=r=>{switch(e.type){case"allState":let o=e.api.configApi.getAllState();g_(r,"allState",o);break;case"userState":let a=e.api.configApi.getAllUserState();g_(r,"userState",a);break;case"predefinedConfig":let i=e.api.configApi.getPredefinedConfig();g_(r,"predefinedConfig",i);break}},n=[{value:"Clipboard",label:"Clipboard",onClick:()=>t("Clipboard")},{value:"Console",label:"Console",onClick:()=>t("Console")},{value:"JSON",label:"JSON",onClick:()=>t("JSON")}];return bIe.createElement(Ze,R(g({className:"ab-StateManagement__Export-Dropdown"},e),{items:n,value:void 0}))};var yIe=e=>Go.createElement(Vr,{headerText:e.moduleInfo.FriendlyName,glyphicon:e.moduleInfo.Glyph,infoLink:e.moduleInfo.HelpPage,infoLinkDisabled:!e.api.internalApi.isDocumentationLinksDisplayed()},Go.createElement(CIe.Box,null,Go.createElement(Gt,{header:"User State",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement(Nt,null,"Clear all current user state that has been applied."),Go.createElement(Nt,null,"When you restart / refresh the Application, any state that you have previously created will be lost, and the initial Predefined Config will then be re-applied."),Go.createElement(h_,{tone:"error",variant:"raised",marginTop:2,accessLevel:e.accessLevel,onClick:()=>e.api.configApi.reloadPredefinedConfig()},"Clear User State")),Go.createElement(Gt,{header:"Load Predefined Config",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement(Nt,{marginTop:3},"Load Predefined Config (from a .json file). This will cause this window to close.")," ",Go.createElement(f_,{tone:"info",variant:"raised",marginTop:2,accessLevel:e.accessLevel,onLoad:t=>e.api.configApi.reloadPredefinedConfig(t)},"Load Predefined Config")),Go.createElement(Gt,{header:"Export All Adaptable State",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement($d,{api:e.api,type:"allState",marginRight:3,style:{flex:1,maxWidth:"none"},columns:["label"]},"Select Export Destination")),Go.createElement(Gt,{header:"Export User State",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement($d,{api:e.api,type:"userState",marginRight:3,style:{flex:1,maxWidth:"none"},columns:["label"]},"Select Export Destination")),Go.createElement(Gt,{header:"Export Initial Predefined Config",style:{height:"auto"},variant:"default",borderRadius:"none",marginTop:3,marginRight:2},Go.createElement($d,{api:e.api,type:"predefinedConfig",marginRight:3,style:{flex:1,maxWidth:"none"},columns:["label"]},"Select Export Destination"))));s();var or=A(require("react"));s();var Xd=A(require("react"));var Jd=class extends Xd.Component{constructor(n){super(n);this.loadPermittedValues=async()=>{var o;if(!((o=this.props.selectedColumn)!=null&&o.columnId))return;let n=await Ld(this.props.api.columnApi.getDistinctBulkUpdateDisplayValuesForColumn(this.props.selectedColumn.columnId,this.props.selectedGridCells),()=>this.setState({isDistinctColumnValuesLoading:!0}));this.setState({isDistinctColumnValuesLoading:!1});let r=Ee.sortArray(n,"Asc").map(a=>({label:a,value:a,onClick:()=>this.onSelectedValueChange([{DisplayValue:a}])}));this.setState({distinctColumnValues:r})};this.handleSelectedValueExpand=()=>{this.state.distinctColumnValues.length||this.loadPermittedValues()};this.state={newOrExisting:"Existing value",distinctColumnValues:[],isDistinctColumnValuesLoading:!1}}componentDidUpdate(n){(this.props.selectedColumn!==n.selectedColumn||this.props.selectedGridCells!==n.selectedGridCells)&&this.loadPermittedValues()}render(){let n="Select",r=this.props.allowNew!=null?this.props.allowNew:!0,o="ab-column-value-selector",a=He("ab-column-value-selector",this.state.isDistinctColumnValuesLoading&&`${o}--loading`),i=150,l=this.state.isDistinctColumnValuesLoading?[{label:"Loading",disabled:!0}]:this.state.distinctColumnValues,u=Xd.createElement("div",null,Xd.createElement(Ze,{className:a,columns:["label"],variant:"text",showClearButton:!0,onClear:()=>this.onSelectedValueChange([]),style:{fontSize:"small"},disabled:this.props.disabled,items:l,onExpand:this.handleSelectedValueExpand},this.props.selectedColumnValue?this.props.selectedColumnValue:n)),d=Xd.createElement(Yn,{type:this.props.selectedColumn?pn.getDescriptionForDataType(this.props.selectedColumn.dataType):"text",placeholder:this.props.selectedColumn?pn.getPlaceHolderforDataType(this.props.selectedColumn.dataType):"Enter Value",autoFocus:!0,disabled:this.props.disabled,style:{width:i},value:this.props.selectedColumnValue,onChange:c=>{this.onSelectedValueChange([{customOption:!0,DisplayValue:c.target.value}])}});return Xd.createElement(td,{style:R(g({},this.props.style),{overflow:"visible"})},this.state.newOrExisting==="Existing value"?u:d,Xd.createElement(Ze,g({variant:"raised",tone:"neutral",columns:["label"],style:{boxShadow:"none",color:"var(--ab-cmp-dashboardpanel__fill)",background:"var(--ab-color-defaultbackground)"},disabled:this.props.disabled,marginRight:1,items:[{label:"Existing value",onClick:()=>{this.setState({newOrExisting:"Existing value"}),this.onSelectedValueChange([])}},{label:"New value",onClick:()=>{this.setState({newOrExisting:"New value"}),this.onSelectedValueChange([])}}]},this.props.dropdownButtonProps),this.state.newOrExisting==="Existing value"?this.props.existingLabel:this.props.newLabel))}onSelectedValueChange(n){Ee.IsEmpty(n)&&we.IsNullOrEmpty(this.props.selectedColumnValue)||(Ee.IsEmpty(n)?this.props.onColumnValueChange(""):n[0].customOption?this.props.onColumnValueChange(n[0].DisplayValue):this.props.onColumnValueChange(n[0].DisplayValue))}};Jd.defaultProps={newLabel:"New value",existingLabel:"Existing value"};var um=A(J());var Pq=class extends or.Component{constructor(t){super(t),this.state={isShowingError:!1,errorText:"",useSelector:!1}}componentDidMount(){this.props.onBulkUpdateValueChange(""),this.props.onBulkUpdateCheckSelectedCells()}render(){let t=this.props.BulkUpdateValidationResult.Column,n=!1,r="";t&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&t.dataType=="Number"&&isNaN(Number(this.props.BulkUpdateValue))&&(n=!0,r="This column only accepts numbers");let o=Xi.GetValidationMessage(this.props.PreviewInfo,this.props.BulkUpdateValue),a=this.props.PreviewInfo&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&we.IsNotNullOrEmpty(o),i=a?or.createElement(ns,{previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:t,showPanel:a,showHeader:!0}):null;return t?or.createElement(Yl,{bodyProps:{padding:2},flex:1,glyphicon:this.props.moduleInfo.Glyph,header:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed(),variant:"primary"},t.dataType=="Date"?or.createElement(or.Fragment,null,or.createElement(Nt,{marginTop:2,marginBottom:2},"Enter a date value. Alternatively, tick the checkbox and select from an existing column value."),or.createElement(um.Box,null,or.createElement(pe,{marginLeft:2,onChange:l=>this.onUseColumnValuesSelectorChanged(l),checked:this.state.useSelector}," ","Select from existing column values")),or.createElement(um.Flex,{padding:2,flexDirection:"row",alignItems:"center"},or.createElement(um.Flex,{alignItems:"center",flexDirection:"row",flex:1,marginRight:2},this.state.useSelector?or.createElement(Jd,{selectedGridCells:this.props.SelectedGridCells,selectedColumnValue:this.props.BulkUpdateValue,selectedColumn:t,api:this.props.api,onColumnValueChange:l=>this.onColumnValueSelectedChanged(l),allowNew:!1,style:{width:"100%",maxWidth:"inherit"}}):or.createElement(Yn,{style:{width:"100%"},value:String(this.props.BulkUpdateValue),type:Wt.getDescriptionForDataType(t.dataType),placeholder:Wt.getPlaceHolderforDataType(t.dataType),onChange:l=>this.onBulkUpdateValueChange(l)})),or.createElement(re,{disabled:we.IsNullOrEmpty(this.props.BulkUpdateValue)||this.props.PreviewInfo.previewValidationSummary.validationResult=="All",onClick:()=>{this.onApplyClick()},variant:"raised",tone:"accent"},"Apply to Grid"))):or.createElement(or.Fragment,null,or.createElement(Nt,{marginTop:2,marginBottom:2},"Select an existing column value from the dropdown, or enter a new value"),or.createElement(um.Flex,{marginTop:2,flexDirection:"row",alignItems:"center"},or.createElement(um.Flex,{alignItems:"center",flexDirection:"row",flex:1,marginRight:2},or.createElement(Jd,{selectedGridCells:this.props.SelectedGridCells,selectedColumnValue:this.props.BulkUpdateValue,selectedColumn:t,api:this.props.api,onColumnValueChange:l=>this.onColumnValueSelectedChanged(l),style:{width:"100%",maxWidth:"inherit"}})),or.createElement(re,{disabled:we.IsNullOrEmpty(this.props.BulkUpdateValue)||this.props.PreviewInfo.previewValidationSummary.validationResult=="All"||n,variant:"raised",tone:"accent",marginRight:2,onClick:()=>{this.onApplyClick()}},"Apply to Grid")," ",n&&or.createElement(Cn,{headerText:"Update Error",bodyText:[r],MessageType:"Error"}),we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&this.props.PreviewInfo.previewValidationSummary.validationResult!="None"&&or.createElement(Cn,{headerText:"Validation Error",bodyText:[o],MessageType:"Error"}))),i):null}onColumnValueSelectedChanged(t){this.props.onBulkUpdateValueChange(t)}onUseColumnValuesSelectorChanged(t){this.setState({useSelector:t}),this.props.onBulkUpdateValueChange("")}onBulkUpdateValueChange(t){let n=t.target;this.props.onBulkUpdateValueChange(n.value)}onApplyClick(){this.onApplyBulkUpdate()}onApplyBulkUpdate(){this.props.onRunBulkUpdate()}};function tRt(e,t){var n;return{BulkUpdateValue:e.System.BulkUpdateValue,PreviewInfo:e.System.BulkUpdatePreviewInfo,BulkUpdateValidationResult:e.System.BulkUpdateValidationResult,SelectedGridCells:(n=e.Grid.SelectedCellInfo)==null?void 0:n.gridCells}}function nRt(e){return{onBulkUpdateValueChange:t=>e(of(t)),onBulkUpdateCheckSelectedCells:()=>e(nA()),onRunBulkUpdate:()=>e(qR(!1))}}var SIe=Ye(tRt,nRt)(Pq);s();var kS=A(require("react"));s();var ss=A(require("react"));s();var b_=A(require("react")),C_=A(J());var rRt="ab-EmptyContent",oRt=o=>{var a=o,{children:e,className:t,style:n}=a,r=qe(a,["children","className","style"]);return typeof e=="string"&&(e=b_.createElement("p",null,e)),b_.createElement(C_.Box,{style:{position:"relative"},width:"100%",flex:1,height:"100%"},b_.createElement(C_.Flex,R(g({alignItems:"center",justifyContent:"center",flexDirection:"column",padding:4,fontSize:"var(--ab-font-size-3)"},r),{className:He(rRt,t),style:g({position:"absolute",top:0,left:0,right:0,bottom:0},n)}),e))},y_=oRt;var aRt=new Map([["Operation",{field:"Operation",flex:1}],["Value",{field:"Value",flex:1}]]),iRt={style:{height:"100%",minWidth:"15rem",minHeight:"20rem"}},Gg=class extends ss.Component{render(){let t=[];return this.props.CellSummary!=null&&(t=Object.keys(this.props.CellSummary).map(n=>({Operation:n,Value:this.props.CellSummary[n]}))),ss.createElement(ss.Fragment,null,this.props.CellSummary!=null?ss.createElement(Gc,{data:t,primaryKey:"Operation"},ss.createElement(ts,{domProps:iRt,columns:aRt})):ss.createElement(y_,null,ss.createElement("p",null,"No cells are selected - please select some cells.")))}};var Dq=class extends kS.Component{componentDidMount(){this.props.onCreateCellSummary()}render(){return kS.createElement(ls,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},kS.createElement(Gg,{CellSummary:this.props.CellSummary}))}};function lRt(e,t){return{CellSummary:e.Grid.CellSummary}}function sRt(e){return{onCreateCellSummary:()=>e(NE())}}var vIe=Ye(lRt,sRt)(Dq);s();var Zd=A(require("react"));var xIe=A(J());s();var dm=A(require("react"));var v_=A(J());var S_=class extends dm.Component{render(){var o;let t=this.props.adaptableObject,n=pn.getColorByMessageType((o=t==null?void 0:t.statusType)!=null?o:"Success"),r=Bn(this.props.colItems);return r[0].Content=t?dm.createElement("details",null,dm.createElement(v_.Flex,{title:t.statusFurtherInformation?"Click to see more":"",style:{borderRadius:"var(--ab__border-radius)",fontWeight:"bold",cursor:t.statusFurtherInformation?"pointer":"auto"},className:"ab-DashboardToolbar__SystemStatus__text",marginRight:2,padding:2,color:"text-on-secondary",backgroundColor:n,fontSize:"var( --ab-font-size-2)",alignItems:"center",as:"summary"},t.statusMessage," ",t.statusFurtherInformation?"...":""),t.statusFurtherInformation?dm.createElement(v_.Box,{margin:2,style:{whiteSpace:"normal"}},t.statusFurtherInformation):null):null,r[1].Content=t.timestamp.toLocaleString(),dm.createElement(hr,{colItems:r})}};var AIe=[{Content:"Message",Size:10},{Content:"Timestamp",Size:3}],Tq=class extends Zd.Component{constructor(t){super(t)}onSystemStatusMessageInfoDeleteAll(){this.props.onSystemStatusMessageInfoDeleteAll()}render(){let t=Zd.createElement(re,{onClick:()=>this.onSystemStatusMessageInfoDeleteAll(),tooltip:"Clear All",tone:"neutral",variant:"raised",accessLevel:this.props.accessLevel,disabled:De.IsNullOrEmpty(this.props.SystemStatusMessages)},"Delete All Messages"),n=De.sortArrayWithProperty("Desc",this.props.SystemStatusMessages,"Timestamp").map((r,o)=>{let a=xt.getAppropriateAccessLevel(r,this.props.accessLevel);return Zd.createElement(S_,{adaptableObject:r,key:"smi"+o,onEdit:null,moduleInfo:this.props.moduleInfo,colItems:AIe,api:this.props.api,accessLevel:a,teamSharingActivated:this.props.teamSharingActivated,onDeleteConfirm:null,onShare:null})});return Zd.createElement(Vr,{button:t,headerText:this.props.moduleInfo.FriendlyName,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},De.IsNotNullOrEmpty(this.props.SystemStatusMessages)&&Zd.createElement(xIe.Box,{className:"ab-SystemStatus-Popup-List",padding:2},Zd.createElement(wi,{colItems:AIe,items:n})))}};function uRt(e,t){return{SystemStatusMessageInfos:e.System.SystemStatusMessages,SystemStatusMessages:e.System.SystemStatusMessages}}function dRt(e){return{onSystemStatusMessageInfoDeleteAll:()=>e(eA())}}var RIe=Ye(uRt,dRt)(Tq);s();var ep=A(require("react"));s();var Ho=A(require("react"));s();var EIe=A(require("react"));var IIe=e=>EIe.createElement(re,R(g({},e),{icon:"trash",variant:"text","data-name":"preview-delete"}));var E_=A(J());s();var A_=A(require("react"));s();var wq=A(require("react")),Oq=require("react");var pRt=wq.createContext({clickInfoRef:null,selected:{},getItemId:e=>e,toggleOnSimpleClick:!1,setSelected:e=>{}}),PIe=()=>{let{selected:e,setSelected:t,toggleOnSimpleClick:n,clickInfoRef:r,getItemId:o}=(0,Oq.useContext)(pRt);return(a,{index:i})=>{if(i===void 0){nt('No "index" was passed to the list item');return}let{lastClickIndexWithoutShift:l,lastShiftSelectionRange:u}=r.current,{shiftKey:d,metaKey:c,ctrlKey:m}=a;m&&(c=!0),c&&(d=!1);let f=`${o(i)}`,h;if(d){let b=l,C=i;if(h=g({},e),u){let{start:S,end:I}=u;for(;S<=I;S++)delete h[o(S)]}let[y,v]=[Math.min(b,C),Math.max(b,C)];for(r.current.lastShiftSelectionRange={start:y,end:v};y<=v;y++)h[o(y)]=!0;t(h)}else{if(r.current.lastClickIndexWithoutShift=i,!c&&!n)h={[f]:!0};else{let b=e[f];h=g({},e),b?(delete h[f],r.current.lastClickIndexWithoutShift=l):h[f]=!0}r.current.lastShiftSelectionRange=null,t(h)}}};var Fq="ab-ListGroupItem",cRt=A_.forwardRef((e,t)=>{let d=e,{className:n,active:r,factory:o="button",noZebra:a}=d,i=qe(d,["className","active","factory","noZebra"]),l=PIe();return A_.createElement(o,R(g({},i),{onClick:c=>{i.onClick&&i.onClick(c),l(c,{index:e.index})},ref:t,className:He(n,Fq,a?`${Fq}--no-zebra`:null,`${Fq}--${r?"active":"not-active"}`)}))}),Hg=cRt;s();var DIe=A(require("react"));var TIe=A(J()),mRt="ab-ListGroup",fRt=e=>{let r=e,{className:t}=r,n=qe(r,["className"]);return DIe.createElement(TIe.Box,R(g({},n),{className:He(t,mRt)}))},x_=fRt;var R_=class extends Ho.Component{componentWillUnmount(){this.props.onRender()}render(){let t=this.props.Alerts.map((r,o)=>{let a=we.IsNotNullOrEmpty(r.header),i=Wt.getColorByMessageType(r.alertDefinition.MessageType),l={color:i,fill:i},u=Wt.getGlyphByMessageType(r.alertDefinition.MessageType),d=Gs[u],c=d?Ho.createElement(d,null):null,m=Ho.createElement("div",{key:r.Uuid,style:{maxWidth:"600px",width:"100%"}},Ho.createElement(E_.Flex,{alignItems:"center",width:"100%"},Ho.createElement(E_.Text,{style:l},c),a?Ho.createElement("b",{style:{flex:1}},r.header):Ho.createElement("div",{style:{fontSize:10,flex:1,display:"inline-block"}},r.message),Ho.createElement(IIe,{onClick:()=>this.props.onClearAlert(r),tooltip:"Clear Alert",disabled:!1,style:{float:"left"},accessLevel:"Full"})),Ho.createElement("div",null,a&&Ho.createElement("span",{style:{fontSize:10}},r.message)));return Ho.createElement(Hg,{factory:"div",key:r.Uuid||o},m)});return Ho.createElement(ls,{variant:"default",bodyProps:{padding:0},headerText:"Alerts",button:Ho.createElement(re,{onClick:()=>this.props.onClearAllAlerts(this.props.Alerts),variant:"raised",tone:"neutral",accessLevel:"Full"},"Clear All")},Ho.createElement(x_,null,t))}};var I_=A(J());var Mq=class extends ep.Component{constructor(t){super(t),this.state={ShowMessage:!1,Alerts:this.props.AdaptableAlerts}}componentDidUpdate(){this.state.Alerts.length!=this.props.AdaptableAlerts.length&&this.setState({ShowMessage:!0,Alerts:this.props.AdaptableAlerts})}render(){let t=pn.getMessageTypeFromAdaptableAlerts(this.props.AdaptableAlerts),n=pn.getColorByMessageType(t),r=ep.createElement(R_,{Alerts:this.props.AdaptableAlerts,ShowPanel:!0,ShowHeader:!1,onClearAlert:this.props.onDeleteAlert,onRender:()=>this.setState({ShowMessage:!1}),onClearAllAlerts:this.props.onDeleteAllAlert}),o=this.props.AdaptableAlerts.length==0?"0 Alerts":this.props.AdaptableAlerts.length==1?"1 Alert":this.props.AdaptableAlerts.length+" Alerts",a=pn.getButtonColourForAdaptableAlerts(this.props.AdaptableAlerts,n),i=pn.getButtonTextColourForArrayandMessageType(this.props.AdaptableAlerts,t),l=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return ep.createElement(I_.Flex,{alignItems:"stretch",className:`ab-${l}__Alert__wrap`},ep.createElement(I_.Flex,{style:{borderRadius:"var(--ab__border-radius)"},className:`ab-${l}__Alert__text`,marginRight:2,padding:2,color:i,backgroundColor:a,fontSize:"var( --ab-font-size-2)",alignItems:"center"},o),this.props.AdaptableAlerts.length>0&&ep.createElement(I_.Flex,{alignItems:"center"},ep.createElement(Cn,{className:`ab-${l}__Alert__info`,headerText:"",bodyText:[r],MessageType:t,useButton:!0,showEvent:"focus",hideEvent:"blur"})))}};function hRt(e,t){return{AlertDefinitions:e.Alert.AlertDefinitions,AdaptableAlerts:e.System.AdaptableAlerts}}function gRt(e){return{onDeleteAlert:t=>e(Zv(t)),onDeleteAllAlert:t=>e($j(t))}}var wIe=Ye(hRt,gRt)(Mq);s();var us=A(require("react"));var D_=A(J());s();var P_=A(require("react"));var Ug=class extends P_.Component{render(){return P_.createElement(re,g({"data-name":"apply",tooltip:"Apply",iconSize:20,icon:"check",variant:"text"},this.props))}};var Nq=class extends us.Component{constructor(n){super(n);this.state={Disabled:!0}}componentDidMount(){if(this.props.api){let n=this.props.api.internalApi.getAdaptableInstance();n&&(this.cleanupEvent=n._on("CellsSelected",()=>{this.checkSelectedCells()}))}this.checkSelectedCells()}componentWillUnmount(){var n;(n=this.cleanupEvent)==null||n.call(this)}render(){let n=this.getStatusColour(),r=this.props.BulkUpdateValidationResult.Column,o=us.createElement(ns,{previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:r,showPanel:!0,showHeader:!1}),a=this.props.accessLevel=="ReadOnly"||!this.props.BulkUpdateValidationResult.IsValid||this.props.InPivotMode==!0,i={color:n,fill:"currentColor"},l=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return us.createElement(D_.Flex,{flexDirection:"row",className:He(a?br:"",`ab-${l}__BulkUpdate__wrap`),flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},us.createElement(D_.Flex,null,us.createElement(Jd,{selectedGridCells:this.props.SelectedGridCells,newLabel:"New",existingLabel:"Existing",dropdownButtonProps:{listMinWidth:160},className:`ab-${l}__BulkUpdate__select`,disabled:a,selectedColumnValue:this.props.BulkUpdateValue,selectedColumn:r,api:this.props.api,onColumnValueChange:u=>this.onColumnValueSelectedChanged(u)})),us.createElement(D_.Flex,null,!a&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&us.createElement(Ug,{marginLeft:2,className:`ab-${l}__BulkUpdate__apply`,onClick:()=>this.onApplyClick(),style:i,tooltip:"Apply Bulk Update",disabled:we.IsNullOrEmpty(this.props.BulkUpdateValue)||this.props.PreviewInfo!=null&&this.props.PreviewInfo.previewValidationSummary.validationResult=="All",accessLevel:this.props.accessLevel},this.props.viewType==="ToolPanel"&&"Update"),!a&&we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&us.createElement(Cn,{className:`ab-${l}__BulkUpdate__info`,headerText:"Preview Results",bodyText:[o],MessageType:Wt.getMessageTypeByStatusColour(n),useButton:!0,showEvent:"focus",hideEvent:"blur"})))}onColumnValueSelectedChanged(n){this.props.onBulkUpdateValueChange(n)}checkSelectedCells(){this.props.onBulkUpdateCheckSelectedCells(),we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&this.props.onBulkUpdateValueChange("")}getStatusColour(){if(we.IsNotNullOrEmpty(this.props.BulkUpdateValue)&&this.props.PreviewInfo){if(this.props.PreviewInfo.previewValidationSummary.validationResult=="All")return"var(--ab-color-error)";if(this.props.PreviewInfo.previewValidationSummary.validationResult=="Some")return"var(--ab-color-warn)"}return"var(--ab-color-success)"}onApplyClick(){this.onApplyBulkUpdate()}onApplyBulkUpdate(){this.props.onRunBulkUpdate(),this.props.onBulkUpdateValueChange("")}};function bRt(e,t){var n;return{SelectedGridCells:(n=e.Grid.SelectedCellInfo)==null?void 0:n.gridCells,BulkUpdateValue:e.System.BulkUpdateValue,BulkUpdateValidationResult:e.System.BulkUpdateValidationResult,PreviewInfo:e.System.BulkUpdatePreviewInfo,InPivotMode:e.Grid.IsGridInPivotMode}}function CRt(e){return{onBulkUpdateValueChange:t=>e(of(t)),onBulkUpdateCheckSelectedCells:()=>e(nA()),onRunBulkUpdate:()=>e(qR(!1))}}var OIe=Ye(bRt,CRt)(Nq);s();var Ta=A(require("react"));s();var w_=A(require("react"));var T_=class extends w_.Component{render(){return w_.createElement(Gg,{CellSummary:this.props.CellSummary})}};var Wg=A(J());var _q=class extends Ta.Component{constructor(n){super(n)}componentDidMount(){let n=this.props.api.internalApi.getAdaptableInstance();n&&(this.cleanupEvent=n._on("CellsSelected",()=>{this.checkSelectedCells()})),this.checkSelectedCells()}componentWillUnmount(){var n;(n=this.cleanupEvent)==null||n.call(this)}render(){let n=ba.getNames(xv).map((d,c)=>({label:d,onClick:()=>this.props.onCellSummaryOperationChange(d)})),r=this.props.api.internalApi.getAdaptableOptions().generalOptions.cellSummaryOperations,o=De.IsNullOrEmpty(r)?[]:r.map(d=>({onClick:()=>this.props.onCellSummaryOperationChange(d.operationName),label:d.operationName})),a=Ta.createElement(T_,{CellSummary:this.props.CellSummary}),i=this.props.accessLevel=="ReadOnly"||this.props.api.internalApi.isGridInPivotMode()||this.props.CellSummary==null,l=()=>{if(i)return;let d=this.getOperationValue();if(d!=null)return this.props.viewType==="ToolPanel"?Ta.createElement(Wg.Flex,{className:`ab-${u}__CellSummary__value`,style:{borderRadius:"var(--ab__border-radius)"},marginRight:2,padding:2,color:"var( --ab-color-text-on-info)",backgroundColor:"var(--ab-color-info)",fontSize:"var( --ab-font-size-2)"},d):Ta.createElement(Wg.Flex,{flex:1,marginRight:2,marginLeft:1,justifyContent:"center",className:`ab-${u}__CellSummary__value`,color:"var(--ab-color-text-on-primary)"},d)},u=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return Ta.createElement(Wg.Flex,{flexDirection:"row",className:i?br:`ab-${u}__CellSummary__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},Ta.createElement(Wg.Flex,{flex:1},Ta.createElement(Ze,{style:{fontSize:"small",width:"100%"},marginRight:2,columns:["label"],className:`ab-${u}__CellSummary__select`,items:[...n,...o],disabled:i,variant:"outlined",tone:"neutral"},this.props.CellSummaryOperation)),Ta.createElement(Wg.Flex,{alignItems:"center"},Ta.createElement(Ta.Fragment,null,l(),this.props.CellSummary!=null&&this.props.CellSummary.Count>0&&Ta.createElement(Cn,{className:"ab-ToolPanel__CellSummary__info",bodyText:[a],useButton:!0,showEvent:"focus",hideEvent:"blur"}))))}checkSelectedCells(){this.props.onCreateCellSummary()}getOperationValue(){switch(this.props.CellSummaryOperation){case"Sum":return this.props.CellSummary.Sum;case"Average":return this.props.CellSummary.Average;case"Median":return this.props.CellSummary.Median;case"Mode":return this.props.CellSummary.Mode;case"Max":return this.props.CellSummary.Max;case"Min":return this.props.CellSummary.Min;case"Distinct":return this.props.CellSummary.Distinct;case"Count":return this.props.CellSummary.Count;default:return this.props.CellSummary[this.props.CellSummaryOperation]}}};function yRt(e,t){return{SelectedCellInfo:e.Grid.SelectedCellInfo,CellSummaryOperation:e.System.CellSummaryOperation,CellSummary:e.Grid.CellSummary}}function SRt(e){return{onCellSummaryOperationChange:t=>e(rA(t)),onCreateCellSummary:()=>e(NE())}}var FIe=Ye(yRt,SRt)(_q);s();var oi=A(require("react"));s();var iu=A(require("react"));var MIe=A(J()),vRt=e=>{e.stopPropagation()},O_=class extends iu.Component{render(){let t=[{Content:"Column Filter",Size:9},{Content:"",Size:3}],n=[];return this.props.columnFilters.forEach(r=>{n.push(this.createRow(t,r))}),iu.createElement("div",null,iu.createElement(Dd,{colItems:t}),iu.createElement("div",null,n))}createRow(t,n){let r=Mt.cloneObject(t);return r[0].Content=this.props.api.filterApi.columnFilterToString(n),r[1].Content=iu.createElement(MIe.Flex,{justifyContent:"center",margin:0,padding:0,onClick:vRt},iu.createElement(ti,{onClick:()=>this.props.onClear(n),tooltip:"Clear Filter",disabled:n==null,accessLevel:this.props.accessLevel})),iu.createElement(hr,{key:n.ColumnId,colItems:r})}};var F_=A(J());var Lq=class extends oi.Component{constructor(t){super(t)}render(){let t=oi.createElement(O_,{columns:this.props.Columns,columnFilters:this.props.ColumnFilters,api:this.props.api,accessLevel:this.props.accessLevel,onClear:r=>this.onClearColumnFilter(r)}),n=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return oi.createElement(F_.Flex,{flexDirection:"row",className:`ab-${n}__Filter__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},oi.createElement(F_.Flex,null,Ee.IsNotNullOrEmpty(this.props.ColumnFilters)&&oi.createElement(oi.Fragment,null,oi.createElement(Cn,{className:`ab-${n}__Filter__info`,headerText:"",bodyText:[t],useButton:!0,showEvent:"focus",hideEvent:"blur",popoverMinWidth:400}),oi.createElement(ti,{marginLeft:1,marginBottom:0,marginRight:1,className:`ab-${n}__Filter__clear`,onClick:()=>this.onClearFilters(),tooltip:"Clear Filters",disabled:this.props.ColumnFilters.length==0,showText:this.props.viewType==="ToolPanel"},this.props.viewType==="ToolPanel"&&"Clear"))),oi.createElement(F_.Flex,{alignItems:"center"},this.props.api.filterApi.isQuickFilterAvailable()&&oi.createElement(pe,{className:`ab-${n}__Filter__active-check`,disabled:this.props.accessLevel==="ReadOnly"||this.props.api.internalApi.isGridInPivotMode(),marginTop:0,marginBottom:0,fontSize:2,padding:1,checked:this.props.IsQuickFilterVisible,onChange:r=>{r?this.props.onShowQuickFilterBar():this.props.onHideQuickFilterBar()}},"Show Quick Filter")))}onClearFilters(){this.props.api.filterApi.clearAllColumnFilter()}onClearColumnFilter(t){this.props.api.filterApi.clearColumnFilterByColumn(t.ColumnId)}};function ARt(e){return{ColumnFilters:e.Filter.ColumnFilters,IsQuickFilterVisible:e.Filter.IsQuickFilterVisible}}function xRt(e){return{onHideQuickFilterBar:()=>e(eh()),onShowQuickFilterBar:()=>e(Zf())}}var NIe=Ye(ARt,xRt)(Lq);s();var pm=A(require("react"));var _Ie=A(J()),kq=class extends pm.Component{constructor(t){super(t)}render(){let t=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return pm.createElement(_Ie.Flex,{flexDirection:"row",className:`ab-${t}__Dashboard__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"}," ",pm.createElement(pe,{className:`ab-${t}__Dashboard__collapsed-check`,marginTop:0,fontSize:2,padding:1,checked:this.props.IsCollapsed,onChange:n=>this.props.onSetDashboardCollapsed(n)},"Collapse"),"",this.props.api.internalApi.getAdaptableOptions().dashboardOptions.canFloat&&pm.createElement(pe,{className:`ab-${t}__Dashboard__collapsed-check`,marginTop:0,fontSize:2,padding:1,checked:this.props.IsFloating,onChange:n=>this.props.onSetDashboardFloating(n)},"Float")," ",pm.createElement(pe,{className:`ab-${t}__Dashboard__hidden-check`,marginTop:0,fontSize:2,padding:1,checked:this.props.IsHidden,onChange:n=>this.props.onSetDashboardHidden(n)},"Hidden"))}};function RRt(e,t){return{IsCollapsed:e.Dashboard.IsCollapsed,IsHidden:e.Dashboard.IsHidden,IsFloating:e.Dashboard.IsFloating}}function ERt(e){return{onSetDashboardCollapsed:t=>e(gi(t)),onSetDashboardHidden:t=>e(Vl(t)),onSetDashboardFloating:t=>e(bi(t))}}var LIe=Ye(RRt,ERt)(kq);s();var wa=A(require("react"));var BS=A(J());s();var N_=A(require("react"));var M_=class extends N_.Component{render(){return N_.createElement(re,g({"data-name":"export",tooltip:"Export",iconSize:20,icon:"export-data",variant:"text"},this.props))}};s();var L_=A(require("react"));var __=class extends L_.Component{render(){return L_.createElement(re,g({"data-name":"schedule",tooltip:"Schedule",iconSize:20,icon:"schedule",variant:"text"},this.props))}};var Bq="Select Report",kIe="Select Destination",Vq=class extends wa.Component{render(){let t=this.props.api.exportApi.getReportByName(this.props.CurrentReport),n=we.IsNullOrEmpty(this.props.CurrentReport)?Bq:this.props.CurrentReport,r=this.getAllReportNames(),o=r.map(f=>({label:f,value:f,onClick:()=>this.onSelectedReportChanged(f)}));t&&!r.includes(t.Name)&&(t=void 0,n=Bq);let a=this.props.api.exportApi.getDestinationByName(this.props.CurrentDestination),i=we.IsNullOrEmpty(this.props.CurrentDestination)?kIe:this.props.CurrentDestination,l=[...this.props.api.exportApi.getAvailableExportDestinations().map(f=>({label:f,onClick:()=>this.onSelectedDestinationChanged(f)})),...this.props.api.exportApi.getAllCustomDestination().map(f=>({label:f.name,onClick:()=>this.onSelectedDestinationChanged(f.name)}))];(t==null?void 0:t.Name)===Mo&&l.forEach(f=>f.disabled=f.label!=="Excel"),a&&!l.filter(f=>!f.disabled).map(f=>f.label).includes(this.props.CurrentDestination)&&(a=void 0,i=kIe);let u=xt.getAppropriateAccessLevel(t,this.props.accessLevel),d="Are you sure you want to delete '";t!=null&&(d=d+t.Name+"'?");let c=()=>{this.props.onApplyExport(t,this.isCustomDestination(a)?a.name:a)},m=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return wa.createElement(BS.Flex,{style:{gap:5},flexDirection:"row",className:`ab-${m}__Export__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},wa.createElement(BS.Flex,{flex:1},wa.createElement(Ze,{disabled:r.length==0,style:{width:"100%",fontSize:"small"},items:o,columns:["label"],className:`ab-${m}__Export__select`,onClear:()=>this.onSelectedReportChanged(null),showClearButton:!!t,variant:"outlined",marginRight:2},n)),wa.createElement(BS.Flex,{flex:1},wa.createElement(Ze,{disabled:n===Bq,style:{width:"100%",fontSize:"small"},items:l,columns:["label"],className:`ab-${m}__Export__export`,onClear:()=>this.onSelectedDestinationChanged(null),showClearButton:!!a,variant:"outlined",marginRight:2},i)),wa.createElement(BS.Flex,{className:He(u=="ReadOnly"?br:"",`ab-${m}__Export__controls`),style:{width:"100%"}},wa.createElement(M_,{onClick:()=>c(),tooltip:"Export Report",className:`ab-${m}__Export__export`,disabled:t==null||a==null}),wa.createElement(Od,{onClick:()=>this.props.onEditReport(this.props.moduleInfo.Popup),tooltip:"Edit Report",className:`ab-${m}__Export__edit`,disabled:t==null||t.ReportColumnScope=="CustomColumns",accessLevel:u}),wa.createElement(Td,{variant:"text",className:`ab-${m}__Export__new`,tone:"neutral",children:null,onClick:()=>this.props.onNewReport(this.props.moduleInfo.Popup),tooltip:"Create New Report",accessLevel:u}),wa.createElement(Fd,{tooltip:"Delete Report",className:`ab-${m}__Export__delete`,disabled:t==null,ConfirmAction:QE(t),ConfirmationMsg:d,ConfirmationTitle:"Delete Report",accessLevel:u}),this.props.api.internalApi.getEntitlementService().isModuleFullEntitlement("Schedule")&&wa.createElement(__,{marginLeft:1,className:`ab-${m}__Export__schedule`,onClick:()=>this.onNewReportSchedule(),tooltip:"Schedule",disabled:t==null,accessLevel:this.props.accessLevel})))}onSelectedReportChanged(t){this.props.onSelectReport(t)}onSelectedDestinationChanged(t){this.props.onSelectDestination(t)}getAllReportNames(){return[...this.props.api.exportApi.getAvailableSystemReports(),...this.props.Reports.map(t=>t.Name)]}isCustomDestination(t){return!!(t!=null&&t.name)}onNewReportSchedule(){let t=it.CreateReportSchedule(this.props.CurrentReport);this.props.onNewReportSchedule(t)}};function IRt(e){return{CurrentReport:e.Export.CurrentReport,CurrentDestination:e.Export.CurrentDestination,Reports:e.Export.Reports}}function PRt(e){return{onApplyExport:(t,n)=>e(jf(t,n)),onSelectReport:t=>e(qE(t)),onSelectDestination:t=>e(jE(t)),onNewReport:t=>e(Rn(kr,t,{action:"New",source:"Toolbar"})),onEditReport:t=>e(Rn(kr,t,{action:"Edit",source:"Toolbar"})),onNewReportSchedule:t=>e(Rn(Ol,"SchedulePopup",{action:"New",source:"Toolbar",value:t}))}}var BIe=Ye(IRt,PRt)(Vq);s();var Li=A(require("react"));var B_=A(J());s();var k_=A(require("react"));var qg=class extends k_.Component{render(){return k_.createElement(re,g({"data-name":"save",iconSize:20,icon:"save",tooltip:"Save",variant:"text"},this.props))}};var Gq=class extends Li.Component{render(){let t=this.props.Layouts.find(u=>u.Name==this.props.CurrentLayoutName||u.Uuid==this.props.CurrentLayoutName),n=this.props.accessLevel,r=this.props.accessLevel,o=xt.getAppropriateAccessLevel(t,this.props.accessLevel),a=!this.props.api.layoutApi.shouldAutoSaveLayout(this.props.CurrentDraftLayout),i=this.props.Layouts.map((u,d)=>R(g({},u),{label:u.Name,value:u.Name,onClick:()=>this.props.onSelectLayout(u.Name)})),l=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return Li.createElement(B_.Flex,{flexDirection:"row",className:`ab-${l}__Layout__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},Li.createElement(B_.Flex,{flex:1},Li.createElement(Ze,{marginRight:2,columns:["label"],style:{width:"100%",fontSize:"small"},className:`ab-${l}__Layout__select`,items:i,disabled:i.length==0},t?t.Name:null)),Li.createElement(B_.Flex,{flexDirection:"row",className:He(this.props.accessLevel=="ReadOnly"?br:"",`ab-${l}__Layout__wrap`)},a&&Li.createElement(qg,{className:`ab-${l}__Layout__save`,onClick:()=>this.onSaveLayout(),tooltip:"Save Changes to Current Layout",disabled:!this.props.CanSave,accessLevel:o}),Li.createElement(Od,{onClick:()=>this.props.api.layoutApi.showLayoutEditor(t.Name),tooltip:"Edit Layout",className:`ab-${l}__Layout__edit`,accessLevel:o}),Li.createElement(CN,{onClick:()=>this.props.api.layoutApi.showLayoutEditor(t.Name,"Clone"),tooltip:"Clone Layout",className:`ab-${l}__Layout__clone`,tone:"neutral",variant:"text",children:null,accessLevel:n}),Li.createElement(Td,{children:null,tone:"neutral",variant:"text",className:`ab-${l}__Layout__new`,onClick:()=>this.props.api.layoutApi.showLayoutEditor(null,"New"),tooltip:"Create a new Layout",accessLevel:r}),Li.createElement(Fd,{tooltip:"Delete Layout",disabled:this.props.Layouts.length<=1,className:`ab-${l}__Layout__delete`,ConfirmAction:qf(t),ConfirmationMsg:"Are you sure you want to delete '"+this.props.CurrentLayoutName+"'?",ConfirmationTitle:"Delete Layout",accessLevel:o})))}onSaveLayout(){let t=this.props.CurrentDraftLayout;t&&this.props.onSaveLayout(t)}};function DRt(e,t){let n=e.Layout.CurrentLayout,r=e.Layout.Layouts||[],o=r.find(i=>i.Name===n),a=t.api;return{CurrentLayoutName:n,CurrentDraftLayout:e.Grid.CurrentLayout||o,Layouts:r,CanSave:e.Grid.CurrentLayout&&!a.layoutApi.areLayoutsEqual(o,e.Grid.CurrentLayout)}}function TRt(e){return{onSelectLayout:t=>e(kl(t)),onSaveLayout:t=>{e(ku(t)),e($p(null))}}}var VIe=Ye(DRt,TRt)(Gq);s();var _n=A(require("react"));var W_=A(J());s();var V_=A(require("react"));var VS=class extends V_.Component{render(){return V_.createElement(re,g({"data-name":"expand",tooltip:"Expand",iconSize:20,icon:"arrowexpand",variant:"text"},this.props))}};s();var G_=A(require("react"));var ml=class extends G_.Component{render(){return G_.createElement(re,g({"data-name":"play",tooltip:Qe.IsNullOrEmpty(this.props.tooltip)?"Play":this.props.tooltip,iconSize:20,icon:"play",variant:"text"},this.props))}};s();var U_=A(require("react"));var H_=class extends U_.Component{render(){return U_.createElement(re,g({"data-name":"invalid",tooltip:"Invalid",iconSize:20,icon:"invalid"},this.props))}};var Hq=class extends _n.Component{constructor(t){super(t),this.state={isAdaptableReady:!1,expression:this.props.CurrentQuery||""}}componentDidMount(){this.props.api.eventApi.on("AdaptableReady",()=>{this.setState({isAdaptableReady:!0})})}componentDidUpdate(t){t.CurrentQuery!==this.props.CurrentQuery&&this.setState({expression:this.props.CurrentQuery})}render(){if(this.state.isAdaptableReady===!1)return null;let t=this.state.expression==""||this.props.api.internalApi.getQueryLanguageService().validateBoolean(this.state.expression,Gn).isValid,n=this.props.NamedQueries.find(f=>f.BooleanExpression==this.state.expression)!=null,o=[...Ee.sortArrayWithProperty("Asc",this.props.NamedQueries,"Name").map(f=>({label:f.Name,icon:f.BooleanExpression===this.props.CurrentQuery?_n.createElement(Ct,{name:"check"}):null,onClick:()=>this.runQuery(f.BooleanExpression)})),...Ee.IsNotNullOrEmpty(this.props.CachedQueries)?[{separator:!0}]:[],...Ee.IsNotNullOrEmpty(this.props.CachedQueries)?this.props.CachedQueries.slice(-5).reverse().map(f=>({label:`Query at ${f.time.toLocaleTimeString("en-US")}`,icon:_n.createElement(Ct,{name:"history"}),onClick:()=>this.props.onRunQuery(f.expression)})):[]],a=this.props.api.columnApi.getColumns().map(f=>({label:f.friendlyName,onClick:()=>this.setState({expression:this.state.expression+`[${f.columnId}]`})})),i=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel",l=f=>{f.key==="Enter"&&this.runQuery()},u=()=>this.props.viewType==="Toolbar"?_n.createElement(td,{marginRight:1,width:600},_n.createElement(VS,{variant:"text",tone:"neutral",onClick:()=>this.props.onExpand(this.state.expression),tooltip:"Expand",marginLeft:1}),_n.createElement(Ke,{type:"text",placeholder:"Query",spellCheck:!1,value:this.state.expression,onChange:f=>this.setState({expression:f.target.value}),style:{fontFamily:"monospace",fontSize:12}}),t?_n.createElement(ml,{onClick:()=>this.runQuery(),tooltip:"",accessLevel:"Full",variant:"text",tone:"neutral",disabled:this.state.expression==""||this.state.expression==this.props.CurrentQuery,marginRight:1}):_n.createElement(H_,{variant:"text",tone:"neutral",tooltip:"Invalid Query",marginRight:1})," ",this.props.CurrentQuery!==""&&_n.createElement(ti,{onClick:()=>this.clearQuery(),tooltip:"Clear Query",accessLevel:"Full"})):_n.createElement(Ke,{type:"text",placeholder:"Query",spellCheck:!1,value:this.state.expression,onChange:f=>this.setState({expression:f.target.value}),style:{width:"100%"}}),d=this.props.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(Gn),c=_n.createElement(qg,{onClick:()=>this.saveQuery(),tooltip:"Save as New Query",accessLevel:d,disabled:!t||n||this.state.expression=="",variant:"text",tone:"neutral",marginRight:1}),m=()=>this.props.viewType==="Toolbar"?_n.createElement(_n.Fragment,null,c,_n.createElement(Ze,{variant:"text",items:a,marginRight:1,tooltip:"Pick Columns"},_n.createElement(Ct,{name:"list"})),_n.createElement(Ze,{disabled:Ee.IsNullOrEmpty(o),variant:"text",items:o,marginRight:1,tooltip:"Load Query",icon:"folder-open"})," "):_n.createElement(_n.Fragment,null,c,_n.createElement(VS,{variant:"text",tone:"neutral",onClick:()=>this.props.onExpand(this.state.expression),tooltip:"Expand",marginLeft:1}),_n.createElement(ti,{onClick:()=>this.clearQuery(),tooltip:"Clear Query",accessLevel:"Full",disabled:this.state.expression==""}),_n.createElement(ml,{onClick:()=>this.runQuery(),tooltip:"Run Query",accessLevel:"Full",variant:"text",tone:"neutral",disabled:!t||this.state.expression==""||this.state.expression==this.props.CurrentQuery,marginRight:1}),_n.createElement(Ze,{variant:"text",disabled:Ee.IsNullOrEmpty(o),items:o,marginRight:1,tooltip:"Load Query",icon:"folder-open"}));return _n.createElement(W_.Flex,{onKeyDown:l,flexDirection:"row",className:`ab-${i}__Query__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},_n.createElement(W_.Flex,null,u()),_n.createElement(W_.Flex,null,m()))}clearQuery(){this.props.onRunQuery("")}saveQuery(){this.props.onShowNamedQueries(this.state.expression,this.props.moduleInfo.Popup)}onSelectedSearchChanged(t){this.props.onRunQuery(t)}runQuery(t=this.state.expression){if(Qe.IsNullOrEmpty(t)&&Qe.IsNotNullOrEmpty(this.props.CurrentQuery)){this.props.onRunQuery("");return}if(!!this.props.api.internalApi.getQueryLanguageService().validateBoolean(t,Gn).isValid){if(Qe.IsNotNullOrEmpty(this.state.expression)){let n={expression:this.state.expression,time:new Date};n&&this.props.onAddCachedQuery(n)}this.props.onRunQuery(t)}}};function wRt(e){return{CurrentQuery:e.Query.CurrentQuery,NamedQueries:e.Query.NamedQueries,CachedQueries:e.System.CachedQueries}}function ORt(e){return{onAddCachedQuery:t=>e(rY(t)),onRunQuery:t=>e(Zp(t)),onShowNamedQueries:(t,n)=>e(Rn(Gn,n,{action:"New",source:"Toolbar",value:t})),onExpand:t=>e(sA({Id:SW,Title:"Current Query",Icon:"query",PopupProps:{value:t}}))}}var GIe=Ye(wRt,ORt)(Hq);s();var HIe=A(require("react")),FRt=e=>{let[t,n]=Cg(e),r=e.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return HIe.createElement(Ii,{type:"text",placeholder:e.api.internalApi.getAdaptableOptions().searchOptions.quickSearchPlaceholder,className:`ab-${r}__QuickSearch__text`,value:t,OnTextChange:n,style:{height:"100%"},inputStyle:{width:"7rem"}})};function MRt(e){return{QuickSearchText:e.QuickSearch.QuickSearchText}}function NRt(e){return{onRunQuickSearch:t=>e(Ts(t))}}var UIe=Ye(MRt,NRt)(FRt);s();var fl=A(require("react"));var q_=A(J());var Uq=class extends fl.Component{constructor(n){super(n);this.state={SelectedColumnId:""}}componentDidMount(){if(this.props.api){let n=this.props.api.internalApi.getAdaptableInstance();n&&(this.cleanupEvent=n._on("CellsSelected",()=>{this.checkSelectedCells()}))}this.checkSelectedCells()}componentWillUnmount(){var n;(n=this.cleanupEvent)==null||n.call(this)}render(){var c,m,f;let n=this.getStatusColour(),r=we.IsNotNullOrEmpty(this.state.SelectedColumnId)?this.props.api.columnApi.getColumnFromId(this.state.SelectedColumnId):null,o=fl.createElement(ns,{previewInfo:this.props.PreviewInfo,api:this.props.api,selectedColumn:r,showPanel:!0,showHeader:!1}),a=ba.getNames(Cl).map((h,b)=>({onClick:()=>this.props.onSmartEditOperationChange(h),label:h})),i=(f=(m=(c=this.props.api.internalApi.getAdaptableOptions())==null?void 0:c.editOptions)==null?void 0:m.smartEdit)==null?void 0:f.customOperations;i!=null&&i.length&&a.push(...i.map(h=>({onClick:()=>this.props.onSmartEditOperationChange(h),label:h.Name})));let l={color:n,fill:"currentColor"},u=this.props.accessLevel=="ReadOnly"||!this.props.IsValidSelection||this.props.InPivotMode==!0,d=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return fl.createElement(q_.Flex,{flexDirection:"row",className:`ab-${d}__SmartEdit__wrap`,flexWrap:this.props.viewType==="ToolPanel"?"wrap":"nowrap"},fl.createElement(q_.Flex,null,fl.createElement(Ze,{className:`ab-${d}__SmartEdit__select`,marginRight:2,items:a,style:{fontSize:"small"},columns:["label"],disabled:u,variant:"outlined"},typeof this.props.SmartEditOperation=="object"?this.props.SmartEditOperation.Name:this.props.SmartEditOperation),fl.createElement(Ke,{style:{width:"5rem"},className:`ab-${d}__SmartEdit__select-value`,value:this.props.SmartEditValue.toString(),type:"number",placeholder:"Enter a Number",step:"any",onChange:h=>this.onSmartEditValueChange(h),disabled:u,marginRight:2})),fl.createElement(q_.Flex,null,!u&&fl.createElement(Ug,{onClick:()=>this.onApplyClick(),style:l,className:`ab-${d}__SmartEdit__apply`,tooltip:"Apply Smart Edit",disabled:we.IsNullOrEmpty(`${this.props.SmartEditValue}`)||this.props.PreviewInfo!=null&&this.props.PreviewInfo.previewValidationSummary.validationResult=="All",accessLevel:this.props.accessLevel},this.props.viewType==="ToolPanel"&&"Apply Smart Edit"),!u&&fl.createElement(Cn,{headerText:"Preview Results",className:`ab-${d}__SmartEdit__info`,bodyText:[o],MessageType:Wt.getMessageTypeByStatusColour(n),useButton:!0,showEvent:"focus",hideEvent:"blur"})))}checkSelectedCells(){this.props.onSmartEditCheckSelectedCells()}onSmartEditValueChange(n){let r=n.target;this.props.onSmartEditValueChange(Number(r.value))}getStatusColour(){if(we.IsNotNullOrEmpty(`${this.props.SmartEditValue}`)&&this.props.PreviewInfo){if(this.props.PreviewInfo.previewValidationSummary.validationResult=="All")return"var(--ab-color-error)";if(this.props.PreviewInfo.previewValidationSummary.validationResult=="Some")return"var(--ab-color-warn)"}return"var(--ab-color-success)"}onApplyClick(){this.onApplySmartEdit()}onApplySmartEdit(){this.props.onRunSmartEdit()}};function _Rt(e,t){return{SmartEditValue:e.System.SmartEditValue,SmartEditOperation:e.System.SmartEditOperation,IsValidSelection:e.System.IsValidSmartEditSelection,PreviewInfo:e.System.SmartEditPreviewInfo,InPivotMode:e.Grid.IsGridInPivotMode}}function LRt(e){return{onSmartEditValueChange:t=>e(nf(t)),onSmartEditOperationChange:t=>e(rf(t)),onSmartEditCheckSelectedCells:()=>e(tA()),onRunSmartEdit:()=>e(gE(!1))}}var WIe=Ye(_Rt,LRt)(Uq);s();var GS=A(require("react"));var Wq=A(J());var qq=class extends GS.Component{constructor(t){super(t)}render(){var i;let t=this.props.api.systemStatusApi.getCurrentSystemStatusMessageInfo(),n=pn.getColorByMessageType((i=t==null?void 0:t.statusType)!=null?i:"Success"),r=t?pn.getButtonTextColourForMessageType(t.statusType):"",o=t==null?void 0:t.statusMessage,a=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return GS.createElement(Wq.Flex,{flexDirection:"row",className:`ab-${a}__SystemStatus__wrap`},GS.createElement(Wq.Flex,{style:{borderRadius:"var(--ab__border-radius)"},className:`ab-${a}__SystemStatus__text`,marginRight:2,padding:2,color:r,backgroundColor:o?n:"",fontSize:"var( --ab-font-size-2)",alignItems:"center","data-name":"system-status-message"},o||"0 Messages"))}};function kRt(e){return{SystemStatusMessageInfos:e.System.SystemStatusMessages}}function BRt(e){return{}}var qIe=Ye(kRt,BRt)(qq);s();var HS=A(require("react"));var zq=class extends HS.Component{render(){let t=[...this.props.SystemThemes,...this.props.UserThemes],n=t.map((l,u)=>(typeof l=="string"&&(l={Name:l,Description:l}),{label:l.Description,onClick:()=>this.onSelectTheme(l)})),r=t.filter(l=>l.Name===this.props.CurrentTheme)[0],o=r?r.Description:this.props.CurrentTheme,a=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel",i=this.props.viewType==="Toolbar"?{maxWidth:"25rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"small"}:{minWidth:"100%",fontSize:"small"};return HS.createElement("div",{className:He(this.props.accessLevel=="ReadOnly"?br:"",`ab-${a}__Theme__wrap`)},HS.createElement(Ze,{className:`ab-${a}__Theme__select`,style:i,items:n,columns:["label"],accessLevel:this.props.accessLevel},o))}onSelectTheme(t){this.props.onSelectTheme(t.Name)}};function VRt(e,t){return{SystemThemes:e.Theme.SystemThemes,CurrentTheme:e.Theme.CurrentTheme,UserThemes:e.Theme.UserThemes}}function GRt(e){return{onSelectTheme:t=>e(th(t))}}var zIe=Ye(VRt,GRt)(zq);s();var US=A(require("react"));var QIe=A(J());var Qq=class extends US.Component{constructor(t){super(t),this.state={CurrentDataSource:we.IsNullOrEmpty(this.props.CurrentDataSourceName)?null:this.props.DataSources.find(n=>n.Name==this.props.CurrentDataSourceName)}}render(){let t="Select Data Source",n=this.state.CurrentDataSource==null?t:this.state.CurrentDataSource.Name,r=this.props.DataSources.map(a=>({value:a.Name,label:a.Name,onClick:()=>this.onSelectedDataSourceChanged(a.Name)})),o=this.props.viewType==="Toolbar"?"DashboardToolbar":"ToolPanel";return US.createElement(QIe.Flex,{flexDirection:"row",className:`ab-${o}__DataSource__wrap`},US.createElement(Ze,{marginRight:2,columns:["label"],style:{minWidth:160,fontSize:"small"},className:`ab-${o}__DataSource__select`,items:r,variant:"outlined",tone:"neutral"},n))}onSelectedDataSourceChanged(t){if(we.IsNullOrEmpty(t))this.setState({CurrentDataSource:null});else{let n=this.props.DataSources.find(r=>r.Name==t);this.setState({CurrentDataSource:n}),this.props.onSelectDataSource(n)}}};function HRt(e){return{CurrentDataSourceName:e.DataSource.CurrentDataSource,DataSources:e.DataSource.DataSources}}function URt(e){return{onSelectDataSource:t=>t.Form?e(uA({Id:"data-source-form",Form:t.Form})):e(PC(t))}}var jIe=Ye(HRt,URt)(Qq);s();var Wn=A(require("react"));s();var z_=A(require("react"));var KIe=require("@ag-grid-community/all-modules"),cm=require("react");var $Ie=e=>{let{changeHistoryLog:t,adaptableContainerId:n,agGridContainerId:r,onUndoChange:o}=e,a=$e(),[i,l]=(0,cm.useState)(null),u=(0,cm.useRef)(null);u.current=i;let d=a.api.internalApi.getEntitlementService().isModuleFullEntitlement(wl),c=Ga(t,t);return(0,cm.useEffect)(()=>((async()=>{let f=qRt(a,t),h=WRt(a,f,n,r,d,o),C=await Object.getPrototypeOf(a).constructor.init(h);l(C)})(),()=>{var f;(f=u.current)==null||f.internalApi.getAdaptableInstance().destroy({unmount:!0,destroyApi:!0})}),[]),(0,cm.useEffect)(()=>{let m=u.current;if(!m)return;let f=Object.keys(t).filter(S=>{let I=c[S];return I?t[S].changedAt!==I.changedAt:!0}),h=Object.keys(c).filter(S=>{let I=t[S];return I?c[S].changedAt!==I.changedAt:!0}),b=YIe(t,f),C=YIe(c,h),y=Yq(b,a),v=Yq(C,a);m.internalApi.getAdaptableOptions().gridOptions.api.applyTransactionAsync({add:y,remove:v})},[t]),z_.createElement(z_.Fragment,null)},WRt=(e,t,n,r,o,a)=>{var c,m;let i=e.adaptableOptions,l=e.api.themeApi.getCurrentTheme(),u=f=>{var b;let h=(b=f==null?void 0:f.data)==null?void 0:b.changeKey;h&&a(h)},d={gridOptions:t,modules:[...KIe.AllCommunityModules],primaryKey:"primaryKey",licenseKey:i.licenseKey,userName:`${i.userName}`,adaptableId:`${i.adaptableId}::DataChangeHistory`,containerOptions:{adaptableContainer:n,agGridContainer:r},entitlementOptions:{defaultAccessLevel:"Hidden"},layoutOptions:{createDefaultLayout:!1},userInterfaceOptions:{actionColumns:[{columnId:"undoActionColumn",friendlyName:" ",includeGroupedRows:!0,actionColumnButton:{label:(f,h)=>h.adaptableApi.gridApi.isGroupRowNode(h.rowNode)?"Undo Group":"Undo Change",onClick:(f,h)=>{var C;let b=h.rowNode;if(h.adaptableApi.gridApi.isGroupRowNode(b)){let y=(C=h.rowNode)==null?void 0:C.childrenAfterFilter;y&&y.forEach(v=>u(v))}else u(b)},buttonStyle:{variant:"raised",tone:"accent"}}}]},predefinedConfig:{Layout:{Revision:Date.now(),CurrentLayout:"DataChangeHistoryLayout",Layouts:[{Name:"DataChangeHistoryLayout",Columns:["changeInfo.primaryKeyValue","changedColumnLabel","changeInfo.oldValue","changeInfo.newValue","changeInfo.changedAt","changeTriggerLabel","undoActionColumn"],ColumnSorts:[{ColumnId:"changeInfo.changedAt",SortOrder:"Desc"}],ColumnWidthMap:{undoActionColumn:110},PinnedColumnsMap:{undoActionColumn:"right"}}]},FormatColumn:{Revision:Date.now(),FormatColumns:[{Scope:{ColumnIds:["changeInfo.changedAt"]},DisplayFormat:{Formatter:"DateFormatter",Options:{Pattern:`${(m=(c=i.userInterfaceOptions)==null?void 0:c.dateInputOptions)==null?void 0:m.dateFormat} HH:mm:ss`}}}]},Theme:{Revision:Date.now(),CurrentTheme:l}}};if(!o){let f=d.predefinedConfig.Layout.Layouts[0].Columns;f.includes("undoActionColumn")&&(d.predefinedConfig.Layout.Layouts[0].Columns=f.filter(h=>h!=="undoActionColumn"))}return d},qRt=(e,t)=>{var o,a;let n=(a=(o=e.api.columnApi.getPrimaryKeyColumn())==null?void 0:o.friendlyName)!=null?a:"Row ID";return{suppressLoadingOverlay:!0,overlayNoRowsTemplate:'<div style="font-size: var(--ab-font-size-2);color: var(--ab-color-text-on-primary);">No Data Changes</div>',defaultColDef:{floatingFilter:!0,filter:!0,sortable:!0,resizable:!0,enableRowGroup:!0,editable:!1,enablePivot:!1,enableValue:!1,lockPinned:!0,suppressAutoSize:!0,suppressMenu:!0,menuTabs:["generalMenuTab","filterMenuTab"]},autoGroupColumnDef:{sortable:!0,suppressMenu:!1},columnDefs:[{field:"primaryKey",type:["abColDefString"],hide:!0},{headerName:`Row (${n})`,field:"changeInfo.primaryKeyValue",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Changed Column",field:"changedColumnLabel",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Previous Value",field:"changeInfo.oldValue",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"New Value",field:"changeInfo.newValue",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Changed at",field:"changeInfo.changedAt",type:["abColDefDate"],suppressAutoSize:!1,suppressMenu:!1,flex:3,initialFlex:3},{headerName:"Source",field:"changeTriggerLabel",type:["abColDefString"],suppressAutoSize:!1,suppressMenu:!1,flex:2,initialFlex:2}],rowData:Yq(t,e),enableRangeSelection:!0,suppressColumnVirtualisation:!1,sideBar:!1,suppressMenuHide:!0,rowSelection:"multiple",skipHeaderOnAutoSize:!0}},Yq=(e={},t)=>Object.entries(e).map(([n,r])=>({primaryKey:`${n}::${r.changedAt}`,changeKey:n,changeTriggerLabel:QRt(r),changedColumnLabel:zRt(r.column.columnId,t),changeInfo:r})),jq=new Map,zRt=(e,t)=>{var n,r;return jq.has(e)||jq.set(e,(r=(n=t.api.columnApi.getColumnFromId(e))==null?void 0:n.friendlyName)!=null?r:e),jq.get(e)},QRt=e=>e.trigger==="tick"?"Ticking data":"User edit",YIe=(e,t)=>{let n={};return t.forEach(r=>{n[r]=e[r]}),n};var ai=A(J());s();var Q_=A(require("react"));var zg=class extends Q_.Component{render(){return Q_.createElement(re,g({"data-name":"pause",tooltip:"Pause",iconSize:20,icon:this.props.fillColor==="red"?"pause-red":"pause",variant:"text"},this.props))}};s();var j_=A(require("react"));var Qg=class extends j_.Component{render(){return j_.createElement(re,g({"data-name":"stop",tooltip:"Stop",iconSize:20,icon:"stop",variant:"text"},this.props))}};var Kq=class extends Wn.Component{constructor(t){super(t),this.state={dataChangeHistoryAdaptableApi:void 0}}render(){let{changeHistoryMode:t,activationTime:n,suspensionTime:r,onChangeHistoryEnable:o,onChangeHistoryDisable:a,onChangeHistorySuspend:i,onChangeHistoryResume:l}=this.props,u="dataChangeHistoryAdaptableContainer",d="dataChangeHistoryAgGridContainer",c=t==="ACTIVE",m=t==="INACTIVE",f=t==="SUSPENDED",h=Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup--button-panel",padding:2,style:{gap:"var(--ab-space-1)"}},m&&Wn.createElement(ml,{className:"ab-DataChangeHistoryPopup--button-activate","data-name":'data-change-history--button-activate"',variant:"raised",tone:"accent",tooltip:"",onClick:()=>o()},"Activate data change tracking"),f&&Wn.createElement(ml,{className:"ab-DataChangeHistoryPopup--button-resume","data-name":"data-change-history--button-resume",variant:"outlined",tooltip:"Resume tracking data changes",onClick:()=>l()},"Resume"),c&&Wn.createElement(zg,{className:"ab-DataChangeHistoryPopup--button-suspend","data-name":"data-change-history--button-suspend",variant:"outlined",tooltip:"Suspend tracking data changes",onClick:()=>i()},"Suspend"),(c||f)&&Wn.createElement(Qg,{className:"ab-DataChangeHistoryPopup--button-deactivate","data-name":"data-change-history--button-deactivate",variant:"outlined",tooltip:"Deactivate data change tracking",onClick:()=>a()},"Deactivate")),b=`${this.props.api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat} HH:mm:ss`,C=Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup--status-panel",alignItems:"center",style:{gap:"var(--ab-space-1)"}},c&&Wn.createElement(Wn.Fragment,null,Wn.createElement(ai.Text,{className:"ab-DataChangeHistoryPanel--status-active",style:{color:"var(--ab-color-success)",fontWeight:"bold"}},"Active"),!!n&&Wn.createElement(ai.Text,{style:{fontStyle:"italic"},fontSize:2},"(since ",go(n,{Pattern:b}),")")),f&&Wn.createElement(Wn.Fragment,null,Wn.createElement(ai.Text,{className:"ab-DataChangeHistoryPopup--status-suspended",style:{color:"var(--ab-color-warn)",fontWeight:"bold"}},"Suspended"),!!r&&Wn.createElement(ai.Text,{style:{fontStyle:"italic"},fontSize:2},"(since ",go(r,{Pattern:b}),")")),m&&Wn.createElement(ai.Text,{className:"ab-DataChangeHistoryPopup--status-disabled",fontSize:2})),y=S=>{let I=this.props.changeHistoryLog[S];I&&this.props.api.dataChangeHistoryApi.undoDataChangeHistoryEntry(I)},v=this.props.api.themeApi.getAgGridCurrentThemeName();return Wn.createElement(Vr,{headerText:this.props.moduleInfo.FriendlyName,glyphicon:this.props.moduleInfo.Glyph,infoLink:this.props.moduleInfo.HelpPage,infoLinkDisabled:!this.props.api.internalApi.isDocumentationLinksDisplayed()},Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup",flexDirection:"column",style:{height:"100%"}},Wn.createElement(ai.Flex,{style:{color:"var(--ab-dashboard__color)",background:"var(--ab-dashboard__background)"}},Wn.createElement(ai.Flex,{flexDirection:"row"},h,C)),Wn.createElement(ai.Flex,{className:"ab-DataChangeHistoryPopup--grid","data-name":"data-change-history--grid",flex:1,alignSelf:"stretch",flexDirection:"column"},Wn.createElement("div",{id:u}),Wn.createElement("div",{id:d,className:v,style:{height:"100%"}}),Wn.createElement($Ie,{adaptableContainerId:u,agGridContainerId:d,changeHistoryLog:this.props.changeHistoryLog,onUndoChange:y}))))}};function jRt(e,t){return{changeHistoryLog:e.System.DataChangeHistory.logs,changeHistoryMode:e.System.DataChangeHistory.currentMode,activationTime:e.System.DataChangeHistory.enableTime,suspensionTime:e.System.DataChangeHistory.suspendTime}}function YRt(e){return{onChangeHistoryEnable:()=>e(yu()),onChangeHistoryDisable:()=>e(Su()),onChangeHistorySuspend:()=>e(af()),onChangeHistoryResume:()=>e(lf())}}var XIe=Ye(jRt,YRt)(Kq);s();var Jo=A(require("react"));var tp=A(J());var $q=class extends Jo.Component{constructor(t){super(t)}render(){let{changeHistoryMode:t,activationTime:n,suspensionTime:r,onChangeHistoryEnable:o,onChangeHistoryDisable:a,onChangeHistorySuspend:i,onChangeHistoryResume:l}=this.props,u=t==="ACTIVE",d=t==="INACTIVE",c=t==="SUSPENDED",m=Jo.createElement(tp.Flex,{className:"ab-DataChangeHistoryPanel--button-panel",paddingY:2,style:{gap:"var(--ab-space-1)"}},d&&Jo.createElement(ml,{className:"ab-DataChangeHistoryPanel--button-activate","data-name":"data-change-history--button-activate",tooltip:"",onClick:()=>o()}),c&&Jo.createElement(ml,{className:"ab-DataChangeHistoryPanel--button-resume","data-name":"data-change-history--button-resume",tooltip:"Resume tracking data changes",onClick:()=>l()}),u&&Jo.createElement(zg,{className:"ab-DataChangeHistoryPanel--button-suspend","data-name":"data-change-history--button-suspend",tooltip:"Suspend tracking data changes",onClick:()=>i()}),(u||c)&&Jo.createElement(Qg,{className:"ab-DataChangeHistoryPanel--button-deactivate","data-name":"data-change-history--button-deactivate",tooltip:"Deactivate data change tracking",onClick:()=>a()})),f=`${this.props.api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat} HH:mm:ss`,h=Jo.createElement(tp.Flex,{className:"ab-DataChangeHistoryPanel--status-panel",alignItems:"center",style:{gap:"var(--ab-space-1)"}},u&&Jo.createElement(ny,{label:!!n&&`since ${go(n,{Pattern:f})}`},Jo.createElement(tp.Text,{className:"ab-DataChangeHistoryPanel--status-active",fontSize:2,style:{color:"var(--ab-color-success)"}},"Active")),c&&Jo.createElement(ny,{label:!!r&&`since ${go(r,{Pattern:f})}`},Jo.createElement(tp.Text,{className:"ab-DataChangeHistoryPanel--status-suspended",fontSize:2,style:{color:"var(--ab-color-warn)"}},"Suspended")),d&&Jo.createElement(tp.Text,{className:"ab-DataChangeHistoryPanel--status-disabled",fontSize:2},"Activate data tracking"));return Jo.createElement(tp.Flex,{flexDirection:"row"},m,h)}};function KRt(e){return{changeHistoryMode:e.System.DataChangeHistory.currentMode,activationTime:e.System.DataChangeHistory.enableTime,suspensionTime:e.System.DataChangeHistory.suspendTime}}function $Rt(e){return{onChangeHistoryEnable:()=>e(yu()),onChangeHistoryDisable:()=>e(Su()),onChangeHistorySuspend:()=>e(af()),onChangeHistoryResume:()=>e(lf())}}var JIe=Ye(KRt,$Rt)($q);s();var np=A(require("react"));var Xq=A(J());var ZIe=e=>{let t=e.viewType==="Toolbar",n=t?"DashboardToolbar":"ToolPanel";return np.createElement(Xq.Flex,{flexDirection:t?"row":"column",className:He(e.accessLevel=="ReadOnly"?br:"",`ab-${n}__StateManagement__wrap`)},np.createElement(Xq.Flex,{flexDirection:"row"},np.createElement(f_,{tooltip:"Load Predefined Config",variant:"text",icon:"upload",onLoad:r=>e.api.configApi.reloadPredefinedConfig(r),accessLevel:e.accessLevel},!t&&"Load"),np.createElement(h_,{icon:"trash",tooltip:"Clear User State",variant:"text",onClick:()=>e.api.configApi.reloadPredefinedConfig(),accessLevel:e.accessLevel},!t&&"Clear")),np.createElement($d,{api:e.api,type:"allState"},"All State"),np.createElement($d,{api:e.api,type:"userState"},"User State"),np.createElement($d,{api:e.api,type:"predefinedConfig"},"Predefined Config"))};var ePe={BulkUpdatePopup:SIe,DashboardPopup:cIe,StateManagementPopup:yIe,GridInfoPopup:sIe,QuickSearchPopup:rRe,CellSummaryPopup:vIe,SmartEditPopup:Xxe,ThemePopup:oRe,TeamSharingPopup:uIe,ToolPanelPopup:fRe,SystemStatusPopup:RIe,DataChangeHistoryPopup:XIe},Y_=new Map([[wr,wIe],[Yi,OIe],[Dl,FIe],[Co,NIe],[Tl,LIe],[kr,BIe],[Ki,VIe],[Gn,GIe],[fi,UIe],[hi,WIe],[Tu,qIe],[Ou,zIe],[Du,jIe],[wl,JIe],[Ff,ZIe]]);s();var Uo=A(require("react"));var tPe=e=>{var b,C,y,v;rr(S=>S);let[t,n]=Uo.useState(null),r=e.module.moduleInfo,o=(b=e.module)==null?void 0:b.toViewAll(),a=e.module.getViewProperties(),i=(C=a==null?void 0:a.getEditWizard)==null?void 0:C.call(a),[l,u]=Uo.useState(()=>{var S,I;return((S=e.popupParams)==null?void 0:S.action)==="New"||((I=e.popupParams)==null?void 0:I.action)==="Edit"}),d=Uo.useCallback(()=>{i&&u(!0),a.onOpenEditPopup&&a.onOpenEditPopup()},[]);Uo.useEffect(()=>{var S,I;(((S=e.popupParams)==null?void 0:S.action)==="New"||((I=e.popupParams)==null?void 0:I.action)==="Edit")&&d()},[(y=e.popupParams)==null?void 0:y.action]);let c=a.emptyView,m=null;typeof c=="function"?m=Uo.createElement(c,{module:e.module}):typeof c=="string"&&(m=c);let f=null;if((v=a==null?void 0:a.abObjectTypes)!=null&&v.length){let S=a==null?void 0:a.abObjectTypes.map(I=>{var P;return{disabled:(I==null?void 0:I.accessLevel)==="ReadOnly",onClick:()=>{n(I),d()},label:(P=I.label)!=null?P:I.name}});f=Uo.createElement(Ze,{tone:"accent",variant:"raised",columns:["label"],items:S,tooltip:"Create "+r.FriendlyName},Uo.createElement(Ct,{name:"plus"})," New")}else(i||a.onOpenEditPopup)&&(f=Uo.createElement(Td,{onClick:()=>d(),tooltip:"Create "+r.FriendlyName,accessLevel:e.accessLevel,style:{color:"var(--ab-color-text-on-add)",fill:"var(--ab-color-text-on-add)",background:"var(--ab-color-action-add)"}}));let h=()=>{var S;n(null),u(!1),["Toolbar","ContextMenu","ColumnMenu"].includes((S=e==null?void 0:e.popupParams)==null?void 0:S.source)&&e.onClosePopup()};return Uo.createElement(Vr,{glyphicon:r.Glyph,infoLink:r.HelpPage,headerText:r.FriendlyName,button:f,infoLinkDisabled:!e.api.internalApi.isDocumentationLinksDisplayed()},o!=null&&o.length?Uo.createElement(NS,{module:e.module,items:o}):Uo.createElement(y_,null,m!=null?m:`Click 'New' to create a new ${r.FriendlyName}`),l&&i&&Uo.createElement(i,{abObjectType:t,moduleInfo:r,data:null,popupParams:e.popupParams,configEntities:null,onCloseWizard:h,onFinishWizard:h}))};var rPe=e=>{var l,u;let t=Wt.getModalContainer(e.api.internalApi.getAdaptableOptions(),document),n=e.module.moduleInfo.ModuleName,r=e.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(n),o=e.api.internalApi.getModuleService().getModuleInfoByModule(n),a={popupParams:e.moduleParams,onClearPopupParams:()=>e.onClearParams?e.onClearParams():null,onClosePopup:()=>{e.onHide&&e.onHide()},teamSharingActivated:e.api.teamSharingApi.isTeamSharingActivated()&&e.api.teamSharingApi.hasTeamSharingFullRights(),modalContainer:t,accessLevel:r,api:e.api,moduleInfo:o},i=((u=ePe)==null?void 0:u[(l=e==null?void 0:e.componentName)!=null?l:o.Popup])||tPe;return nPe.createElement(i,g({key:e==null?void 0:e.componentName,module:e.module},a))};s();var K_=["BulkUpdate","SmartEdit","CellSummary"],oPe=["GridInfo","Dashboard","ToolPanel","StateManagement","-","Alert","CalculatedColumn","ConditionalStyle","CustomSort","DataSource","Export","Filter","FlashingCell","FormatColumn","FreeTextColumn","Layout","PlusMinus","Query","QuickSearch","Schedule","Shortcut","-","SystemStatus","DataChangeHistory","TeamSharing","Theme"];s();var iPe=A(require("react"));s();var rp=A(require("react"));var aPe=o=>{var a=o,{render:e,frameworkComponent:t,componentName:n="N/A"}=a,r=qe(a,["render","frameworkComponent","componentName"]);let i=rp.useRef(),l=$e(),[u,d]=rp.useState("");return rp.useLayoutEffect(()=>{let c=i.current,m=l.api;if(e){let f=e({visible:!0,node:c,adaptableApi:m});d(f)}else t&&m.internalApi.createFrameworkComponent(c,t,"toolbar");return()=>{e?e({visible:!1,node:c,adaptableApi:m}):t&&m.internalApi.destroyFrameworkComponent(c,t,n)}},[]),rp.createElement("div",R(g({},r),{dangerouslySetInnerHTML:{__html:u},ref:i}))};var lPe=e=>iPe.createElement(aPe,{render:e.settingsPanel.render,componentName:e.settingsPanel.name,frameworkComponent:e.settingsPanel.frameworkComponent});s();var sPe=A(require("react"));var uPe=()=>{let t=$e().adaptableOptions.settingsPanelOptions,n=rr(r=>{var o;return(o=r==null?void 0:r.Grid)==null?void 0:o.ModuleDropdownMenuItems});return sPe.useMemo(()=>{var a;let r=(a=t==null?void 0:t.navigation)==null?void 0:a.items;r||(r=[...oPe],t.customSettingsPanels&&r.push(...t.customSettingsPanels.map(i=>i.name)));let o=n.filter(i=>i.module!=="General"&&!K_.includes(i.module)&&i.isVisible);return r.map(i=>{var d,c;if(i==="-")return i;let l=(c=(d=t==null?void 0:t.customSettingsPanels)==null?void 0:d.find)==null?void 0:c.call(d,m=>m.name===i),u=null;return l&&(u={label:l.name,isVisible:!0,reduxAction:Rn(null,l.name)}),u||o.find(m=>m.module===i)}).filter(Boolean)},[n])};s();var op=A(require("react")),cPe=require("react-dom");s();var $_=e=>{let t=window.innerHeight;return{x:window.innerWidth/2-e.width/2,y:t/2-e.height/2}},dPe=()=>{let e=window.innerHeight,t=window.innerWidth;return{height:tf(600,0,e*.9),width:tf(800,0,t*.9)}},Jq=()=>{let e=window.innerHeight,t=window.innerWidth;return{height:tf(e*.9,0,800),width:tf(t*.9,0,800)}},pPe=()=>Jq();var XRt=e=>{var y,v;let C=e,{onChange:t,style:n,baseClassName:r,className:o,isActionModule:a,settingsPanelOptionsKey:i,onHide:l}=C,u=qe(C,["onChange","style","baseClassName","className","isActionModule","settingsPanelOptionsKey","onHide"]),d=$e(),c=Rt(),m=d.adaptableOptions.settingsPanelOptions,f=rr(S=>{var I,P;return(P=(I=S==null?void 0:S.System)==null?void 0:I.SettingsPanel)==null?void 0:P[i]}),h=S=>{c(dY(i,S))};if(!f){let S=a?dPe():(y=m.size)!=null?y:Jq();f={size:S,position:(v=m.position)!=null?v:$_(S)}}let b={handleSelector:a?`.${r} .ab-Panel__header`:".ab-Adaptable-Popup__TopBar",size:f.size,position:f.position,onChange:h};return op.createElement(vr,g({windowModal:!0,fixed:!1,windowModalProps:b,style:R(g({},e.style),{height:"100%"}),padding:0,className:o,onDismiss:l,isOpen:!0,showCloseButton:!0},u))},JRt=e=>{let i=e,{style:t,className:n,onHide:r,children:o}=i,a=qe(i,["style","className","onHide","children"]);return op.createElement(vr,g({fixed:!1,style:e.style,padding:0,height:"90vh",width:"90vw",className:n,onDismiss:r,isOpen:!0,showCloseButton:!0},a),o)},mPe=e=>{let{isActionModule:t,style:n,friendlyName:r,baseClassName:o,className:a,children:i,onHide:l,isWindowModal:u,modalContainer:d}=e,c=op.useMemo(()=>{if(!d)return null;let m=null;return typeof d=="string"?m=globalThis.document.querySelector(d):m=d,m},[d]);if(d){let m=null;return typeof d=="string"?m=globalThis.document.querySelector(d):m=d,(0,cPe.createPortal)(op.createElement(vr,{modal:!1,fixed:!1,onDismiss:l,className:a},i),m)}if(u){let m=t?`action-${r}`:"settings";return op.createElement(XRt,{settingsPanelOptionsKey:m,isActionModule:t,onHide:l,style:n,baseClassName:o,className:a},i)}else{let m=g(g({},n),t?{maxWidth:800,maxHeight:600}:{maxWidth:1200,maxHeight:1e3});return op.createElement(JRt,{onHide:l,style:m,className:a},i)}};var e9=e=>{var P,T,O;let t=$e(),n=t.adaptableOptions.settingsPanelOptions,r=t.api.internalApi.getModuleFriendlyName("SettingsPanel"),o=uPe(),a=n.popupType==="window",i=(T=(P=t.adaptableOptions)==null?void 0:P.containerOptions)==null?void 0:T.modalContainer,l=null,u=!1,d=null,c=null,m="Full",f=o.find(_=>_!=="-"),h=f==null?void 0:f.module,b=e.componentModule,C=e.componentName,y=!e.componentName;y&&h!=="General"&&(b=h);let v=(O=n==null?void 0:n.customSettingsPanels)==null?void 0:O.find(_=>y?_.name===f.label:_.name===C);if(v)l=v.name,c=v.name,d=lu.createElement(lPe,{settingsPanel:v});else{let _=e.api.internalApi.getModuleService().getModuleById(b),M=_==null?void 0:_.moduleInfo;m=e.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(b),l=M.FriendlyName,u=M&&(K_.includes(M==null?void 0:M.ModuleName)||e.componentName&&e.componentName!==(M==null?void 0:M.Popup)),c=M.ModuleName,d=lu.createElement(rPe,{api:e.api,module:_,componentName:e.componentName,moduleParams:e.moduleParams,onClearParams:e.onClearParams,onHide:e.onHide})}let S="ab-Adaptable-Popup",I=He(S,`${S}--${a?"window":"modal"}`,u?`${S}--action-popup`:`${S}--settings-popup`);return lu.createElement(wAe.Provider,{value:{hidePopup:()=>{e.onHide&&e.onHide()}}},lu.createElement(mPe,{baseClassName:S,className:I,friendlyName:l,isActionModule:u,isWindowModal:a,onHide:e.onHide,modalContainer:i},!u&&lu.createElement(PAe,{icon:n.icon},r),lu.createElement(Zq.Flex,{"data-name":e.componentName,flexDirection:"row",flex:"1 1 0",style:{minHeight:0},className:m=="ReadOnly"?br:""},!u&&lu.createElement(TAe,{menuItems:o,api:e.api,activeItem:c,customSettingsPanels:n.customSettingsPanels}),lu.createElement(Zq.Flex,{flex:1,className:"ab-Adaptable-Popup__Body"},d))))};s();var Wo=A(require("react"));var mm=A(J());var fPe=e=>{var l;let t=Rt(),[n,r]=Wo.useState((l=e.defaultValue)!=null?l:""),o=()=>{r(""),e.onClose()},a=()=>{e.onConfirm(n);let u=typeof e.onConfirmActionCreator=="function"&&e.onConfirmActionCreator(n);u&&t(u),r("")},i=u=>{r(u.target.value)};return Wo.createElement(vr,{modal:!0,"data-name":"prompt-popup",isOpen:!0,onDismiss:e.onClose,showCloseButton:!1,style:{minHeight:"auto",maxWidth:"50%"}},Wo.createElement(mm.Flex,{flexDirection:"column"},Wo.createElement(mm.Box,{marginTop:3,mx:2},e.header),we.IsNotNullOrEmpty(e.message)&&Wo.createElement(mm.Box,{marginTop:3,mx:2}," ",Wo.createElement("div",{style:{display:"flex",alignItems:"center"}},e.message.split(`
|
|
289
289
|
`).map(function(u,d){return Wo.createElement("span",{key:d},u,Wo.createElement("br",null))}))),Wo.createElement(Ke,{autoFocus:!0,marginTop:3,mx:3,value:n,type:"string",placeholder:"Enter text",onChange:u=>i(u)}),Wo.createElement(mm.Box,{marginTop:3},Wo.createElement(mm.Flex,{padding:2},Wo.createElement(re,{tone:"accent","data-name":"ok",variant:"raised",disabled:we.IsNullOrEmpty(n),onClick:()=>a()},"OK"),Wo.createElement("div",{style:{flex:1}}),Wo.createElement(re,{tone:"neutral",variant:"raised",onClick:()=>o(),"data-name":"cancel"},"Cancel")))))};s();var Ur=A(require("react"));var Z_=A(J());s();s();var Zo=A(require("react"));s();var fm=A(require("react"));var hPe=A(J());function X_(e){return fm.createElement("div",{className:He("ab-Dashboard__toolbar",e.className)},fm.createElement("div",{className:"ab-Dashboard__toolbar-content"},e.children),fm.createElement(hPe.Flex,{className:"ab-Dashboard__toolbar-title",flexDirection:"row",alignItems:"center"},fm.createElement("span",null,e.title),e.showConfigure&&fm.createElement(re,{icon:"build",variant:"text",tone:"none","data-name":"configure",iconSize:16,marginLeft:1,tooltip:e.tooltip||`Configure ${e.title}`,onClick:()=>e.onConfigure()})," ",e.showClose&&fm.createElement(re,{style:{alignSelf:"flex-end"},disabled:e.accessLevel=="ReadOnly","data-name":"close",icon:"clear",variant:"text",tone:"none",iconSize:16,marginLeft:1,tooltip:e.tooltip||`Close ${e.title}`,onClick:()=>e.onClose()})))}function gPe(e){let{title:t,children:n,left:r,right:o,onShowDashboardPopup:a}=e,[i,l]=fn(e,"activeTabIndex",0),[u,d]=fn(e,"collapsed",!1),[c,m]=fn(e,"floating",!1),[f,h]=fn(e,"inline",!1),[b,C]=fn(e,"position",{x:0,y:0}),y=!c&&!u,{handleRef:v,targetRef:S}=ly({onDrop(M,x){C(({x:D,y:N})=>({x:D+M,y:N+x}))}}),I={position:"absolute",left:b.x,top:b.y},P=()=>Zo.createElement("div",{className:"ab-Dashboard__tabs"},n&&Zo.Children.map(n,(M,x)=>Zo.createElement("button",{type:"button",className:He("ab-Dashboard__tab",!u&&i===x?"ab-Dashboard__tab--active":""),key:x,onClick:()=>{i===x?d(!u):(l(x),d(!1))}},M.props.title))),T=()=>{var x,D,N;if(n&&n.length===0)return null;let M=(N=(D=(x=n==null?void 0:n[i])==null?void 0:x.props)==null?void 0:D.title)!=null?N:"Select Toolbar";return Zo.createElement(Ze,{ml:1,columns:["label"],items:Zo.Children.map(n,(q,F)=>({value:String(F),label:q.props.title,onClick:()=>l(F)}))},M)},O=()=>Zo.createElement("div",{className:"ab-Dashboard__header",onDoubleClick:M=>{let x=M.target;!e.canFloat||x.closest("button, input")||m(!c)}},Zo.createElement("div",{className:"ab-Dashboard__header-left"},r,!c&&P()),c?Zo.createElement("div",{className:"ab-Dashboard__title",ref:v,key:"title-drag",style:{cursor:"move"}},t):Zo.createElement("div",{className:"ab-Dashboard__title",key:"title"},t),Zo.createElement("div",{className:"ab-Dashboard__header-right"},o)),_=()=>Zo.createElement(X_,{onConfigure:a,className:"ab-Dashboard__home-toolbar",title:t,tooltip:"Configure Dashboard",showConfigure:!0,showClose:!1,accessLevel:"Full"},r,o,T());return Zo.createElement("div",{ref:S,className:He("ab-Dashboard",u?"ab-Dashboard--collapsed":"",c?"ab-Dashboard--floating":"",f?"ab-Dashboard--inline":""),style:c?I:void 0},y&&f?_():O(),y&&n&&n.length?Zo.createElement("div",{className:"ab-Dashboard__content"},n[i]?n[i].props.children:null):null)}s();function bPe(e){return null}var t9=A(PS());s();var CPe=A(require("react"));s();var J_=A(require("react"));var hm=class extends J_.Component{render(){let{headerText:t,showConfigureButton:n,showCloseButton:r,onConfigure:o,onClose:a,accessLevel:i,children:l}=this.props;return J_.createElement(X_,{title:t,onConfigure:o,showConfigure:n,showClose:r,onClose:a,accessLevel:i},l)}};hm.defaultProps={showConfigureButton:!0,showCloseButton:!0,headerText:"Module",onClose:null,onConfigure:null,accessLevel:"Full"};var yPe=e=>{let t=e.moduleInfo.ModuleName,n=e.moduleInfo.FriendlyName,{api:r}=$e(),o=t!=="OpenFin"&&t!=="IPushPull"&&t!=="Glue42";return CPe.createElement(hm,{className:`ab-DashboardToolbar__${t}`,"data-name":`ab-DashboardToolbar__${t}`,headerText:n,showConfigureButton:o,onConfigure:()=>{let a=r.internalApi.getModuleService().getPopupMaxWidth(t),i=a?{maxWidth:a,source:"Toolbar"}:{source:"Toolbar"};r.internalApi.dispatchReduxAction(Rn(t,e.moduleInfo.Popup,i))},onClose:()=>r.internalApi.dispatchReduxAction(Roe(t)),accessLevel:e.accessLevel},e.children)};s();var jg=A(require("react")),gm=require("react");var SPe=e=>{let t="ab-CustomToolbar__"+e.customToolbar.name+"__contents",n="ab-CustomToolbar__"+e.customToolbar.name+"__buttons",[r,o]=(0,gm.useState)(""),[a,i]=(0,gm.useState)(1),l=(0,gm.useRef)(null),{api:u}=$e();return(0,gm.useLayoutEffect)(()=>{let d=l.current,c=u;if(e.customToolbar.render){let m=e.customToolbar.render({visible:!0,node:d,adaptableApi:c});o(m)}else e.customToolbar.frameworkComponent&&c.internalApi.createFrameworkComponent(d,e.customToolbar.frameworkComponent,"toolbar");return()=>{e.customToolbar.render?e.customToolbar.render({visible:!1,node:d,adaptableApi:c}):e.customToolbar.frameworkComponent&&c.internalApi.destroyFrameworkComponent(d,e.customToolbar.frameworkComponent,"toolbar")}},[]),jg.createElement(hm,{className:`ab-CustomToolbar ab-DashboardToolbar__${e.customToolbar.name}`,"data-name":`ab-CustomToolbar ab-DashboardToolbar__${e.customToolbar.name}`,headerText:e.customToolbar.title?e.customToolbar.title:"",showConfigureButton:e.customToolbar.showConfigureButton!=null&&e.customToolbar.showConfigureButton==!0,showCloseButton:e.customToolbar.showCloseButton!=null&&e.customToolbar.showCloseButton==!0,onConfigure:()=>{let d={adaptableApi:u,customToolbar:e.customToolbar};u.eventApi.emit("CustomToolbarConfigured",d)},accessLevel:u.internalApi.getEntitlementService().getEntitlementAccessLevelForModule("Dashboard")},jg.createElement("div",{id:t,ref:l,className:"CustomToolBarContents ab-CustomToolbar__contents ab-CustomToolbar__contents--render",style:{minHeight:22},dangerouslySetInnerHTML:{__html:r}}),jg.createElement("div",{id:n,className:"ab-CustomToolbar__buttons",style:{minHeight:22}},e.customToolbar.toolbarButtons&&e.customToolbar.toolbarButtons.map((d,c)=>{let m={customToolbar:e.customToolbar,adaptableApi:u,dashboardState:u.dashboardApi.getDashboardState()},f=u.internalApi.getStyleForButton(d,m),h=u.internalApi.getLabelForButton(d,m),b=u.internalApi.getTooltipForButton(d,m);if(d.hidden&&d.hidden(d,m))return null;let C=d.disabled&&d.disabled(d,m),y=f&&f.variant?f.variant:"outlined",v=f&&f.tone?f.tone:"neutral";return jg.createElement(re,{style:{marginLeft:c?"var(--ab-space-1)":0},key:c,disabled:C,tooltip:b,variant:y,tone:v,onClick:()=>{d.onClick&&d.onClick(d,m),setTimeout(()=>{i(a+1)},16)}},d.icon?jg.createElement("img",g({},d.icon)):null,h)})))};var ZRt=e=>{let[t,n]=Cg(e),r=e.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule("Dashboard"),o=m=>{let f=m.Toolbars.filter(C=>C),h=e.api.dashboardApi.getCustomToolbars();return f.map(C=>{let y=h&&h.find(v=>v.name==C);if(y){if(r!="Hidden")return Ur.createElement(Z_.Box,{key:y.name,className:"ab-Dashboard__container ab-Dashboard__container--customToolbar"},Ur.createElement(SPe,{customToolbar:y}))}else{let v=C;if(e.api.internalApi.getModuleService().isModuleAvailable(v)){let S=e.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(v),I=Y_.get(v);if(I){let P=e.api.internalApi.getModuleService().getModuleInfoByModule(v),T=Ur.createElement(I,{viewType:"Toolbar",api:e.api,accessLevel:S,moduleInfo:P});return Ur.createElement(Z_.Box,{key:v,className:`ab-Dashboard__container ab-Dashboard__container--${v}`},Ur.createElement(yPe,{moduleInfo:P,accessLevel:r},T))}else Bt("Cannot find Dashboard Control for "+C)}}})},a=()=>{let m=e.DashboardState.ModuleButtons,f=null;return e.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard&&!e.api.internalApi.getEntitlementService().isModuleHiddenEntitlement("SettingsPanel")&&!m.includes("SettingsPanel")&&m.push("SettingsPanel"),m&&(f=m.map((C,y)=>{var S,I,P;let v=e.GridState.ModuleButtonMenuItems.find(T=>T.isVisible&&T.module==C);if(v)return Ur.createElement(re,{"data-name":`dashboard-module-button-${(S=v.module)!=null?S:"custom-"+y}`,key:v.label,variant:v.module==="SystemStatus"?"outlined":"text",tone:v.module==="SystemStatus"?"neutral":"none",className:`ab-DashboardToolbar__Home__${(0,t9.default)(v.label)}`,icon:v.icon,tooltip:v.label,disabled:e.accessLevel=="ReadOnly",onClick:()=>e.dispatch(v.reduxAction),accessLevel:"Full",style:v.module==="SystemStatus"?R(g({},pn.getStyleForMessageType((P=(I=e.api.systemStatusApi.getCurrentSystemStatusMessageInfo())==null?void 0:I.statusType)!=null?P:"Success")),{border:0}):{}})})),f},i=()=>{var h;let m=(h=e.api.dashboardApi.getCustomDashboardButtons())==null?void 0:h.filter(b=>b),f=null;return m&&(f=m.map(b=>{let C={style:{height:"var(--ab-cmp-simple-button__height)",width:"var(--ab-cmp-simple-button__width)"}},y=b.icon&&Object.assign({},C,b.icon),v={adaptableApi:e.api,dashboardState:e.api.dashboardApi.getDashboardState()},S=e.api.internalApi.getStyleForButton(b,v),I=e.api.internalApi.getLabelForButton(b,v),P=e.api.internalApi.getTooltipForButton(b,v);if(b.hidden&&b.hidden(b,v))return null;let T=b.disabled&&b.disabled(b,v);return Ur.createElement(re,{key:I,variant:S&&S.variant?S.variant:"text",tone:S&&S.tone?S.tone:"none",className:`ab-DashboardToolbar__Home__${(0,t9.default)(I)} ${(S==null?void 0:S.className)||""}`,tooltip:P,disabled:T||e.accessLevel=="ReadOnly",onClick:()=>b.onClick(b,v),accessLevel:"Full"},b.icon?Ur.createElement("img",g({},y)):null,I)})),f},l=()=>Ur.createElement(Z_.Box,{ml:2},Ur.createElement(Ii,{type:"text",placeholder:e.api.internalApi.getAdaptableOptions().searchOptions.quickSearchPlaceholder,className:"ab-DashboardToolbar__QuickSearch__text",value:t,OnTextChange:n,style:{width:"auto"},inputStyle:{width:"7rem"}})),u=e.api.internalApi.setToolbarTitle(),d=e.api.internalApi.getAdaptableOptions().dashboardOptions,c=d.showQuickSearchInHeader&&e.api.internalApi.getModuleService().getModuleById(fi).isModuleAvailable();return e.DashboardState.IsHidden?Ur.createElement("div",null):Ur.createElement(gPe,{title:u,canFloat:e.api.internalApi.getAdaptableOptions().dashboardOptions.canFloat,activeTabIndex:e.DashboardState.ActiveTabIndex,onActiveTabIndexChange:m=>{e.onSetActiveTabIndex(m)},collapsed:e.DashboardState.IsCollapsed,onCollapsedChange:m=>{e.onSetIsCollapsed(m)},floating:e.DashboardState.IsFloating,onFloatingChange:m=>{e.onSetIsFloating(m)},inline:e.DashboardState.IsInline,onInlineChange:m=>{e.onSetIsInline(m)},position:e.DashboardState.FloatingPosition,onPositionChange:m=>{if(typeof m=="function"){let f=m(e.DashboardState.FloatingPosition);e.onSetFloatingPosition(f)}else e.onSetFloatingPosition(m)},left:Ur.createElement(Ur.Fragment,null,Ur.createElement(Fc,{className:"ab-Dashboard__application-icon",icon:e.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon}),d.buttonsLocation==="left"&&a()),right:Ur.createElement(Ur.Fragment,null,i(),d.buttonsLocation==="right"&&a(),c&&l()),onShowDashboardPopup:e.onShowDashboardPopup},e.DashboardState.Tabs&&e.DashboardState.Tabs.map((m,f)=>Ur.createElement(bPe,{key:f,title:m.Name},o(m))))};function eEt(e,t){return{DashboardState:e.Dashboard,GridState:e.Grid,SystemStatusMessageInfos:e.System.SystemStatusMessages,QuickSearchText:e.QuickSearch.QuickSearchText}}function tEt(e){return{dispatch:t=>e(t),onSetActiveTabIndex:t=>e(TI(t)),onSetIsCollapsed:t=>e(gi(t)),onSetIsFloating:t=>e(bi(t)),onSetFloatingPosition:t=>e(Aoe(t)),onRunQuickSearch:t=>e(Ts(t)),onShowQuickSearchPopup:()=>e(Rn(fi,"QuickSearchPopup")),onShowDashboardPopup:()=>e(Rn(Tl,"DashboardPopup"))}}var vPe=Ye(eEt,tEt)(ZRt);s();var qo=A(require("react"));var Yg=A(J());var eL=class extends qo.Component{constructor(n){super(n);this.changeContent=n=>{this.setState({PromptText:n.target.value})};this.state={PromptText:""}}render(){let n=this.props.header,r=Wt.getGlyphByMessageType(this.props.messageType);return this.props.showPopup&&qo.createElement(vr,{modal:!0,"data-name":`confirmation-popup confirmation-popup--${this.props.messageType.toLowerCase()}`,isOpen:this.props.showPopup,onDismiss:this.props.onCancel,showCloseButton:!1,style:{minHeight:"auto",maxWidth:"50%"}},qo.createElement(Yl,{header:n,icon:r,variant:"primary"},qo.createElement("div",null,qo.createElement("div",{style:{display:"flex",alignItems:"center"}},this.props.messsage.split(`
|
|
290
290
|
`).map(function(o,a){return qo.createElement(Yg.Text,{key:a,margin:2},o,qo.createElement("br",null))})),this.props.showInputBox&&qo.createElement(Yg.Box,{padding:2,"data-name":"body"},qo.createElement("p",null,"Please enter a comment to confirm"),qo.createElement(Ke,{marginTop:2,width:"100%",value:this.state.PromptText,type:"string",placeholder:"Enter text",onChange:o=>this.changeContent(o)})),qo.createElement(Yg.Flex,{marginTop:3,padding:2,"data-name":"footer"},qo.createElement(re,{tone:"error","data-name":"delete",variant:"raised",disabled:!this.canConfirm(),onClick:()=>this.onConfirmmForm()},this.props.confirmButtonText),qo.createElement("div",{style:{flex:1}}),qo.createElement(re,{"data-name":"cancel",tone:"neutral",variant:"raised",onClick:()=>this.onCancelForm()},this.props.cancelButtonText)))))}onCancelForm(){this.setState({PromptText:""}),this.props.onCancel()}onConfirmmForm(){let n=this.state.PromptText;this.setState({PromptText:""}),this.props.onConfirm(n)}canConfirm(){return this.props.showInputBox?we.IsNotNullOrEmpty(this.state.PromptText):!0}};s();var bm=A(require("react"));var APe=A(J()),tL=class extends bm.Component{render(){return bm.createElement(vr,{modal:!0,isOpen:this.props.showLoadingScreen,onDismiss:this.props.onClose,showCloseButton:!1,style:{minHeight:"auto"}},bm.createElement(APe.Box,{padding:3},bm.createElement("h4",null,"Initialising Grid"),bm.createElement("p",null,"Retrieving your settings and setting up the grid...")))}};s();var nL=A(require("react"));var xPe=A(zC());var ki=(e,t)=>nL.createElement(wy,{store:t.adaptableStore.TheStore},nL.createElement(xPe.ThemeProvider,{theme:Fh},nL.createElement(Oue.Provider,{value:t},e)));s();s();var ip=A(require("react"));s();var su=A(require("react")),RPe=e=>su.createElement("svg",g({width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),su.createElement("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H12.6699V12.6H0V8Z",fill:"#004C79"}),su.createElement("path",{d:"M16.165 0H36.9999C41.4182 0 45 3.58172 45 8V12.6H16.165V0Z",fill:"#004C79"}),su.createElement("path",{d:"M0 32.4H28.8349V45H8C3.58173 45 0 41.4183 0 37V32.4Z",fill:"#004C79"}),su.createElement("path",{d:"M32.3301 32.4H45V37C45 41.4183 41.4182 45 37 45H32.3301V32.4Z",fill:"#004C79"}),su.createElement("rect",{x:"32.3301",y:"16.2001",width:"12.6699",height:"12.6",fill:"#004C79"}),su.createElement("rect",{x:"16.165",y:"16.2001",width:"12.6699",height:"12.6",fill:"#00CAF2"}),su.createElement("rect",{y:"16.2001",width:"12.6699",height:"12.6",fill:"#004C79"}));var EPe=A(J()),ap={border:"1px solid var(--ab-color-error)",padding:"5px",fontWeight:600,margin:"5px",fontSize:"14px",alignItems:"center",color:"var(--ab-color-text-on-defaultbackground)",background:"var(--ab-color-defaultbackground)"},nEt=e=>{let t=[["display","none"],["opacity","0"],["position","absolute"],["position","fixed"],["position","relative"],["visibility","hidden"]];for(let[n,r]of t)if(e.style[n]===r)return!1;return!0},n9=e=>{let t=ip.useRef(null);return ip.useEffect(()=>{let r=setInterval(()=>{var o,a;(o=t.current)!=null&&o.isConnected||alert("It is not allowed to remove the Adaptable watermark."),nEt(t.current)||alert("It is not allowed to modify the Adaptable watermark."),(a=t==null?void 0:t.current)!=null&&a.style&&(t.current.style.border=ap.border,t.current.style.padding=ap.padding,t.current.style.fontWeight=`${ap.fontWeight}`,t.current.style.margin=ap.margin,t.current.style.fontSize=ap.fontSize,t.current.style.color=ap.color,t.current.style.background=ap.background,t.current.style.display="flex",t.current.style.position="static",t.current.style.opacity="1",t.current.style.visibility="visible")},5e3);return()=>clearTimeout(r)},[]),ip.createElement(EPe.Flex,{style:ap,ref:t},ip.createElement(RPe,{style:{marginRight:10}}),ip.createElement("div",null,e.children))};s();var lp=A(require("react"));var sp=require("react");var IPe=()=>{let{active:e,label:t}=rr(m=>m.System.ProgressIndicator),[n,r]=(0,sp.useState)(!1),[o,a]=(0,sp.useState)({top:0,left:0,height:0,width:0}),i=$e(),l=(0,sp.useRef)(i.getAdaptableContainerElement()),u=(0,sp.useRef)(i.getAgGridContainerElement()),d=(m,f)=>{let h="ab-wait-for-progress-indicator";!m.current||(f?m.current.classList.add(h):m.current.classList.remove(h))},c=()=>{if(!u.current)return;let{top:m,left:f,height:h,width:b}=u.current.getBoundingClientRect();a({top:m,left:f,height:h,width:b})};return(0,sp.useEffect)(()=>{d(l,e),d(u,e),c(),requestAnimationFrame(()=>{r(e)})},[e]),lp.createElement(lp.Fragment,null,e&&lp.createElement("div",{className:`ab-progress-indicator-wrapper ${n?"ab-progress-indicator-wrapper--visible":""}`,style:o},lp.createElement("div",{className:"ab-progress-indicator-body"},lp.createElement(AN,null),lp.createElement("span",{style:{marginLeft:"var(--ab-space-2)"}},t))))};s();var hl=A(require("react"));var rEt=()=>hl.createElement(hl.Fragment,null),PPe=()=>{let[e,t]=hl.useState({}),n=$e(),r=Rt(),o=rr(a=>a.Popup.WindowPopup.PopupList);return hl.createElement(hl.Fragment,null,o==null?void 0:o.map((a,i)=>{var h,b,y,v,S,I;let l=(h=tAe[a.Id])!=null?h:rEt,C=(b=a==null?void 0:a.PopupProps)!=null?b:{},{windowModalProps:u}=C,d=qe(C,["windowModalProps"]),c=()=>{r(EY(a.Id))},m=(v=(y=e==null?void 0:e[a.Id])==null?void 0:y.size)!=null?v:pPe(),f=(I=(S=e==null?void 0:e[a.Id])==null?void 0:S.position)!=null?I:$_(m);return hl.createElement(vr,{"data-name":a.Id,style:{height:"100%"},className:"ab-Window-Modal",key:a.Id,windowModal:!0,windowModalProps:R(g({},u),{onChange:P=>{t(T=>R(g({},T),{[a.Id]:P}))},handleSelector:".ab-Window-Modal .ab-Panel__header",size:m,position:f}),fixed:!1,padding:0,onDismiss:c,isOpen:!0,showCloseButton:!0},hl.createElement(Yl,{style:{height:"100%"},bodyProps:{padding:0,height:"100%"},header:a.Title,glyphicon:a.Icon,variant:"primary"},hl.createElement(l,{api:n.api,onDismiss:c,popupProps:d})))}))};s();var ds=A(require("react"));var TPe=A(J());s();function DPe(e){return(e.fields||[]).reduce((t,n)=>{var r;return t[n.name]=(r=n.defaultValue)!=null?r:"",t},{})}var oEt=({id:e,formProps:t,form:n,prepareContext:r})=>{let o=Rt(),a=$e(),[i,l]=ds.useState(()=>DPe(n)),u=()=>{o(IY(e))},d=g({adaptableApi:a.api,formData:i},t);return ds.createElement(vr,{isOpen:!0,showCloseButton:!1,style:{minHeight:"auto",minWidth:400},onDismiss:u},ds.createElement(TPe.Box,{padding:4},ds.createElement(aF,{formDef:n,data:i,context:d,onChange:l,api:a.api,displayTitle:!0,onButtonClick:async c=>{var f;u();let m=typeof r=="function"?await r(d):d;(f=c.onClick)==null||f.call(c,c,m)}})))},wPe=()=>{let e=rr(t=>t.Popup.FormPopup.FormList);return ds.createElement(ds.Fragment,null,e.map(t=>ds.createElement(oEt,{key:t.Id,prepareContext:t.prepareContext,id:t.Id,formProps:t.FormProps,form:t.Form})))};var r9=class extends ea.Component{render(){var n,r,o,a;let t=(a=(o=(r=(n=this.props.AdaptableApi)==null?void 0:n.internalApi)==null?void 0:r.getSystemState())==null?void 0:o.License)==null?void 0:a.watermark;return ea.createElement("div",null,this.props.AdaptableApi.internalApi.getModuleService().isModuleAvailable("Dashboard")&&ea.createElement(vPe,{api:this.props.AdaptableApi}),ea.createElement(tL,{onClose:this.props.onCloseLoadingPopup,showLoadingScreen:this.props.PopupState.LoadingPopup.ShowLoadingPopup}),this.props.PopupState.PromptPopup.ShowPromptPopup&&ea.createElement(fPe,{message:this.props.PopupState.PromptPopup.Message,header:this.props.PopupState.PromptPopup.Header,onClose:this.props.onClosePromptPopup,onConfirm:this.props.onConfirmPromptPopup,onConfirmActionCreator:this.props.PopupState.PromptPopup.ConfirmActionCreator,defaultValue:this.props.PopupState.PromptPopup.DefaultValue}),ea.createElement(eL,{header:this.props.PopupState.ConfirmationPopup.Header,messsage:this.props.PopupState.ConfirmationPopup.Msg,showPopup:this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup,cancelButtonText:this.props.PopupState.ConfirmationPopup.CancelButtonText,confirmButtonText:this.props.PopupState.ConfirmationPopup.ConfirmButtonText,onCancel:this.props.onCancelConfirmationPopup,onConfirm:this.props.onConfirmConfirmationPopup,showInputBox:this.props.PopupState.ConfirmationPopup.ShowInputBox,messageType:this.props.PopupState.ConfirmationPopup.MessageType,api:this.props.AdaptableApi}),Boolean(this.props.PopupState.ScreenPopup.ShowScreenPopup)&&ea.createElement(e9,{componentName:this.props.PopupState.ScreenPopup.ComponentName,componentModule:this.props.PopupState.ScreenPopup.ComponentModule,onHide:this.props.onCloseScreenPopup,api:this.props.AdaptableApi,onClearParams:()=>this.props.onClearPopupParams(),moduleParams:this.props.PopupState.ScreenPopup.Params,moduleProps:this.props.PopupState.ScreenPopup.PopupProps}),ea.createElement(BR,{limit:this.props.AdaptableApi.internalApi.getAdaptableOptions().notificationsOptions.maxNotifications,closeButton:!1,icon:!1,theme:"colored"}),(t==null?void 0:t.show)&&ea.createElement(n9,null,t==null?void 0:t.text),ea.createElement(PPe,null),ea.createElement(wPe,null),ea.createElement(IPe,null))}};function aEt(e,t){return{PopupState:e.Popup,SystemState:e.System,AdaptableApi:t.Adaptable.api}}function iEt(e){return{onCloseScreenPopup:()=>e(Ss()),onCloseAlertPopup:()=>e(dA()),onClosePromptPopup:()=>e(wY()),onConfirmPromptPopup:t=>e(OY(t)),onConfirmConfirmationPopup:t=>e(FY(t)),onCancelConfirmationPopup:()=>e(MY()),showPopup:(t,n,r)=>e(Rn(t,n,r)),onClearPopupParams:()=>e(uf())}}var lEt=Ye(aEt,iEt)(r9),OPe=({Adaptable:e})=>ki(ea.createElement(lEt,{Adaptable:e}),e);s();var uu=A(require("react")),UPe=A(zC()),vm=require("react");s();var FPe=(e,t)=>{if(!Array.isArray(e)||!e.length)return{primaryKey:void 0,columns:[],data:[]};let n=[],r=[],o;if(Array.isArray(e[0])){n=e[0];for(let a=1,i=e.length;a<i;a++){let l=e[a],u={};for(let d=0;d<n.length;d++)u[n[d]]=l[d];r.push(u)}}else n=Object.keys(e[0]),r=e;return o=n[0],{primaryKey:o,columns:n,data:r}},o9={string:"abColDefString",number:"abColDefNumber",boolean:"abColDefBoolean",date:"abColDefDate"},sEt="abColDefCustom",uEt=e=>{let n=o9[typeof e]||o9.string;return e instanceof Date&&(n=o9.date),Array.isArray(e)&&e.length&&typeof e[0]=="number"&&(n=sEt),n},MPe=e=>{let t=e.data[0],n=e.columns.map(o=>{let a=t[o],i=uEt(a);return{headerName:o,field:o,type:i,filter:!0,sortable:!0,enableRowGroup:!0,resizable:!0,editable:!0}});return{defaultColDef:{floatingFilter:!0},rowData:e.data,columnDefs:n,enableRangeSelection:!0,rowSelection:"multiple",rowHeight:30}};var WPe=A(J());s();var sr=A(require("react")),a9=A(J()),aL=require("react");s();var tn=A(require("react"));s();var NPe=require("react"),dEt=(e,t,n,r)=>{r=r||{};let o=r.onChange||((c,m)=>{}),a=r.onBatchChange||(c=>{}),[i,l]=(0,NPe.useState)(e.reduce((c,m)=>(c[m.field]=n?m[n]:t,c),{})),u=c=>e.filter(m=>m.field===c)[0],d={selected:i,isSelected:c=>!!i[c],isAllSelected:()=>Object.keys(i).length===e.length,isNoneSelected:()=>Object.keys(i).length===0,selectColumn:c=>{i[c]||(l(R(g({},i),{[c]:!0})),o(u(c),!0))},deselectColumn:c=>{if(i[c]){let m=g({},i);delete m[c],l(m),o(u(c),!1)}},toggleColumn:c=>{d.isSelected(c)?d.deselectColumn(c):d.selectColumn(c)},deselectAll:()=>{l({}),e.forEach(c=>{o(c,!1)}),a(!1)},selectAll:()=>{l(e.reduce((c,m)=>(c[m.field]=!0,c),{})),a(!0)}};return d},Cm=dEt;s();var Sm=A(require("react")),Kg=require("react"),LPe=A(J());s();var rL=A(require("react"));var pEt=()=>rL.createElement("div",{style:{display:"flex",flexFlow:"column",position:"absolute",fill:"var(--ab-cmp-dropdown__fill)",top:"50%",right:"var(--ab-space-1)",transform:"translate3d(0px, -50%, 0px)",cursor:"pointer"}},rL.createElement(Ct,{name:"triangle-up",size:24,style:{position:"relative",top:7}}),rL.createElement(Ct,{name:"triangle-down",size:24,style:{position:"relative",top:-7}})),_Pe=pEt;var ym="ab-Dropdown",cEt=e=>{let oe=e,{options:t,multiple:n,name:r,autoFocus:o,showEmptyItem:a=!0,showClearButton:i,disabled:l,allowSearch:u,clearButtonProps:d,value:c,onChange:m,style:f,onExpand:h}=oe,b=qe(oe,["options","multiple","name","autoFocus","showEmptyItem","showClearButton","disabled","allowSearch","clearButtonProps","value","onChange","style","onExpand"]);i!==!1&&(i=!0);let[C,y]=fn(e,"value",void 0,{onChange:e.onChange}),v=null,[S,I]=(0,Kg.useState)([]),P=()=>{h&&h()};if(typeof t=="function"){let ae=t;P=()=>{let ee=ae();I(ee),h&&h()},t=S}let T=e.emptyText||e.placeholder||"Select an option",O=t.map(ae=>(typeof ae=="string"&&(ae={label:ae,value:ae}),C===ae.value&&(v=ae),ae));a&&O.splice(0,0,{label:T,value:""});let _=(ae,ee)=>{y(ae&&ae.value,ee,ae)},M=(0,Kg.useRef)(null),x=(0,Kg.useRef)(null),[D,N]=(0,Kg.useState)(!1),q=ae=>{if(ae.target===M.current){N(!0);return}ae.target===x.current&&M.current.focus()},F=()=>{N(!1)},k=v?v.label:null,Y=e.renderLabel?e.renderLabel(k,v):k;v||(Y=T);let Z=()=>Sm.createElement(re,R(g({variant:"text",icon:"clear",tone:"none",tooltip:"Clear",iconSize:20,px:0,py:0,marginRight:1},d),{style:g({zIndex:10,color:"inherit"},d?d.style:null),onClick:ae=>{ae.preventDefault(),_(null,ae)}}));return Sm.createElement(LPe.Flex,R(g({ref:x,flexDirection:"row",alignItems:"center"},b),{className:He(e.className,ym,v?`${ym}--not-empty`:`${ym}--empty`,D?`${ym}--focused`:`${ym}--not-focused`,l?`${ym}--disabled`:null),style:f,tabIndex:D?-1:e.tabIndex||0,onFocus:q,onBlur:F}),Sm.createElement("div",{style:{display:"inline-block"},className:`${ym}__text`},Y,Sm.createElement(_Pe,null)),Sm.createElement("select",{ref:M,tabIndex:-1,disabled:l,value:C==null?"":C,onChange:ae=>{let ee=O.filter(Se=>Se.value==ae.target.value)[0];_(ee,ae)},style:{opacity:0,width:"100%",height:"100%",top:0,left:0,zIndex:1},onMouseDown:P,name:r,multiple:n,autoFocus:o},O.map(ae=>Sm.createElement("option",{key:ae.value,value:ae.value},ae.label))),i&&v?Z():null)},kPe=cEt;var oL=require("react");var mEt=[{value:"abColDefString",label:"Text (string)"},{value:"abColDefNumber",label:"Number"},{value:"abColDefDate",label:"Date"},{value:"abColDefBoolean",label:"Boolean"}],BPe={width:"100%",minWidth:50,textAlign:"start"},fEt=()=>{let[,e]=(0,oL.useState)(Date.now());return()=>{e(Date.now())}},hEt=({columns:e,handle:t,onValidityChange:n})=>{let r=fEt(),o=(0,oL.useRef)(e),a=Ne=>{o.current=Ne},i=Ne=>{a(Ne),r()},l=()=>o.current,u=o.current,d=(Ne,nn,It)=>{Ne=R(g({},Ne),{[It]:nn});let gr=l().map(kn=>kn.field===Ne.field?Ne:kn);i(gr)},c=(Ne,nn)=>{let It=l().map(gr=>R(g({},gr),{[nn]:Ne}));i(It)},m=(Ne,nn)=>{let It=l().map(gr=>gr.field===nn?R(g({},gr),{caption:Ne}):gr);a(It)},f=(Ne,nn)=>{let It=l().map(gr=>gr.field===Ne.field?R(g({},gr),{type:nn}):gr);i(It)},[h,b]=tn.useState(u[0].field),{selected:C,isSelected:y,isAllSelected:v,isNoneSelected:S,selectColumn:I,deselectColumn:P,selectAll:T,deselectAll:O}=Cm(u,!0,null);t.current={getColumns:()=>l().filter(Ne=>y(Ne.field)),getPrimaryKey:()=>h};let{isSelected:_,isAllSelected:M,isNoneSelected:x,selectColumn:D,deselectColumn:N,selectAll:q,deselectAll:F}=Cm(u,!0,"sortable",{onBatchChange:Ne=>{c(Ne,"sortable")},onChange:(Ne,nn)=>{d(Ne,nn,"sortable")}}),{isSelected:k,isAllSelected:Y,isNoneSelected:Z,selectColumn:oe,deselectColumn:ae,selectAll:ee,deselectAll:Se}=Cm(u,!0,"enableRowGroup",{onBatchChange:Ne=>{c(Ne,"enableRowGroup")},onChange:(Ne,nn)=>{d(Ne,nn,"enableRowGroup")}}),{isSelected:se,isAllSelected:X,isNoneSelected:ye,selectColumn:ue,deselectColumn:fe,selectAll:Te,deselectAll:ke}=Cm(u,!0,"resizable",{onBatchChange:Ne=>{c(Ne,"resizable")},onChange:(Ne,nn)=>{d(Ne,nn,"resizable")}}),{isSelected:et,isAllSelected:ce,isNoneSelected:dn,selectColumn:Be,deselectColumn:w,selectAll:V,deselectAll:L}=Cm(u,!0,"editable",{onBatchChange:Ne=>{c(Ne,"editable")},onChange:(Ne,nn)=>{d(Ne,nn,"editable")}}),{isSelected:ge,isAllSelected:Me,isNoneSelected:Ve,selectColumn:rt,deselectColumn:At,selectAll:Ft,deselectAll:Pn}=Cm(u,!0,"filter",{onBatchChange:Ne=>{c(Ne,"filter")},onChange:(Ne,nn)=>{d(Ne,nn,"filter")}}),wn=v(),xn=S(),fo=[{Content:"Primary Key",Size:3,key:"pk"},{key:"included",Content:tn.createElement("b",null,tn.createElement("div",null,"Included"),tn.createElement(pe,{checked:wn?!0:xn?!1:null,onChange:Ne=>{Ne?T():O()}})),Size:3},{Content:"Field",Size:5,key:"field"},{Content:"Type",Size:4,key:"size"},{key:"sortable",Content:tn.createElement("b",null,tn.createElement("div",null,"Sortable"),tn.createElement(pe,{checked:M()?!0:x()?!1:null,onChange:Ne=>{Ne?q():F()}})),Size:3},{key:"editable",Content:tn.createElement("b",null,tn.createElement("div",null,"Editable"),tn.createElement(pe,{checked:ce()?!0:dn()?!1:null,onChange:Ne=>{Ne?V():L()}})),Size:3},{Size:3,key:"resizable",Content:tn.createElement("b",null,tn.createElement("div",null,"Resizable"),tn.createElement(pe,{checked:X()?!0:ye()?!1:null,onChange:Ne=>{Ne?Te():ke()}}))},{Size:3,key:"enableRowGroup",Content:tn.createElement("b",null,tn.createElement("div",null,"Groupable"),tn.createElement(pe,{checked:Y()?!0:Z()?!1:null,onChange:Ne=>{Ne?ee():Se()}}))},{Content:tn.createElement("b",null,tn.createElement("div",null,"Filterable"),tn.createElement(pe,{checked:Me()?!0:Ve()?!1:null,onChange:Ne=>{Ne?Ft():Pn()}})),Size:3,key:"filterable"}],Jn=u.map(Ne=>{var kn;let nn=Ne.field===h,It=fo.map(rn=>g({},rn));It[0].Content=tn.createElement(We,{checked:nn,onChange:rn=>{rn&&y(Ne.field)&&b(Ne.field)}}),It[1].Content=tn.createElement(pe,{checked:y(Ne.field),onChange:rn=>{rn?I(Ne.field):P(Ne.field)}});let gr=Qe.Humanize(Ne.field);return It[2].Content=tn.createElement(Ke,{style:BPe,defaultValue:Ne.caption!=null?Ne.caption:gr,placeholder:gr,onChange:rn=>{m(rn.target.value,Ne.field)}}),It[3].Content=tn.createElement(kPe,{style:BPe,showClearButton:!1,options:mEt,value:(kn=Ne==null?void 0:Ne.type)!=null?kn:"",onChange:f.bind(null,Ne)}),It[4].Content=tn.createElement(pe,{checked:_(Ne.field),onChange:rn=>{rn?D(Ne.field):N(Ne.field)}}),It[5].Content=tn.createElement(pe,{checked:et(Ne.field),onChange:rn=>{rn?Be(Ne.field):w(Ne.field)}}),It[6].Content=tn.createElement(pe,{checked:se(Ne.field),onChange:rn=>{rn?ue(Ne.field):fe(Ne.field)}}),It[7].Content=tn.createElement(pe,{checked:k(Ne.field),onChange:rn=>{rn?oe(Ne.field):ae(Ne.field)}}),It[8].Content=tn.createElement(pe,{checked:ge(Ne.field),onChange:rn=>{rn?rt(Ne.field):At(Ne.field)}}),tn.createElement(hr,{key:Ne.field,colItems:It,style:{cursor:"pointer"}})});return tn.useEffect(()=>{n(y(h))},[C,h]),tn.createElement(wi,{headerAlign:"flex-start",style:{display:"flex",flex:"1 1 auto",overflow:"auto",flexFlow:"column",textAlign:"center"},colItems:fo,items:Jn})};function gEt(){return!0}var VPe=tn.memo(hEt,gEt);s();var Ht=A(require("react"));var WS=A(J());var bEt=e=>{var d;let t=e.adaptableOptions,n=g(g({},Kt.layoutOptions),t.layoutOptions),r=g(g({},Kt.generalOptions),t.generalOptions),o=g(g({},Kt.adaptableQLOptions),t.adaptableQLOptions),a=g(g({},Kt.userInterfaceOptions),t.userInterfaceOptions),i=g(g({},Kt.searchOptions),t.searchOptions),l=g(g({},Kt.filterOptions),t.filterOptions),u=g(g({},Kt.gridOptions),t.gridOptions);return Ht.createElement(Ht.Fragment,null,Ht.createElement(Nt,null,"General Options"),Ht.createElement(Je,{margin:2,columns:[{name:"children"},{name:"label",style:{textAlign:"start"}}]},Ht.createElement(de,{label:"Show Missing Primary Key Warning"},Ht.createElement(pe,{checked:r.showMissingPrimaryKeyAlert,onChange:c=>{t=g({},t),t.generalOptions=g({},t.generalOptions),t.generalOptions.showMissingPrimaryKeyAlert=c,e.onChangeadaptableOptions(t)}}))),Ht.createElement(Nt,null,"Grid Options"),Ht.createElement(Je,{margin:2,columns:[{name:"children"},{name:"label",style:{textAlign:"start"}}]},Ht.createElement(de,{label:"Enable Range Selection"},Ht.createElement(pe,{checked:u.enableRangeSelection,onChange:c=>{t=g({},t),t.gridOptions=g({},t.gridOptions),t.gridOptions.enableRangeSelection=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Show Quick Filter"},Ht.createElement(pe,{checked:(d=u.defaultColDef)==null?void 0:d.floatingFilter,onChange:c=>{t=g({},t),t.gridOptions=g({},t.gridOptions),t.gridOptions.defaultColDef={floatingFilter:c},e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Suppress Column Virtualisation"},Ht.createElement(pe,{checked:u.suppressColumnVirtualisation,onChange:c=>{t=g({},t),t.gridOptions=g({},t.gridOptions),t.gridOptions.suppressColumnVirtualisation=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Show Column Menu Button"},Ht.createElement(pe,{checked:u.suppressMenuHide,onChange:c=>{t=g({},t),t.gridOptions=g({},t.gridOptions),t.gridOptions.suppressMenuHide=c,e.onChangeadaptableOptions(t)}}))),Ht.createElement(Nt,null,"Layout Options"),Ht.createElement(Je,{margin:2,columns:[{name:"children"},{name:"label",style:{textAlign:"start"}}]},Ht.createElement(de,{label:"Auto Save Layouts"},Ht.createElement(pe,{checked:n.autoSaveLayouts,onChange:c=>{t=g({},t),t.layoutOptions=g({},t.layoutOptions),t.layoutOptions.autoSaveLayouts=c,e.onChangeadaptableOptions(t)}}))),Ht.createElement(Nt,null,"Search Options"),Ht.createElement(Je,{margin:2,columns:[{name:"children"},{name:"label",style:{textAlign:"start"}}]},Ht.createElement(de,{label:"Case Sensitive Text Comparison"},Ht.createElement(pe,{checked:o.caseSensitiveTextComparisons,onChange:c=>{t=g({},t),t.adaptableQLOptions=g({},t.adaptableQLOptions),t.adaptableQLOptions.caseSensitiveTextComparisons=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Use AG Grid Filter Form Style"},Ht.createElement(pe,{checked:l.useAgGridFilterFormStyle,onChange:c=>{t=g({},t),t.filterOptions=g({},t.filterOptions),t.filterOptions.useAgGridFilterFormStyle=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Use Adaptable Quick Filter"},Ht.createElement(pe,{checked:l.useAdaptableQuickFilter==!0,onChange:c=>{t=g({},t),t.filterOptions=g({},t.filterOptions),t.filterOptions.useAdaptableQuickFilter=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Use Adaptable Filter Form"},Ht.createElement(pe,{checked:l.useAdaptableFilterForm==!0,onChange:c=>{t=g({},t),t.filterOptions=g({},t.filterOptions),t.filterOptions.useAdaptableFilterForm=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Indicate Filtered Columns"},Ht.createElement(pe,{checked:l.indicateFilteredColumns,onChange:c=>{t=g({},t),t.filterOptions=g({},t.filterOptions),t.filterOptions.indicateFilteredColumns=c,e.onChangeadaptableOptions(t)}})),Ht.createElement(de,{label:"Auto Apply Filter"},Ht.createElement(pe,{checked:l.autoApplyFilter,onChange:c=>{t=g({},t),t.filterOptions=g({},t.filterOptions),t.filterOptions.autoApplyFilter=c,e.onChangeadaptableOptions(t)}}))),Ht.createElement(WS.Flex,{flexDirection:"row",alignItems:"center",margin:2},Ht.createElement(WS.Text,{style:{flex:3},marginRight:2},"Max Column Value Items To Display"),Ht.createElement(WS.Flex,{flex:7,flexDirection:"row",alignItems:"center"},Ht.createElement(Ke,{style:{flex:1},type:"number",placeholder:"Enter Number",onChange:c=>{let m=c.target,f=parseInt(m.value);t=g({},t),t.filterOptions=g({},t.filterOptions),t.filterOptions.maxFilterValuesToDisplay=f,e.onChangeadaptableOptions(t)},value:l.maxFilterValuesToDisplay,marginRight:3}))))},GPe=bEt;var CEt=e=>{let[t,n]=(0,aL.useState)(e.adaptableOptions),[r,o]=(0,aL.useState)(!0),[a,i]=(0,aL.useState)(0),l=r;t.adaptableId||(l=!1);let u=l&&a===0,d=sr.useRef(),c=C=>{let y=g({},t);y.adaptableId=C.target.value,n(y)},m=()=>{let C=g({},t);C.gridOptions=g({},t.gridOptions),C.gridOptions.columnDefs=d.current.getColumns().map(y=>{let v=R(g({},y),{headerName:y.caption||Qe.Humanize(y.field)});return delete v.caption,v}),C.primaryKey=d.current.getPrimaryKey(),n(C),e.onFinish(C)},f=()=>{i(1)},h=sr.createElement(sr.Fragment,null,sr.createElement(Gt,{header:"Configure AdapTable",border:"none",bodyScroll:!1,bodyProps:{padding:0,style:{overflow:"auto",display:"flex",flexFlow:"column"}},borderRadius:"none",style:{fontSize:16,flex:1}},sr.createElement(Gt,{style:{minHeight:50},border:"none"},sr.createElement(Je,null,sr.createElement(de,{label:"AdaptableId"},sr.createElement(Ke,{value:t.adaptableId,onChange:c,style:{minWidth:"20rem"}})))),sr.createElement(VPe,{handle:d,onValidityChange:C=>{o(C)},columns:t.gridOptions.columnDefs})));return sr.createElement(vr,{modal:!0,isOpen:!0,showCloseButton:!1},sr.createElement(a9.Flex,{flexDirection:"column",style:{height:"100%",width:"90vw",maxWidth:1e3,maxHeight:"90vh"}},a===0?h:sr.createElement(sr.Fragment,null,sr.createElement(Gt,{header:"Configure AdapTable",border:"none",style:{flex:1,overflow:"auto"}},sr.createElement(GPe,{adaptableOptions:t,onChangeadaptableOptions:C=>{n(C)}}))),sr.createElement(a9.Flex,{flexDirection:"row",padding:2,backgroundColor:"primary",alignItems:"center"},sr.createElement(re,{tone:"neutral",variant:"text",tooltip:"Cancel configuration ",onClick:e.onCancel},"Cancel"),sr.createElement("div",{style:{flex:1}}),sr.createElement(re,{variant:"outlined",onClick:()=>i(0),disabled:a===0,marginRight:2,tone:"neutral"},"Back"),sr.createElement(re,{variant:"outlined",onClick:f,disabled:!u,marginRight:2,tone:"neutral"},"Next"),sr.createElement(re,{tone:"accent",variant:"raised",icon:"check",onClick:m,disabled:!l},"Finish"))))},HPe=CEt;var yEt=e=>uu.createElement(UPe.ThemeProvider,{theme:Fh},uu.createElement(xEt,g({},e))),SEt={dropped:!1},vEt=(e,t)=>t.type==="DROPPED"?R(g({},e),{adaptableOptions:t.payload,dropped:!0,error:null}):t.type==="ERROR"?R(g({},e),{dropped:!1,error:t.payload}):t.type==="CANCEL"?R(g({},e),{error:null,dropped:!1}):e,AEt=e=>{if(!e||!Array.isArray(e.columns))throw"We can't find any columns in your configuration";if(!e.columns.length)throw"You should have at least one column";if(!e.columns.reduce((n,r)=>!r||typeof r!="string"?!1:n,!0))throw"Some of your columns are not strings";if(!Array.isArray(e.data))throw"We can't find the data array in your configuration";return!0},xEt=e=>{let[t,n]=(0,vm.useReducer)(vEt,R(g({},SEt),{adaptableOptions:e.adaptableOptions})),[r,o]=(0,vm.useState)(Date.now()),[a,i]=(0,vm.useState)(!1),l=(c,m)=>{let f=(e.prepareData||FPe)(c,m);try{AEt(f)}catch(y){return n({type:"ERROR",payload:`Invalid adaptable configuration - ${y}`})}let h=MPe(f),b=g({},e.adaptableOptions);b.adaptableId=b.adaptableId||(m?m.name:""),b.gridOptions=h,f.primaryKey&&(b.primaryKey=f.primaryKey),(e.fetchData?Boolean(e.showFetchDataWizard):!0)?n({type:"DROPPED",payload:b}):e.onInit(b)},u;t.dropped&&(u=uu.createElement(HPe,{adaptableOptions:t.adaptableOptions,onCancel:()=>{o(Date.now()),n({type:"CANCEL"})},onFinish:c=>{e.onInit(c)}})),(0,vm.useEffect)(()=>{e.fetchData&&(i(!0),e.fetchData().then(c=>{l(c),i(!1)}))},[]);let d=!e.fetchData;return uu.createElement(uu.Fragment,null,d&&uu.createElement(hIe,{key:r,className:"ab-nocode-wizard",toJSON:e.fileContentsToJSON,readFile:e.readFile,fileAccept:e.fileAccept,helpText:e.helpText,message:t.error,defaultText:e.defaultActionMessage,dragOverText:e.dragOverActionMessage,loadingText:e.loadingMessage,onDropSuccess:l}),a&&uu.createElement(WPe.Flex,{className:"ab-nocode-wizard",alignItems:"center",justifyContent:"center",flexDirection:"column"},e.loadingMessage||"Loading ..."),u)},iL=yEt;s();var Po=A(require("react")),l9=A(PS());var $Pe=require("react-dom"),uL=A(J());s();var lL=A(require("react"));var $g=class extends lL.Component{render(){return lL.createElement(re,R(g({"data-name":"configure",tooltip:"Configure",iconSize:18,icon:"build"},this.props),{variant:"text"}))}};s();var dp=A(require("react"));s();var up=A(require("react")),Xg=require("react");var QPe=A(PS()),jPe=e=>{var u;let{customToolPanel:t}=e,{api:n}=$e(),r=(0,Xg.useRef)(),o=`ab-ToolPanel__${t.name}__contents`,a=`ab-ToolPanel__${t.name}__buttons`,[i,l]=(0,Xg.useState)("");return(0,Xg.useLayoutEffect)(()=>{let d=r.current;if(qPe(t)){let c=t.render({visible:!0,node:d,adaptableApi:n});l(c)}else zPe(t)&&n.internalApi.createFrameworkComponent(d,t.frameworkComponent,"toolPanel");return()=>{qPe(t)?t.render({visible:!1,node:d,adaptableApi:n}):zPe(t)&&n.internalApi.destroyFrameworkComponent(d,t.frameworkComponent,"toolPanel")}},[]),up.createElement(up.Fragment,null,up.createElement("div",{ref:r,id:o,className:o,dangerouslySetInnerHTML:{__html:i},style:{width:"100%"}}),((u=t.buttons)==null?void 0:u.length)&&up.createElement("div",{id:a,className:`ab-ToolPanel__custom-content__buttons ${a}`},t.buttons.map(d=>{let c={style:{height:"var(--ab-cmp-simple-button__height)",width:"var(--ab-cmp-simple-button__width)"}},m=d.icon&&Object.assign({},c,d.icon),f={adaptableApi:n,toolPanelState:n.toolPanelApi.getToolPanelState(),customToolPanel:t},h=n.internalApi.getStyleForButton(d,f),b=n.internalApi.getLabelForButton(d,f),C=n.internalApi.getTooltipForButton(d,f);if(d.hidden&&d.hidden(d,f))return null;let y=d.disabled&&d.disabled(d,f),v=h&&h.variant?h.variant:"text",S=h&&h.tone?h.tone:"none",I=b!=null?b:Kl();return up.createElement(re,{key:I,variant:v,tone:S,className:`ab-ToolPanel__Home__${(0,QPe.default)(b)} ${(h==null?void 0:h.className)||""}`,tooltip:C,disabled:y,onClick:()=>d.onClick(d,f),accessLevel:"Full"},d.icon?up.createElement("img",g({},m)):null,b)})))},qPe=e=>e.render,zPe=e=>e.frameworkComponent;var KPe=A(J());s();var Bi=A(require("react"));s();var sL=A(require("react"));var Jg=class extends sL.Component{render(){return sL.createElement(re,R(g({"data-name":"close",tooltip:"Close",iconSize:20,icon:"clear"},this.props),{variant:"text"}))}};var YPe=A(J());var qS=class extends Bi.Component{render(){let d=this.props,{useDefaultPanelStyle:t,isMinimised:n,onMinimiseChanged:r,headerText:o,onClose:a,onConfigure:i}=d,l=qe(d,["useDefaultPanelStyle","isMinimised","onMinimiseChanged","headerText","onClose","onConfigure"]),u=Bi.createElement(Bi.Fragment,null,n?Bi.createElement(Mg,{className:"ab-ToolPanelPanel__header-maximise",onClick:()=>r(),marginRight:1}):Bi.createElement(Fg,{className:"ab-ToolPanelPanel__header-minimise",onClick:()=>r(),marginRight:1}),Bi.createElement(YPe.Flex,{className:"ab-ToolPanelPanel__header-text",flex:1,alignItems:"center",marginLeft:0},o),i&&Bi.createElement($g,{iconSize:16,marginLeft:1,className:"ab-ToolPanelPanel__header-configure-button",tooltip:"Configure "+o,onClick:()=>i()}),a&&Bi.createElement(Jg,{marginLeft:0,className:"ab-ToolPanelPanel__header-close-button",tooltip:"Close "+o,onClick:()=>a(),disabled:l.disabled}));return Bi.createElement(Gt,R(g({border:"var(--ab-cmp-toolpanelpanel__border)"},l),{className:He("ab-ToolPanelPanel",l.className),header:u,style:g({color:"var(--ab-cmp-toolpanelpanel__color)",fill:"var(--ab-cmp-toolpanelpanel__fill)"},l.style),headerProps:R(g({},l.headerProps),{alignItems:"stretch",style:g({padding:"var(--ab-cmp-toolpanelpanel_header__padding)",background:"var(--ab-cmp-toolpanelpanel_header__background)",color:"var(--ab-cmp-toolpanelpanel_header__color)",fill:"var(--ab-cmp-toolpanelpanel_header__fill)"},l.headerProps?l.headerProps.style:null)}),bodyProps:R(g({},l.bodyProps),{style:R(g({padding:"var(--ab-cmp-dashboardpanel_body__padding)",background:"var(--ab-cmp-dashboardpanel_body__background)"},l.bodyProps?l.bodyProps.style:null),{display:"flex",flexDirection:"column"})})}))}};qS.defaultProps={headerText:"",onClose:null,onConfigure:null,onMinimiseChanged:null,isMinimised:!0};var i9=e=>{let{adaptableToolPanel:t,customToolPanel:n,visibilityMode:r,onVisibilityModeChange:o}=e,{api:a}=$e(),i=()=>{var b;if(t){let C=a.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(t),y=a.internalApi.getModuleService().getModuleInfoByModule(t),v=Y_.get(t);return[t,y.FriendlyName,v?dp.createElement(v,{viewType:"ToolPanel",api:a,accessLevel:C,moduleInfo:y}):null,y]}else return[n.name,(b=n==null?void 0:n.title)!=null?b:n.name,dp.createElement(jPe,{customToolPanel:n})]},[l,u,d,c]=i(),m=r==="collapsed",f=!!c&&l!=="OpenFin"&&l!=="IPushPull"&&l!=="Glue42",h=a.internalApi.getModuleService().getModuleById(Ml).isModuleEditable();return dp.createElement(dp.Fragment,null,d&&dp.createElement(KPe.Box,{marginTop:1,className:`ab-ToolPanel__container ab-ToolPanel__container--${l}`},dp.createElement(qS,{className:`ab-ToolPanel__${l}`,"data-name":`ab-ToolPanel__${l}`,headerText:u,disabled:!h,onMinimiseChanged:()=>{o(m?"expanded":"collapsed")},isMinimised:m,onConfigure:f?()=>{let b=a.internalApi.getModuleService().getPopupMaxWidth(c.ModuleName),C=b?{maxWidth:b,source:"Toolbar"}:{source:"Toolbar"};a.internalApi.dispatchReduxAction(Rn(c.ModuleName,c.Popup,C))}:null,onClose:()=>a.internalApi.dispatchReduxAction(wI(l))},m?null:d)))};var REt=e=>e.preventDefault(),EEt=e=>{var T;let t=Po.createElement(Ct,{name:"align-justify"}),n=e.api.internalApi.getEntitlementService(),r=e.api.internalApi.getModuleService(),o=e.api.internalApi.getAdaptableOptions(),a=o.toolPanelOptions,i=o.settingsPanelOptions;if(n.isModuleHiddenEntitlement("ToolPanel"))return Po.createElement(Nt,{mt:2,mb:2,p:2,style:{fontSize:"var(--ab-font-size-3)"}},"Not enough rights");let u=e.MainMenuItems.filter(O=>O.isVisible).map(O=>O.module);n.isModuleHiddenEntitlement("Dashboard")||u.push("Dashboard"),e.api.pluginsApi.getipushpullPluginApi()&&!n.isModuleHiddenEntitlement("IPushPull")&&u.push("IPushPull"),e.api.pluginsApi.getOpenFinPluginApi()&&!n.isModuleHiddenEntitlement("OpenFin")&&u.push("OpenFin");let d=yg.filter(O=>De.ContainsItem(u,O)),c=(O,_)=>{_==="expanded"?e.onExpandToolPanel(O):e.onCollapseToolPanel(O)},m=e.api.internalApi.getModuleService().getModuleById(Ml).isModuleEditable(),f=[],h=((T=e.ToolPanels)!=null?T:[]).map(O=>{var x;let _=(x=O.VisibilityMode)!=null?x:"collapsed",M=e.api.toolPanelApi.getCustomToolPanelByName(O.Name);if(M)return f.push(M.name),Po.createElement(i9,{key:M.name,customToolPanel:M,visibilityMode:_,onVisibilityModeChange:D=>c(M.name,D)});if(d.some(D=>D===O.Name)){let D=O.Name;return f.push(D),Po.createElement(i9,{key:D,adaptableToolPanel:D,visibilityMode:_,onVisibilityModeChange:N=>c(D,N)})}}),b=()=>{if(!a.showToolPanelsDropdown)return;let O=[{clickable:!1,label:Po.createElement("div",{key:"toolPanelTitle"}," ","\xA0\xA0",Po.createElement("b",null,"Tool Panels"),I("ToolPanels"))}],_=x=>f.includes(x),M=(x,D,N)=>({id:x,onClick:()=>{S(x,!N)},label:Po.createElement(pe,{className:"ab-dd-checkbox",variant:"agGrid",my:0,as:"div",value:x,key:x,checked:N,onMouseDown:REt},x)});return e.api.toolPanelApi.getCustomToolPanels().forEach(x=>{let D=x.name;O.push(M(D,D,_(D)))}),d.forEach(x=>{let D=r.getModuleInfoByModule(x).FriendlyName;O.push(M(x,D,_(x)))}),O.sort((x,D)=>x.label<D.label?-1:x.label>D.label?1:0),Po.createElement(Ze,{variant:"text",tone:"none",collapseOnItemClick:!1,key:"dropdown-toolpanels",id:"dropdown-toolpanels",className:"ab-ToolPanel__toolbars",columns:["label"],items:O,tooltip:"Manage Tool Panels"},t)},C=()=>{let O=[],_=e.ModuleButtons;return i.alwaysShowInToolPanel&&!e.api.internalApi.getEntitlementService().isModuleHiddenEntitlement("SettingsPanel")&&!_.includes("SettingsPanel")&&(_=["SettingsPanel",..._]),_!=null&&_.length&&O.push(_.map(x=>{let D=e.MainMenuItems.find(N=>N.isVisible&&N.module==x);if(D)return Po.createElement(re,{"data-name":D.module,key:D.label,icon:D.icon,tone:"none",variant:"text",className:`ab-ToolPanel__Home__${(0,l9.default)(D.label)}`,tooltip:D.label,onClick:()=>e.onClick(D.reduxAction),accessLevel:"Full"})})),O},y=()=>e.api.toolPanelApi.getCustomToolPanelButtons().map(O=>{let _={style:{height:"var(--ab-cmp-simple-button__height)",width:"var(--ab-cmp-simple-button__width)"}},M=O.icon&&Object.assign({},_,O.icon),x={adaptableApi:e.api,toolPanelState:e.api.toolPanelApi.getToolPanelState()},D=e.api.internalApi.getStyleForButton(O,x),N=e.api.internalApi.getLabelForButton(O,x),q=e.api.internalApi.getTooltipForButton(O,x);if(O.hidden&&O.hidden(O,x))return null;let F=O.disabled&&O.disabled(O,x),k=D&&D.variant?D.variant:"text",Y=D&&D.tone?D.tone:"none",Z=N!=null?N:Kl();return Po.createElement(re,{key:Z,variant:k,tone:Y,className:`ab-ToolPanel__Home__${(0,l9.default)(N)} ${(D==null?void 0:D.className)||""}`,tooltip:q,disabled:F,onClick:()=>O.onClick(O,x),accessLevel:"Full"},O.icon?Po.createElement("img",g({},M)):null,N)}),v=O=>{let _=e.api.columnApi.getColumnFromId(O),M=[].concat(e.Columns);_=Object.assign({},_,{Visible:!_.visible});let x=M.findIndex(D=>D.columnId==O);M[x]=_,e.onNewColumnListOrder(M.filter(D=>D.visible).map(D=>D.columnId))},S=(O,_)=>{_?e.onShowToolPanel(O):e.onHideToolPanel(O)},I=O=>{let _=O?{source:"Other",config:{initialTab:O}}:void 0;return Po.createElement($g,{iconSize:16,tone:"none",marginLeft:2,className:"ab-ToolPanel__configure-button",tooltip:"Configure ToolPanels",onClick:()=>{e.api.toolPanelApi.showToolPanelPopup(_)}})},P=C();return Po.createElement(uL.Flex,{className:"ab-ToolPanel","data-name":"adaptable-tool-panel",flexDirection:"column",justifyContent:"center",padding:2,style:{width:"100%"}},Po.createElement(uL.Flex,{className:"ab-ToolPanel__header",flexDirection:"row",justifyContent:"left",padding:1,flexWrap:"wrap",style:{width:"100%"}},m&&b(),P,m&&I()),Boolean(e.api.toolPanelApi.getCustomToolPanelButtons().length)&&Po.createElement(uL.Flex,{className:"ab-ToolPanel__header__buttons",flexDirection:"row",justifyContent:"left",padding:1,flexWrap:"wrap"},y()),h)};function IEt(e){return{ToolPanels:e.ToolPanel.ToolPanels,ModuleButtons:e.ToolPanel.ModuleButtons,MainMenuItems:e.Grid.ModuleDropdownMenuItems,Columns:e.Grid.Columns}}function PEt(e){return{onClick:t=>e(t),onNewColumnListOrder:t=>e(tY(t)),onSetToolPanelVisibility:t=>e(Jp(t)),onShowToolPanel:t=>e(Noe(t)),onHideToolPanel:t=>e(wI(t)),onExpandToolPanel:t=>e(OI(t)),onCollapseToolPanel:t=>e(FI(t))}}var DEt=Ye(IEt,PEt)(EEt),s9=e=>class{init(n){let o=n.api.__adaptable||e,a=o.api;this.gui=document.createElement("div"),this.gui.id="adaptable-tool-panel_"+o.adaptableOptions.adaptableId,this.gui.className="ag-adaptable-panel",this.gui.style.width="100%",this.gui.style.overflow="auto",(0,$Pe.render)(ki(Po.createElement(DEt,{api:a,teamSharingActivated:!1}),o),this.gui)}getGui(){return this.gui||this.init(),this.gui}refresh(){}},Qbn=s9();s();var pL=require("react-dom"),Zg=A(require("react"));var dL=class{init(t){var o;let n=t.api.__adaptable,r=(o=n.api.userInterfaceApi.getAllActionColumn())==null?void 0:o.find(a=>a.columnId==t.colDef.colId);if(r&&r.actionColumnButton){let c=function(){(0,pL.render)(u(a,n.api,l),d)},a=Array.isArray(r.actionColumnButton)?r.actionColumnButton:[r.actionColumnButton];if(!a.length)return;if(a=a.map(m=>R(g({},m),{Uuid:Kl()})),this.eGui=document.createElement("div"),this.eGui.className="ab-ActionColumn",n.api.gridApi.isGroupRowNode(t.node)&&!r.includeGroupedRows){this.eGui.innerHTML="";return}let i=n.getPrimaryKeyValueFromRowNode(t.node),l={actionColumn:r,primaryKeyValue:i,rowNode:t.node,adaptableApi:n.api},u=(m,f,h)=>Zg.createElement(Zg.Fragment,null,m.map(b=>{var O,_;if(b.hidden&&b.hidden(b,h))return;let C={style:{height:15,width:15}},y=b.icon&&Object.assign({},C,b.icon),v=f.internalApi.getStyleForButton(b,h),S=f.internalApi.getLabelForButton(b,h),I=f.internalApi.getTooltipForButton(b,h),P=()=>{b.onClick(b,h),setTimeout(()=>{c()},16)},T=b.disabled&&b.disabled(b,h);return Zg.createElement(re,{key:b.Uuid,variant:(O=v==null?void 0:v.variant)!=null?O:"text",disabled:T,tooltip:I,tone:(_=v==null?void 0:v.tone)!=null?_:"none",onClick:P,className:v==null?void 0:v.className,accessLevel:"Full"},b.icon?Zg.createElement("img",g({},y)):null,S)})),d=this.eGui;this.render=c,c()}}render(){}getGui(){return this.eGui}refresh(t){return this.render(),!0}destroy(){(0,pL.unmountComponentAtNode)(this.eGui),this.eGui&&this.eGui.removeEventListener("click",this.eventListener)}};s();s();s();s();var cL=class{constructor(t,n,r,o,a){this.label=t,this.module=n,this.isVisible=a,this.icon=o,this.reduxAction=r}},mL=class{constructor(t,n,r,o,a){this.label=t,this.module=n,this.isVisible=a,this.icon=o,this.onClick=r}},zS=class{constructor(t,n,r,o,a,i){this.label=t,this.module=n,this.isVisible=a,this.icon=o,this.reduxAction=Rn(n,r,i)}};var ft=class{constructor(t,n,r,o,a,i){this.api=i;this.moduleInfo={ModuleName:t,FriendlyName:this.getFriendlyName(t,n),Description:a,HelpPage:this.api.internalApi.getModuleService().getModuleDocumentationPageByModule(t),Glyph:r,Popup:o},this.api=i,this.api.eventApi.on("AdaptableReady",()=>{this.handleAdaptableReady(),this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName)})}getViewAccessLevel(){return"ReadOnly"}getEditAccessLevel(){return"Full"}isModuleAvailable(){return this.hasRequiredAccessLevel(this.getViewAccessLevel())}isModuleEditable(){return this.hasRequiredAccessLevel(this.getEditAccessLevel())}updateOldConfig(){}getModuleAdaptableObjects(){return[]}getExplicitlyReferencedColumnIds(t){return[]}getReferencedNamedQueryNames(t){return[]}hasNamedQueryReferences(){return!0}handleAdaptableReady(){}setModuleEntitlement(){this.AccessLevel=this.api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName)}addModuleMenuItem(t){if(this.isModuleAvailable()&&this.moduleInfo.Popup){let n={source:t,maxWidth:this.getPopupMaxWidth()};return this.createMainMenuItemShowPopup({Label:this.moduleInfo.FriendlyName,ComponentName:this.moduleInfo.Popup,Icon:this.moduleInfo.Glyph,PopupParams:n})}}addModuleButtonMenuItem(){}addColumnMenuItems(t){}addContextMenuItems(t){}createMainMenuItemShowPopup({Label:t,ComponentName:n,Icon:r,PopupParams:o}){return new zS(t,this.moduleInfo.ModuleName,n,r,!0,o)}createColumnMenuItemClickFunction(t,n,r){return new mL(t,this.moduleInfo.ModuleName,r,n,!0)}createColumnMenuItemReduxAction(t,n,r){return new cL(t,this.moduleInfo.ModuleName,r,n,!0)}createColumnMenuItemShowPopup(t,n,r,o){return new zS(t,this.moduleInfo.ModuleName,n,r,!0,o)}canCreateColumnMenuItem(t,n,r){if(!this.hasRequiredAccessLevel(n)||!t)return!1;if(we.IsNotNullOrEmpty(r)){if(r=="sort"&&!t.isSparkline)return t.sortable;if(r=="editable")return!t.readOnly;if(r=="style")return!t.isSparkline;if(r=="numeric")return t.dataType=="Number";if(r=="filter")return t.filterable;if(r=="quickfilter")return this.api.columnApi.usesAdaptableQuickFilter(t.columnId)}return!0}getTeamSharingAction(){}getModuleNamedQueryReferences(){if(!this.hasNamedQueryReferences())return[];let t=[];return this.getModuleAdaptableObjects().forEach(n=>t.push(...this.getReferencedNamedQueryNames(n))),t}getModuleCalculatedColumnReferences(){let t=[],n=this.api.calculatedColumnApi.getAllCalculatedColumn();return this.getModuleAdaptableObjects().forEach(r=>{this.getExplicitlyReferencedColumnIds(r).forEach(a=>{let i=n.find(l=>l.ColumnId===a);i&&t.push(i)})}),t}getModuleFreeTextColumnReferences(){let t=[],n=this.api.freeTextColumnApi.getAllFreeTextColumn();return this.getModuleAdaptableObjects().forEach(r=>{this.getExplicitlyReferencedColumnIds(r).forEach(a=>{let i=n.find(l=>l.ColumnId===a);i&&t.push(i)})}),t}getTeamSharingReferences(t){let n=[],r=this.getExplicitlyReferencedColumnIds(t);if(r.length){let a=this.api.calculatedColumnApi.getAllCalculatedColumn(),i=this.api.freeTextColumnApi.getAllFreeTextColumn();r.forEach(l=>{let u=a.find(c=>c.ColumnId===l);u&&n.push({Module:"CalculatedColumn",Reference:u});let d=!u&&i.find(c=>c.ColumnId===l);d&&n.push({Module:"FreeTextColumn",Reference:d})})}return this.getReferencedNamedQueryNames(t).map(a=>this.api.queryApi.getNamedQueryByName(a)).forEach(a=>{n.push({Module:"Query",Reference:a})}),n}getPopupMaxWidth(){}getFriendlyName(t,n){let r=n,o=this.api.internalApi.getAdaptableOptions().generalOptions;return o&&De.IsNotNullOrEmpty(o.alternativeModuleNames)&&o.alternativeModuleNames.forEach(a=>{t==a.adaptableModule&&(r=a.newName)}),r}hasRequiredAccessLevel(t){return this.AccessLevel==="Hidden"?!1:t==="ReadOnly"?this.AccessLevel==="ReadOnly"||this.AccessLevel==="Full":t==="Full"?this.AccessLevel==="Full":!1}};s();var Do=A(require("react")),cDe=require("react"),bL=A(J());s();var JPe=A(require("react"));s();var Er=A(require("react")),ps=A(J());var XPe=e=>{let{data:t,api:n}=ze();return Er.createElement(ps.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},Er.createElement(xa,{descriptions:{rowScope:"Changes anywhere in the row will trigger an alert",columnScope:"Changes in selected columns will trigger an alert"},scope:t.Scope,updateScope:r=>{let o=R(g({},t),{Scope:r});o.Rule.Predicate&&(o.Rule={Predicate:{PredicateId:"Any"}}),o.Rule.ObservableExpression!==void 0&&!n.scopeApi.scopeIsAll(r)&&(delete o.Rule.ObservableExpression,o.Rule.BooleanExpression=""),o.Rule.AggregatedBooleanExpression!==void 0&&!n.scopeApi.scopeIsAll(r)&&(delete o.Rule.AggregatedBooleanExpression,o.Rule.BooleanExpression=""),e.onChange(o)}}))},fL=e=>{let{api:{scopeApi:t}}=ze(),n=t.getColumnsForScope(e.Scope);return Er.createElement(Er.Fragment,null,Er.createElement(ps.Box,null,Er.createElement(ps.Text,{fontSize:2},t.scopeIsAll(e.Scope)?"Changes anywhere in the row will trigger an alert":null)),Er.createElement(ps.Box,{style:{overflow:"hidden"}},"ColumnIds"in e.Scope?Er.createElement(Er.Fragment,null,Er.createElement(ps.Text,{fontSize:2,mb:n.length?2:0},"Changes in selected columns will trigger an alert"),n.length?Er.createElement(Xo,{options:n,value:n.map(r=>r.columnId),toLabel:r=>r.friendlyName,allowWrap:!0,readOnly:!0,renderLabel:r=>Er.createElement(Er.Fragment,null,r),toIdentifier:r=>r.columnId}):null):null),Er.createElement(ps.Box,null,"DataTypes"in e.Scope?Er.createElement(Er.Fragment,null,Er.createElement(ps.Text,{fontSize:2,mb:2},"Changes in columns of the selected data-types trigger an alert"),Er.createElement(Xo,{readOnly:!0,options:e.Scope.DataTypes,value:e.Scope.DataTypes,toLabel:r=>r,allowWrap:!0,renderLabel:r=>Er.createElement(Er.Fragment,null,`DataType: ${r}`),toIdentifier:r=>r})):null))};var ZPe=e=>JPe.createElement(XPe,g({},e));s();var cs=A(require("react"));s();var Vi=A(require("react"));var eDe=e=>{let{data:t,api:n,moduleInfo:r}=ze(),o=e.wholeRowScope!=null?e.wholeRowScope:n.scopeApi.scopeIsAll(t.Scope),a=n.alertApi.getAlertPredicateDefsForScope(t.Scope);return Vi.createElement(Hd,{module:r.ModuleName,defaultPredicateId:"Any",data:t,predicateDefs:a,onChange:e.onChange,showAggregation:!!o,showObservable:!!o,showBoolean:!0,showPredicate:!0,descriptions:{selectPredicate:"Select an Alert Rule - to be applied when data changes",useBooleanQuery:Vi.createElement(Vi.Fragment,null,"Use an BooleanQuery if ",Vi.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:Vi.createElement(Vi.Fragment,null,"Use an ObservableQuery if ",Vi.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression"),useAggregationQuery:Vi.createElement(Vi.Fragment,null,"Use an AggregatedBooleanQuery if ",Vi.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")}})};var tDe=e=>cs.createElement(eDe,g({},e)),nDe=e=>cs.createElement(Gd,{data:e,renderPredicate:t=>cs.createElement(cs.Fragment,null,"Alert condition ",cs.createElement(Dt,null,t)),renderQueryExpression:t=>cs.createElement(cs.Fragment,null,"Alert when ",cs.createElement(Dt,null,t))});s();var rDe=(e,t,n)=>{let r=!0;if(!e.Rule.Predicate&&!e.Rule.BooleanExpression&&!e.Rule.ObservableExpression&&!e.Rule.AggregatedBooleanExpression)return"No condition defined for alert";if(r&&e.Rule.Predicate&&(r=t.predicateApi.isValidPredicate(e.Rule.Predicate),!r))return"Predicate is not valid";if(r&&e.Rule.BooleanExpression&&(r=t.queryLanguageApi.isValidBooleanExpression(e.Rule.BooleanExpression,wr),!r))return"The Expression is not a valid Boolean Expression";if(n.namedQuery!=!1){let o=t.queryApi.isValidNamedQueryName(n.namedQuery);if(!o.valid)return o.message}return r&&e.Rule.ObservableExpression&&(r=t.queryLanguageApi.isValidObservableExpression(e.Rule.ObservableExpression,wr),!r)?"The Expression is not a valid Observable Expression":r&&e.Rule.AggregatedBooleanExpression&&(r=t.queryLanguageApi.isValidAggregatedBooleanExpression(e.Rule.AggregatedBooleanExpression,wr),!r)?"The Expression is not a valid Aggregation Expression":!0};s();var vn=A(require("react"));var pp=A(J());s();var oDe=A(require("react")),aDe=A(J());var ii=e=>{var t,n,r;return oDe.createElement(aDe.Box,R(g({},e),{padding:(t=e.padding)!=null?t:2,mt:(n=e.mt)!=null?n:2,style:g(g({},Zxe(e.styleObject)),e.style)}),(r=e.children)!=null?r:"Preview result")};var iDe=e=>{let t=$e(),n=[{label:"Use Message Type",onClick:()=>{e.onChange(!0)}},{label:"Custom Style",onClick:()=>{let r=it.CreateEmptyStyle();e.onChange(r)}}];return vn.createElement(vn.Fragment,null,vn.createElement(pp.Flex,null,vn.createElement(pe,{mr:2,style:{alignItems:"flex-start"},checked:Boolean(e.highlight),onChange:r=>{e.onChange(r)}},e.label),Boolean(e.highlight)&&vn.createElement(Ze,{items:n},typeof e.highlight=="boolean"?vn.createElement(pp.Text,{fontSize:2,mt:1},"Use Message Type"):vn.createElement(pp.Text,{fontSize:2,mt:1},"Custom Style"))),typeof e.highlight=="object"&&vn.createElement(pp.Box,{paddingLeft:3},vn.createElement(ya,{headless:!0,api:t.api,Style:e.highlight,UpdateStyle:r=>{e.onChange(r)}})))},hL=(e,t,n=!1)=>{let{AlertProperties:r={}}=e,o=[r.PreventEdit?{label:"Prevent Cell Edit",id:"preventCellEdit"}:null,r.HighlightCell?{label:"Highlight Cell",id:"highlightCell"}:null,r.HighlightRow?{label:"Highlight Row",id:"highlightRow"}:null,r.JumpToCell?{label:"Jump To Cell",id:"jumptocell"}:null,r.JumpToRow?{label:"Jump To Row",id:"jumptorow"}:null,r.ShowInDiv?{label:vn.createElement(vn.Fragment,null,"Show in ",vn.createElement(Fn,{ml:1,p:0},"<div />")),id:"showInDiv"}:null,r.LogToConsole?{label:"Log To Console",id:"logtoconsole"}:null].filter(Boolean);return o.length||o.push({label:"No behaviour selected",id:"none"}),vn.createElement(Xo,{allowWrap:n,options:o,value:o.map(a=>a.id),readOnly:!0,toIdentifier:a=>a.id,toLabel:a=>a.id==="highlightCell"&&typeof r.HighlightCell=="object"?vn.createElement(ii,{padding:0,mt:0,styleObject:r.HighlightCell},"Highlight Cell"):a.id==="highlightRow"&&typeof r.HighlightRow=="object"?vn.createElement(ii,{padding:0,mt:0,styleObject:r.HighlightRow},"Highlight Row"):vn.createElement(vn.Fragment,null,a.label)})},lDe=e=>{let{data:t,api:n}=ze(),{AlertProperties:r={}}=t,o=n.internalApi.isAlertDefinitionForAddedRowChangeEvent(t),a=n.internalApi.isAlertDefinitionForRemovedRowChangeEvent(t),i=!o&&!a,l=u=>{e.onChange(R(g({},t),{AlertProperties:g(g({},t.AlertProperties),u)}))};return vn.createElement(j,null,vn.createElement(j.Tab,null,"Behaviour"),vn.createElement(j.Content,null,i&&vn.createElement(pe,{style:{alignItems:"flex-start"},checked:r.PreventEdit,onChange:u=>{l({PreventEdit:u})}},"Prevent Cell Edit",vn.createElement(pp.Text,{fontSize:2,mt:1},"(automatically undo data change which triggered Alert)")),i&&vn.createElement(iDe,{highlight:r.HighlightCell,label:"Highlight Cell",onChange:u=>{l({HighlightCell:u})}}),o&&vn.createElement(iDe,{highlight:r.HighlightRow,label:"Highlight Row",onChange:u=>{l({HighlightRow:u})}}),i&&vn.createElement(pe,{checked:r.JumpToCell,onChange:u=>{l({JumpToCell:u})}},"Jump To Cell"),o&&vn.createElement(pe,{checked:r.JumpToRow,onChange:u=>{l({JumpToRow:u})}},"Jump To Row"),vn.createElement(pe,{checked:r.ShowInDiv,onChange:u=>{l({ShowInDiv:u})}},"Show in separate ",vn.createElement(Fn,null,"<div />")," element"),vn.createElement(pe,{checked:r.LogToConsole,onChange:u=>{l({LogToConsole:u})}},"Log To Console")))};s();var Yt=A(require("react"));var Am=A(J());s();var li=A(J()),ur=A(require("react"));var sDe=e=>{let{api:t,adaptableAlert:n}=e,r=u=>{e.onChange(u)},o=Bn(e.AlertButtons||[])||[],a=t.internalApi.isAlertDefinitionForAddedRowChangeEvent(n.alertDefinition),i=t.internalApi.isAlertDefinitionForRemovedRowChangeEvent(n.alertDefinition),l=[];return a&&l.push("highlight-row","jump-to-row"),!a&&!i&&l.push("highlight-cell","jump-to-cell","undo"),l.push("suspend"),ur.createElement(ur.Fragment,null,ur.createElement(li.Flex,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},ur.createElement(li.Text,{fontSize:2,mt:3,mb:2},"Add buttons to Alert, and Actions to perform when button is clicked"),ur.createElement(re,{icon:"add",onClick:()=>{r([...o||[],{Label:"OK",ButtonStyle:{variant:"raised"}}])}},"Add")),o.map((u,d)=>{var y,v;let c=u.ButtonStyle,m=u.Label,f=u.Action?Array.isArray(u.Action)?u.Action:[u.Action]:[],h=f.filter(S=>!l.includes(S)),b=S=>{r(o.map((I,P)=>{if(P===d){let T=g({},I.ButtonStyle);return T.variant=S,R(g({},I),{ButtonStyle:T})}return I}))},C=S=>{r(o.map((I,P)=>{if(P===d){let T=g({},I.ButtonStyle);return S==null?delete T.tone:T.tone=S,R(g({},I),{ButtonStyle:T})}return I}))};return ur.createElement(li.Box,{key:d,marginLeft:3,style:{borderTop:d?"1px dashed var(--ab-color-inputborder)":""}},ur.createElement(Je,{marginBottom:2,paddingTop:2},ur.createElement(de,{label:ur.createElement(li.Text,{fontSize:2,style:{whiteSpace:"nowrap"}},"Button text")},ur.createElement(li.Flex,{flexDirection:"row"},ur.createElement(Ke,{value:m,style:{width:80},onChange:S=>{r(o.map((I,P)=>P===d?R(g({},I),{Label:S.target.value}):I))}}),ur.createElement(Ze,{marginLeft:2,columns:["label"],style:{minWidth:110},items:["text","outlined","raised"].map(S=>({label:Qe.CapitaliseFirstLetter(S),value:S,onClick:()=>b(S)}))},ur.createElement(li.Text,{fontSize:2},"Variant:"," ",Qe.CapitaliseFirstLetter((y=c==null?void 0:c.variant)!=null?y:"raised"))),ur.createElement(Ze,{columns:["label"],marginLeft:2,style:{minWidth:120},items:[{label:"Use Alert Tone",value:"text",onClick:()=>C(null)},...["success","info","error","warning","accent","neutral"].map(S=>({label:Qe.CapitaliseFirstLetter(S),value:S,onClick:()=>C(S)}))]},ur.createElement(li.Text,{fontSize:2},"Tone:"," ",Qe.CapitaliseFirstLetter((v=c==null?void 0:c.tone)!=null?v:"Use alert tone"))),ur.createElement(re,{icon:"clear",tone:"error",disabled:o.length<=1,marginLeft:1,variant:"text",tooltip:o.length<=1?"Cannot remove last button":"Remove button",onClick:()=>{r(o.filter(S=>S!==u))}}))),ur.createElement(de,{label:ur.createElement(li.Text,{fontSize:2},"Actions")},l.map(S=>ur.createElement(pe,{key:S,marginRight:3,onChange:I=>{let P=f;I?P=[...P,S]:P=P.filter(T=>T!==S),r(o.map((T,O)=>O===d?R(g({},T),{Action:P.length?P:void 0}):T))},checked:u.Action===S||Array.isArray(u.Action)&&u.Action.includes(S)},ur.createElement(li.Text,{fontSize:2},DR(S)))),h.length?ur.createElement(pe,{checked:!0,disabled:!0},ur.createElement(li.Text,{fontSize:2},"User function",h.length>1?"s":"",":"," ",h.join(", "))):null)))}))};var uDe=[{Label:"OK",ButtonStyle:{variant:"raised"}}],dDe=()=>{var n;let{data:e,api:t}=ze();return(n=e.AlertProperties)!=null&&n.DisplayNotification?Yt.createElement(gL,{api:t,alertDefinition:e}):Yt.createElement(Am.Text,{fontSize:2},"Alert type ",Yt.createElement(Fn,null,e.MessageType),". No alert popup will be displayed")},gL=o=>{var a=o,{alertDefinition:e,api:t,focusFirstButton:n}=a,r=qe(a,["alertDefinition","api","focusFirstButton"]);let i=Yt.useCallback(u=>{let d=u.ButtonStyle;return d&&d.tone==null&&(e==null?void 0:e.MessageType)?R(g({},u),{ButtonStyle:g({tone:e.MessageType.toLowerCase()},d)}):u},[e==null?void 0:e.MessageType]),l=Yt.useMemo(()=>{var m;let u=e.AlertForm||{},d=((m=u==null?void 0:u.Buttons)!=null&&m.length?u.Buttons:uDe).map(i);return{alertType:"generic",header:e.MessageType,message:t.alertApi.getAlertDescription(e),alertDefinition:R(g({},e),{AlertForm:R(g({},u),{Buttons:d})})}},[e]);return Yt.createElement(Am.Box,R(g({},r),{style:g({border:"1px solid var(--ab-color-inputborder)"},r.style)}),Yt.createElement(iF,{headless:!0,focusFirstButton:n,adaptableAlert:l,api:t,onClose:()=>{}}))},pDe=e=>{var l,u,d,c;let{data:t,api:n}=ze(),r=t.MessageType,o=n.alertApi.getAlertDescription(t),a={alertType:"generic",header:t.MessageType,message:"",alertDefinition:t},i=m=>{let{value:f}=m.target;e.onChange(R(g({},t),{MessageText:f}))};return Yt.createElement(Yt.Fragment,null,Yt.createElement(j,null,Yt.createElement(j.Tab,null,"Message Type"),Yt.createElement(j.Content,null,Yt.createElement(Tve,{value:r,name:"messageType",orientation:"horizontal",onRadioChange:m=>{e.onChange(R(g({},t),{MessageType:m}))}},Yt.createElement(We,{marginLeft:1,value:"Info"},"Info"),Yt.createElement(We,{marginLeft:4,value:"Success"},"Success"),Yt.createElement(We,{marginLeft:4,value:"Warning"},"Warning"),Yt.createElement(We,{marginLeft:4,value:"Error"},"Error")))),Yt.createElement(j,{mt:2,mb:3,autoFocus:!1},Yt.createElement(j.Tab,null,"Message Text"),Yt.createElement(j.Content,null,Yt.createElement(Am.Text,{fontSize:2,mt:3,mb:2},"The text to display as the Alert Message (leave blank to show automated Message based on Trigger and Condition)")," ",Yt.createElement(Yn,{marginTop:2,type:"text",autoFocus:!1,value:o,onChange:m=>i(m)}))),Yt.createElement(j,{mt:2,mb:3,autoFocus:!1},Yt.createElement(j.Tab,null,"Display options"),Yt.createElement(j.Content,null,Yt.createElement(pe,{checked:(l=t.AlertProperties)==null?void 0:l.DisplayNotification,onChange:m=>{let f=R(g({},t),{AlertProperties:R(g({},t.AlertProperties),{DisplayNotification:m})});!m&&typeof f.AlertForm=="object"&&delete f.AlertForm.Buttons,e.onChange(f)}},"Show a Notification when Alert is triggered (with action buttons)"),(u=t.AlertProperties)!=null&&u.DisplayNotification?typeof t.AlertForm=="string"?Yt.createElement(Am.Text,{fontSize:2},"Alert buttons cannot be customized because form is dynamically driven"):Yt.createElement(sDe,{AlertButtons:((d=t.AlertForm)==null?void 0:d.Buttons)||uDe,api:n,adaptableAlert:a,onChange:m=>{e.onChange(R(g({},t),{AlertForm:R(g({},t.AlertForm),{Buttons:m})}))}}):null)),(c=t.AlertProperties)!=null&&c.DisplayNotification?Yt.createElement(j,{autoFocus:!1},Yt.createElement(j.Tab,null,"Alert preview"),Yt.createElement(j.Content,null,typeof t.AlertForm=="string"?Yt.createElement(Am.Text,{fontSize:2},"Preview not available because form is dynamically driven"):Yt.createElement(gL,{alertDefinition:t,api:n}))):null)};var mDe=e=>{let[t,n]=(0,cDe.useState)(()=>{var u;let l=e.data?Bn(e.data):it.CreateEmptyAlertDefinition();return!l.Rule.BooleanExpression&&!l.Rule.ObservableExpression&&!l.Rule.AggregatedBooleanExpression&&!l.Rule.Predicate&&(l.Rule.BooleanExpression=""),l.MessageType=(u=l.MessageType)!=null?u:wv,l}),{api:r}=$e(),o=l=>{var f;let u=r.internalApi.isAlertDefinitionForAddedRowChangeEvent(l),d=r.internalApi.isAlertDefinitionForRemovedRowChangeEvent(l),c=!u&&!d,m=h=>{if(c)return h==="highlight-row"?"highlight-cell":h==="jump-to-row"?"jump-to-cell":h;if(u)return h==="highlight-cell"?"highlight-row":h==="jump-to-cell"?"jump-to-row":h==="jump-to-column"||h==="undo"?null:h;if(d)return h==="highlight-cell"||h==="jump-to-cell"||h==="highlight-row"||h==="jump-to-row"||h==="jump-to-column"||h==="undo"?null:h};if(l.AlertForm&&typeof l.AlertForm!="string"){let h=(f=l.AlertForm)==null?void 0:f.Buttons;h==null||h.forEach(b=>{let C=b.Action;Array.isArray(C)?b.Action=C.map(m).filter(Boolean):b.Action=m(C)})}c&&(l.AlertProperties.HighlightCell=l.AlertProperties.HighlightRow,delete l.AlertProperties.HighlightRow,l.AlertProperties.JumpToCell=l.AlertProperties.JumpToRow,delete l.AlertProperties.JumpToRow),u&&(l.AlertProperties.HighlightRow=l.AlertProperties.HighlightCell,delete l.AlertProperties.HighlightCell,l.AlertProperties.JumpToRow=l.AlertProperties.JumpToCell,delete l.AlertProperties.JumpToCell,delete l.AlertProperties.PreventEdit),d&&(delete l.AlertProperties.PreventEdit,delete l.AlertProperties.HighlightRow,delete l.AlertProperties.JumpToRow,delete l.AlertProperties.HighlightCell,delete l.AlertProperties.JumpToCell),n(l)},a=Rt(),i=()=>{e.data?a(Df(t)):a(Pf(t)),e.onCloseWizard()};return Do.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:t,onHide:e.onCloseWizard,onFinish:i,sections:[{details:Do.createElement(Do.Fragment,null,"Specify ",Do.createElement("b",null,"which")," data changes should trigger the Alert"),isValid:Ni,render:()=>Do.createElement(ZPe,{onChange:n}),renderSummary:fL,title:"Trigger"},{details:Do.createElement(Do.Fragment,null,"Build the rules ",Do.createElement("b",null,"when")," the Alert should trigger"),isValid:rDe,render:()=>Do.createElement(tDe,{onChange:o,module:"alert"}),renderSummary:nDe,title:"Rule"},{details:"Select the Alert's Message Type and Notification option",render:()=>Do.createElement(bL.Box,{padding:2},Do.createElement(pDe,{onChange:n})),renderSummary:dDe,title:"Type & Display"},{details:"Configure Behaviour for the Alert",title:"Behaviour",render:()=>Do.createElement(bL.Box,{padding:2},Do.createElement(lDe,{onChange:n})),renderSummary:hL},"-",{details:"Review your Alert",render:()=>Do.createElement(bL.Box,{padding:2},Do.createElement(Xn,null)),title:"Summary"}]})};s();var Gi=(e,t)=>{let n=[];return"ColumnIds"in e&&Array.isArray(e.ColumnIds)&&(n=e.ColumnIds,n=e.ColumnIds.map(r=>t.columnApi.getFriendlyNameFromColumnId(r)).filter(Boolean)),"DataTypes"in e&&(n=e.DataTypes),"All"in e&&(n=["All"]),{label:"Target",name:"Target",values:n}};s();var cp=(e,t)=>({name:"Condition",values:[e.Predicate?t.predicateApi.predicateToString(e.Predicate):t.queryLanguageApi.getAdaptableQueryExpression(e)]});s();var u9=A(require("react"));var fDe=(e,t)=>({name:"Type and Display",view:()=>{var n;return(n=e==null?void 0:e.AlertProperties)!=null&&n.DisplayNotification?u9.createElement(gL,{focusFirstButton:!1,style:{maxWidth:400},mt:2,api:t,alertDefinition:e}):u9.createElement(Dt,null,e.MessageType)}});s();var TEt=e=>{let t=$e();return hL(e.data,t.api,!0)},hDe=()=>({name:"Behaviour",view:TEt});s();var CL=A(require("react"));var gDe=e=>{let r=$e().api.internalApi.getEntitlementService().getEntitlementAccessLevelForModule(e.module.moduleInfo.ModuleName)=="ReadOnly"?"You have no Alert Definitions.":"Click 'New' to start creating Alert Definitions. An Alert is triggered whenever an edit - or external data change - matches the Rule in the Alert Definition.";return CL.createElement(CL.Fragment,null,r)};var yL=class extends ft{constructor(t){super(wr,"Alert","alert","AlertPopup","Get notified when things happen in Adaptable that you need to know about",t),this.api.internalApi.getDataService().on("CellDataChanged",n=>{if(!(n.trigger==="undo"||n.trigger==="aggChange")){if(this.api.internalApi.getAdaptableOptions().alertOptions.dataChangeDetectionPolicy==="formattedValue"){let{oldValue:r,newValue:o}=n,a=n.column.columnId,i=this.api.gridApi.getFormattedValueFromRawValue(a,r),l=this.api.gridApi.getFormattedValueFromRawValue(a,o);if(i===l)return}this.handleCellDataChanged(n)}}),this.api.eventApi.on("GridDataChanged",n=>{n.rowTrigger!=="Edit"&&this.handleGridDataChanged(n)}),this.api.internalApi.getAlertService().onReactiveAlertTriggered(n=>this.handleReactiveAlertTriggered(n))}getModuleAdaptableObjects(){return this.api.alertApi.getAlertDefinitions()}getExplicitlyReferencedColumnIds(t){let n=this.api.queryLanguageApi.getAdaptableQueryExpression(t.Rule);return n?this.api.queryLanguageApi.getColumnsFromExpression(n):this.api.scopeApi.scopeHasColumns(t.Scope)?this.api.scopeApi.getColumnsForScope(t.Scope).map(r=>r.columnId):[]}getReferencedNamedQueryNames(t){let n=this.api.queryLanguageApi.getAdaptableQueryExpression(t.Rule);return n?this.api.queryApi.getReferencedNamedQueryNames(n):[]}updateOldConfig(){var o;let t=this.api.alertApi.getAlertState(),n=t.FlashingAlertDefinitions,r=this.api.flashingCellApi.getFlashingCellDefinitions();Ee.IsEmpty(r)&&Ee.IsNotNullOrEmpty(n)&&(this.api.flashingCellApi.setFlashingCellDefinitions(n),this.api.internalApi.clearFlashingCellState()),(o=t.AlertDefinitions)==null||o.forEach(a=>{if(a.AlertProperties&&a.AlertProperties.ShowPopup&&a.AlertProperties.ShowPopup==!0&&!a.AlertProperties.DisplayNotification&&(a.AlertProperties.DisplayNotification=!0,a.AlertProperties.ShowPopup=void 0),a.Rule){let i=a.Rule.AggregationExpression;i&&(a.Rule.AggregatedBooleanExpression=i)}else if(a.Predicate&&a.Predicate!=null){let i=a.Predicate;a.Rule={Predicate:i},a.Predicate=void 0}})}addContextMenuItems(t){let n=[];if(!t.isRowGroupColumn&&this.isModuleAvailable()&&t.adaptableColumn&&t.rowNode){let r;r=this.api.internalApi.getAdaptableAlertWithHighlightCell(t.adaptableColumn.columnId,t.rowNode),r||(r=this.api.internalApi.getAdaptableAlertWithHighlightRow(t.rowNode)),r&&n.push(this.createColumnMenuItemReduxAction("Clear Alert",this.moduleInfo.Glyph,Zv(r)))}return n}handleCellDataChanged(t){let n=this.getAlertDefinitionsForCellDataChange(t);n!=null&&n.length&&this.showAlertForDefinitions(t,n)}handleGridDataChanged(t){let n=this.getAlertDefinitionsForGridDataChange(t),r=t.rowTrigger==="Add",o=t.rowNodes.length,a=r?"Added":"Removed",i=o>1?`${a} Rows`:`${a} Row `,l=o>1?`${o} rows were ${a.toLowerCase()}`:`${o} row was ${a.toLowerCase()}`;n==null||n.forEach(u=>{let d=u.MessageText?u.MessageText:l,c=it.CreateRowChangedAlert(i,d,u,t);this.api.alertApi.displayAlert(c)})}handleReactiveAlertTriggered(t){var n;t.dataChangeLogEntry.rowNode=this.api.gridApi.getRowNodeForPrimaryKey(t.dataChangeLogEntry.primaryKeyValue),t.dataChangeLogEntry.rowData=(n=t.dataChangeLogEntry.rowNode)==null?void 0:n.data,t.type==="alert"&&this.showAlertForDefinitions(t.dataChangeLogEntry,[t.alertDefinition])}showAlertForDefinitions(t,n=[]){n.forEach(r=>{let o=it.CreateCellChangedAlert(t.column.friendlyName,this.api.alertApi.getAlertDescription(r,t),r,t);this.api.alertApi.displayAlert(o)})}getAlertDefinitionsForCellDataChange(t){return this.getBaseAlertDefinitionsForDataChange(t,this.api.alertApi.getActiveNonReactiveAlertDefinitions())}getAlertDefinitionsForGridDataChange(t){return this.api.alertApi.getActiveNonReactiveAlertDefinitions().filter(n=>this.isAlertDefinitionForRowChangeEvent(n)).filter(n=>{var r,o,a,i;return t.rowTrigger==="Add"?((o=(r=n.Rule)==null?void 0:r.Predicate)==null?void 0:o.PredicateId)==="AddedRow":t.rowTrigger==="Delete"?((i=(a=n.Rule)==null?void 0:a.Predicate)==null?void 0:i.PredicateId)==="RemovedRow":!1})}getBaseAlertDefinitionsForDataChange(t,n,r=!1){let o=n.filter(i=>this.api.scopeApi.isColumnInScope(t.column,i.Scope)).filter(i=>!zp(i.Rule)),a=[];return Ee.IsNotNullOrEmpty(o)&&o.forEach(i=>{if(i.Rule.BooleanExpression){let l=i.Rule.BooleanExpression,u=t.rowNode;u||(u=this.api.gridApi.getRowNodeForPrimaryKey(t.primaryKeyValue)),this.api.queryLanguageApi.isValidBooleanExpression(l,this.moduleInfo.ModuleName,`Invalid Alert boolean expression '${l}'`)&&this.api.internalApi.getQueryLanguageService().evaluateBooleanExpression(l,this.moduleInfo.ModuleName,u)&&a.push(i)}else!this.isAlertDefinitionForRowChangeEvent(i)&&this.isAlertPredicateTriggered(i,t,r)&&a.push(i)}),a}isAlertPredicateTriggered(t,n,r=!1){return this.api.predicateApi.handlePredicate(t.Rule.Predicate,{value:n.newValue,oldValue:n.oldValue,displayValue:null,node:n.rowNode,column:n.column},r)}isAlertDefinitionForRowChangeEvent(t){return this.api.internalApi.isAlertDefinitionForAddedRowChangeEvent(t)||this.api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(t)}getTeamSharingAction(){return{ModuleEntities:this.api.alertApi.getAlertDefinitions(),AddAction:Pf,EditAction:Df}}toView(t){return{items:[Gi(t.Scope,this.api),cp(t.Rule,this.api),hDe(),fDe(t,this.api)],abObject:t}}toViewAll(){return this.api.alertApi.getAlertDefinitions().map(t=>this.toView(t))}getViewProperties(){return{getDeleteAction:Kee,getSuspendAction:OR,getUnSuspendAction:FR,emptyView:gDe,getEditWizard:()=>mDe}}};s();var SL=class extends ft{constructor(t){super(Yi,"Bulk Update","bulk-update","BulkUpdatePopup","Update multiple cell simultaneously with a new or existing value",t)}getViewAccessLevel(){return"Full"}addContextMenuItems(t){let n;if(!t.isRowGroupColumn&&this.isModuleEditable()&&t.adaptableColumn&&!t.adaptableColumn.readOnly&&t.isSelectedCell&&t.isSingleSelectedColumn&&this.api.gridApi.areCellsEditable(t.selectedCellInfo.gridCells)){let r={source:"ContextMenu"};n=this.createMainMenuItemShowPopup({Label:"Apply Bulk Update",ComponentName:this.moduleInfo.Popup,Icon:this.moduleInfo.Glyph,PopupParams:r})}return[n]}checkCorrectCellSelection(){let t=this.api.gridApi.getSelectedCellInfo();if(this.api.internalApi.isGridInPivotMode())return{IsValid:!1,Alert:{alertType:"generic",header:"Bulk Update Error",message:"Cannot edit while Grid is in Pivot Mode.",alertDefinition:it.CreateInternalAlertDefinitionForMessages("Error")}};if(t==null||De.IsNullOrEmpty(t.columns))return{IsValid:!1,Alert:{alertType:"generic",header:"Bulk Update Error",message:`No cells are selected.
|
|
291
291
|
Please select some cells.`,alertDefinition:it.CreateInternalAlertDefinitionForMessages("Error")}};if(De.NotCorrectLength(t.columns,1))return{IsValid:!1,Alert:{alertType:"generic",header:"Bulk Update Error",message:`Bulk Update only supports single column edit.
|
|
@@ -308,7 +308,7 @@ Please adjust the cell selection.`,alertDefinition:it.CreateInternalAlertDefinit
|
|
|
308
308
|
justify-content: center;`,this.eGui.appendChild(a),a.disabled||(this.suppressEditEvent=this.suppressEditEvent.bind(this),this.eGui.addEventListener("click",this.suppressEditEvent),this.eGui.addEventListener("dblclick",this.suppressEditEvent))},r.prototype.checkedHandler=function(o){let a=o.target.checked;this.params.node.setDataValue(e,a),n.formatColumnApi.fireCheckboxColumnClickedEvent(e,this.params.node.data,n.gridApi.getPrimaryKeyValueForRowNode(this.params.node),a)},r.prototype.suppressEditEvent=function(o){o.target===this.eGui&&(o.preventDefault(),o.stopPropagation())},r.prototype.getGui=function(){return this.eGui},r.prototype.refresh=function(){return!1},r.prototype.destroy=function(){var o,a,i,l;(a=(o=this.eGui)==null?void 0:o.firstChild)==null||a.removeEventListener("click",this.checkedHandler),(i=this.eGui)==null||i.removeEventListener("click",this.suppressEditEvent),(l=this.eGui)==null||l.removeEventListener("dblclick",this.suppressEditEvent)},r},KL=class{isCancelBeforeStart(){return!0}init(t){let n=t.api.__adaptable,r=document.createElement("input");r.type="checkbox",r.checked=t.value,r.disabled=n.api.internalApi.getAdaptableInstance().isCellEditable(t.node,t.column),this.eGui=document.createElement("div"),this.eGui.style.cssText=`display: flex;
|
|
309
309
|
height: 100%;
|
|
310
310
|
align-items: center;
|
|
311
|
-
justify-content: center;`,this.eGui.appendChild(r),this.value=t.value}getGui(){return this.eGui}getValue(){return this.value}};s();var $L=class extends ft{constructor(t){super(wl,"Data Changes","track-changes","DataChangeHistoryPopup","Provides an overview of all previous changes, giving the possibility to undo specific changes",t),this.api.internalApi.getDataService().on("CellDataChanged",n=>{n.trigger!=="undo"&&n.trigger!=="aggChange"&&this.shouldLogDataChange(n)&&this.api.internalApi.dispatchReduxAction(sY(n))})}getPopupMaxWidth(){return 1e3}hasNamedQueryReferences(){return!1}shouldLogDataChange(t){return this.api.internalApi.getState().System.DataChangeHistory.currentMode!=="ACTIVE"?!1:this.api.internalApi.getAdaptableOptions().dataChangeHistoryOptions.showDataChange?this.api.internalApi.getAdaptableOptions().dataChangeHistoryOptions.showDataChange(t):!0}};s();s();var DTe=e=>({name:"Duration",values:[e.FlashDuration]});s();s();var jS=A(require("react")),TTe=A(J());var wTe=e=>{let r=e,{data:t}=r,n=qe(r,["data"]);return jS.default.createElement(TTe.Flex,g({flexDirection:"row"},n),jS.default.createElement(ii,{mr:1,flex:1,styleObject:e.data.UpChangeStyle},"Up ",e.data.UpChangeStyle?"":" - no style"),jS.default.createElement(ii,{mr:1,flex:1,styleObject:e.data.DownChangeStyle},"Down",e.data.DownChangeStyle?"":" - no style"),jS.default.createElement(ii,{flex:1,styleObject:e.data.NeutralChangeStyle},"Neutral ",e.data.NeutralChangeStyle?"":" - no style"))};var OTe=()=>({name:"Flash Styles",label:"Change Style",view:wTe});s();var hs=A(require("react")),ob=require("react"),JL=A(J());s();var hn=A(require("react")),FTe=require("react"),bp=A(J());var MTe=e=>hn.createElement(hn.Fragment,null,hn.createElement(bp.Text,{fontSize:2},e.FlashDuration==="always"?hn.createElement(hn.Fragment,null,"Flashing is never removed"):hn.createElement(hn.Fragment,null,"Flashing is removed after ",hn.createElement(Fn,null,e.FlashDuration)," ","milliseconds"))),NTe=e=>{var d,c,m,f,h,b,C;let{data:t}=ze();t=t!=null?t:e.flashingCell;let n=y=>{e.onChange(R(g({},t),{FlashDuration:y}))},r=(d=t.FlashDuration)!=null?d:500,o=hn.useRef(typeof r=="number"?r:500),a=(0,FTe.useRef)(null),i=Ga(r,r);hn.useEffect(()=>{var y;i==="always"&&r!=i&&((y=a.current)==null||y.focus())},[r,i]);let l=y=>{n(y==="number"?o.current:"always")},u=(y,v)=>{var I;let S=(I=t.FlashTarget)!=null?I:[];typeof S=="string"&&(S=[S]),Array.isArray(S)&&(v?S=[...S,y]:S=S.filter(P=>y!=P)),e.onChange(R(g({},t),{FlashTarget:S}))};return hn.createElement(bp.Flex,{height:"100%",flexDirection:"column","data-name":"plus-minus-column-settings"},hn.createElement(j,{autoFocus:!1,padding:2},hn.createElement(j.Tab,null,"Flashing Cell Settings"),hn.createElement(j.Content,null,hn.createElement(Je,null,hn.createElement(de,{label:"Duration Type"},hn.createElement(We,{mr:3,checked:r=="always",tabIndex:-1,onChange:()=>l("always")},"Always"),hn.createElement(We,{checked:r!=="always",tabIndex:-1,onChange:()=>l("number")},"Limited (ms)")),hn.createElement(de,{label:""},r!=="always"&&hn.createElement(bp.Flex,{flexDirection:"row",alignItems:"baseline"},hn.createElement(bp.Text,{fontSize:2,mr:2},"After"),hn.createElement(Ke,{readOnly:e.readOnly,type:"text",name:"value",ref:a,mt:2,mr:1,value:r,onChange:y=>{let v=y.target.value;n(isNaN(Number(v))?500:Number(v))}}),hn.createElement(bp.Text,{fontSize:2},"milliseconds")),r==="always"&&hn.createElement(bp.Text,{height:43,fontSize:3},"Persists the flashing style indeterminately - can be removed manually")),hn.createElement(de,{label:"Flash Target"},hn.createElement(pe,{onChange:y=>u("cell",y),mr:3,checked:(t==null?void 0:t.FlashTarget)==="cell"||((m=(c=t==null?void 0:t.FlashTarget)==null?void 0:c.includes)==null?void 0:m.call(c,"cell")),tabIndex:-1},"Cell"),hn.createElement(pe,{mr:3,onChange:y=>u("row",y),checked:(t==null?void 0:t.FlashTarget)==="row"||((h=(f=t==null?void 0:t.FlashTarget)==null?void 0:f.includes)==null?void 0:h.call(f,"row")),tabIndex:-1},"Row"),hn.createElement(pe,{onChange:y=>u("aggFuncCell",y),checked:(t==null?void 0:t.FlashTarget)==="aggFuncCell"||((C=(b=t==null?void 0:t.FlashTarget)==null?void 0:b.includes)==null?void 0:C.call(b,"aggFuncCell")),tabIndex:-1},"Aggregated Function Cell"))))))};s();var Ir=A(require("react"));var _Te=e=>{var r;let{api:{flashingCellApi:t}}=ze(),n=(r=e.FlashTarget)!=null?r:t.getFlashingCellFlashTarget(e);return Ir.createElement(Gd,{data:e,renderPredicate:o=>Ir.createElement(Ir.Fragment,null,"Flash ",Ir.createElement(Fn,null,n)," - value condition"," ",Ir.createElement(Fn,null,o)),renderQueryExpression:o=>Ir.createElement(Ir.Fragment,null,"Flash ",Ir.createElement(Fn,null,n)," when"," ",Ir.createElement("b",null,Ir.createElement(Fn,null,o)))})},LTe=e=>{let{data:t,api:n,moduleInfo:r}=ze(),o=n.flashingCellApi.getFlashingCellPredicateDefsForScope(t.Scope);return Ir.createElement(Hd,{module:r.ModuleName,defaultPredicateId:"Any",data:t,predicateDefs:o,onChange:e.onChange,showAggregation:!1,showObservable:!1,showBoolean:!0,showPredicate:!0,descriptions:{selectPredicate:"Select an Flashing Cell Rule - to be applied when data changes",useBooleanQuery:Ir.createElement(Ir.Fragment,null,"Use an BooleanQuery if ",Ir.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:Ir.createElement(Ir.Fragment,null,"Use an ObservableQuery if ",Ir.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression"),useAggregationQuery:Ir.createElement(Ir.Fragment,null,"Use an AggregatedBooleanQuery if ",Ir.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")}})};s();var Wr=A(require("react")),XL=A(J());var S9=Wr.createElement(XL.Text,{fontSize:2,style:{display:"inline-block"}},"Change style"),kTe=e=>{var r,o,a;let{data:t,api:n}=ze();return t=t!=null?t:e.flashingAlert,Wr.createElement(Wr.Fragment,null,Wr.createElement(j,{defaultValue:"up"},Wr.createElement(j.Tab,{value:"up"},"Up ",S9),Wr.createElement(j.Content,{value:"up"},Wr.createElement(ya,{headless:!0,api:n,Style:(r=t.UpChangeStyle)!=null?r:{},UpdateStyle:i=>e.onStyleChange("UpChangeStyle",i)})),Wr.createElement(j.Tab,{value:"down"},"Down ",S9),Wr.createElement(j.Content,{value:"down"},Wr.createElement(ya,{headless:!0,api:n,Style:(o=t.DownChangeStyle)!=null?o:{},UpdateStyle:i=>e.onStyleChange("DownChangeStyle",i)})),Wr.createElement(j.Tab,{value:"neutral"},"Neutral ",S9),Wr.createElement(j.Content,{value:"neutral"},Wr.createElement(ya,{headless:!0,api:n,Style:(a=t.NeutralChangeStyle)!=null?a:{},UpdateStyle:i=>e.onStyleChange("NeutralChangeStyle",i)}))))},_Et=e=>{let r=e,{data:t}=r,n=qe(r,["data"]);return Wr.createElement(XL.Box,g({},n),Wr.createElement(ii,{styleObject:e.data.UpChangeStyle},"Up change style ",e.data.UpChangeStyle?"":" - no style"),Wr.createElement(ii,{mt:2,styleObject:e.data.DownChangeStyle},"Down change style ",e.data.DownChangeStyle?"":" - no style"),Wr.createElement(ii,{mt:2,styleObject:e.data.NeutralChangeStyle},"Neutral change style ",e.data.NeutralChangeStyle?"":" - no style"))},BTe=e=>Wr.createElement(_Et,{data:e});s();var v9=A(require("react")),VTe=A(J());var GTe=e=>{let{data:t,api:n}=ze();return v9.createElement(VTe.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},v9.createElement(xa,{descriptions:{rowScope:"Changes anywhere in the row will trigger an Flashing Cell",columnScope:"Changes in selected columns will trigger an Flashing Cell"},scope:t.Scope,updateScope:r=>{let o=R(g({},t),{Scope:r});o.Rule.Predicate&&(o.Rule={Predicate:{PredicateId:"Any"}}),e.onChange(o)}}))};s();var HTe=(e,t,n)=>{let r=!0;if(!e.Rule.Predicate&&!e.Rule.BooleanExpression)return"No Rule defined for Flashing Cell";if(r&&e.Rule.Predicate&&(r=t.predicateApi.isValidPredicate(e.Rule.Predicate),!r))return"Predicate is not valid";if(r&&e.Rule.BooleanExpression&&(r=t.queryLanguageApi.isValidBooleanExpression(e.Rule.BooleanExpression,wf),!r))return"The Expression is not a valid Boolean Expression";if(n.namedQuery!=!1){let o=t.queryApi.isValidNamedQueryName(n.namedQuery);if(!o.valid)return o.message}return!0};var UTe=e=>{let{api:t}=$e(),[n,r]=(0,ob.useState)(()=>{let d=e.data?Bn(e.data):it.CreateEmptyFlashingCellDefinition();return d=t.flashingCellApi.mergeFlashingCellDefinitionWithDefaults(d),!d.Rule.BooleanExpression&&!d.Rule.Predicate&&(d.Rule.BooleanExpression=""),d}),o=d=>c=>{r(m=>(m=R(g({},m),{[d]:c}),m))},a={DownChangeStyle:(0,ob.useCallback)(o("DownChangeStyle"),[]),UpChangeStyle:(0,ob.useCallback)(o("UpChangeStyle"),[]),NeutralChangeStyle:(0,ob.useCallback)(o("NeutralChangeStyle"),[])},i=hs.createElement(kTe,{onStyleChange:(d,c)=>{a[d](c)}}),l=Rt(),u=()=>{e.data?l(Gf(n)):l(jp(n)),e.onFinishWizard(n)};return hs.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:n,onHide:e.onCloseWizard,onFinish:u,sections:[{details:"Specify which data changes should trigger Cell Flashing",isValid:Ni,render:()=>hs.createElement(GTe,{onChange:r}),renderSummary:fL,title:"Scope"},{details:"Build the Rules for when Cells should Flash",isValid:HTe,render:()=>hs.createElement(LTe,{onChange:r}),renderSummary:_Te,title:"Rule"},{details:"Select the Duration of the Flash",render:()=>hs.createElement(JL.Box,{padding:2},hs.createElement(NTe,{onChange:r})),renderSummary:MTe,title:"Settings"},{details:"Choose the Flashing Styles",render:()=>hs.createElement(JL.Box,{padding:2},i),renderSummary:BTe,title:"Flash Styles"},"-",{details:"Review the Flashing Cell Rule",render:()=>hs.createElement(JL.Box,{padding:2},hs.createElement(Xn,null)),title:"Summary"}]})};s();var WTe=e=>({name:"Target",values:Array.isArray(e.FlashTarget)?e.FlashTarget:[e.FlashTarget]});var ZL=class extends ft{constructor(t){super(wf,"Flashing Cell","flashing-cell","FlashingAlert","Flash cells when they change",t),this.api.internalApi.getDataService().on("CellDataChanged",n=>{if(n.trigger!=="undo"){if(this.api.internalApi.getAdaptableOptions().alertOptions.dataChangeDetectionPolicy==="formattedValue"){let{oldValue:r,newValue:o}=n,a=n.column.columnId,i=this.api.gridApi.getFormattedValueFromRawValue(a,r),l=this.api.gridApi.getFormattedValueFromRawValue(a,o);if(i===l)return}this.handleDataSourceChanged(n)}})}getModuleAdaptableObjects(){return this.api.flashingCellApi.getFlashingCellDefinitions()}getExplicitlyReferencedColumnIds(t){let n=this.api.queryLanguageApi.getAdaptableQueryExpression(t.Rule);return n?this.api.queryLanguageApi.getColumnsFromExpression(n):this.api.scopeApi.scopeHasColumns(t.Scope)?this.api.scopeApi.getColumnsForScope(t.Scope).map(r=>r.columnId):[]}getReferencedNamedQueryNames(t){let n=this.api.queryLanguageApi.getAdaptableQueryExpression(t.Rule);return n?this.api.queryApi.getReferencedNamedQueryNames(n):[]}addColumnMenuItems(t){if(t&&this.isModuleEditable()&&!this.api.columnApi.isCalculatedColumn(t.columnId)){let r=this.api.flashingCellApi.getFlashingCellDefinitions().find(o=>this.api.scopeApi.isColumnInScope(t,o.Scope));return r?[this.createColumnMenuItemReduxAction("Remove Flashing Cell",this.moduleInfo.Glyph,TB(r))]:[this.createColumnMenuItemReduxAction("Add Flashing Cell",this.moduleInfo.Glyph,jp({Scope:{ColumnIds:[t.columnId]},Rule:{Predicate:{PredicateId:"Any"}}}))]}}addContextMenuItems(t){let n=[];if(!t.isRowGroupColumn&&this.isModuleAvailable()&&t.adaptableColumn&&t.rowNode){let r=this.api.internalApi.getAdaptableFlashingCellFor(t.primaryKeyValue),o=this.api.internalApi.getAdaptableFlashingCellFor(t.primaryKeyValue,t.adaptableColumn.columnId);r&&r.flashTarget==="row"?n.push(this.createColumnMenuItemReduxAction("Clear Flashing Cell for Row",this.moduleInfo.Glyph,Tb(r))):o&&o.flashTarget==="cell"&&n.push(this.createColumnMenuItemReduxAction("Clear Flashing Cell for Cell",this.moduleInfo.Glyph,Tb(o)))}return n}handleDataSourceChanged(t){let n=this.getFlashingCellDefinitionsForDataChange(t);Ee.IsNotNullOrEmpty(n)&&this.showFlashingCellsForDefinitions(t,n)}showFlashingCellsForDefinitions(t,n=[]){let r=this.api.columnApi.getColumns().map(c=>c.columnId),o=t.column.dataType,a=o==="Number",i=a||o==="Date",l=!1,u=!1,d="neutral";if(i){let c=a?Number(t.newValue):t.newValue,m=a?Number(t.oldValue):t.oldValue;l=c>m,u=c<m,d=l?"up":u?"down":"neutral"}n.forEach(c=>{var b;let m=this.api.flashingCellApi.getFlashingCellFlashTarget(c),f={[t.column.columnId]:!0};(m==="row"||((b=m==null?void 0:m.includes)==null?void 0:b.call(m,"row")))&&r.forEach(C=>{f[C]=!0});let h=t.primaryKeyValue;this.api.flashingCellApi.showFlashingCell({rowPrimaryKey:h,flashingCellDefinition:c,cellDataChangedInfo:t,direction:d,flashTarget:m,flashColumnIds:f})})}isFlashingTargetOnlyAggChange(t){return t.FlashTarget==="aggFuncCell"?!0:Array.isArray(t.FlashTarget)&&t.FlashTarget.length===1&&t.FlashTarget.includes("aggFuncCell")}getFlashingCellDefinitionsForDataChange(t){let n=this.api.flashingCellApi.getActiveFlashingCellDefinitions(),r=!1,o=n.filter(i=>this.api.scopeApi.isColumnInScope(t.column,i.Scope)).filter(i=>!zp(i.Rule)),a=[];return Ee.IsNotNullOrEmpty(o)&&o.forEach(i=>{if(!(t.trigger!=="aggChange"&&this.isFlashingTargetOnlyAggChange(i)))if(i.Rule.BooleanExpression){let l=i.Rule.BooleanExpression,u=t.rowNode;u||(u=this.api.gridApi.getRowNodeForPrimaryKey(t.primaryKeyValue)),this.api.queryLanguageApi.isValidBooleanExpression(l,this.moduleInfo.ModuleName,`Invalid Alert boolean expression '${l}'`)&&this.api.internalApi.getQueryLanguageService().evaluateBooleanExpression(l,this.moduleInfo.ModuleName,u)&&a.push(i)}else this.isAlertPredicateTriggered(i,t,r)&&a.push(i)}),a}isAlertPredicateTriggered(t,n,r=!1){return this.api.predicateApi.handlePredicate(t.Rule.Predicate,{value:n.newValue,oldValue:n.oldValue,displayValue:null,node:n.rowNode,column:n.column},r)}getTeamSharingAction(){return{ModuleEntities:this.api.flashingCellApi.getFlashingCellDefinitions(),AddAction:jp,EditAction:Gf}}toView(t){return{items:[R(g({},Gi(t.Scope,this.api)),{label:"Trigger"}),R(g({},cp(t.Rule,this.api)),{label:"Rule",name:"Rule"}),DTe(t),WTe(t),OTe()],abObject:t}}toViewAll(){return this.api.flashingCellApi.getFlashingCellDefinitions().map(t=>this.toView(t))}getViewProperties(){return{getSuspendAction:mE,getUnSuspendAction:fE,getDeleteAction:TB,getEditWizard:()=>UTe}}};s();var e1=class extends ft{constructor(t){let n=t.internalApi.getAdaptableOptions().settingsPanelOptions.title;super(NR,n,"settings",null,"Manage all Adaptable Settings",t)}addColumnMenuItems(t){return[this.createColumnMenuItemReduxAction("Open "+this.moduleInfo.FriendlyName,this.moduleInfo.Glyph,Rn())]}addContextMenuItems(t){return[this.createColumnMenuItemReduxAction("Open "+this.moduleInfo.FriendlyName,this.moduleInfo.Glyph,Rn())]}addModuleMenuItem(t){if(this.isModuleAvailable())return this.createColumnMenuItemReduxAction("Open "+this.moduleInfo.FriendlyName,this.moduleInfo.Glyph,Rn())}};s();var t1=class extends ft{constructor(t){super(MR,"Charts","chart","ChartPopup","Create Charts in order to see Adaptable Data visually",t)}isModuleAvailable(){return this.api.chartingApi.isChartingEnabled()&&super.isModuleAvailable()}};s();var qTe=A(Eb());var zTe=(e,t)=>{var n;if(!!((n=e==null?void 0:e.ColumnStyle)!=null&&n.PercentBarStyle))return class{init(o){if(!e.IncludeGroupedRows&&t.gridApi.isGroupRowNode(o.node))return;let a=t.formatColumnApi.getNumericStyleMinValue(e.ColumnStyle,o.node,o.value),i=t.formatColumnApi.getNumericStyleMaxValue(e.ColumnStyle,o.node,o.value),l=o.value;sn.objectNotExists(l)&&(l=0);let u=(0,qTe.default)(l,a,i),d=(u-a)/(i-a)*100,c,m=e.ColumnStyle.PercentBarStyle;if(m.ColumnComparison)c=m.ColumnComparison.Color;else{let f=m.CellRanges.find(h=>h.Min<=u&&h.Max>=u);f&&(c=f.Color)}if(c){this.eGui=document.createElement("div"),this.eGui.className="ab-PercentBar__wrapper",this.eGui.style.height=m.CellText?"80%":"100%",this.eGui.style.display="flex",this.eGui.style.flexDirection="column",this.eGui.style.justifyContent="center";let f=document.createElement("div");f.className="ab-PercentBar__bar",f.style.background=m.BackColor,f.style.flex="1";let h=document.createElement("div");if(h.className="ab-PercentBar__barInside",h.style.background=c,h.style.height="100%",h.style.width=`${d.toFixed(0)}%`,f.append(h),this.eGui.append(f),m.CellText){let b=document.createElement("div");if(b.className="ab-PercentBar__text",b.style.lineHeight="1.2",m.CellText.includes("CellValue")){if(e.DisplayFormat){let C=e.DisplayFormat.Options;C&&(l=Yr.NumberFormatter(o.value,C))}b.innerText=l}m.CellText.includes("PercentageValue")&&(b.innerText+=` (${d.toFixed(0)}%)`),this.eGui.append(b)}}}getGui(){return this.eGui}refresh(o){return!1}}};var YS=pN(),n1=class{constructor(t,n){this.adaptable=t;this.gridOptions=n;this.initialAgGridColDefs={};this.adaptable=t,this.gridOptions=n}getAgGridLightThemeName(){return"ag-theme-balham"}getAgGridDarkThemeName(){return"ag-theme-balham-dark"}setUpModules(){let t=new Map,n=this.adaptable.api;return t.set(Tl,new EL(n)),t.set(wr,new yL(n)),t.set(wf,new ZL(n)),t.set(Yi,new SL(n)),t.set(Or,new vL(n)),t.set(Dl,new AL(n)),t.set(Vn,new xL(n)),t.set(bo,new RL(n)),t.set(wl,new $L(n)),t.set(Du,new IL(n)),t.set(kr,new PL(n)),t.set(Co,new DL(n)),t.set(yo,new TL(n)),t.set(ao,new wL(n)),t.set(Ki,new ML(n)),t.set(yr,new NL(n)),t.set(Gn,new LL(n)),t.set(fi,new kL(n)),t.set(Ol,new VL(n)),t.set(hi,new WL(n)),t.set(Fl,new UL(n)),t.set(Ff,new qL(n)),t.set(wu,new QL(n)),t.set(Ml,new YL(n)),t.set(Tu,new zL(n)),t.set(Ou,new jL(n)),t.set(Of,new OL(n)),t.set(NR,new e1(n)),t.set(MR,new t1(n)),t}TrySetUpNodeIds(t){if(we.IsNullOrEmpty(this.adaptable.adaptableOptions.primaryKey))return!1;if(Mt.objectExists(this.gridOptions.getRowNodeId)||Mt.objectExists(this.gridOptions.getRowId))return!0;let n=this.adaptable.adaptableOptions.primaryKey;return t?this.gridOptions.getRowId=r=>(Mt.objectNotExists(r.data[n])&&(r.data[n]=yt()),r.data[n]):this.gridOptions.getRowId=r=>r.data[n],!0}createCheckboxRendererComp(t,n){return PTe(t,n,this.adaptable.api)}createPercentBarRendererComp(t){return zTe(t,this.adaptable.api)}getCleanValue(t){if(!(t==null||t=="null"||t==null||t=="undefined"))return String(t)||""}getRenderedValue(t,n){let r=t.cellRenderer;return typeof r=="string"?this.getCleanValue(n):r({value:n})||""}createAdaptableColumnFromAgGridColumn(t,n){let r=t.getColId(),o=t.getColDef(),a=this.gridOptions.columnApi.getDisplayNameForColumn(t,"header");this.initialAgGridColDefs[r]||(this.initialAgGridColDefs[r]=g({},t.getUserProvidedColDef()));let i=r,l=this.adaptable.adaptableOptions.primaryKey,u=n==null?void 0:n[i],d={Uuid:yt(),columnId:i,friendlyName:a,isPrimaryKey:i===l,dataType:this.getColumnDataType(t,!1),visible:t.isVisible(),readOnly:this.isColumnReadonly(o),columnGroup:u,sortable:this.isColumnSortable(o),filterable:this.isColumnFilterable(o),groupable:this.isColumnGroupable(o),pivotable:this.isColumnPivotable(o),aggregatable:this.isColumnAggregetable(o),availableAggregationFunctions:null,aggregationFunction:null,moveable:this.isColumnMoveable(o),hideable:this.isColumnHideable(o),queryable:this.isColumnQueryable(o,i),isGrouped:this.isColumnGrouped(o),isFixed:this.isColumnFixed(o),pinned:this.getColumnPinnedPosition(o),isExcludedFromQuickSearch:!1,isSparkline:this.isColumnSparkline(o)};d.aggregatable&&(d.availableAggregationFunctions=this.getColumnAggregationFunctions(o),typeof o.aggFunc=="string"&&(d.aggregationFunction=o.aggFunc));let c=this.adaptable.adaptableOptions.searchOptions.excludeColumnFromQuickSearch;return c&&c(d)&&(d.isExcludedFromQuickSearch=!0),d}createAdaptableSideBarDefs(t,n){let r=[];if(t){let a={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"};r.push(a)}if(n){let a={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"};r.push(a)}return r.push(this.createAdaptableToolPanel()),this.orderToolPanels(r),{toolPanels:r,defaultToolPanel:""}}createAdaptableToolPanel(){return{id:"adaptable",toolPanel:"AdaptableToolPanel",labelDefault:this.adaptable.adaptableOptions.toolPanelOptions.adaptableToolPanelTitle,labelKey:"adaptable",iconKey:this.adaptable.adaptableOptions.toolPanelOptions.iconKey,width:this.adaptable.adaptableOptions.toolPanelOptions.width,minWidth:this.adaptable.adaptableOptions.toolPanelOptions.minWidth,maxWidth:this.adaptable.adaptableOptions.toolPanelOptions.maxWidth}}orderToolPanels(t){let n=this.adaptable.adaptableOptions.toolPanelOptions.toolPanelOrder;t.sort(function(r,o){let a=typeof r=="string"?r:r.id,i=typeof o=="string"?o:o.id;return n.indexOf(a)-n.indexOf(i)})}reselectSelectedCells(){let t=this.gridOptions.api.getCellRanges();if(Ee.CorrectLength(t,1)){let n=t[0],r={rowStartIndex:n.startRow.rowIndex,rowEndIndex:n.endRow.rowIndex,columns:n.columns};this.gridOptions.api.clearRangeSelection(),this.gridOptions.api.addCellRange(r)}}fireSelectionChangedEvent(){let t={adaptableApi:this.adaptable.api,selectedCellInfo:this.adaptable.api.gridApi.getGridState().SelectedCellInfo,selectedRowInfo:this.adaptable.api.gridApi.getGridState().SelectedRowInfo};this.adaptable.api.eventApi.emit("SelectionChanged",t)}isColumnReadonly(t){return t&&typeof t.editable=="function"?!1:!t.editable}isColumnSortable(t){return t&&t.sortable!=null?t.sortable:!1}isColumnGroupable(t){return t&&t.enableRowGroup!=null?t.enableRowGroup:!1}isColumnPivotable(t){return t&&t.enablePivot!=null?t.enablePivot:!1}isColumnAggregetable(t){return t&&t.enableValue!=null?t.enableValue:!1}getColumnAggregationFunctions(t){return t.allowedAggFuncs||["sum","min","max","count","avg","first","last"]}isColumnMoveable(t){return!(!t||t.suppressMovable!=null&&t.suppressMovable==!0||this.isColumnFixed(t))}isColumnQueryable(t,n){if(!t)return!1;let r=this.adaptable.api.queryLanguageApi.getQueryableColumnIds();return Ee.IsNull(r)?!0:Ee.IsEmpty(r)?!1:r.find(o=>o==n)!=null}isColumnHideable(t){return!(!t||t.lockVisible!=null&&t.lockVisible==!0)}isColumnFilterable(t){return t!=null&&t.filter!=null&&t.filter!=!1}getColumnPinnedPosition(t){return t.pinned?t.pinned==="left"||t.pinned===!0?"left":"right":!1}isColumnFixed(t){return t?t.lockPosition!=null&&t.lockPosition==!0||t.lockPinned!=null&&t.lockPinned==!0:!1}isColumnGrouped(t){return t?t.rowGroup!=null&&t.rowGroup==!0||t.rowGroupIndex!=null:!1}isColumnSparkline(t){return(t==null?void 0:t.cellRenderer)==="agSparklineCellRenderer"}getColumnDataType(t,n=!0){if(!t)return nt("column is undefined returning String for Type"),"String";let r="Unknown",o=this.adaptable.api.columnApi.getColumnFromId(t.getId(),n);if(o&&o.dataType!="Unknown")return o.dataType;let a=t.getColDef().type;if(a&&(Array.isArray(a)?a.forEach(d=>{r=="Unknown"&&(r=this.getabColDefValue(d))}):r=this.getabColDefValue(a),r!="Unknown"))return r;let i=this.gridOptions.api.getModel();if(i==null)return nt(`No model so returning type "Unknown" for Column: "${t.getColId()}"`),"Unknown";let l=i.getRow(0);if(l==null)return nt(`No data in grid so returning type "Unknown" for Column: "${t.getColId()}"`),"Unknown";if(l.group){let d=l.childrenAfterGroup;if(Ee.IsNullOrEmpty(d))return nt(`No data in grid so returning type "Unknown" for Column: "${t.getColId()}"`),"Unknown";l=d[0]}let u=this.gridOptions.api.getValue(t,l);if(u instanceof Date)r="Date";else if(Array.isArray(u)&&u.length&&typeof u[0]=="number")r="Unknown";else switch(typeof u){case"string":r="String";break;case"number":r="Number";break;case"boolean":r="Boolean";break;case"object":r="Object";break;default:break}return nt(`No defined type for column '${t.getColId()}'. Defaulting to type of first value: ${r}`),r}getabColDefValue(t){if(t=="numericColumn")return"Number";if(t.startsWith("abColDef"))switch(t){case"abColDefNumber":return"Number";case"abColDefString":return"String";case"abColDefBoolean":return"Boolean";case"abColDefDate":return"Date";case"abColDefObject":return"Object";default:return"Unknown"}return"Unknown"}getAgGridDataType(t){if(!t)return"abColDefString";switch(t){case"Boolean":return"abColDefBoolean";case"Date":return"abColDefDate";case"Number":return"abColDefNumber";case"Object":return"abColDefObject";case"String":return"abColDefString";case"All":case"Unknown":return"abColDefCustom"}}checkShouldClearExistingFiltersOrSearches(){this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp&&Ee.IsNotNullOrEmpty(this.adaptable.api.filterApi.getAllColumnFilter())&&(nt('Clearing existing Column Filters as "clearFiltersOnStartUp" is true'),this.adaptable.api.filterApi.clearAllColumnFilter()),this.adaptable.adaptableOptions.searchOptions.clearSearchesOnStartUp&&(we.IsNotNullOrEmpty(this.adaptable.api.quickSearchApi.getQuickSearchState().QuickSearchText)||we.IsNotNullOrEmpty(this.adaptable.api.queryApi.getCurrentQuery())||Ee.IsNotNullOrEmpty(this.adaptable.api.dataSourceApi.getAllDataSource()))&&(nt('Clearing existing Searches as "clearSearchesOnStartUp" is true'),this.adaptable.api.quickSearchApi.clearQuickSearch(),this.adaptable.api.queryApi.clearCurrentQuery(),this.adaptable.api.dataSourceApi.clearDataSource())}runAdaptableGroupComparerFunction(){let t=this.adaptable;return function(r,o){let a=t.getFirstGroupedColumn();if(a){let i=t.getActiveColumnComparator(a.columnId,t.api.customSortApi.getCustomSortByColumn(a.columnId),t.api.internalApi.getCustomSortComparer(a));if(i)return i(r.key,o.key);if(t.api.layoutApi.getCurrentLayoutColumnSort(a.columnId)==="Desc")return r.key>o.key?-1:1}return r.key==o.key?0:r.key<o.key?-1:1}}getCurrentIPPStyle(){let t=document.querySelectorAll(".ag-header-cell").item(0),n=document.querySelector(".ag-header"),r=n?window.getComputedStyle(n,null):null,o=document.querySelector(".ag-row-even"),a=o?window.getComputedStyle(o,null):null,i=document.querySelector(".ag-row-odd"),l=i?window.getComputedStyle(i,null):{backgroundColor:"#fff"};return{Header:{headerColor:YS(r.color).toHexString(),headerBackColor:YS(r.backgroundColor).toHexString(),headerFontFamily:r.fontFamily,headerFontSize:r.fontSize,headerFontStyle:r.fontStyle,headerFontWeight:r.fontWeight,height:Number(r.height.replace("px","")),Columns:this.adaptable.api.columnApi.getColumns().map(u=>{let d=document.querySelector(`.ag-header-cell[col-id='${u.columnId}']`),c=window.getComputedStyle(d||t,null);return{columnFriendlyName:u.friendlyName,width:Number(c.width.replace("px","")),textAlign:c.textAlign}})},Row:{color:YS(a.color).toHexString(),backColor:YS(a.backgroundColor).toHexString(),altBackColor:YS(l.backgroundColor).toHexString(),fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight,height:Number(a.height.replace("px","")),Columns:this.adaptable.api.columnApi.getColumns().map(u=>{let d=document.querySelector(`.ag-cell[col-id='${u.columnId}']`),c=window.getComputedStyle(d||o,null);return{columnFriendlyName:u.friendlyName,width:Number(c.width.replace("px","")),textAlign:c.textAlign}})}}}};s();var A9=A(ewe()),r1=class{constructor(t,n){this.adaptable=t;this.gridOptions=n;this.adaptable=t,this.gridOptions=n}buildColumnMenu(t,n){let r=t.column.getColId(),o=[],a=[],i=[];o.push(...this.createAgGridColumnMenuItems(n,t));let l=this.adaptable.adaptableOptions.menuOptions.showAdaptableColumnMenu,u=l==null||l!==!1;u&&o.push("separator");let d=this.adaptable.api.columnApi.getColumnFromId(r),c=this.createColumnMenuContextObject(d,t.column);if(c.isRowGroupColumn){let f=this.createGroupedColumnMenuItem();f&&a.push(f)}u&&a.push(...this.createAdaptableColumnMenuItems(d,c)),i.push(...this.createUserColumnMenuItems(c));let m={aggrid:o,adaptable:a,user:i};return(0,A9.default)(this.adaptable.adaptableOptions.menuOptions.columnMenuOrder.map(f=>m[f]))}buildContextMenu(t,n){let r=[],o=[],a=[],i=this.adaptable.adaptableOptions.menuOptions.showAdaptableContextMenu,l=i==null||i!==!1,u=this.adaptable.adaptableOptions.menuOptions.contextMenuItems,d=Ee.IsNotNullOrEmpty(u),c=this.createAgGridContextMenuItems(n,t);c&&(r.push(...c),(l||d)&&r.push("separator"));let m=[],f=t.column;if(f){let b=this.adaptable.api.columnApi.getColumnFromId(f.getColId()),C=this.createContextMenuContextObject(t,b),y=this.createAdaptableContextMenuItems(C);Ee.IsNotNullOrEmpty(y)&&m.push(...y),Ee.IsNotNullOrEmpty(m)&&l&&o.push(...this.createAgGridAdaptableContextMenuItems(m,C)),d&&a.push(...this.createAgGridUserContextMenuItems(u,C))}let h={aggrid:r,adaptable:o,user:a};return(0,A9.default)(this.adaptable.adaptableOptions.menuOptions.contextMenuOrder.map(b=>h[b]))}createRemoveGroupsMenuItem(t){return{name:t.label,action:t.onClick?t.onClick:()=>this.adaptable.api.internalApi.dispatchReduxAction(t.reduxAction),icon:ZH(t.icon,{style:{fill:"var(--ab-color-text-on-primary)"}})}}createAgGridMenuDefFromAdaptableMenu(t){let n=Ee.IsNotNullOrEmpty(t.subItems)?t.subItems.map(r=>this.createAgGridMenuDefFromAdaptableMenu(r)):void 0;return{name:t.label,action:t.onClick?t.onClick:t.reduxAction?()=>this.adaptable.api.internalApi.dispatchReduxAction(t.reduxAction):void 0,icon:ZH(t.icon,{style:{fill:"var(--ab-color-text-on-primary)"}}),subMenu:n}}createAgGridColumnMenuDefFromUserMenu(t,n){let r=t.onClick,o=t.disabled&&t.disabled(n);return{name:this.getLabelFromUserColumnMenuItem(t,n),action:()=>r?r(n):null,icon:t.icon,disabled:o,subMenu:Ee.IsNullOrEmpty(t.subMenuItems)?void 0:t.subMenuItems.map(a=>this.createAgGridColumnMenuDefFromUserMenu(a,n))}}createAgGridContextMenuDefFromUserMenu(t,n){let r=t.onClick,o=t.disabled&&t.disabled(n);return{name:this.getLabelFromUserContextMenuItem(t,n),action:()=>r?r(n):null,icon:t.icon,disabled:o,subMenu:Ee.IsNullOrEmpty(t.subMenuItems)?void 0:t.subMenuItems.map(a=>this.createAgGridContextMenuDefFromUserMenu(a,n))}}createAdaptableColumnMenuItemFromUserMenu(t,n){let r=t.onClick;return{label:this.getLabelFromUserColumnMenuItem(t,n),reduxAction:null,onClick:()=>r?r(n):null,isVisible:!0,icon:t.icon}}createAgGridColumnMenuItems(t,n){return t?t(n):n.defaultItems.slice(0)}createGroupedColumnMenuItem(){if(this.adaptable.adaptableOptions.menuOptions.showUngroupColumnMenuItem){let n={label:this.gridOptions.columnApi.getRowGroupColumns().length==1?"Ungroup Column":"Ungroup All",onClick:()=>this.gridOptions.columnApi.setRowGroupColumns([]),isVisible:!0,icon:"undo"};return this.createAgGridMenuDefFromAdaptableMenu(n)}}createAdaptableColumnMenuItems(t,n){let r=[];return this.getAdaptableMenuItemsColumnHeader(t,n).forEach(a=>{let i=this.createAgGridMenuDefFromAdaptableMenu(a);r.push(i)}),r}createUserColumnMenuItems(t){let n=[],r=this.getUserMenuItemsColumnHeader(t);return Ee.IsNotNullOrEmpty(r)&&r.forEach(o=>{let a=this.createAgGridColumnMenuDefFromUserMenu(o,t);n.push(a)}),n}createColumnMenuContextObject(t,n){return{adaptableColumn:t,agGridColumn:n,adaptableApi:this.adaptable.api,isRowGroupColumn:this.adaptable.api.columnApi.isRowGroupColumn(n.getColId())}}createContextMenuContextObject(t,n){let r=!1,o=!1,a;n&&(a=this.adaptable.getGridCellFromRowNode(t.node,n.columnId));let i=this.adaptable.api.gridApi.getSelectedCellInfo();a&&i&&(o=i.gridCells.find(d=>d!=null&&d.column==a.column&&d.primaryKeyValue==a.primaryKeyValue)!=null,o&&(r=Ee.CorrectLength(i.columns,1)));let l=this.adaptable.setSelectedRows();return{isSelectedCell:o,gridCell:a,adaptableColumn:n,agGridColumn:t.column,rowNode:t.node,isGroupedNode:t.node?t.node.group:!1,isSingleSelectedColumn:r,isSingleSelectedCell:o&&(i==null?void 0:i.gridCells.length)==1,primaryKeyValue:a?a.primaryKeyValue:void 0,adaptableApi:this.adaptable.api,selectedCellInfo:i,selectedRowInfo:l,isRowGroupColumn:this.adaptable.api.columnApi.isRowGroupColumn(t.column.getColId())}}createAgGridContextMenuItems(t,n){return t?t(n).slice(0):n.defaultItems?n.defaultItems.slice(0):[]}createAdaptableContextMenuItems(t){let n=[];return this.adaptable.adaptableModules.forEach(r=>{let o=r.addContextMenuItems(t);o&&n.push(...o)}),this.adaptable._emitSync("CreateAdaptableContextMenuItems",{items:n,menuContext:t}),n}createAgGridAdaptableContextMenuItems(t,n){let r=[],o=this.adaptable.adaptableOptions.menuOptions.showAdaptableContextMenu;return(o==null||o!==!1)&&t.forEach(a=>{if(a){let i=!0;if(o!=null&&typeof o=="function"&&(i=o(a,n)),i){let l=this.createAgGridMenuDefFromAdaptableMenu(a);r.push(l)}}}),r}createAgGridUserContextMenuItems(t,n){let r=[];return t.filter(o=>!!o).filter(o=>o.hidden?!o.hidden(n):!0).forEach(o=>{let a=this.createAgGridContextMenuDefFromUserMenu(o,n);r.push(a)}),r}getAdaptableMenuItemsColumnHeader(t,n){let r=[],o=this.adaptable.adaptableOptions.menuOptions.showAdaptableColumnMenu,a=o==null||o!==!1;return this.adaptable.adaptableModules.forEach(i=>{let l=i.addColumnMenuItems(t);l&&(a?l.forEach(u=>{if(u){let d=!0;o!=null&&typeof o=="function"&&(d=o(u,n)),d&&r.push(u)}}):r.push(...l))}),r}getLabelFromUserColumnMenuItem(t,n){return typeof t.label=="function"?t.label(n):t.label}getLabelFromUserContextMenuItem(t,n){return typeof t.label=="function"?t.label(n):t.label}getUserMenuItemsColumnHeader(t){var n,r;return(r=(n=this.adaptable.adaptableOptions.menuOptions)==null?void 0:n.columnMenuItems)==null?void 0:r.filter(o=>o.hidden?!o.hidden(t):!0)}buildStandaloneColumnHeader(t){let n=this.createColumnMenuContextObject(t,null),r=[];r.push(...this.getAdaptableMenuItemsColumnHeader(t,n));let o=this.getUserMenuItemsColumnHeader(n);return Ee.IsNotNullOrEmpty(o)&&o.forEach(a=>{let i=this.createAdaptableColumnMenuItemFromUserMenu(a,n);r.push(i)}),r}};s();var XS=A(require("react-dom"));s();var zn=A(require("react"));s();var gl=A(require("react"));var x9=A(J());s();var KS=A(require("react"));var WEt="ab-GridList",qEt=new Map([["item",{field:"item",header:null,flex:1}]]),zEt=e=>{var n;let t=KS.Children.map(e.children,(r,o)=>({item:r,id:o})).filter(r=>!!r.item);return KS.createElement(Gc,{data:t,primaryKey:"id"},KS.createElement(ts,{header:!1,showZebraRows:e.showZebraRows,rowHeight:(n=e.rowHeight)!=null?n:"--ab-grid-row-height",domProps:{className:He(WEt,e.className),style:{minHeight:"15rem"}},columns:qEt}))},twe=zEt;var $S=require("react");var o1=e=>{let[t,n]=(0,$S.useState)(""),r=gl.useCallback(f=>{n(f),e==null||e.onFilterChange(f)},[e.onFilterChange]),[o,a]=(0,$S.useState)(e.uiSelectedColumnValues),i=f=>{a(f),e.onColumnValueSelectedChange(f)};(0,$S.useEffect)(()=>{a(e.uiSelectedColumnValues)},[e.uiSelectedColumnValues]);let l=f=>gl.createElement(pe,R(g({},f),{variant:"agGrid",fontSize:2,marginTop:1,marginBottom:1,marginLeft:1,marginRight:1})),u=f=>{let h=o.indexOf(f);if(h>=0){let b=[...o];b.splice(h,1),i(b)}else i([...o,f])},d=e.columnDistinctValues.map((f,h)=>{let b=o.indexOf(f)>=0,C=f;return we.IsNullOrEmpty(C)||!e.suppressClientSideFilter&&we.IsNotNullOrEmpty(t)&&C.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())<0?null:e.useAgGridStyle?l({key:"columnValue"+h,children:C,checked:b,onChange:()=>u(f)}):gl.createElement(Hg,{noZebra:e.useAgGridStyle,key:"columnValue"+h,onClick:()=>u(f),active:b,value:C},C)}),c=gl.createElement(Ii,{autoFocus:!0,type:"text",placeholder:"Search Column Values",value:t,style:{paddingTop:"var(--ab-space-1)",paddingBottom:"var(--ab-space-1)",paddingLeft:"var(--ab-space-1)",borderRadius:"var(--ab__border-radius)"},OnTextChange:r}),m="ab-ListBoxFilterForm";return gl.createElement("div",{className:He(m,e.useAgGridStyle?`${m}--aggrid-style`:null,e.isLoading&&`${m}--loading`)},gl.createElement(x9.Box,{px:2},gl.createElement(x9.Box,{mx:e.useAgGridStyle?0:"2px",marginBottom:2},c,e.isLoading&&gl.createElement(wS,null,"Loading"))),!e.isLoading&&gl.createElement(twe,{showZebraRows:!1,className:e.useAgGridStyle?"":"ab-padding-horizontal-0"},d))};s();var xm=A(require("react"));var a1=class extends xm.Component{constructor(t){super(t),this.state={}}render(){let t=this.props.MenuItems.map((n,r)=>xm.createElement(Hg,{key:r,onClick:()=>this.onClick(n)},n.icon&&xm.createElement(Ct,{name:n.icon}),n.label));return xm.createElement("div",{style:QEt},xm.createElement(x_,null,t))}onClick(t){this.props.onMenuItemClick(t)}},QEt={overflowY:"auto",overflowX:"hidden",height:"450px",marginBottom:"0"};s();var ra=A(require("react")),fu=A(J());var i1=class extends ra.Component{render(){let t=ra.createElement(fu.Flex,{alignItems:"center",flexDirection:"row",style:{width:"100%"}},this.props.IsAlwaysFilter?ra.createElement(fu.Flex,{flex:6,marginRight:2},"Filter"):ra.createElement(fu.Flex,{flex:6,flexDirection:"column"},ra.createElement(fu.Flex,null,ra.createElement(fu.Flex,{flex:6},ra.createElement(We,{value:"Menu",checked:this.props.ColumnMenuTab=="Menu",onChange:()=>this.onSelectMenu()},"Menu")),ra.createElement(fu.Flex,{flex:6},ra.createElement(We,{value:"Filter",checked:this.props.ColumnMenuTab=="Filter",onChange:()=>this.onSelectFilter()},"Filter")))),this.props.clearFilterButton&&this.props.ColumnMenuTab=="Filter"&&this.props.clearFilterButton,this.props.saveButton&&this.props.ColumnMenuTab=="Filter"&&this.props.saveButton);return ra.createElement(fu.Flex,{flexDirection:"column"},ra.createElement(Gt,{className:"ab-FilterFormPanel",header:t,headerProps:{padding:1},style:R(g({},this.props.style),{flex:1}),bodyProps:{padding:0,style:{maxHeight:"50vh"}},bodyScroll:!0,borderRadius:0,border:"none"},this.props.children),this.props.autoApplyFilter?null:ra.createElement(fu.Flex,{flex:"none",flexDirection:"row",padding:1,justifyContent:"flex-end"},ra.createElement(re,{variant:"raised",tone:"accent",disabled:this.props.applyFilterButtonDisabled,onClick:()=>this.onApplyFilterClicked()},"Apply Filter")))}onApplyFilterClicked(){this.props.onFilterApplied()}onSelectMenu(){this.props.ColumnMenuTabChanged("Menu")}onSelectFilter(){this.props.ColumnMenuTabChanged("Filter")}};var Rm=A(J());s();var Cp=(e,t)=>typeof t=="function"?t(e):t;var YEt={width:"100%",minWidth:150},yp=class extends zn.Component{constructor(n){super(n);this._isMounted=!1;this.handleFilterChange=n=>{this.state.suppressClientSideFilter&&this.loadPermittedValues(n)};this._isMounted=!0;let r=yp.createColumnFilterFromProps(this.props);this.state={columnFilters:n.columnFilters,distinctColumnValues:[],isDistinctColumnValuesLoading:!1,showTab:!0,selectedTab:"Filter",editedColumnFilter:r,currentTab:yp.getCurrentTab(r),suppressClientSideFilter:!1}}static createColumnFilterFromProps(n){let r=n.columnFilters.find(o=>o.ColumnId==n.currentColumn.columnId);if(!r){let o=n.api.internalApi.getAdaptableOptions().filterOptions;if(o.defaultFilterFormTab=="Values")return Vt.CreateColumnFilter(n.currentColumn.columnId,"Values",[]);if(n.currentColumn.dataType==="Number")return Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultNumericColumnFilter),[""]);if(n.currentColumn.dataType==="String")return Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultStringColumnFilter),[""]);if(n.currentColumn.dataType==="Date")return Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultDateColumnFilter),[""]);if(n.currentColumn.dataType==="Boolean")return Vt.CreateColumnFilter(n.currentColumn.columnId,"BooleanToggle",["all"])}return r}static getCurrentTab(n){return n&&n.Predicate&&n.Predicate.PredicateId&&n.Predicate.PredicateId!="Values"?"predicates":"values"}static getDerivedStateFromProps(n,r){let a=n.api.internalApi.getAdaptableOptions().filterOptions.autoApplyFilter?yp.createColumnFilterFromProps(n):r.editedColumnFilter,i=r.columnFilters,l=!1;return n.columnFilters!==i&&(i=n.columnFilters,l=!0),{editedColumnFilter:a,columnFilters:i,currentTab:l||!r.currentTab?yp.getCurrentTab(a):r.currentTab}}componentWillUnmount(){this._isMounted=!1}componentDidMount(){this.props.currentColumn.dataType!="Boolean"&&this.loadPermittedValues()}async loadPermittedValues(n=""){let{values:r,suppressClientSideFilter:o}=await Ld(this.props.api.columnApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId,n),()=>this._isMounted&&this.setState({isDistinctColumnValuesLoading:!0}));!this._isMounted||this.setState({distinctColumnValues:r,isDistinctColumnValuesLoading:!1,suppressClientSideFilter:o})}render(){var c,m;let n=this.isFilterable(),r=this.props.api.internalApi.getAdaptableOptions().filterOptions,o=this.props.api.filterApi.getFilterPredicateDefsForColumn(this.props.currentColumn).filter(f=>!f.onlyQuickFilter),a=((m=(c=this.state.editedColumnFilter)==null?void 0:c.Predicate)==null?void 0:m.PredicateId)==="Values"?this.state.editedColumnFilter.Predicate.Inputs:[],i=sn.objectNotExists(this.state.editedColumnFilter)||sn.objectNotExists(this.state.editedColumnFilter.Predicate)||sn.objectNotExists(this.state.editedColumnFilter.Predicate.PredicateId),l=zn.createElement(Jg,{onClick:()=>this.onCloseForm(),tooltip:null,accessLevel:"Full"}),u=zn.createElement(ti,{onClick:()=>this.onClearFilter(),disabled:i,tooltip:null,accessLevel:"Full",showText:!0,showIcon:!1}),d=!!r.useAgGridFilterFormStyle;return zn.createElement("div",{"data-name":"filter-form"},we.IsNullOrEmpty(n)?zn.createElement(i1,{style:YEt,ColumnMenuTab:this.state.selectedTab,ColumnMenuTabChanged:f=>this.onSelectTab(f),IsAlwaysFilter:this.props.embedColumnMenu,clearFilterButton:u,closeButton:l,showCloseButton:this.props.showCloseButton,autoApplyFilter:!!r.autoApplyFilter,useAgGridStyle:d,applyFilterButtonDisabled:i,onFilterApplied:()=>this.onFilterApplied()},this.state.selectedTab=="Menu"?zn.createElement(a1,{MenuItems:this.props.api.internalApi.buildStandaloneColumnHeader(this.props.currentColumn),onMenuItemClick:f=>this.onMenuItemClick(f)}):zn.createElement("div",null,this.state.showTab&&zn.createElement("div",null,zn.createElement(We,{marginLeft:1,flex:1,checked:this.state.currentTab=="values",onChange:()=>this.setState({currentTab:"values"})},zn.createElement(Rm.Flex,{fontSize:"var( --ab-font-size-2)"},"Column Values")),zn.createElement(We,{marginLeft:2,flex:1,checked:this.state.currentTab=="predicates",onChange:()=>this.setState({currentTab:"predicates"})},zn.createElement(Rm.Flex,{fontSize:"var( --ab-font-size-2)"},"Filters"))),this.state.currentTab==="values"&&zn.createElement("div",null,zn.createElement(o1,{suppressClientSideFilter:this.state.suppressClientSideFilter,isLoading:this.state.isDistinctColumnValuesLoading,onFilterChange:this.handleFilterChange,currentColumn:this.props.currentColumn,columns:this.props.columns,columnDistinctValues:this.state.distinctColumnValues,dataType:this.props.currentColumn.dataType,uiSelectedColumnValues:a,useAgGridStyle:d,onColumnValueSelectedChange:f=>this.onColumnValuesChange(f)})),this.state.currentTab==="predicates"&&zn.createElement("div",null," ",this.state.showTab&&zn.createElement("hr",null),o.filter(f=>f.id!="Values").map((f,h)=>this.renderColumnPredicate(f,h))))):zn.createElement(Nt,null,n))}renderColumnPredicate(n,r){var i;let{editedColumnFilter:o}=this.state,a=((i=o==null?void 0:o.Predicate)==null?void 0:i.PredicateId)===n.id;return zn.createElement(Rm.Flex,{key:r,flexDirection:"column"},zn.createElement(We,{fontSize:"var(--ab-font-size-2)",margin:1,flex:1,checked:a,onChange:()=>this.selectColumnPredicate(n)},n.label),zn.createElement(Rm.Flex,{flexDirection:"column",flex:0,marginLeft:3,marginRight:2},a&&this.renderPredicateInput(n,o)))}renderPredicateInput(n,r){var o;return(n==null?void 0:n.id)==="BooleanToggle"?zn.createElement(Rm.Flex,{flexDirection:"row",flex:1,justifyContent:"center",alignItems:"center"},zn.createElement(pe,{checked:r.Predicate.Inputs[0]==="true"?!0:r.Predicate.Inputs[0]==="false"?!1:null,onChange:a=>{let i=r.Predicate.Inputs[0]==="false"&&a===!0?"all":a===!0?"true":"false";this.changeColumnPredicateInput(i,0)}})):(o=n.inputs)==null?void 0:o.map((a,i)=>zn.createElement(Rm.Flex,{key:i,flexDirection:"row"},zn.createElement(Yn,{type:a.type,autoFocus:i===0,value:r.Predicate.Inputs[i],onChange:l=>this.changeColumnPredicateInput(l.target.value,i),style:{marginBottom:5,flex:1,fontSize:"var( --ab-font-size-2)"}})))}isFilterable(){return this.props.currentColumn.filterable?"":"Column is not filterable"}onSelectTab(n){this.setState({selectedTab:n})}onColumnValuesChange(n){let{editedColumnFilter:r}=this.state;r.Predicate={PredicateId:"Values",Inputs:n},this.setState({editedColumnFilter:r}),this.persistFilter()}persistFilter(){let{editedColumnFilter:n}=this.state;n.Predicate===void 0||n.Predicate.PredicateId==="Values"&&n.Predicate.Inputs.length===0?this.props.onClearColumnFilter(n):this.props.api.internalApi.getAdaptableOptions().filterOptions.autoApplyFilter&&this.props.onSetColumnFilter(n)}onClearFilter(){let{editedColumnFilter:n}=this.state;n.Predicate=void 0,this.setState({editedColumnFilter:n}),this.persistFilter()}onFilterApplied(){this.props.onAddColumnFilter(this.state.editedColumnFilter),this.props.onHideFilterForm()}onCloseForm(){this.props.onHideFilterForm()}onMenuItemClick(n){n.reduxAction&&this.props.onMenuItemClick(n.reduxAction),n.onClick&&n.onClick(),this.props.onHideFilterForm()}selectColumnPredicate(n){var o;let{editedColumnFilter:r}=this.state;r.Predicate={PredicateId:n.id,Inputs:((o=n.inputs)!=null?o:[]).map(a=>{var i;return(i=a.defaultValue)!=null?i:""})},this.setState({editedColumnFilter:r}),this.persistFilter()}changeColumnPredicateInput(n,r){let{editedColumnFilter:o}=this.state;o.Predicate.Inputs[r]=n,this.setState({editedColumnFilter:o}),this.props.api.internalApi.getAdaptableOptions().filterOptions.autoApplyFilter&&this.props.onSetColumnFilter(o)}};function KEt(e,t){return{currentColumn:t.currentColumn,columns:e.Grid.Columns,columnFilters:e.Filter.ColumnFilters,showCloseButton:t.showCloseButton}}function $Et(e){return{onMenuItemClick:t=>e(t),onClearColumnFilter:t=>e(Bl(t)),onAddColumnFilter:t=>e(ws(t)),onEditColumnFilter:t=>e(Jf(t)),onSetColumnFilter:t=>e(DC(t)),onHideFilterForm:()=>e(Jre())}}var XEt=Ye(KEt,$Et)(yp),nwe=e=>ki(zn.createElement(XEt,{api:e.Adaptable.api,currentColumn:e.Column,teamSharingActivated:!1,embedColumnMenu:e.Adaptable.embedColumnMenu,showCloseButton:e.ShowCloseButton}),e.Adaptable);var rwe=e=>class{init(n){this.params=n,this.column=n.column,this.filterContainer=document.createElement("div"),this.filterContainer.id="filter_"+this.params.column.getColId()+"_"+e.adaptableOptions.adaptableId}isFilterActive(){return e.api.filterApi.getAllColumnFilter().findIndex(n=>n.ColumnId==this.params.column.getColId())>-1}doesFilterPass(n){return!0}getModel(){}setModel(n){}getGui(){return this.filterContainer}afterGuiAttached(n){XS.unmountComponentAtNode(this.filterContainer);let r=e.api.columnApi.getColumnFromId(this.column.getColId());if(r){let o={Column:r,Adaptable:e,ShowCloseButton:n!=null&&n.hidePopup!=null};e.hideFilterFormPopup=n?n.hidePopup:null,XS.render(nwe(o),this.filterContainer)}}destroy(){XS.unmountComponentAtNode(this.filterContainer),this.filterContainer=null}};s();var l1=A(require("react-dom"));s();var gn=A(require("react")),R9=A(Fm());var Em=A(J());var owe=A(Ep());var E9=class extends gn.Component{constructor(n){super(n);this._isMounted=!1;this.handleFilterChange=n=>{this.state.suppressClientSideFilter&&this.loadPermittedValues(n)};this.loadPermittedValues=async(n="")=>{let{values:r,suppressClientSideFilter:o}=await Ld(this.props.api.columnApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId,n),()=>this._isMounted&&this.setState({isDistinctColumnValuesLoading:!0}));!this._isMounted||this.setState({distinctColumnValues:r,suppressClientSideFilter:o,isDistinctColumnValuesLoading:!1})};this.debouncedAddFilter=(0,R9.default)(()=>this.props.onAddColumnFilter(this.state.filter),250);this.debouncedEditFilter=(0,R9.default)(()=>this.props.onEditColumnFilter(this.state.filter),250);let r=this.getFilterFromProps();this._isMounted=!0,this.state={filter:r,suppressClientSideFilter:!1,isDistinctColumnValuesLoading:!1,distinctColumnValues:[]}}componentDidMount(){var n,r;((r=(n=this.state)==null?void 0:n.filter)==null?void 0:r.Predicate.PredicateId)==="Values"&&this.loadPermittedValues()}componentWillUnmount(){this._isMounted=!1}UNSAFE_componentWillReceiveProps(n){let r=this.getFilterFromProps(n);(0,owe.default)(r,this.state.filter)||(this.setState({filter:r}),(r==null?void 0:r.Predicate)&&r.Predicate.PredicateId==="Values"&&(this.setState({isDistinctColumnValuesLoading:!0}),this.loadPermittedValues()))}getFilterFromProps(n=this.props){let r=n.columnFilters.find(a=>a.ColumnId==n.currentColumn.columnId),o=n.api.internalApi.getAdaptableOptions().filterOptions;return r||(!r&&n.currentColumn.dataType==="Number"?Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultNumericColumnFilter),[""]):!r&&n.currentColumn.dataType==="String"?Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultStringColumnFilter),[""]):!r&&n.currentColumn.dataType==="Date"?Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultDateColumnFilter),[""]):!r&&n.currentColumn.dataType==="Boolean"?Vt.CreateColumnFilter(this.props.currentColumn.columnId,"BooleanToggle",["all"]):Vt.CreateColumnFilter(this.props.currentColumn.columnId,null,null))}render(){let{filter:n}=this.state,r=this.props.api.filterApi.getFilterPredicateDefsForColumn(this.props.currentColumn),o=this.props.api.predicateApi.getPredicateDefById(n==null?void 0:n.Predicate.PredicateId);if(!this.props.currentColumn||!this.props.currentColumn.filterable)return null;let a="mouseenter",i="mouseleave";this.props.quickFilterTrigger==="click"&&(a="click",i="blur");let l=!0,u=this.props.api.internalApi.getAdaptableOptions().filterOptions.hideQuickFilterDropdown;u&&(l=!u(this.props.currentColumn));let d=!0,c=this.props.api.internalApi.getAdaptableOptions().filterOptions.hideQuickFilterInput;return c&&(d=!c(this.props.currentColumn)),gn.createElement(gn.Fragment,null,l&&gn.createElement(Ha,{showEvent:a,hideEvent:i,preventPortalEventPropagation:a==="click",alignHorizontal:"left",targetOffset:10,hideDelay:300,"data-name":"quick-filter-overlay",style:{overflowY:"auto",fontSize:"var(--ab-font-size-2)",border:"1px solid var(--ab-color-primarydark)",background:"var(--ab-color-defaultbackground)"},render:()=>gn.createElement(Em.Flex,{flexDirection:"column","data-name":"quick-filter"},(n==null?void 0:n.Predicate.PredicateId)&&gn.createElement(gn.Fragment,null,gn.createElement(re,{p:2,variant:"text",onClick:()=>this.clearFilter()},gn.createElement("span",{style:{width:20,marginRight:10}},gn.createElement(Ct,{name:"delete"})),"Clear")),r.map(m=>gn.createElement(re,{key:m.id,p:2,variant:"text",tone:(n==null?void 0:n.Predicate.PredicateId)===m.id?"info":"none",onClick:()=>this.selectColumnPredicate(m.id)},gn.createElement("span",{style:{width:20,marginRight:10}},this.renderPredicateIcon(m)),m.label)))},gn.createElement(re,{style:{borderRadius:0,borderColor:"var(--ab-color-primarydark)"}},this.renderPredicateIcon(o))),d&&this.renderLabel(n,o),d&&this.renderPredicateInput(o,n))}renderLabel(n,r){return(n==null?void 0:n.Predicate.PredicateId)==="Values"?De.IsNullOrEmpty(n.Predicate.Inputs)&&De.IsNullOrEmptyOrContainsSingleEmptyValue(this.state.distinctColumnValues)?this.renderNoValuesDropdown(n):this.renderValuesDropdown(n):r&&(r==null?void 0:r.inputs)===void 0&&gn.createElement(Em.Box,{p:1,alignSelf:"center"},r.label)}renderPredicateIcon(n){if(!n||!n.icon)return gn.createElement(Ct,{name:"filter-outline"});if("text"in n.icon)return gn.createElement("span",null,n.icon.text);if("path"in n.icon)return gn.createElement(Ct,{name:n.icon.path})}renderPredicateInput(n,r){var o;return(n==null?void 0:n.id)==="BooleanToggle"?gn.createElement(Em.Flex,{flexDirection:"row",flex:1,justifyContent:"center",alignItems:"center",style:{position:"absolute",left:0,right:0,bottom:0,top:0}},gn.createElement(pe,{checked:r.Predicate.Inputs[0]==="checked"?!0:r.Predicate.Inputs[0]==="unchecked"?!1:null,onChange:a=>{let i=r.Predicate.Inputs[0]==="unchecked"&&a===!0?"all":a===!0?"checked":"unchecked";this.changeColumnPredicateInput(i,0)}})):(o=n==null?void 0:n.inputs)==null?void 0:o.map((a,i)=>{var l,u;return gn.createElement(Yn,{key:i,type:a.type==="number"?"text":a.type,autoFocus:!1,value:(u=(l=r.Predicate.Inputs)==null?void 0:l[i])!=null?u:"",onChange:d=>this.changeColumnPredicateInput(d.target.value,i),onKeyDownCapture:d=>{d.nativeEvent.key==="Escape"&&(d.nativeEvent.preventDefault(),d.nativeEvent.stopPropagation(),this.clearFilter())},flex:1,style:{minWidth:0,padding:"var(--ab-space-1)",borderRadius:0,borderLeftWidth:0}})})}renderNoValuesDropdown(n){return gn.createElement(re,{disabled:!0,style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",borderRadius:0,borderLeftWidth:0,borderColor:"var(--ab-color-primarydark)"}},"No Column Values")}renderValuesDropdown(n){let r="mouseenter";return this.props.quickFilterValuesTrigger==="click"&&(r="click"),gn.createElement(Ha,{alignHorizontal:"left",showEvent:r,hideEvent:"mouseleave",hideDelay:300,ref:o=>{this.valuesDropdown=o},render:()=>{var o;return gn.createElement(Em.Flex,{onMouseEnter:()=>{var a;r==="click"&&((a=this.valuesDropdown)==null||a.show())},"data-name":"quick-filter-form",flexDirection:"column",style:{fontSize:"var(--ab-font-size-2)",border:"1px solid var(--ab-color-primarydark)",background:"var(--ab-color-defaultbackground)",zIndex:1e3}},gn.createElement(Em.Flex,{m:2},gn.createElement(re,{onClick:()=>this.clearFilter()},"Clear Filter"),((o=this.props.api.internalApi.getAdaptableOptions().filterOptions)==null?void 0:o.autoApplyFilter)==!1&&gn.createElement(re,{ml:2,onClick:()=>this.updateFilter(this.state.filter)},"Apply Filter")),gn.createElement(o1,{suppressClientSideFilter:this.state.suppressClientSideFilter,isLoading:this.state.isDistinctColumnValuesLoading,onFilterChange:this.handleFilterChange,currentColumn:this.props.currentColumn,columns:[],columnDistinctValues:this.state.distinctColumnValues,dataType:this.props.currentColumn.dataType,uiSelectedColumnValues:this.state.filter.Predicate.Inputs,useAgGridStyle:!0,onColumnValueSelectedChange:a=>this.onColumnValuesChange(a)}))}},gn.createElement(re,{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",borderRadius:0,borderLeftWidth:0,borderColor:"var(--ab-color-primarydark)"},disabled:De.IsNullOrEmptyOrContainsSingleEmptyValue(this.state.distinctColumnValues)},n.Predicate.Inputs.join(", ")||"Select Values"))}onColumnValuesChange(n){var o;let{filter:r}=this.state;r.Predicate={PredicateId:"Values",Inputs:n},(o=this.props.api.internalApi.getAdaptableOptions().filterOptions)!=null&&o.autoApplyFilter?this.updateFilter(r):this.setState({filter:r})}selectColumnPredicate(n){var a;let r=g({},this.state.filter),o=this.props.api.predicateApi.getPredicateDefById(n);r.Predicate={PredicateId:n,Inputs:((a=o.inputs)!=null?a:[]).map(i=>{var l;return(l=i.defaultValue)!=null?l:""})},this.updateFilter(r),n==="Values"&&(this.loadPermittedValues(),requestAnimationFrame(()=>{this.valuesDropdown&&this.valuesDropdown.show()}))}updateFilter(n){this.setState({filter:n}),n.Uuid?this.debouncedEditFilter():this.debouncedAddFilter()}changeColumnPredicateInput(n,r){let o=this.getPredicateIdForShortcutValue(n);if(o)this.selectColumnPredicate(o);else{let{filter:a}=this.state;a.Predicate.Inputs=a.Predicate.Inputs||[],a.Predicate.Inputs[r]=n,this.updateFilter(a)}}getPredicateIdForShortcutValue(n){var r;return(r=this.props.api.filterApi.findPredicateDefByShortcut(n,this.props.currentColumn))==null?void 0:r.id}clearFilter(){let{filter:n}=this.state;this.props.api.filterApi.clearColumnFilterByColumn(n.ColumnId)}};function JEt(e,t){return{currentColumn:t.currentColumn,columnFilters:e.Filter.ColumnFilters}}function ZEt(e){return{onAddColumnFilter:t=>e(ws(t)),onEditColumnFilter:t=>e(Jf(t))}}var eIt=Ye(JEt,ZEt)(E9),awe=e=>{var t,n;return ki(gn.createElement(eIt,{api:e.Adaptable.api,quickFilterTrigger:(t=e.Adaptable.adaptableOptions.filterOptions)==null?void 0:t.quickFilterTrigger,quickFilterValuesTrigger:(n=e.Adaptable.adaptableOptions.filterOptions)==null?void 0:n.quickFilterValuesTrigger,currentColumn:e.Column,teamSharingActivated:!1,embedColumnMenu:e.Adaptable.embedColumnMenu}),e.Adaptable)};var iwe=e=>class{onParentModelChanged(n,r){}afterGuiAttached(n){this.filterContainer.parentElement.style.overflow="visible",this.filterContainer.parentElement.parentElement.style.padding="var(--ab-space-1)"}init(n){let r=n.column.getColId();this.filterContainer=document.createElement("div"),this.filterContainer.id=`floatingFilter_${r}_${e.adaptableOptions.adaptableId}`,this.filterContainer.style.overflow="hidden",this.filterContainer.style.minWidth="0",this.filterContainer.style.height="100%",this.filterContainer.style.display="flex",this.filterContainer.style.alignItems="stretch",this.filterContainer.style.position="relative";let o=e.api.columnApi.getColumnFromId(r);o&&l1.render(awe({Column:o,Adaptable:e,ShowCloseButton:!1}),this.filterContainer)}getGui(){return this.filterContainer}destroy(){l1.unmountComponentAtNode(this.filterContainer),this.filterContainer=null}};s();var swe=A(require("react")),s1=require("react-dom");s();var ui=A(require("react"));var tIt={position:"absolute",left:0,top:0,right:0,bottom:0},nIt=R(g({},tIt),{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"}),rIt={position:"relative",background:"transparent",boxSizing:"border-box",minWidth:0,outline:"none",width:"100%",border:"none"},lwe=ui.forwardRef((e,t)=>{var l;let n=ui.useRef(null),r=()=>{var u;(u=n.current)==null||u.focus()},[o,a]=fn(e,"value",e.defaultValue,{onChange:u=>{var d;u!==""&&u==Number(u)&&(u=Number(u)),(d=e.onValueChange)==null||d.call(e,u)}});ui.useImperativeHandle(t,()=>({focus:r,setValue:a}));let i=e.showClearButton&&e.emptyValue!=null&&o!=e.emptyValue;return ui.createElement("div",{style:nIt,onKeyDown:u=>{u.key==="Tab"&&i&&document.activeElement===n.current&&u.stopPropagation()}},ui.createElement("input",{type:(l=e.type)!=null?l:"number",value:o,onChange:ui.useCallback(u=>{a(u.target.value)},[]),style:rIt,ref:n}),i?ui.createElement("div",{style:{display:"inline-block",marginRight:"var(--ab-space-1)",marginLeft:"var(--ab-space-1)"},onClick:u=>{e.emptyValue!=null&&(a(e.emptyValue),u.stopPropagation(),r())},onKeyDown:u=>{e.emptyValue!=null&&u.key==="Enter"&&(a(e.emptyValue),u.stopPropagation(),r())}},ui.createElement(Ct,{size:18,name:"clear",tabIndex:0})):null)});var I9=require("@ag-grid-community/all-modules"),JS=class{constructor(){this.valueParser=({newValue:t,oldValue:n})=>t;this.onValueChange=t=>{this.value=this.valueParser?this.valueParser(R(g({},this.params),{oldValue:this.params.value,newValue:t})):t}}init(t){this.value=this.getStartValue(t),this.params=t,this.columnId=t.column.getColId();let{valueParser:n}=t.column.getColDef();typeof n=="function"&&(this.valueParser=n),this.el=document.createElement("div"),this.el.style.position="absolute",this.el.style.top="0px",this.el.style.left="0px",this.el.style.right="0px",this.el.style.bottom="0px"}getGui(){return this.el}getValue(){return this.value}focusIn(){var t;(t=this.editor)==null||t.focus()}focusOut(){}afterGuiAttached(){var o,a;let t=this.params.api.__adaptable,n=this.value,r=swe.createElement(lwe,{defaultValue:n,showClearButton:(o=this.params.showClearButton)!=null?o:!0,emptyValue:(a=this.params.emptyValue)!=null?a:"",onValueChange:this.onValueChange,ref:i=>{this.editor=i,i==null||i.focus()}});(0,s1.render)(ki(r,t),this.el),this.getGui().addEventListener("keydown",i=>{t._emit("CellEditorKeyDown",{keyDownEvent:i,cellValue:this.value,columnId:this.columnId,updateValueCallback:l=>{this.editor.setValue(l)}})})}destroy(){(0,s1.unmountComponentAtNode)(this.el)}getStartValue(t){return this.shouldClearExistingValue(t)?"":t.charPress&&this.isValidChar(t.charPress)?t.charPress:t.value}shouldClearExistingValue(t){return t.eventKey===I9.KeyCode.BACKSPACE||t.eventKey===I9.KeyCode.DELETE}isValidChar(t){return["0","1","2","3","4","5","6","7","8","9"].includes(t)}};s();var pwe=A(require("react")),u1=require("react-dom");s();var Hi=A(require("react")),uwe=A(Bb());var oIt={position:"absolute",left:0,top:0,right:0,bottom:0},aIt=R(g({},oIt),{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"}),iIt={position:"relative",background:"transparent",boxSizing:"border-box",minWidth:0,outline:"none",width:"100%",border:"none"},dwe=Hi.forwardRef((e,t)=>{var u;let n=Hi.useRef(null),r=()=>{var d;(d=n.current)==null||d.focus()},[o,a]=fn(e,"value",e.defaultValue,{onChange:d=>{var c,m;if(d===""||d==null)(c=e.onValueChange)==null||c.call(e,null);else{let f=typeof d=="string"?(0,uwe.default)(d):new Date(d);(m=e.onValueChange)==null||m.call(e,f)}}});Hi.useImperativeHandle(t,()=>({focus:r}));let i=TR(o,e.dateFormat),l=Hi.useCallback(d=>{a(d.target.value)},[]);return Hi.createElement("div",{style:aIt},Hi.createElement(s4.Provider,{value:{onHide:d=>{var c;(c=e.onStopEdit)==null||c.call(e,d)},onShow:()=>{},showClearButton:(u=e.showClearButton)!=null?u:!0}},Hi.createElement(Yn,{type:"date",value:i,onChange:l,style:iIt,ref:n})))});var P9=require("@ag-grid-community/all-modules");var ZS=class{constructor(){this.valueParser=({newValue:t,oldValue:n,defaultParser:r})=>(typeof n=="string"||n==null)&&r?r(t):t}init(t){this.value=this.shouldClearExistingValue(t)?"":t.value;let{valueParser:n}=t.column.getColDef();this.params=t,typeof n=="function"&&(this.valueParser=n),this.el=document.createElement("div"),this.el.style.position="absolute",this.el.style.top="0px",this.el.style.left="0px",this.el.style.right="0px",this.el.style.bottom="0px"}getGui(){return this.el}getValue(){return this.value}focusIn(){var t;(t=this.editor)==null||t.focus()}focusOut(){}getAdaptableInstance(t){return t.api.__adaptable}afterGuiAttached(){var o;let t=this.getAdaptableInstance(this.params),n=this.shouldClearExistingValue(this.params)?"":this.params.value,r=pwe.createElement(dwe,{defaultValue:n,dateFormat:t.adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat,onValueChange:a=>{let i=isNaN(+a);if(this.valueParser){let l=R(g({},this.params),{oldValue:this.params.value,newValue:a,defaultParser:u=>{var c,m;let d=(m=(c=t.adaptableOptions.userInterfaceOptions)==null?void 0:c.dateInputOptions)==null?void 0:m.dateFormat;return d?go(u,{Pattern:d}):u}});this.value=this.valueParser(l)}else this.value=i?null:a;i||requestAnimationFrame(()=>{this.params.stopEditing()})},showClearButton:(o=this.params.showClearButton)!=null?o:!0,onStopEdit:a=>{a==="Escape"?this.params.api.stopEditing(!0):this.params.stopEditing()},ref:a=>{this.editor=a,a==null||a.focus()}});(0,u1.render)(ki(r,t),this.el)}destroy(){(0,u1.unmountComponentAtNode)(this.el)}shouldClearExistingValue(t){return t.eventKey===P9.KeyCode.BACKSPACE||t.eventKey===P9.KeyCode.DELETE}};s();var cwe=1650312974062;s();s();var mwe={AccessLevel:{name:"AccessLevel",kind:"TypeAlias",description:"Defines Access Level for an Entitlement - can be `ReadOnly`, `Hidden` or `Full`"},ActionColumn:{name:"ActionColumn",kind:"Interface",description:"A Special Column that wraps an AdapTable Button",properties:[{name:"actionColumnButton",kind:"unknown",description:"Button (or list of buttons) to display in the Column",uiLabel:"Action Column Button"},{name:"actionColumnSettings",kind:"REFERENCE",description:"Additional optional properties for Column (e.g. filterable, resizable)",uiLabel:"Action Column Settings",isOptional:!0,reference:"ActionColumnSettings"},{name:"columnId",kind:"string",description:"Mandatory 'Id'; if no value set for `FriendlyName`, this will also be Column name",uiLabel:"Column Id"},{name:"friendlyName",kind:"string",description:"How Column appears in Column Header, Menus; if no value set, `ColumnId` is used",uiLabel:"Friendly Name",isOptional:!0},{name:"includeGroupedRows",kind:"boolean",description:"Shows Action Column also in grouped rows",uiLabel:"Include Grouped Rows",isOptional:!0}]},ActionColumnButtonContext:{name:"ActionColumnButtonContext",kind:"Interface",description:"Context required by functions when using an Action Column Button",properties:[{name:"actionColumn",kind:"REFERENCE",description:"Action Column in question",uiLabel:"Action Column",reference:"ActionColumn"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key Value in current row",uiLabel:"Primary Key Value"},{name:"rowNode",kind:"REFERENCE",description:"Current AG Grid Row Node",uiLabel:"Row Node",reference:"unknown"}]},ActionColumnSettings:{name:"ActionColumnSettings",kind:"Interface",description:"Set of optional properties that define an Action Columns behaviour",properties:[{name:"resizable",kind:"boolean",description:"Whether Column can be resized (by dragging column header edges)",uiLabel:"Resizable",isOptional:!0,defaultValue:"true"},{name:"suppressMenu",kind:"boolean",description:"Whether no menu should be shown for this Column header.",uiLabel:"Suppress Menu",isOptional:!0,defaultValue:"false"},{name:"suppressMovable",kind:"boolean",description:"Whether if this Column should be movable via dragging",uiLabel:"Suppress Movable",isOptional:!0,defaultValue:"false"},{name:"width",kind:"number",description:"Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid",uiLabel:"Width",isOptional:!0}]},ActionHandler:{name:"ActionHandler",kind:"TypeAlias",description:"Handles a Form Button Action"},AdaptableAlert:{name:"AdaptableAlert",kind:"TypeAlias",description:"Defines an Alert fired by AdapTable"},AdaptableAlertBase:{name:"AdaptableAlertBase",kind:"Interface",description:"Defines the base(common) properties of an Alert fired by AdapTable, regardless of the type of change",properties:[{name:"alertDefinition",kind:"REFERENCE",description:"Rule that caused Alert to fire",uiLabel:"Alert Definition",reference:"AlertDefinition"},{name:"alertType",kind:"unknown",description:"The type of Alert",uiLabel:"Alert Type"},{name:"header",kind:"string",description:"Alert Header text",uiLabel:"Header"},{name:"message",kind:"string",description:"Alert Body text",uiLabel:"Message"}]},AdaptableAlertQuery:{name:"AdaptableAlertQuery",kind:"TypeAlias",description:"Alert Query which may be either a Boolean, Observable or AggregatedBoolean Expression"},AdaptableApi:{name:"AdaptableApi",kind:"Interface",description:"The `AdaptableApi` provides developers with run-time access to AdapTable.",properties:[{name:"alertApi",kind:"REFERENCE",description:"Provides access to the Alert Module",uiLabel:"Alert Api",reference:"AlertApi"},{name:"applicationApi",kind:"REFERENCE",description:"Provides access to the Application Module",uiLabel:"Application Api",reference:"ApplicationApi"},{name:"bulkUpdateApi",kind:"REFERENCE",description:"Provides access to the Bulk Update Module",uiLabel:"Bulk Update Api",reference:"BulkUpdateApi"},{name:"calculatedColumnApi",kind:"REFERENCE",description:"Provides access to the Calculated Column Module",uiLabel:"Calculated Column Api",reference:"CalculatedColumnApi"},{name:"cellSummaryApi",kind:"REFERENCE",description:"Provides access to the Cell Summary Module",uiLabel:"Cell Summary Api",reference:"CellSummaryApi"},{name:"chartingApi",kind:"REFERENCE",description:"Provides run-time access to Charting Module and state",uiLabel:"Charting Api",reference:"unknown"},{name:"columnApi",kind:"REFERENCE",description:"Provides a number of column-related methods",uiLabel:"Column Api",reference:"ColumnApi"},{name:"conditionalStyleApi",kind:"REFERENCE",description:"Provides access to the Conditional Style Module",uiLabel:"Conditional Style Api",reference:"ConditionalStyleApi"},{name:"configApi",kind:"REFERENCE",description:"Methods giving access to Adaptable State",uiLabel:"Config Api",reference:"ConfigApi"},{name:"customSortApi",kind:"REFERENCE",description:"Provides access to the Custom Sort Module",uiLabel:"Custom Sort Api",reference:"CustomSortApi"},{name:"dashboardApi",kind:"REFERENCE",description:"Provides access to the Dashboard",uiLabel:"Dashboard Api",reference:"DashboardApi"},{name:"dataChangeHistoryApi",kind:"REFERENCE",description:"Provides run-time access to the Data Changes Module",uiLabel:"Data Change History Api",reference:"DataChangeHistoryApi"},{name:"dataSourceApi",kind:"REFERENCE",description:"Provides access to the Data Source Module",uiLabel:"Data Source Api",reference:"DataSourceApi"},{name:"destroy",kind:"unknown",description:"Cleanup method - should be called only when using the vanilla javascript component, as framework components cleanup is performed when the component is destroyed/unmounted.",uiLabel:"Destroy"},{name:"eventApi",kind:"REFERENCE",description:"Used for listenning / subscribing to the various Events published by AdapTable",uiLabel:"Event Api",reference:"EventApi"},{name:"exportApi",kind:"REFERENCE",description:"Provides access to the Export Module and Reports",uiLabel:"Export Api",reference:"ExportApi"},{name:"filterApi",kind:"REFERENCE",description:"Provides access to AdapTable's filtering functionality",uiLabel:"Filter Api",reference:"FilterApi"},{name:"flashingCellApi",kind:"REFERENCE",description:"Provides access to the Flashing Cell Module",uiLabel:"Flashing Cell Api",reference:"FlashingCellApi"},{name:"formatColumnApi",kind:"REFERENCE",description:"Provides access to the Format Column Module",uiLabel:"Format Column Api",reference:"FormatColumnApi"},{name:"freeTextColumnApi",kind:"REFERENCE",description:"Provides access to the FreeText Column Module",uiLabel:"Free Text Column Api",reference:"FreeTextColumnApi"},{name:"gridApi",kind:"REFERENCE",description:"Provides methods for managing the Grid, and Grid data, directly",uiLabel:"Grid Api",reference:"GridApi"},{name:"layoutApi",kind:"REFERENCE",description:"Provides access to the Layout Module",uiLabel:"Layout Api",reference:"LayoutApi"},{name:"pluginsApi",kind:"REFERENCE",description:"Offers access to AdapTable Plugin (e.g. ipushpull, OpenFin etc)",uiLabel:"Plugins Api",reference:"PluginsApi"},{name:"plusMinusApi",kind:"REFERENCE",description:"Provides access to the Plus Minus Module",uiLabel:"Plus Minus Api",reference:"PlusMinusApi"},{name:"predicateApi",kind:"REFERENCE",description:"Manages the Predicate - a boolean-return function used in Filters and Alerts",uiLabel:"Predicate Api",reference:"PredicateApi"},{name:"queryApi",kind:"REFERENCE",description:"Provides access to functions related to the Query Module",uiLabel:"Query Api",reference:"QueryApi"},{name:"queryLanguageApi",kind:"REFERENCE",description:"Mangages AdapTableQL (Query Language)",uiLabel:"Query Language Api",reference:"QueryLanguageApi"},{name:"quickSearchApi",kind:"REFERENCE",description:"Provides access to the Quick Search Module",uiLabel:"Quick Search Api",reference:"QuickSearchApi"},{name:"scheduleApi",kind:"REFERENCE",description:"Provides access to the Schedule Module",uiLabel:"Schedule Api",reference:"ScheduleApi"},{name:"scopeApi",kind:"REFERENCE",description:"Manages the `Scope` object - used widely to determine where objects are applied",uiLabel:"Scope Api",reference:"ScopeApi"},{name:"settingsPanelApi",kind:"REFERENCE",description:"Provides access to the Settings Panel",uiLabel:"Settings Panel Api",reference:"SettingsPanelApi"},{name:"shortcutApi",kind:"REFERENCE",description:"Provides access to the Shortcut Module",uiLabel:"Shortcut Api",reference:"ShortcutApi"},{name:"smartEditApi",kind:"REFERENCE",description:"Provides access to the Smart Edit Module",uiLabel:"Smart Edit Api",reference:"SmartEditApi"},{name:"systemStatusApi",kind:"REFERENCE",description:"Methods related to displaying System Status and application health messages",uiLabel:"System Status Api",reference:"SystemStatusApi"},{name:"teamSharingApi",kind:"REFERENCE",description:"Functions related to run-time Team Sharing of AdapTable objects between colleagues",uiLabel:"Team Sharing Api",reference:"TeamSharingApi"},{name:"themeApi",kind:"REFERENCE",description:"Api methods related to Theme management",uiLabel:"Theme Api",reference:"ThemeApi"},{name:"toolPanelApi",kind:"REFERENCE",description:"Provides access to the AdapTable Tool Panel on the right hand side of the grid",uiLabel:"Tool Panel Api",reference:"ToolPanelApi"},{name:"userInterfaceApi",kind:"REFERENCE",description:"Manages User Interface Options where colours, styles and permitted values are configured",uiLabel:"User Interface Api",reference:"UserInterfaceApi"}]},AdaptableButton:{name:"AdaptableButton",kind:"Interface",description:"Defines a Button that appears in numerous places including Adaptable Form",properties:[{name:"buttonStyle",kind:"unknown",description:"Style for Button - can be object or function thats provides a `Style` object",uiLabel:"Button Style",isOptional:!0},{name:"disabled",kind:"unknown",description:"Function that disables / enables the button based on its evaluation result",uiLabel:"Disabled",isOptional:!0},{name:"hidden",kind:"unknown",description:"Function which sets whether Button is hidden",uiLabel:"Hidden",isOptional:!0},{name:"icon",kind:"REFERENCE",description:"Icon to display, requires string for URL, other props are optional",uiLabel:"Icon",isOptional:!0,reference:"AdaptableIcon"},{name:"label",kind:"unknown",description:"Label for Button - can be string or function that provides string",uiLabel:"Label",isOptional:!0},{name:"onClick",kind:"unknown",description:"Function to invoke when button is clicked",uiLabel:"On Click",isOptional:!0},{name:"tooltip",kind:"unknown",description:"Tooltip for Button - can be string or function that provides string",uiLabel:"Tooltip",isOptional:!0}]},AdaptableCalculatedColumnQuery:{name:"AdaptableCalculatedColumnQuery",kind:"TypeAlias",description:"Calculated Column Query which may be a Scalar or an AggregatedScalar Expression"},AdaptableCellChangedAlert:{name:"AdaptableCellChangedAlert",kind:"Interface",description:"Defines an Alert fired by AdapTable when a cell is changed",properties:[{name:"cellDataChangedInfo",kind:"REFERENCE",description:"Cell DataChange which triggered Alert",uiLabel:"Cell Data Changed Info",reference:"CellDataChangedInfo"}]},AdaptableColumn:{name:"AdaptableColumn",kind:"Interface",description:"Defines an Adaptable Column - created at run-time based on AG Grid column definition",properties:[{name:"aggregatable",kind:"boolean",description:"Is Column able to display aggregations (e.g. 'sum') when grouped",uiLabel:"Aggregatable"},{name:"aggregationFunction",kind:"string",description:"Custom aggregation function for the Column",uiLabel:"Aggregation Function",isOptional:!0},{name:"availableAggregationFunctions",kind:"unknown",description:"Available aggregations for the Column",uiLabel:"Available Aggregation Functions",isOptional:!0},{name:"columnGroup",kind:"REFERENCE",description:"The parent column group, if the column belongs to one",uiLabel:"Column Group",isOptional:!0,reference:"unknown"},{name:"filterable",kind:"boolean",description:"Is Column able to be filtered",uiLabel:"Filterable"},{name:"flex",kind:"number",description:"Flex details of the column",uiLabel:"Flex",isOptional:!0},{name:"groupable",kind:"boolean",description:"Can Column form a Row Group",uiLabel:"Groupable"},{name:"hideable",kind:"boolean",description:"Can Column be removed from the grid",uiLabel:"Hideable"},{name:"isExcludedFromQuickSearch",kind:"boolean",description:"Has colummn been excluded from Quick Search results",uiLabel:"Is Excluded From Quick Search"},{name:"isFixed",kind:"boolean",description:"Is Column pinned or locked into position",uiLabel:"Is Fixed"},{name:"isGrouped",kind:"boolean",description:"Is Column currently grouped",uiLabel:"Is Grouped"},{name:"isPrimaryKey",kind:"boolean",description:"Is this the Primary Key column",uiLabel:"Is Primary Key"},{name:"isSparkline",kind:"boolean",description:"Is it a Sparkline Column",uiLabel:"Is Sparkline"},{name:"moveable",kind:"boolean",description:"Can Column be moved at run-time to a new position",uiLabel:"Moveable"},{name:"pinned",kind:"unknown",description:"The pinned position of the column",uiLabel:"Pinned"},{name:"pivotable",kind:"boolean",description:"Can Column be used in a Pivot Grid",uiLabel:"Pivotable"},{name:"queryable",kind:"boolean",description:"Can the Column be in included in Queries / Expressions",uiLabel:"Queryable"},{name:"readOnly",kind:"boolean",description:"Is the column editable; returns FALSE if the column has conditional/dynamic editability, assuming some rows are editable",uiLabel:"Read Only"},{name:"sortable",kind:"boolean",description:"Is Column sortable",uiLabel:"Sortable"},{name:"visible",kind:"boolean",description:"Is Column currently visible",uiLabel:"Visible"},{name:"width",kind:"number",description:"Column width",uiLabel:"Width",isOptional:!0}]},AdaptableColumnBase:{name:"AdaptableColumnBase",kind:"Interface",description:"Base class for Adaptable Column containing most important properties",properties:[{name:"columnId",kind:"string",description:"Name of Column in AG Grid (e.g. field or colId)",uiLabel:"Column Id"},{name:"dataType",kind:"unknown",description:"DataType of the column",uiLabel:"Data Type"},{name:"friendlyName",kind:"string",description:"How Column is referred to in Adaptable UI; `Caption` property in AG Grid",uiLabel:"Friendly Name"}]},AdaptableComparerFunction:{name:"AdaptableComparerFunction",kind:"TypeAlias",description:"Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required"},AdaptableCoordinate:{name:"AdaptableCoordinate",kind:"Interface",description:"Used by AdapTable to remember position of Floating Dashboard",properties:[{name:"x",kind:"number",description:"x axis number",uiLabel:"X"},{name:"y",kind:"number",description:"y axis number",uiLabel:"Y"}]},AdaptableFlashingCell:{name:"AdaptableFlashingCell",kind:"Interface",description:"Defines an Alert fired by AdapTable",properties:[{name:"cellDataChangedInfo",kind:"REFERENCE",description:"Data change which triggered the FlashingCell",uiLabel:"Cell Data Changed Info",isOptional:!0,reference:"CellDataChangedInfo"},{name:"direction",kind:"unknown",description:"Direction of the change: 'up', 'down' or 'neutral'",uiLabel:"Direction"},{name:"flashColumnIds",kind:"unknown",description:"Column Ids that are flashing",uiLabel:"Flash Column Ids"},{name:"flashingCellDefinition",kind:"REFERENCE",description:"Rule that caused the FlashingCell to fire",uiLabel:"Flashing Cell Definition",reference:"FlashingCellDefinition"},{name:"flashTarget",kind:"unknown",description:"What will flash (e.g. Cell, Row)",uiLabel:"Flash Target"},{name:"rowPrimaryKey",kind:"string",description:"Primary Key Value of Row which is flashing",uiLabel:"Row Primary Key"}]},AdaptableForm:{name:"AdaptableForm",kind:"Interface",description:"Defines a form which appears dynamically; used by Alerts & Export Custom Destinations",properties:[{name:"buttons",kind:"unknown",description:"Buttons to include in the Form",uiLabel:"Buttons",isOptional:!0},{name:"description",kind:"string",description:"Additional information to appear in the Form",uiLabel:"Description",isOptional:!0},{name:"fields",kind:"unknown",description:"Collection of Dynamic Fields to display",uiLabel:"Fields",isOptional:!0},{name:"title",kind:"string",description:"Title to appear in the Form",uiLabel:"Title",isOptional:!0}]},AdaptableFormat:{name:"AdaptableFormat",kind:"TypeAlias",description:"Object containing formatting information for Numeric and Date Columns"},AdaptableFormField:{name:"AdaptableFormField",kind:"Interface",description:"Defines a Field that appears in an Adaptable Form",properties:[{name:"defaultValue",kind:"unknown",description:"Field Default Value - can be of type string, boolean, number",uiLabel:"Default Value",isOptional:!0},{name:"fieldType",kind:"unknown",description:"Field Type: text, date, number, checkbox, select",uiLabel:"Field Type"},{name:"label",kind:"string",description:"Label to display in in the Field",uiLabel:"Label"},{name:"name",kind:"string",description:"Name of the Field",uiLabel:"Name"},{name:"options",kind:"unknown",description:"Items to populate the Select input",uiLabel:"Options",isOptional:!0}]},AdaptableIcon:{name:"AdaptableIcon",kind:"Interface",description:"Defines an icon to be used in AdapTable (e.g. in Dashboard Header and Buttons)",properties:[{name:"cssProperties",kind:"REFERENCE",description:"CSS Properties",uiLabel:"Css Properties",isOptional:!0,reference:"unknown"},{name:"src",kind:"string",description:"url specifying where icon can be found (mandatory)",uiLabel:"Src"},{name:"style",kind:"unknown",description:"The style for the icon - has height and width properties",uiLabel:"Style",isOptional:!0}]},AdaptableLoadStateFunction:{name:"AdaptableLoadStateFunction",kind:"Interface",description:"Allows the customization of state loading."},AdaptableMenuItem:{name:"AdaptableMenuItem",kind:"Interface",description:"Menu item used by Adaptable in both Column and Context Menus",properties:[{name:"icon",kind:"string",description:"Icon to display in Menu Item",uiLabel:"Icon",isOptional:!0},{name:"isVisible",kind:"boolean",description:"Whether menu item is visible",uiLabel:"Is Visible"},{name:"label",kind:"string",description:"Name that appears in the menu",uiLabel:"Label"},{name:"module",kind:"unknown",description:"Adaptable Module associated with (Adaptable) menu item.",uiLabel:"Module",isOptional:!0},{name:"onClick",kind:"unknown",description:"Function to invoke when (custom) menu item is clicked",uiLabel:"On Click",isOptional:!0},{name:"reduxAction",kind:"unknown",description:"Adaptable Redux Action to invoke when (Adaptable) menu item is clicked",uiLabel:"Redux Action",isOptional:!0},{name:"subItems",kind:"unknown",description:"Sub Menu Items to display",uiLabel:"Sub Items",isOptional:!0}]},AdaptableMessageType:{name:"AdaptableMessageType",kind:"TypeAlias",description:"Defines a Message Types: 'Success', 'Info', 'Warning' or 'Error'"},AdaptableModule:{name:"AdaptableModule",kind:"TypeAlias",description:"Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config"},AdaptableObject:{name:"AdaptableObject",kind:"Interface",description:"Base interface which all other Adaptable State-related objects extend",properties:[{name:"IsReadOnly",kind:"boolean",description:"Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')",uiLabel:"Is Read Only",isOptional:!0},{name:"Source",kind:"unknown",description:"Source of state object: 'Config' if provided via , 'User' or undefined for runtime state.",uiLabel:"Source",isOptional:!0},{name:"Uuid",kind:"REFERENCE",description:"Unique identifier for the Adaptable Object, generated and used internally by AdapTable",uiLabel:"Uuid",isOptional:!0,reference:"unknown"}]},AdaptableOptions:{name:"AdaptableOptions",kind:"Interface",description:"Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience",properties:[{name:"adaptableId",kind:"string",description:"Identifier for this instance of AdapTable",uiLabel:"Adaptable Id",isOptional:!0,gridInfo:"item",defaultValue:"'adaptable_id'"},{name:"adaptableQLOptions",kind:"REFERENCE",description:"Options for managing AdapTableQL",uiLabel:"Adaptable QL Options",isOptional:!0,reference:"AdaptableQLOptions"},{name:"adaptableStateKey",kind:"string",description:"Identifier used as localStorage persistence key for AdaptableState",uiLabel:"Adaptable State Key",isOptional:!0,gridInfo:"item",defaultValue:"`adaptableId` value"},{name:"alertOptions",kind:"REFERENCE",description:"Options for managing Alerts in AdapTable",uiLabel:"Alert Options",isOptional:!0,gridInfo:"container",reference:"AlertOptions"},{name:"autogeneratePrimaryKey",kind:"boolean",description:"Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities",uiLabel:"Autogenerate Primary Key",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"containerOptions",kind:"REFERENCE",description:"Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed",uiLabel:"Container Options",isOptional:!0,reference:"ContainerOptions"},{name:"customPredicateDefs",kind:"unknown",description:"Predicate definitions provided by developers at Design-Time",uiLabel:"Custom Predicate Defs",isOptional:!0},{name:"dashboardOptions",kind:"REFERENCE",description:"Options related to managing the Dashboard in AdapTable",uiLabel:"Dashboard Options",isOptional:!0,gridInfo:"container",reference:"DashboardOptions"},{name:"dataChangeHistoryOptions",kind:"REFERENCE",description:"Options to manage Data Change History Module which provides an overview of all data changes",uiLabel:"Data Change History Options",isOptional:!0,gridInfo:"container",reference:"DataChangeHistoryOptions"},{name:"editOptions",kind:"REFERENCE",description:"Options related to Editing in AdapTable including Server Validation",uiLabel:"Edit Options",isOptional:!0,gridInfo:"container",reference:"EditOptions"},{name:"entitlementOptions",kind:"REFERENCE",description:"Options for managing Entitlements",uiLabel:"Entitlement Options",isOptional:!0,gridInfo:"container",reference:"EntitlementOptions"},{name:"exportOptions",kind:"REFERENCE",description:"Options for managing Exporting and Reports in AdapTable",uiLabel:"Export Options",isOptional:!0,gridInfo:"container",reference:"ExportOptions"},{name:"filterOptions",kind:"REFERENCE",description:"Options for managing Filtering in AdapTable",uiLabel:"Filter Options",isOptional:!0,gridInfo:"container",reference:"FilterOptions"},{name:"flashingCellOptions",kind:"REFERENCE",description:"Options for managing Flashing Cells - primarily default values",uiLabel:"Flashing Cell Options",isOptional:!0,gridInfo:"container",reference:"FlashingCellOptions"},{name:"generalOptions",kind:"REFERENCE",description:"General options to manage AdapTable e.g. grouping behaviour, Primary Keys",uiLabel:"General Options",isOptional:!0,gridInfo:"container",reference:"GeneralOptions"},{name:"gridOptions",kind:"REFERENCE",description:"The AG Grid object which AdapTable interacts with. Note: if using AdapTable React or AdapTable Angular, no need to populate this property as AdapTable wires it up differently",uiLabel:"Grid Options",isOptional:!0,defaultValue:"n/a (Mandatory)",reference:"unknown"},{name:"layoutOptions",kind:"REFERENCE",description:"Options related to Layouts",uiLabel:"Layout Options",isOptional:!0,gridInfo:"container",reference:"LayoutOptions"},{name:"licenseKey",kind:"string",description:"Commercial license key. If the license is not provided or is expired, various visual information notes will be displayed and some functionality may be limited.",uiLabel:"License Key",isOptional:!0},{name:"menuOptions",kind:"REFERENCE",description:"Options for managing AdapTable menus",uiLabel:"Menu Options",isOptional:!0,gridInfo:"container",reference:"MenuOptions"},{name:"modules",kind:"unknown",description:"AG Grid Modules that should be provided - needs to be provided separately",uiLabel:"Modules",isOptional:!0},{name:"notificationsOptions",kind:"REFERENCE",description:"Options for managing Notifications in AdapTable",uiLabel:"Notifications Options",isOptional:!0,gridInfo:"container",reference:"NotificationsOptions"},{name:"plugins",kind:"unknown",description:"Used for managing the AdapTable Plugins",uiLabel:"Plugins",isOptional:!0},{name:"predefinedConfig",kind:"unknown",description:"User State set at design-time and shipped with AdapTable for first use; can be `PredefinedConfig` object or url to file containing config",uiLabel:"Predefined Config",isOptional:!0,defaultValue:"undefined"},{name:"primaryKey",kind:"string",description:"Name of Column in AdapTable guaranteed to contain unique values",uiLabel:"Primary Key",gridInfo:"item",defaultValue:"n/a (Mandatory)"},{name:"searchOptions",kind:"REFERENCE",description:"Options for managing Search related functions in AdapTable",uiLabel:"Search Options",isOptional:!0,gridInfo:"container",reference:"SearchOptions"},{name:"settingsPanelOptions",kind:"REFERENCE",description:"Setting panel options",uiLabel:"Settings Panel Options",isOptional:!0,gridInfo:"container",reference:"unknown"},{name:"stateOptions",kind:"REFERENCE",description:"Options related to state hydration / dehydration - allows users to intercept state persistence and state loading and change default behavior of saving to local storage",uiLabel:"State Options",isOptional:!0,reference:"StateOptions"},{name:"teamSharingOptions",kind:"REFERENCE",description:"Options for managing 'Team Sharing' which allows users to create Adaptable Objects and share with colleagues",uiLabel:"Team Sharing Options",isOptional:!0,gridInfo:"container",reference:"TeamSharingOptions"},{name:"toolPanelOptions",kind:"REFERENCE",description:"Options related to managing the Tool Panel elements in AdapTable",uiLabel:"Tool Panel Options",isOptional:!0,gridInfo:"container",reference:"ToolPanelOptions"},{name:"userInterfaceOptions",kind:"REFERENCE",description:"Options for managing the User Interface elements of AdapTable, i.e. Action Columns, Color Palette etc.",uiLabel:"User Interface Options",isOptional:!0,gridInfo:"container",reference:"UserInterfaceOptions"},{name:"userName",kind:"string",description:"Name of current AdapTable user",uiLabel:"User Name",isOptional:!0,gridInfo:"item",defaultValue:"'anonymous'"}]},AdaptablePersistStateFunction:{name:"AdaptablePersistStateFunction",kind:"Interface",description:"Allows the customization of state persistence."},AdaptablePredicate:{name:"AdaptablePredicate",kind:"Interface",description:"Predicate object used by AdapTableQL - essentially a boolean function",properties:[{name:"Inputs",kind:"unknown",description:"Optional Inputs that might be needed for evaluation",uiLabel:"Inputs",isOptional:!0},{name:"PredicateId",kind:"string",description:"Id of Predicate (e.g. `Equals`, `GreaterThan`)",uiLabel:"Predicate Id"}]},AdaptablePredicateDef:{name:"AdaptablePredicateDef",kind:"Interface",description:"Defines a Predicate - include where it can run and what it does",properties:[{name:"columnScope",kind:"REFERENCE",description:"Columns (or DataTypes) where Predicate is active",uiLabel:"Column Scope",reference:"AdaptableScope"},{name:"handler",kind:"unknown",description:"Actual boolean function invoked when evaluating the Predicate",uiLabel:"Handler"},{name:"icon",kind:"unknown",description:"Icon to show (primarily used in Filter dropdown)",uiLabel:"Icon",isOptional:!0},{name:"id",kind:"string",description:"Unique Id for the object",uiLabel:"Id"},{name:"inputs",kind:"unknown",description:"Inputs the Predicate can take",uiLabel:"Inputs",isOptional:!0},{name:"label",kind:"string",description:"Name of the Predicate",uiLabel:"Label"},{name:"moduleScope",kind:"unknown",description:"Modules where the Predicate can run",uiLabel:"Module Scope"},{name:"onlyQuickFilter",kind:"boolean",description:"Display this predicate only in Quick Filter Bar (and NOT in Filter Form)",uiLabel:"Only Quick Filter",isOptional:!0},{name:"shortcuts",kind:"unknown",description:"Keyboard shortcuts to initiate predicate - used in Quick Filter bar",uiLabel:"Shortcuts",isOptional:!0},{name:"toString",kind:"unknown",description:"String representation of the Predicate",uiLabel:"To String",isOptional:!0}]},AdaptableQLOptions:{name:"AdaptableQLOptions",kind:"Interface",description:"Options for managing AdaptableQL - the Adaptable Query Lanaguage which evaluates Predicates and Expressions",properties:[{name:"caseSensitiveTextComparisons",kind:"boolean",description:"Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates",uiLabel:"Case Sensitive Text Comparisons",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"expressionOptions",kind:"REFERENCE",description:"Options for managing Expressions in AdapTableQL",uiLabel:"Expression Options",isOptional:!0,reference:"ExpressionOptions"},{name:"externallyEvaluatedModules",kind:"REFERENCE",description:"Which searching and filtering options should take place on server",uiLabel:"Externally Evaluated Modules",isOptional:!0,gridInfo:"item",defaultValue:"undefined",reference:"unknown"}]},AdaptableQuery:{name:"AdaptableQuery",kind:"TypeAlias",description:"An AdaptableQuery can be either a Boolean, Scalar, Observable, AggregatedBoolean, or AggregatedScalar expression"},AdaptableReadyInfo:{name:"AdaptableReadyInfo",kind:"Interface",description:"Object returned by `AdaptableReady` event - fired when AdapTable has loaded",properties:[{name:"gridOptions",kind:"REFERENCE",description:"Underlying AG Grid GridOptions object",uiLabel:"Grid Options",reference:"unknown"}]},AdaptableRowChangedAlert:{name:"AdaptableRowChangedAlert",kind:"Interface",description:"Defines an Alert fired by AdapTable when a row is changed",properties:[{name:"gridDataChangedInfo",kind:"REFERENCE",description:"Row DataChange which triggered Alert",uiLabel:"Grid Data Changed Info",reference:"GridDataChangedInfo"}]},AdaptableScope:{name:"AdaptableScope",kind:"TypeAlias",description:"Defines where a given Object / Module is active"},AdaptableSearchState:{name:"AdaptableSearchState",kind:"Interface",description:"Current Searches and Filter in AdapTable",properties:[{name:"columnFilters",kind:"unknown",description:"Currently applied Column Filters",uiLabel:"Column Filters"},{name:"currentQuery",kind:"unknown",description:"Current Query",uiLabel:"Current Query"},{name:"dataSource",kind:"unknown",description:"Current Data Source (if one selected)",uiLabel:"Data Source"},{name:"queryAST",kind:"unknown",description:"AST for Current Query",uiLabel:"Query AST"}]},AdaptableSortState:{name:"AdaptableSortState",kind:"Interface",description:"Overview of current sorting state in the grid",properties:[{name:"columnSorts",kind:"unknown",description:"Which columns have sorting applied and,if so, which direction",uiLabel:"Column Sorts"},{name:"customSorts",kind:"unknown",description:"All the Custom Sorts in State; this is always sent even if no custom sorts are active",uiLabel:"Custom Sorts"}]},AdaptableState:{name:"AdaptableState",kind:"Interface",description:"The main state object that Adaptable persists"},AdaptableStateChangedInfo:{name:"AdaptableStateChangedInfo",kind:"Interface",description:"Object returned by the `AdaptableStateChanged` event",properties:[{name:"action",kind:"unknown",description:"The Redux Action that was invoked",uiLabel:"Action"},{name:"actionName",kind:"string",description:"Name of the Action",uiLabel:"Action Name"},{name:"adaptableId",kind:"string",description:"Current AdapTableId",uiLabel:"Adaptable Id"},{name:"adaptableStateKey",kind:"string",description:"Current Adaptable State Key",uiLabel:"Adaptable State Key"},{name:"clientTimestamp",kind:"date",description:"Time on user's computer when message was sent",uiLabel:"Client Timestamp"},{name:"newState",kind:"REFERENCE",description:"Adaptable State after the Action",uiLabel:"New State",reference:"AdaptableState"},{name:"oldState",kind:"REFERENCE",description:"Adaptable State before the Action",uiLabel:"Old State",reference:"AdaptableState"},{name:"userName",kind:"string",description:"Name of current AdapTable user",uiLabel:"User Name"}]},AdaptableStyle:{name:"AdaptableStyle",kind:"Interface",description:"Style object used in numerous AdapTable Modules",properties:[{name:"BackColor",kind:"string",description:"Colour background of cell: provide hex value or name",uiLabel:"Back Color",isOptional:!0},{name:"BorderColor",kind:"string",description:"Colour of cell border: provide hex value or name",uiLabel:"Border Color",isOptional:!0},{name:"ClassName",kind:"string",description:"Existing CSS Class; use instead of setting other object properties",uiLabel:"Class Name",isOptional:!0},{name:"FontSize",kind:"unknown",description:"Size of font: `XSmall`, `Small`, `Medium`, `Large` or `XLarge`",uiLabel:"Font Size",isOptional:!0},{name:"FontStyle",kind:"unknown",description:"Style of font: `Normal` or `Italic`",uiLabel:"Font Style",isOptional:!0},{name:"FontWeight",kind:"unknown",description:"Weight of font: `Normal` or `Bold`",uiLabel:"Font Weight",isOptional:!0},{name:"ForeColor",kind:"string",description:"Font colour in cell: provide hex value or name",uiLabel:"Fore Color",isOptional:!0}]},AdaptableTheme:{name:"AdaptableTheme",kind:"Interface",description:"Used for creating User (i.e. Custom) Themes",properties:[{name:"AgGridClassName",kind:"string",description:"Ag Grid theme to apply when loading theme",uiLabel:"Ag Grid Class Name",isOptional:!0},{name:"Description",kind:"string",description:"Description of Theme - will appear in Theme Toolbar and Toolpanel",uiLabel:"Description"},{name:"Name",kind:"string",description:"Name of the Theme",uiLabel:"Name"},{name:"VendorGridClassName",kind:"string",description:"deprecated use `AgGridClassName` property instead",uiLabel:"Vendor Grid Class Name",isOptional:!0}]},AdaptableToolPanelDefinition:{name:"AdaptableToolPanelDefinition",kind:"Interface",description:"Defines a ToolPanel - Name and VisibilityMode (Expanded / Collapsed)",properties:[{name:"Name",kind:"unknown",description:"ToolPanel name - either an Adaptable Module or a Custom ToolPanel (defined in ToolPanel Options)",uiLabel:"Name"},{name:"VisibilityMode",kind:"unknown",description:"Whether the ToolPanel is 'expanded' or 'collapsed'",uiLabel:"Visibility Mode",isOptional:!0,defaultValue:"'collapsed'"}]},AlertApi:{name:"AlertApi",kind:"Interface",description:"Provides run-time access to Alert function and associated State",properties:[{name:"addAlertDefinition",kind:"function",description:"Adds new Alert Definition",uiLabel:"Add Alert Definition"},{name:"displayAlert",kind:"function",description:"Displays (fully formed) inputted Alert to the User",uiLabel:"Display Alert"},{name:"displayMessageAlertPopup",kind:"function",description:"Displays given Alert as a Popup",uiLabel:"Display Message Alert Popup"},{name:"editAlertDefinition",kind:"function",description:"Edits Alert in State with given one",uiLabel:"Edit Alert Definition"},{name:"executeAlertAction",kind:"function",description:"Runs after an Alert Action is invoked",uiLabel:"Execute Alert Action"},{name:"executeAlertButton",kind:"function",description:"Runs after a button in an Alert Form is clicked",uiLabel:"Execute Alert Button"},{name:"getActiveNonReactiveAlertDefinitions",kind:"function",description:"Retrieves all active (non-suspended) Alert Definitions in Alert State which are NOT Reactive (BooleanQuery)",uiLabel:"Get Active Non Reactive Alert Definitions"},{name:"getActiveReactiveAlertDefinitions",kind:"function",description:"Retrieves all active (non-suspended) Alert Definitions in Alert State which are reactive (ObservableQuery & AggregationQuery)",uiLabel:"Get Active Reactive Alert Definitions"},{name:"getAdaptableFormByName",kind:"function",description:"Retrieeves the Adaptable Form with the given name",uiLabel:"Get Adaptable Form By Name"},{name:"getAlertDefinitionById",kind:"function",description:"Retrieves alert definition by id",uiLabel:"Get Alert Definition By Id"},{name:"getAlertDefinitions",kind:"function",description:"Retrieves all Alert Definitions in Alert State",uiLabel:"Get Alert Definitions"},{name:"getAlertDefinitionsWithAllowEdit",kind:"function",description:"Retrieves all Alert Definitions which allow a Cell Edit",uiLabel:"Get Alert Definitions With Allow Edit"},{name:"getAlertDefinitionsWithPreventEdit",kind:"function",description:"Retrieves all Alert Definitions which prevent a Cell Edit",uiLabel:"Get Alert Definitions With Prevent Edit"},{name:"getAlertDescription",kind:"function",description:"Returns a description of an Alert Definition",uiLabel:"Get Alert Description"},{name:"getAlertPredicateDefs",kind:"function",description:"Retrieves all Predicate Defs with Module Scope of Alert",uiLabel:"Get Alert Predicate Defs"},{name:"getAlertPredicateDefsForScope",kind:"function",description:"Retrieves all Predicate Defs that match given Scope",uiLabel:"Get Alert Predicate Defs For Scope"},{name:"getAlertRuleDescription",kind:"function",description:"Returns a description of an Alert Definition's Rule",uiLabel:"Get Alert Rule Description"},{name:"getAlertState",kind:"function",description:"Retrieves Alert section from Adaptable State",uiLabel:"Get Alert State"},{name:"getNonReactiveAlertDefinitions",kind:"function",description:"Retrieves all Alert Definitions in Alert State which are NOT Reactive (BooleanQuery)",uiLabel:"Get Non Reactive Alert Definitions"},{name:"getReactiveAlertDefinitions",kind:"function",description:"Retrieves all Alert Definitions in Alert State which are reactive (ObservableQuery & AggregationQuery)",uiLabel:"Get Reactive Alert Definitions"},{name:"publishAlertFiredEvent",kind:"function",description:"Publishes an event when an Alert is triggered",uiLabel:"Publish Alert Fired Event"},{name:"showAlert",kind:"function",description:"Creates Alert formed from inputted values and displays it.",uiLabel:"Show Alert"},{name:"showAlertError",kind:"function",description:"Creates Alert formed from inputted values and displays it as Error Alert.",uiLabel:"Show Alert Error"},{name:"showAlertInfo",kind:"function",description:"Creates Alert formed from inputted values and displays it as Info Alert.",uiLabel:"Show Alert Info"},{name:"showAlertPopup",kind:"function",description:"Opens Settings Panel with Alert section selected and visible",uiLabel:"Show Alert Popup"},{name:"showAlertSuccess",kind:"function",description:"Creates Alert formed from inputted values and displays it as Succcess Alert.",uiLabel:"Show Alert Success"},{name:"showAlertWarning",kind:"function",description:"Creates Alert formed from inputted values and displays it as Warning Alert.",uiLabel:"Show Alert Warning"},{name:"suspendAlertDefinition",kind:"function",description:"Suspends Alert Definition",uiLabel:"Suspend Alert Definition"},{name:"unSuspendAlertDefinition",kind:"function",description:"Activates a suspended Alert Definition",uiLabel:"Un Suspend Alert Definition"}]},AlertButton:{name:"AlertButton",kind:"Interface",description:"Defines a button that appears in an Alert Form",properties:[{name:"Action",kind:"unknown",description:"Predefined Action(s) to trigger when button is clicked; but the implementation in `actionHandlers` property of Alert Options",uiLabel:"Action",isOptional:!0},{name:"ButtonStyle",kind:"REFERENCE",description:"Style for the Button",uiLabel:"Button Style",isOptional:!0,reference:"ButtonStyle"},{name:"Label",kind:"string",description:"Label to show in the Button",uiLabel:"Label"},{name:"Tooltip",kind:"string",description:"ToolTip to display",uiLabel:"Tooltip",isOptional:!0}]},AlertButtonContext:{name:"AlertButtonContext",kind:"Interface",description:"Context required by functions when using an Alert Button",properties:[{name:"alert",kind:"REFERENCE",description:"Alert that has been triggered",uiLabel:"Alert",reference:"AdaptableAlert"},{name:"formData",kind:"REFERENCE",description:"Data in the Alert Form",uiLabel:"Form Data",isOptional:!0,reference:"unknown"}]},AlertDefinition:{name:"AlertDefinition",kind:"Interface",description:"The Alert Definition object used in the Alert function",properties:[{name:"AlertForm",kind:"unknown",description:"Form to display in Alert with buttons and inputs",uiLabel:"Alert Form",isOptional:!0},{name:"AlertProperties",kind:"REFERENCE",description:"Series of properties which set what happens when Alert is triggered",uiLabel:"Alert Properties",isOptional:!0,reference:"AlertProperties"},{name:"MessageText",kind:"string",description:"Alert Message - can be string or function; if not provided AdapTable creates dynamically using Rule & Scope",uiLabel:"Message Text",isOptional:!0},{name:"MessageType",kind:"REFERENCE",description:"Type of Alert: 'Info', 'Success', 'Warning', 'Error'; influences Alert colour, icon and logging",uiLabel:"Message Type",reference:"AdaptableMessageType"},{name:"Rule",kind:"REFERENCE",description:"When Alert should be triggered",uiLabel:"Rule",reference:"AlertRule"},{name:"Scope",kind:"REFERENCE",description:"Where Alert can be triggered: one, some or all columns or DataTypes",uiLabel:"Scope",reference:"AdaptableScope"}]},AlertFiredInfo:{name:"AlertFiredInfo",kind:"Interface",description:"Object returned by the `AlertFired` event",properties:[{name:"alert",kind:"REFERENCE",description:"Alert which has been fired",uiLabel:"Alert",reference:"AdaptableAlert"}]},AlertForm:{name:"AlertForm",kind:"TypeAlias",description:"Form to show in an Alert"},AlertOptions:{name:"AlertOptions",kind:"Interface",description:"Options related to Alerts in Adaptable.",properties:[{name:"actionHandlers",kind:"unknown",description:"onClick Handlers for Alert Buttons (defined in Alert State)",uiLabel:"Action Handlers",isOptional:!0},{name:"alertForms",kind:"unknown",description:"Full definitions of Alert Forms - the names of which are provided in Alert State",uiLabel:"Alert Forms",isOptional:!0},{name:"alertMessageText",kind:"unknown",description:"Function providing Message to display in Alert; if empty, AdapTable provides dynamically",uiLabel:"Alert Message Text",isOptional:!0},{name:"cellHighlightDuration",kind:"number",description:"How long (in ms) a cell will be highlighted",uiLabel:"Cell Highlight Duration",isOptional:!0,gridInfo:"item",defaultValue:"3000"},{name:"dataChangeDetectionPolicy",kind:"unknown",description:"Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data",uiLabel:"Data Change Detection Policy",isOptional:!0,gridInfo:"item",defaultValue:"'rawValue'"},{name:"maxAlertsInStore",kind:"number",description:"How many alerts held in State at any one time; when limit is breached, oldest alert will be removed",uiLabel:"Max Alerts In Store",isOptional:!0,gridInfo:"item",defaultValue:"20"}]},AlertProperties:{name:"AlertProperties",kind:"Interface",description:"Additional properties that specify how a particular Alert will ALWAYS behave",properties:[{name:"DisplayNotification",kind:"boolean",description:"Displays a notification when Alert is triggered",uiLabel:"Display Notification",isOptional:!0},{name:"HighlightCell",kind:"unknown",description:"Colours updated cell using `MessageType` property of triggering Alert Definition",uiLabel:"Highlight Cell",isOptional:!0},{name:"HighlightRow",kind:"unknown",description:"Colours updated cell using `MessageType` property of triggering Alert Definition",uiLabel:"Highlight Row",isOptional:!0},{name:"JumpToCell",kind:"boolean",description:"Grid will 'jump' to the changed cell which triggered the Alert",uiLabel:"Jump To Cell",isOptional:!0},{name:"JumpToRow",kind:"boolean",description:"Grid will 'jump' to the newly added row which triggered the Alert",uiLabel:"Jump To Row",isOptional:!0},{name:"LogToConsole",kind:"boolean",description:"Logs the Alert message to the console",uiLabel:"Log To Console",isOptional:!0},{name:"PreventEdit",kind:"boolean",description:"Automatically prevent any cell edit which triggered the Alert (i.e. validation)",uiLabel:"Prevent Edit",isOptional:!0,defaultValue:"false"},{name:"ShowInDiv",kind:"boolean",description:"Shows Alert text in the div specificed in `alertContainer` property of Container Options",uiLabel:"Show In Div",isOptional:!0}]},AlertRule:{name:"AlertRule",kind:"TypeAlias",description:"The Alert Rule defined by either an AdaptablePredicate or an AdaptableQuery"},AlertState:{name:"AlertState",kind:"Interface",description:"Predefined Configuration for Alert Module",properties:[{name:"AlertDefinitions",kind:"unknown",description:"Alert Definitions - will trigger Alerts when rule is met",uiLabel:"Alert Definitions",isOptional:!0}]},AlternativeModuleName:{name:"AlternativeModuleName",kind:"Interface",description:"Defines a new name for an Adaptable Module (e.g. change Dashboard to Grid Manager)",properties:[{name:"adaptableModule",kind:"REFERENCE",description:"Adaptable Module to rename",uiLabel:"Adaptable Module",reference:"AdaptableModule"},{name:"newName",kind:"string",description:"New name to use",uiLabel:"New Name"}]},AngularFrameworkComponent:{name:"AngularFrameworkComponent",kind:"TypeAlias",description:"An Angular component defined by its type and an optional initialisation callback."},ApplicationApi:{name:"ApplicationApi",kind:"Interface",description:"Provides run-time access to the Application Module",properties:[{name:"addApplicationDataEntry",kind:"function",description:"Adds new Application Data Entry",uiLabel:"Add Application Data Entry"},{name:"createApplicationDataEntry",kind:"function",description:"Creates new Application Data Entry with given Key and Value",uiLabel:"Create Application Data Entry"},{name:"deleteApplicationDataEntry",kind:"function",description:"Deletes given Application Data Entry",uiLabel:"Delete Application Data Entry"},{name:"editApplicationDataEntry",kind:"function",description:"Edits given Application Data Entry",uiLabel:"Edit Application Data Entry"},{name:"getApplicationDataEntries",kind:"function",description:"Retrieves all Key Value Pairs in Application state",uiLabel:"Get Application Data Entries"},{name:"getApplicationDataEntriesByValue",kind:"function",description:"Gets Application Data Entry with given value",uiLabel:"Get Application Data Entries By Value"},{name:"getApplicationDataEntryByKey",kind:"function",description:"Gets Application Data Entry with given key",uiLabel:"Get Application Data Entry By Key"},{name:"getApplicationState",kind:"function",description:"Retrieves Application section from Adaptable State",uiLabel:"Get Application State"}]},ApplicationDataEntry:{name:"ApplicationDataEntry",kind:"Interface",description:"Simple Key / Value pair object used to store custom - stringifiable - data in Adaptable State.",properties:[{name:"Key",kind:"string",description:"Key of Key / Value pair - always stored as a string",uiLabel:"Key"},{name:"Value",kind:"unknown",description:"Value of Key / Value pair (actual data being stored) - needs to stringifiable",uiLabel:"Value"}]},ApplicationState:{name:"ApplicationState",kind:"Interface",description:"Predefined Configuration for the Application Module",properties:[{name:"ApplicationDataEntries",kind:"unknown",description:"Array of Key / Value pairs enabling custom data to be stored in Adaptable State.",uiLabel:"Application Data Entries",isOptional:!0}]},BaseMenuContext:{name:"BaseMenuContext",kind:"Interface",description:"Base Context object used for both Column and Context Menu Context",properties:[{name:"adaptableApi",kind:"REFERENCE",description:"The Adaptable Api - included as a convenience",uiLabel:"Adaptable Api",reference:"AdaptableApi"}]},BulkUpdateApi:{name:"BulkUpdateApi",kind:"Interface",description:"Provides run-time access to the Bulk Update Module",properties:[{name:"applyBulkUpdate",kind:"function",description:"Applies a Bulk Update to given Cells",uiLabel:"Apply Bulk Update"},{name:"getBulkUpdateValue",kind:"function",description:"Returns current Bulk Update value",uiLabel:"Get Bulk Update Value"},{name:"setBulkUpdateValue",kind:"function",description:"Sets Bulk Update value",uiLabel:"Set Bulk Update Value"},{name:"showBulkUpdatePopup",kind:"function",description:"Opens Settings Panel with Bulk Update section selected and visible",uiLabel:"Show Bulk Update Popup"}]},BulkUpdatePermittedValues:{name:"BulkUpdatePermittedValues",kind:"Interface",description:"User to define permitted values when updating cells via bulk update"},ButtonStyle:{name:"ButtonStyle",kind:"Interface",description:"Defines the look and feel of an Adaptable Button",properties:[{name:"className",kind:"string",description:"CSS Classname to use for the Button",uiLabel:"Class Name",isOptional:!0},{name:"tone",kind:"unknown",description:"Button's Tone - values: 'success', 'error', 'neutral', 'none', 'warning', 'info', 'accent'",uiLabel:"Tone",isOptional:!0,defaultValue:"'neutral'"},{name:"variant",kind:"unknown",description:"How Button appears - values: 'text', 'outlined', 'raised'",uiLabel:"Variant",isOptional:!0,defaultValue:"'outlined'"}]},CalculatedColumn:{name:"CalculatedColumn",kind:"Interface",description:"Defines a Column where the display value is derived from other values in row, and the definition is stored in State.",properties:[{name:"CalculatedColumnSettings",kind:"REFERENCE",description:"Additional optional properties for Column (e.g. filterable, resizable)",uiLabel:"Calculated Column Settings",isOptional:!0,reference:"CalculatedColumnSettings"},{name:"ColumnId",kind:"string",description:"Name of Calculated Column",uiLabel:"Column Id"},{name:"FriendlyName",kind:"string",description:"Name to be used in Column Header; if blank `ColumnId` is used",uiLabel:"Friendly Name",isOptional:!0},{name:"Query",kind:"REFERENCE",description:"Scalar/AggregatedScalar Query used by AdapTableQL to evaluate Column's value",uiLabel:"Query",isOptional:!0,reference:"AdaptableCalculatedColumnQuery"}]},CalculatedColumnApi:{name:"CalculatedColumnApi",kind:"Interface",description:"Provides run-time access to the Calculated Column Module",properties:[{name:"addCalculatedColumn",kind:"function",description:"Adds new Calculated Column",uiLabel:"Add Calculated Column"},{name:"deleteCalculatedColumn",kind:"function",description:"Removes Calculated Column from State",uiLabel:"Delete Calculated Column"},{name:"editCalculatedColumn",kind:"function",description:"Edits given Calculated Column",uiLabel:"Edit Calculated Column"},{name:"editCalculatedColumns",kind:"function",description:"Edits given Calculated Columns",uiLabel:"Edit Calculated Columns"},{name:"getAllCalculatedColumn",kind:"function",description:"Retrieves all Calculated Columns in Adaptable State",uiLabel:"Get All Calculated Column"},{name:"getCalculatedColumnById",kind:"function",description:"Retrieves Calculated Column by the unique identifier of the Adaptable Object in the CalculatedColumnState",uiLabel:"Get Calculated Column By Id"},{name:"getCalculatedColumnForColumnId",kind:"function",description:"Gets Calculated Column, if any, for given ColumnId",uiLabel:"Get Calculated Column For Column Id"},{name:"getCalculatedColumnModuleReferences",kind:"function",description:"Returns all the references in the AdaptableState of the given CalculatedColumn",uiLabel:"Get Calculated Column Module References"},{name:"getCalculatedColumnsReferencingColumnId",kind:"function",description:"Returns all Calculated Columns whose Expression contains the ColumnId",uiLabel:"Get Calculated Columns Referencing Column Id"},{name:"getCalculatedColumnState",kind:"function",description:"Retrieves Calculated Column section from Adaptable State",uiLabel:"Get Calculated Column State"},{name:"getReferencedColumnIdsForCalculatedColumn",kind:"function",description:"Gets any ColumnIds referenced in a Calculated Column",uiLabel:"Get Referenced Column Ids For Calculated Column"},{name:"getReferencedColumnIdsForCalculatedColumnId",kind:"function",description:"Gets any ColumnIds referenced in a Calculated Column",uiLabel:"Get Referenced Column Ids For Calculated Column Id"},{name:"showCalculatedColumnPopup",kind:"function",description:"Opens Settings Panel with Calculated Column section selected and visible",uiLabel:"Show Calculated Column Popup"}]},CalculatedColumnSettings:{name:"CalculatedColumnSettings",kind:"Interface",description:"Set of optional properties that define a Calculated Column's behaviour",properties:[{name:"DataType",kind:"unknown",description:"Expression's return value DataType; inferred by AdapTable but settable by User",uiLabel:"Data Type",isOptional:!0},{name:"ShowToolTip",kind:"boolean",description:"Show underlying Expression as ToolTip when hovering over a cell",uiLabel:"Show Tool Tip",isOptional:!0,defaultValue:"false"}]},CalculatedColumnState:{name:"CalculatedColumnState",kind:"Interface",description:"Predefined Configuration for Calculated Column Module",properties:[{name:"CalculatedColumns",kind:"unknown",description:"Collection of Calculated Columns",uiLabel:"Calculated Columns",isOptional:!0}]},CellChangedInfo:{name:"CellChangedInfo",kind:"Interface",description:"EventInfo returned by CellChanged event",properties:[{name:"cellChange",kind:"REFERENCE",description:"Object providing full information of the cell (and column and row) that changed",uiLabel:"Cell Change",reference:"CellDataChangedInfo"}]},CellColorRange:{name:"CellColorRange",kind:"Interface",description:"Defines which Colours to show in Gradient and Percent Bar Styles",properties:[{name:"Color",kind:"string",description:"Cell colour to use for values that fall inside Range",uiLabel:"Color"},{name:"Max",kind:"number",description:"End number of Range",uiLabel:"Max"},{name:"Min",kind:"number",description:"Start number of Range",uiLabel:"Min"},{name:"ReverseGradient",kind:"boolean",description:"Reverses the Gradient so the lower the cell value the darker the colour",uiLabel:"Reverse Gradient",isOptional:!0}]},CellDataChangedInfo:{name:"CellDataChangedInfo",kind:"Interface",description:"Defines a Cell Edit - includes full details of old and new values, the column and the enclosing Row",properties:[{name:"changedAt",kind:"number",description:"Timestamp of change occurrence (in milliseconds)",uiLabel:"Changed At"},{name:"column",kind:"REFERENCE",description:"Column in which cell is situated",uiLabel:"Column",reference:"AdaptableColumn"},{name:"newValue",kind:"unknown",description:"New value for the cell",uiLabel:"New Value"},{name:"oldValue",kind:"unknown",description:"Value in the Cell before the edit",uiLabel:"Old Value"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key Column's value for the row where edited cell is situated",uiLabel:"Primary Key Value"},{name:"rowData",kind:"unknown",description:"Data in the Row",uiLabel:"Row Data",isOptional:!0},{name:"rowNode",kind:"REFERENCE",description:"AG Grid RowNode that contains the cell",uiLabel:"Row Node",isOptional:!0,reference:"unknown"},{name:"trigger",kind:"unknown",description:"What triggered the change - user, background change or a reverted change?",uiLabel:"Trigger",isOptional:!0}]},CellHighlightInfo:{name:"CellHighlightInfo",kind:"Interface",description:"Defines how a given Cell in AdapTable should be highlighted",properties:[{name:"columnId",kind:"string",description:"Id of Column containing Cell",uiLabel:"Column Id"},{name:"highlightStyle",kind:"REFERENCE",description:"Adaptable Style to use in the Cell Highlight",uiLabel:"Highlight Style",reference:"AdaptableStyle"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key Value of row containing Cell",uiLabel:"Primary Key Value"},{name:"timeout",kind:"number",description:"Time after which Cell should be unhighlighted",uiLabel:"Timeout",isOptional:!0}]},CellSummaryApi:{name:"CellSummaryApi",kind:"Interface",description:"Provides run-time access to the Cell Summary Module",properties:[{name:"getCellSummaryOperationDefinitions",kind:"function",description:"Retrieves all Cell Summary Definitions from Cell Summary State",uiLabel:"Get Cell Summary Operation Definitions"},{name:"getCurrentCellSummaryOperation",kind:"function",description:"Retrieves currently selected Cell Summary Operation",uiLabel:"Get Current Cell Summary Operation"},{name:"setCurrentCellSummaryOperation",kind:"function",description:"Sets the currently selected Cell Summary Operation",uiLabel:"Set Current Cell Summary Operation"},{name:"showCellSummaryPopup",kind:"function",description:"Opens Settings Panel with Cell Summary section selected and visible",uiLabel:"Show Cell Summary Popup"}]},CellSummaryOperationParams:{name:"CellSummaryOperationParams",kind:"Interface",description:"Params provided to a custom Cell Summary Operation function",properties:[{name:"allValues",kind:"unknown",description:"All values of selected cells",uiLabel:"All Values"},{name:"api",kind:"REFERENCE",description:"Adaptable Api object",uiLabel:"Api",reference:"AdaptableApi"},{name:"distinctCount",kind:"number",description:"Count of currently selected cells",uiLabel:"Distinct Count"},{name:"numericColumns",kind:"unknown",description:"Any numeric columns in current selection",uiLabel:"Numeric Columns"},{name:"numericValues",kind:"unknown",description:"Any numeric values in current selection",uiLabel:"Numeric Values"},{name:"selectedCellInfo",kind:"REFERENCE",description:"Currently selected cells",uiLabel:"Selected Cell Info",reference:"SelectedCellInfo"}]},CellSummmary:{name:"CellSummmary",kind:"Interface",description:"Defines the Summary operations provides for Selected Cells"},CellTextOption:{name:"CellTextOption",kind:"TypeAlias",description:"List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button"},CellValuesList:{name:"CellValuesList",kind:"TypeAlias",description:"Use PermittedValues instead"},CheckboxColumnClickedInfo:{name:"CheckboxColumnClickedInfo",kind:"Interface",description:"Event Info published by CheckboxColumnClicked event",properties:[{name:"column",kind:"REFERENCE",description:"Name of Column where Checkbox was clicked",uiLabel:"Column",reference:"AdaptableColumn"},{name:"isChecked",kind:"boolean",description:"Whether or not the Checkbox is checked",uiLabel:"Is Checked"},{name:"primaryKeyValue",kind:"unknown",description:"Value in Primary Key Column for row where Checkbox was clicked",uiLabel:"Primary Key Value"},{name:"rowData",kind:"unknown",description:"Data in the row where the Checkbox was clicked",uiLabel:"Row Data"}]},ColumnApi:{name:"ColumnApi",kind:"Interface",description:"A large range of column-related functions in AdapTable",properties:[{name:"addColumnsToSelection",kind:"function",description:"Adds (highlights) a group of Columns to any existing selection",uiLabel:"Add Columns To Selection"},{name:"addColumnToSelection",kind:"function",description:"Adds (highlights) a Column to any existing selection",uiLabel:"Add Column To Selection"},{name:"autosizeAllColumns",kind:"function",description:"Autosizes all Columns in the Grid",uiLabel:"Autosize All Columns"},{name:"autosizeColumn",kind:"function",description:"AutoSizes a Column",uiLabel:"Autosize Column"},{name:"autosizeColumns",kind:"function",description:"Autosizes given Columns",uiLabel:"Autosize Columns"},{name:"doesColumnExist",kind:"function",description:"Returns true if the given Column exists in the Grid",uiLabel:"Does Column Exist"},{name:"getAggregetableColumns",kind:"function",description:"Returns all Aggregatable Columns",uiLabel:"Get Aggregetable Columns"},{name:"getAgGridColumnFieldForAdaptableColumn",kind:"function",description:"Retrieves AG Grid's field property for the column",uiLabel:"Get Ag Grid Column Field For Adaptable Column"},{name:"getAgGridColumnForAdaptableColumn",kind:"function",description:"Retrieves AG Grid's column for an Adaptable column",uiLabel:"Get Ag Grid Column For Adaptable Column"},{name:"getAgGridColumnType",kind:"function",description:"Retrieves 'ColumnType' property for a given Column",uiLabel:"Get Ag Grid Column Type"},{name:"getAllColumnFriendlyNames",kind:"function",description:"Retrieves a list providing the Friendly Name / Caption for all columns",uiLabel:"Get All Column Friendly Names"},{name:"getBooleanColumns",kind:"function",description:"Returns all boolean Columns",uiLabel:"Get Boolean Columns"},{name:"getColumnDataTypeFromColumnId",kind:"function",description:"Returns Data Type for a Column",uiLabel:"Get Column Data Type From Column Id"},{name:"getColumnFromFriendlyName",kind:"function",description:"Retrieves Adaptable Column with given Friendly name",uiLabel:"Get Column From Friendly Name"},{name:"getColumnFromId",kind:"function",description:"Retrieves Adaptable Column with given ColumnId",uiLabel:"Get Column From Id"},{name:"getColumnIdFromFriendlyName",kind:"function",description:"Retrieves ColumnId for Column with given Friendly Name",uiLabel:"Get Column Id From Friendly Name"},{name:"getColumnIdsFromFriendlyNames",kind:"function",description:"Retrieves ColumnIds for Columns with given Friendly Names",uiLabel:"Get Column Ids From Friendly Names"},{name:"getColumnIdsFromId",kind:"function",description:"Returns the ColumnId if regular, otherwise referenced columns if Calculated Column",uiLabel:"Get Column Ids From Id"},{name:"getColumns",kind:"function",description:"Returns all Columns",uiLabel:"Get Columns"},{name:"getColumnsFromFriendlyNames",kind:"function",description:"Retrieves Adaptable Columns with given Friendly names",uiLabel:"Get Columns From Friendly Names"},{name:"getColumnsFromIds",kind:"function",description:"Retrieves Adaptable Columns with given ColumnIds",uiLabel:"Get Columns From Ids"},{name:"getColumnsOfType",kind:"function",description:"Returns all Columns that have given DataType",uiLabel:"Get Columns Of Type"},{name:"getDateColumns",kind:"function",description:"Returns all Date Columns",uiLabel:"Get Date Columns"},{name:"getDistinctBulkUpdateDisplayValuesForColumn",kind:"function",description:"Gets all distinct column display values for bulk update.",uiLabel:"Get Distinct Bulk Update Display Values For Column"},{name:"getDistinctCustomSortDisplayValuesForColumn",kind:"function",description:"Gets all distinct column display values in for custom sort.",uiLabel:"Get Distinct Custom Sort Display Values For Column"},{name:"getDistinctDisplayValuesForColumn",kind:"function",description:"Gets all distinct display values in the Column",uiLabel:"Get Distinct Display Values For Column"},{name:"getDistinctFilterDisplayValuesForColumn",kind:"function",description:"Gets all distinct display values in for filter column, used for Floating Filter and Column Header filter",uiLabel:"Get Distinct Filter Display Values For Column"},{name:"getDistinctRawValuesForColumn",kind:"function",description:"Gets all distinct raw values in Column",uiLabel:"Get Distinct Raw Values For Column"},{name:"getDistinctVisibleDisplayValuesForColumn",kind:"function",description:"Gets all distinct visible display values in the Column",uiLabel:"Get Distinct Visible Display Values For Column"},{name:"getDistinctVisibleRawValuesForColumn",kind:"function",description:"Gets all distinct visible raw values in the Column",uiLabel:"Get Distinct Visible Raw Values For Column"},{name:"getFriendlyNameFromColumn",kind:"function",description:"Retrieves Friendly Name for a given Column",uiLabel:"Get Friendly Name From Column"},{name:"getFriendlyNameFromColumnId",kind:"function",description:"Retrieves Friendly Name for a given ColumnId",uiLabel:"Get Friendly Name From Column Id"},{name:"getFriendlyNamesFromColumnIds",kind:"function",description:"Retrieves Friendly Names for given ColumnIds",uiLabel:"Get Friendly Names From Column Ids"},{name:"getGroupableColumns",kind:"function",description:"Returns all Groupable Columns",uiLabel:"Get Groupable Columns"},{name:"getNumericColumns",kind:"function",description:"Returns all numeric Columns",uiLabel:"Get Numeric Columns"},{name:"getPivotableColumns",kind:"function",description:"Returns all Pivotable Columns",uiLabel:"Get Pivotable Columns"},{name:"getPrimaryKeyColumn",kind:"function",description:"Retrieves current Primary Key Column in AdapTable",uiLabel:"Get Primary Key Column"},{name:"getQueryableColumns",kind:"function",description:"Returns all Queryable Columns",uiLabel:"Get Queryable Columns"},{name:"getSortableColumns",kind:"function",description:"Returns all Sortable Columns",uiLabel:"Get Sortable Columns"},{name:"getStringColumns",kind:"function",description:"Returns all string Columns",uiLabel:"Get String Columns"},{name:"getVisibleColumns",kind:"function",description:"Returns all visible Columns",uiLabel:"Get Visible Columns"},{name:"hideColumn",kind:"function",description:"Hides a Column from Grid",uiLabel:"Hide Column"},{name:"isActionColumn",kind:"function",description:"Is Column an Action Column",uiLabel:"Is Action Column"},{name:"isBooleanColumn",kind:"function",description:"Is Column Boolean",uiLabel:"Is Boolean Column"},{name:"isCalculatedColumn",kind:"function",description:"Is Column a Calculated Column",uiLabel:"Is Calculated Column"},{name:"isColumnReferencedInExpression",kind:"function",description:"Checks if a column is referenced in a given Expression",uiLabel:"Is Column Referenced In Expression"},{name:"isDateColumn",kind:"function",description:"Is Column a Date",uiLabel:"Is Date Column"},{name:"isFormatNumericStyleColumn",kind:"function",description:"Does Column have a numeric style (e.g. Percent Bar or Gradient)",uiLabel:"Is Format Numeric Style Column"},{name:"isFreeTextColumn",kind:"function",description:"Is Column a Free Text Column",uiLabel:"Is Free Text Column"},{name:"isNumericColumn",kind:"function",description:"Is Column Numeric",uiLabel:"Is Numeric Column"},{name:"isRowGroupColumn",kind:"function",description:"Is Column row-grouped",uiLabel:"Is Row Group Column"},{name:"selectAllColumns",kind:"function",description:"Selects all Columns",uiLabel:"Select All Columns"},{name:"selectColumn",kind:"function",description:"Selects (highlights) a Column",uiLabel:"Select Column"},{name:"selectColumns",kind:"function",description:"Selects (highlights) group of Columns",uiLabel:"Select Columns"},{name:"showColumn",kind:"function",description:"Makes a Column visible",uiLabel:"Show Column"},{name:"usesAdaptableFilterForm",kind:"function",description:"Does Column use AdapTable's Filter Form",uiLabel:"Uses Adaptable Filter Form"},{name:"usesAdaptableQuickFilter",kind:"function",description:"Does Column use AdapTable's Quick Filter",uiLabel:"Uses Adaptable Quick Filter"}]},ColumnComparison:{name:"ColumnComparison",kind:"Interface",description:"Enables a Percent Bar or Gradient Style to use another column in its calculations",properties:[{name:"Color",kind:"string",description:"Colour to use for the Percent bar",uiLabel:"Color"},{name:"MaxValue",kind:"unknown",description:"End value - either numeric or Column name",uiLabel:"Max Value"},{name:"MinValue",kind:"unknown",description:"Start value - either numeric or Column name",uiLabel:"Min Value"}]},ColumnFilter:{name:"ColumnFilter",kind:"Interface",description:"Defines a Filter applied on a Column using a Predicate",properties:[{name:"ColumnId",kind:"string",description:"Column where Filter should be applied",uiLabel:"Column Id"},{name:"Predicate",kind:"REFERENCE",description:"`AdaptablePredicate` which AdaptableQL will evaluate when the Filter is run",uiLabel:"Predicate",reference:"unknown"}]},ColumnMenuContext:{name:"ColumnMenuContext",kind:"Interface",description:"Provides full details about the Column in which the Column Menu will appear",properties:[{name:"adaptableColumn",kind:"REFERENCE",description:"Current Adaptable Column",uiLabel:"Adaptable Column",reference:"AdaptableColumn"},{name:"agGridColumn",kind:"REFERENCE",description:"Current AG Grid Column",uiLabel:"Ag Grid Column",reference:"unknown"},{name:"isRowGroupColumn",kind:"boolean",description:"Whether current Column is Row Group",uiLabel:"Is Row Group Column"}]},ColumnSort:{name:"ColumnSort",kind:"Interface",description:"Defines how a Column is sorted",properties:[{name:"ColumnId",kind:"string",description:"Id of Column being sorted",uiLabel:"Column Id"},{name:"SortOrder",kind:"unknown",description:"How Column is sorted - either 'Asc' or 'Desc'",uiLabel:"Sort Order"}]},ColumnStyle:{name:"ColumnStyle",kind:"Interface",description:"Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox",properties:[{name:"CheckBoxStyle",kind:"boolean",description:"Style a boolean column so each cell displays a checkbox",uiLabel:"Check Box Style",isOptional:!0},{name:"GradientStyle",kind:"REFERENCE",description:"Style a numeric column so each cell value shows a gradient shade",uiLabel:"Gradient Style",isOptional:!0,reference:"GradientStyle"},{name:"PercentBarStyle",kind:"REFERENCE",description:"Style a numeric column so each cell displays a 'bar'",uiLabel:"Percent Bar Style",isOptional:!0,reference:"PercentBarStyle"}]},ColumnValuesComparer:{name:"ColumnValuesComparer",kind:"Interface",description:"Comparer object for Column Values - used for custom sorting",properties:[{name:"comparer",kind:"REFERENCE",description:"Comparer function to use",uiLabel:"Comparer",reference:"AdaptableComparerFunction"},{name:"scope",kind:"REFERENCE",description:"Column for which to compare values",uiLabel:"Scope",reference:"AdaptableScope"}]},ConditionalStyle:{name:"ConditionalStyle",kind:"Interface",description:"Object used in Conditional Style function - contains Scope, a Rule and a Style",properties:[{name:"IncludeGroupedRows",kind:"boolean",description:"Whether to apply Style in Grouped Rows and when Pivoting",uiLabel:"Include Grouped Rows",isOptional:!0,defaultValue:"false"},{name:"Rule",kind:"REFERENCE",description:"Predicate-based Rule to use for deciding if a style needs to be applied.",uiLabel:"Rule",reference:"ConditionalStyleRule"},{name:"Scope",kind:"REFERENCE",description:"Where Style is applied - can be whole Row, some Columns or all Columns of given DataType",uiLabel:"Scope",reference:"AdaptableScope"},{name:"Style",kind:"REFERENCE",description:"Adaptable Style (e.g. font properties and colurs) to apply.",uiLabel:"Style",reference:"AdaptableStyle"}]},ConditionalStyleApi:{name:"ConditionalStyleApi",kind:"Interface",description:"Provides run-time access to Conditional Style Module and state",properties:[{name:"addConditionalStyle",kind:"function",description:"Adds new Conditional Style to State",uiLabel:"Add Conditional Style"},{name:"editConditionalStyle",kind:"function",description:"Replaces Conditional Style in State with given one",uiLabel:"Edit Conditional Style"},{name:"editConditionalStyles",kind:"function",description:"Replaces Conditional Styles in State with given ones",uiLabel:"Edit Conditional Styles"},{name:"getAllActiveConditionalStyle",kind:"function",description:"Gets all Conditional Styles that are active (not-suspended) in Adaptable State",uiLabel:"Get All Active Conditional Style"},{name:"getAllConditionalStyle",kind:"function",description:"Gets all Conditional Styles in Adaptable State",uiLabel:"Get All Conditional Style"},{name:"getAllSuspendedConditionalStyle",kind:"function",description:"Gets all Conditional Styles that are suspended in Adaptable State",uiLabel:"Get All Suspended Conditional Style"},{name:"getConditionalStyleById",kind:"function",description:"Get conditional style by id",uiLabel:"Get Conditional Style By Id"},{name:"getConditionalStylePredicateDefs",kind:"function",description:"Returns all Predicates usable in Conditional Styles",uiLabel:"Get Conditional Style Predicate Defs"},{name:"getConditionalStylesForColumn",kind:"function",description:"Gets all Conditional Styles that style a given Column",uiLabel:"Get Conditional Styles For Column"},{name:"getConditionalStyleState",kind:"function",description:"Retrieves Conditional Style section from Adaptable State",uiLabel:"Get Conditional Style State"},{name:"getConditionalStylesWithExpression",kind:"function",description:"Retrieves all Conditional Styles which have an Expression",uiLabel:"Get Conditional Styles With Expression"},{name:"getCondStylePredicateDefsForScope",kind:"function",description:"Returns all Predicates appropriate for the given Scope",uiLabel:"Get Cond Style Predicate Defs For Scope"},{name:"getOrderedConditionalStyles",kind:"function",description:"Retrieves all Conditional Styles ordered by Column then Row",uiLabel:"Get Ordered Conditional Styles"},{name:"getRowConditionalStyles",kind:"function",description:"Retrieves all Conditional Styles that style whole row",uiLabel:"Get Row Conditional Styles"},{name:"showConditionalStylePopup",kind:"function",description:"Opens Settings Panel with Conditional Style section selected and visible",uiLabel:"Show Conditional Style Popup"},{name:"suspendConditionalStyle",kind:"function",description:"Suspends conditional style, a readonly object cannot be suspended",uiLabel:"Suspend Conditional Style"},{name:"unSuspendConditionalStyle",kind:"function",description:"Un-suspends or activates a suspended conditional style",uiLabel:"Un Suspend Conditional Style"}]},ConditionalStyleRule:{name:"ConditionalStyleRule",kind:"TypeAlias",description:"The Conditional Style Rule - can be either a Predicate or an Expression"},ConditionalStyleState:{name:"ConditionalStyleState",kind:"Interface",description:"Predefined Configuration for the Conditional Style Module",properties:[{name:"ConditionalStyles",kind:"unknown",description:"Array of Conditional Styles to ship with AdapTable",uiLabel:"Conditional Styles",isOptional:!0}]},ConfigApi:{name:"ConfigApi",kind:"Interface",description:"Range of functions to access Predefined Config and Adaptable State",properties:[{name:"configInit",kind:"function",description:"Initialised Adaptable State (for internal use only)",uiLabel:"Config Init"},{name:"copyAllStateToClipboard",kind:"function",description:"Copies all Adaptable state to clipboard",uiLabel:"Copy All State To Clipboard"},{name:"copyUserStateToClipboard",kind:"function",description:"Copies User State sections of Adaptable State to clipboard",uiLabel:"Copy User State To Clipboard"},{name:"dispatchStateReadyAction",kind:"function",description:"Sent by each Module when it is Ready",uiLabel:"Dispatch State Ready Action"},{name:"getAdaptableSearchState",kind:"function",description:"Gets search-related sections of Adaptable State",uiLabel:"Get Adaptable Search State"},{name:"getAdaptableSortState",kind:"function",description:"Gets sort-related sections of Adaptable State",uiLabel:"Get Adaptable Sort State"},{name:"getAlertState",kind:"function",description:"Returns Alert section of Adaptable State",uiLabel:"Get Alert State"},{name:"getAllState",kind:"function",description:"Retrieves ALL state which is currently stored by Adaptable (both User and internal)",uiLabel:"Get All State"},{name:"getAllUserState",kind:"function",description:"Retrieves the PERSISTED state in Adaptable",uiLabel:"Get All User State"},{name:"getApplicationState",kind:"function",description:"Returns Application section of Adaptable State",uiLabel:"Get Application State"},{name:"getCalculatedColumnState",kind:"function",description:"Returns Calculated Column section of Adaptable State",uiLabel:"Get Calculated Column State"},{name:"getConditionalStyleState",kind:"function",description:"Returns Conditional Style section of Adaptable State",uiLabel:"Get Conditional Style State"},{name:"getCustomSortState",kind:"function",description:"Returns Custom Sort section of Adaptable State",uiLabel:"Get Custom Sort State"},{name:"getDashboardState",kind:"function",description:"Returns Dashboard section of Adaptable State",uiLabel:"Get Dashboard State"},{name:"getDataSourceState",kind:"function",description:"Returns Data Source section of Adaptable State",uiLabel:"Get Data Source State"},{name:"getDescriptionForModule",kind:"function",description:"Retrieves a brief description of an AdapTable Module",uiLabel:"Get Description For Module"},{name:"getExportState",kind:"function",description:"Returns Export section of Adaptable State",uiLabel:"Get Export State"},{name:"getFilterState",kind:"function",description:"Returns Filter section of Adaptable State",uiLabel:"Get Filter State"},{name:"getFormatColumnState",kind:"function",description:"Returns Formt Column section of Adaptable State",uiLabel:"Get Format Column State"},{name:"getFreeTextColumnState",kind:"function",description:"Returns FreeText Column section of Adaptable State",uiLabel:"Get Free Text Column State"},{name:"getHelpPageForModule",kind:"function",description:"Retrieves the help page for an AdapTable Module",uiLabel:"Get Help Page For Module"},{name:"getLayoutState",kind:"function",description:"Returns Layout section of Adaptable State",uiLabel:"Get Layout State"},{name:"getPlusMinusState",kind:"function",description:"Returns Plus Minus section of Adaptable State",uiLabel:"Get Plus Minus State"},{name:"getPredefinedConfig",kind:"function",description:"Returns current Predefined Config",uiLabel:"Get Predefined Config"},{name:"getQueryState",kind:"function",description:"Returns Query section of Adaptable State",uiLabel:"Get Query State"},{name:"getQuickSearchState",kind:"function",description:"Returns Quick Search section of Adaptable State",uiLabel:"Get Quick Search State"},{name:"getScheduleState",kind:"function",description:"Returns Schedule section of Adaptable State",uiLabel:"Get Schedule State"},{name:"getShortcutState",kind:"function",description:"Returns Shortcut section of Adaptable State",uiLabel:"Get Shortcut State"},{name:"getThemeState",kind:"function",description:"Returns Theme section of Adaptable State",uiLabel:"Get Theme State"},{name:"getToolPanelState",kind:"function",description:"Returns Tool Panel section of Adaptable State",uiLabel:"Get Tool Panel State"},{name:"getUserStateByStateKey",kind:"function",description:"Returns given section of Adaptable State (as JSON or object)",uiLabel:"Get User State By State Key"},{name:"incrementUserStateRevision",kind:"function",description:"Adds '1' to current revision number of State element",uiLabel:"Increment User State Revision"},{name:"loadUserState",kind:"function",description:"Loads supplied user state, replacing (not merging) existing User State.",uiLabel:"Load User State"},{name:"reloadPredefinedConfig",kind:"function",description:"Reloads either existing or supplied Predefined Config; deletes local storage and calls clearState function for remote storage removal",uiLabel:"Reload Predefined Config"},{name:"setAdaptableStateKey",kind:"function",description:"Changes the key used for persisting the Adaptablestate into localStorage",uiLabel:"Set Adaptable State Key"}]},ConfigState:{name:"ConfigState",kind:"Interface",description:"Base Interface for all Adaptable State objects; contains`Revision` property, used for versioning",properties:[{name:"Revision",kind:"unknown",description:"Version number of the Item - allows developers to update one section in Predefined Config while keeping others unchanged",uiLabel:"Revision",isOptional:!0}]},ContactColumn:{name:"ContactColumn",kind:"Interface",description:"A (String) Column which will be defined as an FDC3 Contact columnId and at least one other property is required",properties:[{name:"emailColumnId",kind:"string",description:"Column which holds the email address of a Contact",uiLabel:"Email Column Id",isOptional:!0},{name:"fds_IdColumnId",kind:"string",description:"Column which holds an FDS_ID value a Contact",uiLabel:"Fds_Id Column Id",isOptional:!0},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"}]},ContainerOptions:{name:"ContainerOptions",kind:"Interface",description:"Options for managing the different div elements required by AdapTable",properties:[{name:"adaptableContainer",kind:"unknown",description:"Div containing AdapTable - string Id or HTMLElement",uiLabel:"Adaptable Container",isOptional:!0,gridInfo:"item",defaultValue:""adaptable""},{name:"agGridContainer",kind:"unknown",description:"Div containing AG Grid instance - string Id or HTMLElement",uiLabel:"Ag Grid Container",isOptional:!0,gridInfo:"item",defaultValue:""grid""},{name:"agGridContainerWaitTimeout",kind:"number",description:"How long AdapTable waits for AG Grid before giving up connecting to it",uiLabel:"Ag Grid Container Wait Timeout",isOptional:!0,gridInfo:"item",defaultValue:"60s"},{name:"alertContainer",kind:"unknown",description:"Div to show Alerts - string Id or HTMLElement",uiLabel:"Alert Container",isOptional:!0,gridInfo:"item",defaultValue:"undefined"},{name:"modalContainer",kind:"unknown",description:"Name of div where modals appear (if null, will be centre of page)",uiLabel:"Modal Container",isOptional:!0,gridInfo:"item",defaultValue:"undefined"},{name:"systemStatusContainer",kind:"unknown",description:"Div to show System Status messages - string Id or HTMLElement",uiLabel:"System Status Container",isOptional:!0,gridInfo:"item",defaultValue:"undefined"}]},ContextMenuContext:{name:"ContextMenuContext",kind:"Interface",description:"Provides full details about current cell (and selected cells) where the Context Menu will appear",properties:[{name:"adaptableColumn",kind:"REFERENCE",description:"Current Adaptable Column",uiLabel:"Adaptable Column",reference:"AdaptableColumn"},{name:"agGridColumn",kind:"REFERENCE",description:"Current AG Grid Column",uiLabel:"Ag Grid Column",reference:"unknown"},{name:"gridCell",kind:"REFERENCE",description:"Cell that has been clicked; contains cell value",uiLabel:"Grid Cell",reference:"GridCell"},{name:"isGroupedNode",kind:"boolean",description:"Whether current AG Grid row node is grouped",uiLabel:"Is Grouped Node"},{name:"isRowGroupColumn",kind:"boolean",description:"Whether current Column is Row Grouped",uiLabel:"Is Row Group Column"},{name:"isSelectedCell",kind:"boolean",description:"Whether cell that was clicked is also currently selected",uiLabel:"Is Selected Cell"},{name:"isSingleSelectedCell",kind:"boolean",description:"Whether the clicked cell is the only selected cell",uiLabel:"Is Single Selected Cell"},{name:"isSingleSelectedColumn",kind:"boolean",description:"Whether Column that was clicked is only column with selected cells",uiLabel:"Is Single Selected Column"},{name:"primaryKeyValue",kind:"unknown",description:"Value of Primary Key column in current row",uiLabel:"Primary Key Value"},{name:"rowNode",kind:"REFERENCE",description:"Current AG Grid row node",uiLabel:"Row Node",reference:"unknown"},{name:"selectedCellInfo",kind:"REFERENCE",description:"Currently selected cells in the grid",uiLabel:"Selected Cell Info",reference:"SelectedCellInfo"},{name:"selectedRowInfo",kind:"REFERENCE",description:"Currently selected rows in the grid",uiLabel:"Selected Row Info",reference:"SelectedRowInfo"}]},CountryColumn:{name:"CountryColumn",kind:"Interface",description:"A (String) Column which will be defined as an FDC3 Country",properties:[{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"},{name:"isoAlpha2ColumnId",kind:"string",description:"Column which contains the ISOALPHA2 Standard",uiLabel:"Iso Alpha2Column Id",isOptional:!0},{name:"isoAlpha3ColumnId",kind:"string",description:"Column which contains the ISOALPHA3 Standard",uiLabel:"Iso Alpha3Column Id",isOptional:!0}]},CustomDestination:{name:"CustomDestination",kind:"Interface",description:"Defines a custom Export destination",properties:[{name:"form",kind:"unknown",description:"Optional Adaptable Form - if provided, it must include Buttons that will execute the export",uiLabel:"Form",isOptional:!0},{name:"name",kind:"string",description:"Name of Custom Destination",uiLabel:"Name"},{name:"onExport",kind:"unknown",description:"Function invoked when export is applied (used if no form is supplied)",uiLabel:"On Export",isOptional:!0}]},CustomReport:{name:"CustomReport",kind:"Interface",description:"Defines a Report where all the data is provided entirely by the user",properties:[{name:"name",kind:"string",description:"Name of the Report",uiLabel:"Name"},{name:"onRunReport",kind:"unknown",description:"Function invoked to return the data (in the form of a `ReportData` object)",uiLabel:"On Run Report"}]},CustomSettingsPanel:{name:"CustomSettingsPanel",kind:"Interface",description:"Definition of a Custom Panel to add to the Adaptable Settings Panel",properties:[{name:"frameworkComponent",kind:"REFERENCE",description:"Framework-specific (Angular or React) component to be rendered",uiLabel:"Framework Component",isOptional:!0,reference:"unknown"},{name:"icon",kind:"REFERENCE",description:"Icon rendered inside settings-panel name, inside the navigation",uiLabel:"Icon",isOptional:!0,reference:"AdaptableIcon"},{name:"name",kind:"string",description:"Appears in Settings Panel Navigation and must be included in settingsPanelOptions.navigation for it to be displayed (by default added to the end)",uiLabel:"Name"},{name:"render",kind:"unknown",description:"Function to provide bespoke content when NOT using a Framework wrapper",uiLabel:"Render",isOptional:!0}]},CustomSort:{name:"CustomSort",kind:"Interface",description:"Custom Sort object used in Custom Sort function.",properties:[{name:"ColumnId",kind:"string",description:"Id of Column on which Custom Sort will be applied",uiLabel:"Column Id"},{name:"SortedValues",kind:"unknown",description:"Order of values by which Column will be sorted",uiLabel:"Sorted Values",isOptional:!0}]},CustomSortApi:{name:"CustomSortApi",kind:"Interface",description:"Provides run-time access to the Custom Sort function",properties:[{name:"addCustomSort",kind:"function",description:"Adds a Custom Sort to Custom Sort collection in Adaptable State",uiLabel:"Add Custom Sort"},{name:"createCustomSort",kind:"function",description:"Creates new Custom Sort based on given values",uiLabel:"Create Custom Sort"},{name:"deleteCustomSort",kind:"function",description:"Removes Custom Sort for a given ColumnId",uiLabel:"Delete Custom Sort"},{name:"editCustomSort",kind:"function",description:"Updates existing Custom Sort with new set of Sorted Values",uiLabel:"Edit Custom Sort"},{name:"getAllActiveCustomSort",kind:"function",description:"Retrieves all Custom Sorts that are active (not-suspended) in Adaptable State",uiLabel:"Get All Active Custom Sort"},{name:"getAllCustomSort",kind:"function",description:"Retrieves all Custom Sorts in Adaptable State",uiLabel:"Get All Custom Sort"},{name:"getAllSuspendedCustomSort",kind:"function",description:"Retrieves all Custom Sorts that are suspended in Adaptable State",uiLabel:"Get All Suspended Custom Sort"},{name:"getCustomSortByColumn",kind:"function",description:"Retrieves Custom Sort from Adaptable State for given ColumnId",uiLabel:"Get Custom Sort By Column"},{name:"getCustomSortById",kind:"function",description:"Retrieves Custom Sort by id",uiLabel:"Get Custom Sort By Id"},{name:"getCustomSortState",kind:"function",description:"Retrieves Custom Sort section from Adaptable State",uiLabel:"Get Custom Sort State"},{name:"showCustomSortPopup",kind:"function",description:"Opens Settings Panel with Custom Sort section selected and visible",uiLabel:"Show Custom Sort Popup"},{name:"suspendCustomSort",kind:"function",description:"Suspends Custom Sort",uiLabel:"Suspend Custom Sort"},{name:"unSuspendCustomSort",kind:"function",description:"Un-suspends or activates a suspended Custom Sort",uiLabel:"Un Suspend Custom Sort"}]},CustomSortPermittedValues:{name:"CustomSortPermittedValues",kind:"Interface",description:"Custom column values for custom sort."},CustomSortState:{name:"CustomSortState",kind:"Interface",description:"Predefined Configuration for Custom Sort Module",properties:[{name:"CustomSorts",kind:"unknown",description:"Collection of Custom Sort objects.",uiLabel:"Custom Sorts",isOptional:!0}]},CustomToolbar:{name:"CustomToolbar",kind:"Interface",description:"Custom Toolbar (which AdapTable will manage) enabling devs to populate Dashboard with bepoke content",properties:[{name:"frameworkComponent",kind:"REFERENCE",description:"The Framework-specific (Angular or React) component to be rendered",uiLabel:"Framework Component",isOptional:!0,reference:"unknown"},{name:"name",kind:"string",description:"How Toolbar is referenced (e.g. in Dashboard Popup when managing toolbars)",uiLabel:"Name"},{name:"render",kind:"unknown",description:"Function to provide custom content when NOT using a Framework wrapper",uiLabel:"Render",isOptional:!0},{name:"showCloseButton",kind:"boolean",description:"Shows a Close button at the bottom of Custom Toolbar",uiLabel:"Show Close Button",isOptional:!0},{name:"showConfigureButton",kind:"boolean",description:"Shows a Configure (wrench) button which when clicked fires `CustomToolbarConfigured` event",uiLabel:"Show Configure Button",isOptional:!0},{name:"title",kind:"string",description:"Title to display in Toolbar; if unset or empty string, nothing will show",uiLabel:"Title",isOptional:!0},{name:"toolbarButtons",kind:"unknown",description:"Optional set of buttons to show in the Toolbar",uiLabel:"Toolbar Buttons",isOptional:!0}]},CustomToolbarButtonContext:{name:"CustomToolbarButtonContext",kind:"Interface",description:"Context required by functions when using a Custom Toolbar Button",properties:[{name:"customToolbar",kind:"REFERENCE",description:"Custom Toolbar which hosts the Button",uiLabel:"Custom Toolbar",reference:"CustomToolbar"},{name:"dashboardState",kind:"REFERENCE",description:"Current Dashboard State",uiLabel:"Dashboard State",reference:"DashboardState"}]},CustomToolbarConfiguredInfo:{name:"CustomToolbarConfiguredInfo",kind:"Interface",description:"EventInfo returned by the CustomToolbarConfigured event",properties:[{name:"customToolbar",kind:"REFERENCE",description:"Custom Toolbar in which the 'Configure' button has been clicked",uiLabel:"Custom Toolbar",reference:"CustomToolbar"}]},CustomToolPanel:{name:"CustomToolPanel",kind:"Interface",description:"Defines a Custom ToolPanel - provided by Users and contains custom content",properties:[{name:"buttons",kind:"unknown",description:"Optional set of buttons to show in the ToolPanel",uiLabel:"Buttons",isOptional:!0},{name:"frameworkComponent",kind:"REFERENCE",description:"Framework-specific (Angular or React) component to be rendered",uiLabel:"Framework Component",isOptional:!0,reference:"unknown"},{name:"name",kind:"string",description:"Name of Custom ToolPanel - should be unique",uiLabel:"Name"},{name:"render",kind:"unknown",description:"Function to provide bespoke content when NOT using a Framework wrapper",uiLabel:"Render",isOptional:!0},{name:"title",kind:"string",description:"Title to display in Custom ToolPanel; if undefined, will default to `name` property",uiLabel:"Title",isOptional:!0}]},DashboardApi:{name:"DashboardApi",kind:"Interface",description:"Functions relating to the AdapTable Dashboard.",properties:[{name:"addCustomToolbarButtons",kind:"function",description:"Adds Toolbar Buttons to current collection in Custom Toolbar",uiLabel:"Add Custom Toolbar Buttons"},{name:"clearCustomToolbarButtons",kind:"function",description:"Clears all Toolbar Buttons from Custom Toolbar",uiLabel:"Clear Custom Toolbar Buttons"},{name:"collapseDashboard",kind:"function",description:"Collapses Dashboard so only Dashboard Header is visible (and not Toolbars' contents)",uiLabel:"Collapse Dashboard"},{name:"dockDashboard",kind:"function",description:"Docks Dashboard so it 'snaps back' into its customary position above the grid",uiLabel:"Dock Dashboard"},{name:"expandDashboard",kind:"function",description:"Expands Dashboard so Toolbars in Active Tab are fully visible",uiLabel:"Expand Dashboard"},{name:"fireDashboardChangedEvent",kind:"function",description:"Fires Dashboard Changed Event",uiLabel:"Fire Dashboard Changed Event"},{name:"floatDashboard",kind:"function",description:"Floats Dashboard so only Dashboard Header is visible (in reduced size); can be dragged to a new location",uiLabel:"Float Dashboard"},{name:"getActiveTab",kind:"function",description:"Returns current Active Tab (if there is one)",uiLabel:"Get Active Tab"},{name:"getActiveTabIndex",kind:"function",description:"Returns current Active Tab index (if there is one)",uiLabel:"Get Active Tab Index"},{name:"getCurrentToolbars",kind:"function",description:"Retrieves all Toolbars in Active Tab",uiLabel:"Get Current Toolbars"},{name:"getCustomDashboardButtonByLabel",kind:"function",description:"Retrieves first Custom Button with given Label",uiLabel:"Get Custom Dashboard Button By Label"},{name:"getCustomDashboardButtons",kind:"function",description:"Retrieves all Custom Buttons",uiLabel:"Get Custom Dashboard Buttons"},{name:"getCustomToolbarByName",kind:"function",description:"Returns Custom Toolbar with the given name",uiLabel:"Get Custom Toolbar By Name"},{name:"getCustomToolbarContentsDiv",kind:"function",description:"Returns 'div' element for given Custom Toolbar",uiLabel:"Get Custom Toolbar Contents Div"},{name:"getCustomToolbars",kind:"function",description:"Retrieves all Custom Toolbars",uiLabel:"Get Custom Toolbars"},{name:"getDashboardState",kind:"function",description:"Retrieves Dashboard section from Adaptable State",uiLabel:"Get Dashboard State"},{name:"getTabByName",kind:"function",description:"Retrieves the Tab from State that matches inputted name",uiLabel:"Get Tab By Name"},{name:"hasCustomToolbarChanged",kind:"function",description:"Has a custom toolbar become visible or",uiLabel:"Has Custom Toolbar Changed"},{name:"hideDashboard",kind:"function",description:"Hides the Dashboard so cannot be seen",uiLabel:"Hide Dashboard"},{name:"isDashboardCollapsed",kind:"function",description:"Is Dashboard Collapsed",uiLabel:"Is Dashboard Collapsed"},{name:"isDashboardDocked",kind:"function",description:"Is Dashboard Docked",uiLabel:"Is Dashboard Docked"},{name:"isDashboardExpanded",kind:"function",description:"Is Dashboard Expanded",uiLabel:"Is Dashboard Expanded"},{name:"isDashboardFloating",kind:"function",description:"Is Dashboard Floating",uiLabel:"Is Dashboard Floating"},{name:"isDashboardHidden",kind:"function",description:"Is Dashboard Hidden",uiLabel:"Is Dashboard Hidden"},{name:"isDashboardVisible",kind:"function",description:"Is Dashboard Visible",uiLabel:"Is Dashboard Visible"},{name:"isToolbarVisible",kind:"function",description:"Checks if a given Toolbar is visible",uiLabel:"Is Toolbar Visible"},{name:"setActiveTab",kind:"function",description:"Sets Active Tab in Dashboard",uiLabel:"Set Active Tab"},{name:"setActiveTabIndex",kind:"function",description:"Sets Active Tab in Dashboard",uiLabel:"Set Active Tab Index"},{name:"setCustomToolbarButtons",kind:"function",description:"Replaces Toolbar Buttons in Custom Toolbar with the new set",uiLabel:"Set Custom Toolbar Buttons"},{name:"setCustomToolbarContents",kind:"function",description:"Populates a Custom Toolbar with content",uiLabel:"Set Custom Toolbar Contents"},{name:"setDashboardTitle",kind:"function",description:"Sets title of Dashboard Header",uiLabel:"Set Dashboard Title"},{name:"setModuleButtons",kind:"function",description:"Sets which Module Buttons are visible",uiLabel:"Set Module Buttons"},{name:"showDashboard",kind:"function",description:"Makes the Dashboard visible",uiLabel:"Show Dashboard"},{name:"showDashboardPopup",kind:"function",description:"Opens Settings Panel with Dashboard section selected and visible",uiLabel:"Show Dashboard Popup"}]},DashboardButtonContext:{name:"DashboardButtonContext",kind:"Interface",description:"Context required by functions when using a Dashboard Button",properties:[{name:"dashboardState",kind:"REFERENCE",description:"Current Dashboard State",uiLabel:"Dashboard State",reference:"DashboardState"}]},DashboardChangedInfo:{name:"DashboardChangedInfo",kind:"Interface",description:"Object returned by the `DashboardChanged` event",properties:[{name:"actionName",kind:"string",description:"What caused Dashboard State to change",uiLabel:"Action Name"},{name:"newDashboardState",kind:"REFERENCE",description:"Current Dashboard State",uiLabel:"New Dashboard State",reference:"DashboardState"},{name:"oldDashboardState",kind:"REFERENCE",description:"Previous Dashboard State",uiLabel:"Old Dashboard State",reference:"DashboardState"}]},DashboardOptions:{name:"DashboardOptions",kind:"Interface",description:"Options related to the Dashboard in Adaptable.",properties:[{name:"buttonsLocation",kind:"unknown",description:"Where in Dashboard to display Module and Custom Buttons",uiLabel:"Buttons Location",isOptional:!0,defaultValue:"'right'"},{name:"canFloat",kind:"boolean",description:"Whether the Dashboard can be floated; if true (the default), double-clicking Dashboard puts it in float mode",uiLabel:"Can Float",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"customDashboardButtons",kind:"unknown",description:"Custom Adaptable Buttons to appear in Dashboard (alongside Module Buttons)",uiLabel:"Custom Dashboard Buttons",isOptional:!0},{name:"customToolbars",kind:"unknown",description:"Toolbars provided by Users which contain custom content",uiLabel:"Custom Toolbars",isOptional:!0},{name:"showQuickSearchInHeader",kind:"boolean",description:"Shows Quick Search textbox in the Dashboard Header",uiLabel:"Show Quick Search In Header",isOptional:!0,gridInfo:"item",defaultValue:"true"}]},DashboardState:{name:"DashboardState",kind:"Interface",description:"Predefined Configuration for the AdapTable Dashboard",properties:[{name:"ActiveTabIndex",kind:"number",description:"The index of the Active Tab (in Tabs collection)",uiLabel:"Active Tab Index",isOptional:!0},{name:"DashboardTitle",kind:"string",description:"Title to display in Dashboard Header",uiLabel:"Dashboard Title",isOptional:!0,defaultValue:"`adaptableId` in Adaptable Options"},{name:"FloatingPosition",kind:"REFERENCE",description:"Position of Dashboard when in 'floating mode'",uiLabel:"Floating Position",isOptional:!0,reference:"AdaptableCoordinate"},{name:"IsCollapsed",kind:"boolean",description:"Whether Dashboard is collapsed; if true, header is visible (but not tabs' contents)",uiLabel:"Is Collapsed",isOptional:!0,defaultValue:"false"},{name:"IsFloating",kind:"boolean",description:"Whether Dashboard is floating; if true, appears in draggable, minmised form (double-click to revert to default position)",uiLabel:"Is Floating",isOptional:!0,defaultValue:"false"},{name:"IsHidden",kind:"boolean",description:"Whether Dashboard is completely hidden - can be made visible again in Column menu and toolpanel",uiLabel:"Is Hidden",isOptional:!0,defaultValue:"false"},{name:"IsInline",kind:"boolean",description:"Alternative way of showing Expanded Dashboard where headers section is to left of Toolbars",uiLabel:"Is Inline",isOptional:!0,defaultValue:"false"},{name:"ModuleButtons",kind:"REFERENCE",description:"Module Buttons which open screen in Settings Panel for associated AdapTable Module",uiLabel:"Module Buttons",isOptional:!0,defaultValue:"['SettingsPanel']",reference:"unknown"},{name:"Tabs",kind:"unknown",description:"Named group of Toolbars",uiLabel:"Tabs",isOptional:!0,defaultValue:"Empty Array"}]},DashboardTab:{name:"DashboardTab",kind:"Interface",description:"Defines a named set of Toolbars in the AdapTable Dashboard",properties:[{name:"Name",kind:"string",description:"Name of the tab - as appears in the Dashboard",uiLabel:"Name"},{name:"Toolbars",kind:"unknown",description:"List of Toolbars to show in the Tab",uiLabel:"Toolbars"}]},DataChangeHistoryApi:{name:"DataChangeHistoryApi",kind:"Interface",description:"Provides run-time access to the Data Change History Module",properties:[{name:"activateDataChangeHistory",kind:"function",description:"Activates Data Change History tracking (or resumes it, if it is currently suspended)",uiLabel:"Activate Data Change History"},{name:"deactivateDataChangeHistory",kind:"function",description:"Deactivates Data Change History tracking and flushes the cache",uiLabel:"Deactivate Data Change History"},{name:"getDataChangeHistoryLog",kind:"function",description:"Retrieves all data changes which are currently available",uiLabel:"Get Data Change History Log"},{name:"getDataChangeHistoryMode",kind:"function",description:"Retrieves current Data Change History mode: 'ACTIVE', 'INACTIVE', 'SUSPENDED'",uiLabel:"Get Data Change History Mode"},{name:"showDataChangeHistoryPopup",kind:"function",description:"Opens Data Change History screen",uiLabel:"Show Data Change History Popup"},{name:"suspendDataChangeHistory",kind:"function",description:"Suspends data change history tracking",uiLabel:"Suspend Data Change History"},{name:"undoDataChangeHistoryEntry",kind:"function",description:"Reverts the provided data change to its previous value",uiLabel:"Undo Data Change History Entry"}]},DataChangeHistoryOptions:{name:"DataChangeHistoryOptions",kind:"Interface",description:"Options to manage the 'Data Change History Module', which provides an overview of all previous changes, giving the possibility to undo specific changes",properties:[{name:"activeByDefault",kind:"boolean",description:"Whether data change history should be active by default",uiLabel:"Active By Default",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"showDataChange",kind:"unknown",description:"Function specifying which data changes to include in Data Change History",uiLabel:"Show Data Change",isOptional:!0,gridInfo:"item",defaultValue:"undefined (all data changes are logged)"}]},DataSource:{name:"DataSource",kind:"Interface",description:"Defines a Data Source object - used in Data Source function",properties:[{name:"Description",kind:"string",description:"Describes the Data Source",uiLabel:"Description"},{name:"Form",kind:"unknown",description:"Params for DataSource pops up a form",uiLabel:"Form",isOptional:!0},{name:"Name",kind:"string",description:"Name of Data Source",uiLabel:"Name"}]},DataSourceApi:{name:"DataSourceApi",kind:"Interface",description:"Provides run-time access to Data Source Module",properties:[{name:"addDataSource",kind:"function",description:"Adds new DataSource to State",uiLabel:"Add Data Source"},{name:"clearDataSource",kind:"function",description:"Clears currently selected DataSource",uiLabel:"Clear Data Source"},{name:"createDataSource",kind:"function",description:"Creates a DataSource from a given name and description",uiLabel:"Create Data Source"},{name:"getAllDataSource",kind:"function",description:"Retrieves all Data Sources in the Adaptable State",uiLabel:"Get All Data Source"},{name:"getCurrentDataSource",kind:"function",description:"Retrieves the currently applied Data Source",uiLabel:"Get Current Data Source"},{name:"getDataSourceById",kind:"function",description:"Retrieves Data Source by id",uiLabel:"Get Data Source By Id"},{name:"getDataSourceByName",kind:"function",description:"Retrives Data Source from State with given name",uiLabel:"Get Data Source By Name"},{name:"getDataSourceState",kind:"function",description:"Retrieves Data Source section from Adaptable State",uiLabel:"Get Data Source State"},{name:"setDataSource",kind:"function",description:"Makes given DataSource current",uiLabel:"Set Data Source"},{name:"showDataSourcePopup",kind:"function",description:"Opens Settings Panel with Data Source section selected and visible",uiLabel:"Show Data Source Popup"}]},DataSourceState:{name:"DataSourceState",kind:"Interface",description:"Predefined Configuration for Data Source Module",properties:[{name:"CurrentDataSource",kind:"string",description:"Name of the currently selected Data Source",uiLabel:"Current Data Source",isOptional:!0},{name:"DataSources",kind:"unknown",description:"Collection of available Data Sources",uiLabel:"Data Sources",isOptional:!0}]},DataUpdateConfig:{name:"DataUpdateConfig",kind:"Interface",description:"Object passed into Adaptable Grid Api data management methods",properties:[{name:"addIndex",kind:"number",description:"Index where to add new rows",uiLabel:"Add Index",isOptional:!0},{name:"callback",kind:"unknown",description:"Callback function invoked when a batch successfully updates",uiLabel:"Callback",isOptional:!0},{name:"runAsync",kind:"boolean",description:"Whether data should be updated asynchronously",uiLabel:"Run Async",isOptional:!0}]},DateFormatterOptions:{name:"DateFormatterOptions",kind:"Interface",description:"Formatter Options for Date Columns - contains a single `Pattern` property",properties:[{name:"Pattern",kind:"string",description:"Pattern to use for Date Format",uiLabel:"Pattern",isOptional:!0}]},DateInputOptions:{name:"DateInputOptions",kind:"Interface",description:"Options for managing and customizing the date inputs.",properties:[{name:"dateFormat",kind:"string",description:"Format string for formatting date input field",uiLabel:"Date Format",isOptional:!0,defaultValue:"'yyyy-MM-dd'"},{name:"datepickerButtons",kind:"unknown",description:"List of buttons which are displayed in the datepicker overlay in the given order (provide empty array to display no buttons); custom button layout and positioning is achievable with the special elements `-` and `|`",uiLabel:"Datepicker Buttons",isOptional:!0,defaultValue:"['close','today']"},{name:"locale",kind:"unknown",description:"Locale object (to localize Date Picker)",uiLabel:"Locale",isOptional:!0,defaultValue:"`en-US`"},{name:"showOutsideDays",kind:"boolean",description:"Display outside days (i.e. those falling in next or previous month)",uiLabel:"Show Outside Days",isOptional:!0,defaultValue:"true"},{name:"showWeekNumber",kind:"boolean",description:"Display the week numbers column",uiLabel:"Show Week Number",isOptional:!0,defaultValue:"false"},{name:"useNativeInput",kind:"boolean",description:"Use browser specific date input instead of AdapTable's Date Picker",uiLabel:"Use Native Input",isOptional:!0,defaultValue:"false"}]},EditLookUpPermittedValues:{name:"EditLookUpPermittedValues",kind:"Interface",description:"Used to define permitted values for inline column editor"},EditOptions:{name:"EditOptions",kind:"Interface",description:"Options related to Editing in Adaptable.",properties:[{name:"displayServerValidationMessages",kind:"boolean",description:"Displays message after Server Validation",uiLabel:"Display Server Validation Messages",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"isCellEditable",kind:"unknown",description:"Function which checks if given Grid Cell is editable",uiLabel:"Is Cell Editable",isOptional:!0},{name:"validateOnServer",kind:"unknown",description:"Function to validate on Server Adaptable data edits",uiLabel:"Validate On Server",isOptional:!0}]},EntitlementOptions:{name:"EntitlementOptions",kind:"Interface",description:"Options for managing Entitlements in AdapTable, ie. which Modules are available to the User and whether as *Full*, *ReadOnly* or *Hidden*.",properties:[{name:"defaultAccessLevel",kind:"unknown",description:"AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke",uiLabel:"Default Access Level",isOptional:!0,gridInfo:"item",defaultValue:"'Full'"},{name:"moduleEntitlements",kind:"unknown",description:"Returns either collection of `Entitlements`, or a function to invoke when an Entitlement is required",uiLabel:"Module Entitlements",isOptional:!0,gridInfo:"item"}]},EventApi:{name:"EventApi",kind:"Interface",description:"Responsible for publishing the many Events that AdapTable fires",properties:[{name:"off",kind:"function",description:"Unsubscribe from SearchChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from CheckboCxolumnClicked",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from LayoutChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from CustomToolbarConfigured",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from DashboardChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from AdaptableStateChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from LiveDataChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from AdaptableReady",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from CellChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from TeamSharingEntityChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from GridDataChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from SelectionChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from ThemeChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from SystemStatusMessageDisplayed",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from AlertFired",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from FlashingCellDisplayed",uiLabel:"Off"},{name:"on",kind:"function",description:"Event fired whenever search criteria in AdapTable changes",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the **Button in a Checkbox Column is clicked**.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the current Layout updates in AdapTable",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Configure Button is clicked in a Custom Toolbar**",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Dashboard State changes** Primarily used for rendering Custom toolbars.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Adaptable State changes**",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **a change occurs relating to live reports / data** Used in conjunction with AdapTable's partners OpenFin, ipushpull or Glue42",uiLabel:"On"},{name:"on",kind:"function",description:"Fired when Adaptable is up and running - has no arguments.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever a cell changes in the Grid",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever a Shared Entity in Team Sharing changes",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired when a row is added, deleted or updated in the Grid",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the Cell or Row **Selection in AdapTable changes**.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the **selected theme of AdapTable is changed**.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever a **System Status Message is displayed** in AdapTable",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever an **Alert is triggered** in AdapTable.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Cell Flashing** is triggered in AdapTable.",uiLabel:"On"}]},ExportApi:{name:"ExportApi",kind:"Interface",description:"Provides run-time access to the Export Module and Report state",properties:[{name:"canExportToExcel",kind:"function",description:"If this AdapTable instance can to export to Excel; if false, the Export to Excel option will not be visible",uiLabel:"Can Export To Excel"},{name:"editReport",kind:"function",description:"Edits an existing report",uiLabel:"Edit Report"},{name:"editReports",kind:"function",description:"Edits existing reports",uiLabel:"Edit Reports"},{name:"exportDataToExcel",kind:"function",description:"Exports data to Excel",uiLabel:"Export Data To Excel"},{name:"exportVisualDataToExcel",kind:"function",description:"Exports data currently in grid to Excel as What-You-See-Is-What-You-Get",uiLabel:"Export Visual Data To Excel"},{name:"getAllCustomDestination",kind:"function",description:"Retrieves all Custom Destinations from Export Options",uiLabel:"Get All Custom Destination"},{name:"getAllReports",kind:"function",description:"Retrieves all Reports in State - both System and User-created Reports",uiLabel:"Get All Reports"},{name:"getAvailableExportDestinations",kind:"function",description:"Retrieves the available export destinations",uiLabel:"Get Available Export Destinations"},{name:"getAvailableSystemReports",kind:"function",description:"Retrieves System Reports section of Export State",uiLabel:"Get Available System Reports"},{name:"getCurrentReport",kind:"function",description:"Retrieves currently selected Report",uiLabel:"Get Current Report"},{name:"getCurrentReportName",kind:"function",description:"Retrieves name of currently selected Report",uiLabel:"Get Current Report Name"},{name:"getDestinationByName",kind:"function",description:"Retrieves Destination with the given name",uiLabel:"Get Destination By Name"},{name:"getExportDestinationForm",kind:"function",description:"Form Data entered by the User in the UI for a Custom Destination",uiLabel:"Get Export Destination Form"},{name:"getExportState",kind:"function",description:"Retrieves Export section from Adaptable State",uiLabel:"Get Export State"},{name:"getReportById",kind:"function",description:"Retrieves Report by Id",uiLabel:"Get Report By Id"},{name:"getReportByName",kind:"function",description:"Retrieves Report with the given name",uiLabel:"Get Report By Name"},{name:"getReportDataForReport",kind:"function",description:"Returns the ReportData for the Report with the given name",uiLabel:"Get Report Data For Report"},{name:"getReportSchedules",kind:"function",description:"Retrieves all Report Schedules",uiLabel:"Get Report Schedules"},{name:"isDataChangeInReport",kind:"function",description:"Whether given data change affects given report",uiLabel:"Is Data Change In Report"},{name:"isExportDestinationCustom",kind:"function",description:"If the given destination is a Custom one",uiLabel:"Is Export Destination Custom"},{name:"runCustomReport",kind:"function",description:"Runs the report function of the CustomReport with the given reportName",uiLabel:"Run Custom Report"},{name:"sendReport",kind:"function",description:"Sends a Report to a given destination",uiLabel:"Send Report"},{name:"showExportPopup",kind:"function",description:"Opens Settings Panel with Export section selected and visible",uiLabel:"Show Export Popup"}]},ExportButtonContext:{name:"ExportButtonContext",kind:"Interface",description:"Context required by functions when using an Export Button",properties:[{name:"customDestination",kind:"REFERENCE",description:"Custom Export destination",uiLabel:"Custom Destination",reference:"CustomDestination"},{name:"formData",kind:"REFERENCE",description:"Adaptable Form Data",uiLabel:"Form Data",reference:"unknown"},{name:"report",kind:"REFERENCE",description:"The exported report",uiLabel:"Report",reference:"unknown"},{name:"reportData",kind:"REFERENCE",description:"The data in the report",uiLabel:"Report Data",reference:"ReportData"}]},ExportOptions:{name:"ExportOptions",kind:"Interface",description:"Options regarding Exporting data from AdapTable",properties:[{name:"appendFileTimestamp",kind:"boolean",description:"Whether to add a timestamp as a suffix to exported file name",uiLabel:"Append File Timestamp",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"customDestinations",kind:"unknown",description:"User-provided Report Destinations (in addition to those shipped in AdapTable)",uiLabel:"Custom Destinations",isOptional:!0},{name:"customReports",kind:"unknown",description:"Reports run entirely by users (and not AdapTable)",uiLabel:"Custom Reports",isOptional:!0},{name:"exportDateFormat",kind:"string",description:"Optional custom format for Date columns when exporting",uiLabel:"Export Date Format",isOptional:!0,gridInfo:"item",defaultValue:"undefined"},{name:"exportFormatType",kind:"unknown",description:"Format of exported values; can be set either for whole grid or specifically for each column type",uiLabel:"Export Format Type",isOptional:!0,defaultValue:"rawValue"},{name:"systemExportDestinations",kind:"REFERENCE",description:"Export destinations to use; leave blank for all, empty array for none",uiLabel:"System Export Destinations",isOptional:!0,gridInfo:"item",defaultValue:"'Excel', 'CSV', 'Clipboard', 'JSON'",reference:"unknown"},{name:"systemReportNames",kind:"REFERENCE",description:"System Reports to use; leave blank for all, empty array for none",uiLabel:"System Report Names",isOptional:!0,gridInfo:"item",defaultValue:"'Visual Data', 'All Data', 'Current Data', 'Selected Cells', 'Selected Rows',",reference:"unknown"}]},ExportState:{name:"ExportState",kind:"Interface",description:"Predefined Configuration for Export Module",properties:[{name:"CurrentDestination",kind:"unknown",description:"Currently selected Report Destination in Export Toolbar & Tool Panel",uiLabel:"Current Destination",isOptional:!0},{name:"CurrentReport",kind:"string",description:"Currently selected Report - in Export Toolbar & Tool Panel",uiLabel:"Current Report",isOptional:!0},{name:"Reports",kind:"unknown",description:"User-created Reports; each has Name and Row and Column Scope",uiLabel:"Reports",isOptional:!0}]},ExpressionContext:{name:"ExpressionContext",kind:"Interface",description:"Provides context to an Expression Function, including current row node and AdaptableApi",properties:[{name:"api",kind:"REFERENCE",description:"Main Adaptable Api object",uiLabel:"Api",isOptional:!0,reference:"AdaptableApi"},{name:"filterFn",kind:"unknown",description:"Optional filter function to be applied before evaluating the expression",uiLabel:"Filter Fn",isOptional:!0},{name:"functions",kind:"REFERENCE",description:"All Expression Functions available to AdapTableQL",uiLabel:"Functions",reference:"unknown"},{name:"namedQueryCallStack",kind:"unknown",description:"All shared(named) query evaluations are tracked in order to detect circular dependencies",uiLabel:"Named Query Call Stack",isOptional:!0},{name:"node",kind:"unknown",description:"Current row node in grid being evaluated",uiLabel:"Node"},{name:"whereClauseFunctions",kind:"REFERENCE",description:"All Expression Functions available to AdapTableQL in the (optional) WHERE clause",uiLabel:"Where Clause Functions",isOptional:!0,reference:"unknown"}]},ExpressionFunction:{name:"ExpressionFunction",kind:"Interface",description:"Defines an AdapTableQL Function used in an Adaptable Expression",properties:[{name:"description",kind:"string",description:"What the AdapTableQL Function does",uiLabel:"Description",isOptional:!0},{name:"examples",kind:"unknown",description:"Examples that use the AdapTableQL Function",uiLabel:"Examples",isOptional:!0},{name:"handler",kind:"REFERENCE",description:"Actual AdapTableQL Function called by the Expression (mandatory prop)",uiLabel:"Handler",reference:"ExpressionFunctionHandler"},{name:"hasEagerEvaluation",kind:"boolean",description:"Whether Expression is evaluated eagerly (without handling inner AST nodes)",uiLabel:"Has Eager Evaluation",isOptional:!0},{name:"isHiddenFromMenu",kind:"boolean",description:"Removes entry from Expression Editor's Functions dropdown",uiLabel:"Is Hidden From Menu",isOptional:!0},{name:"isPredicate",kind:"boolean",description:"Whether the AdapTableQL Function returns true, if so can be used as Query",uiLabel:"Is Predicate",isOptional:!0},{name:"signatures",kind:"unknown",description:"How the AdapTableQL Function should be called",uiLabel:"Signatures",isOptional:!0}]},ExpressionFunctionDocBlock:{name:"ExpressionFunctionDocBlock",kind:"TypeAlias",description:"Defines how an AdapTableQL Function is described in Expression Editor"},ExpressionFunctionHandler:{name:"ExpressionFunctionHandler",kind:"TypeAlias",description:"The javascript function which is invoked by an AdapTableQL Function"},ExpressionOptions:{name:"ExpressionOptions",kind:"Interface",description:"Options for managing Expressions using AdapTableQL",properties:[{name:"defaultAggregatedBooleanFunctions",kind:"REFERENCE",description:"Aggregated Boolean Expression Functions available in AdapTableQL",uiLabel:"Default Aggregated Boolean Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultAggregatedScalarFunctions",kind:"REFERENCE",description:"Aggregated Scalar Expression Functions available in AdapTableQL",uiLabel:"Default Aggregated Scalar Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultBooleanFunctions",kind:"REFERENCE",description:"Boolean Expression Functions available in AdapTableQL",uiLabel:"Default Boolean Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultObservableFunctions",kind:"REFERENCE",description:"Observable Expression Functions available in AdapTableQL",uiLabel:"Default Observable Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultScalarFunctions",kind:"REFERENCE",description:"Scalar Expression Functions available in AdapTableQL",uiLabel:"Default Scalar Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"maxTimeframeSize",kind:"number",description:"Maximum time (in milliseconds) to hold a Data Change event in a trailing timeframe (see observableExpressionFunctions); value is capped at 86400000 (~24 hours) for performance reasons",uiLabel:"Max Timeframe Size",isOptional:!0,gridInfo:"item",defaultValue:"28800000 (~8 hours)"},{name:"moduleExpressionFunctions",kind:"unknown",description:"Module specific ExpressionFunctions; if not defined, it falls back to the defined default values",uiLabel:"Module Expression Functions",isOptional:!0,gridInfo:"item",defaultValue:"undefined (defaults to default values)"},{name:"performExpressionValidation",kind:"boolean",description:"Validate Expressions before they can be run or saved",uiLabel:"Perform Expression Validation",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"queryableColumns",kind:"unknown",description:"Columns that can be included in AdapTableQL Expressions; leave unset to include **ALL**, provide empty array to set **NONE**",uiLabel:"Queryable Columns",isOptional:!0,gridInfo:"item",defaultValue:"undefined"}]},FDC3Context:{name:"FDC3Context",kind:"Interface",description:"General-purpose context type, as defined by [FDC3](https://fdc3.finos.org/docs/1.0/context-intro). A context object is a well-understood datum that is streamable between FDC3 participants. As a result it has a field describing what type it is, and data indicating its identity. Use this as a base to derive your own with any custom properties or metadata.",properties:[{name:"id",kind:"unknown",description:"An optional map of any equivalent identifiers for the context type, e.g. ISIN, CUSIP, etc. for an instrument.",uiLabel:"Id",isOptional:!0},{name:"name",kind:"string",description:"The name of the context data (optional). This is a text string that describes the data being sent. Implementors of context may choose to make the name mandatory.",uiLabel:"Name",isOptional:!0},{name:"type",kind:"string",description:"The type of the context that uniquely identifies it, e.g. "instrument". This is used to refer to the accepted context(s) when declaring intents. See [[AppDirIntent]].",uiLabel:"Type"}]},FilterActionOnDataChange:{name:"FilterActionOnDataChange",kind:"Interface",description:"Determines whether Adaptable should re-apply filtering after cell and ticking data edits. * If the 'applyFilter' value is 'Throttle' then the 'throttleDelay' property should be additionally set.",properties:[{name:"applyFilter",kind:"unknown",description:"When to re-apply Filters: 'Always', 'Never' or 'Throttle'",uiLabel:"Apply Filter"},{name:"throttleDelay",kind:"number",description:"Delay in ms (when `applyFilter` is set to 'Throttle')",uiLabel:"Throttle Delay",isOptional:!0}]},FilterApi:{name:"FilterApi",kind:"Interface",description:"Provides run-time access to Filter section of Adaptable State.",properties:[{name:"clearAllColumnFilter",kind:"function",description:"Clears all Column Filters in State",uiLabel:"Clear All Column Filter"},{name:"clearAndSetColumnFilter",kind:"function",description:"Clears existing Column Filters and then sets the new ones",uiLabel:"Clear And Set Column Filter"},{name:"clearColumnFilter",kind:"function",description:"Clears given Column Filter",uiLabel:"Clear Column Filter"},{name:"clearColumnFilterByColumn",kind:"function",description:"Clears Column Filter for given Column",uiLabel:"Clear Column Filter By Column"},{name:"clearColumnFilterByColumns",kind:"function",description:"Clears Column Filters for given set of Columns",uiLabel:"Clear Column Filter By Columns"},{name:"columnFiltersToString",kind:"function",description:"Retrieves descriptions of given Column Filters",uiLabel:"Column Filters To String"},{name:"columnFilterToString",kind:"function",description:"Retrieves description of given Column Filter",uiLabel:"Column Filter To String"},{name:"createColumnFilterForCell",kind:"function",description:"Creates new Column Filter on given Column using Primary Key values",uiLabel:"Create Column Filter For Cell"},{name:"evaluateColumnFilter",kind:"function",description:"Calls AdapTableQL to evaluate Filter for given Row",uiLabel:"Evaluate Column Filter"},{name:"findPredicateDefByShortcut",kind:"function",description:"Returns Predicate Definition for given Column and Quick Filter shortcut",uiLabel:"Find Predicate Def By Shortcut"},{name:"getAllColumnFilter",kind:"function",description:"Retrieves all the Column Filters in the Column Filter State (of Predefined Config)",uiLabel:"Get All Column Filter"},{name:"getAllColumnFilterForColumn",kind:"function",description:"Retrieves all Column Filters for given Column",uiLabel:"Get All Column Filter For Column"},{name:"getAllSystemFilterIds",kind:"function",description:"Retrieves Ids for all System Filters",uiLabel:"Get All System Filter Ids"},{name:"getColumnFilterById",kind:"function",description:"Retrieves ColumnFilter by Id",uiLabel:"Get Column Filter By Id"},{name:"getFilterPredicateDefsForColumn",kind:"function",description:"Gets all Filter Predicates available for a given Column",uiLabel:"Get Filter Predicate Defs For Column"},{name:"getFilterPredicateDefsForColumnId",kind:"function",description:"Gets all Filter Predicates available for a given ColumnId",uiLabel:"Get Filter Predicate Defs For Column Id"},{name:"getFilterState",kind:"function",description:"Retrieves Filter section from Adaptable State",uiLabel:"Get Filter State"},{name:"hideQuickFilterBar",kind:"function",description:"Hides Quick Filter bar",uiLabel:"Hide Quick Filter Bar"},{name:"isQuickFilterAvailable",kind:"function",description:"Whether Quick Filter is available for use",uiLabel:"Is Quick Filter Available"},{name:"isQuickFilterVisible",kind:"function",description:"Whether Quick Filter Form is currently visible",uiLabel:"Is Quick Filter Visible"},{name:"setColumnFilter",kind:"function",description:"Sets Column Filters - will replace filters for existing column and leave other column filters in place",uiLabel:"Set Column Filter"},{name:"showQuickFilterBar",kind:"function",description:"Makes Quick Filter Bar appear",uiLabel:"Show Quick Filter Bar"}]},FilterOptions:{name:"FilterOptions",kind:"Interface",description:"Options for managing Filtering in AdapTable",properties:[{name:"autoApplyFilter",kind:"boolean",description:"Apply selected filters (in Filter Form or Quick Filter Bar) as soon as they are clicked; if false an Apply Filter button is displayed",uiLabel:"Auto Apply Filter",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"clearFiltersOnStartUp",kind:"boolean",description:"Clears saved Column Filters when AdapTable loads",uiLabel:"Clear Filters On Start Up",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"defaultDateColumnFilter",kind:"unknown",description:"Default filter type for date Columns",uiLabel:"Default Date Column Filter",isOptional:!0,gridInfo:"item",defaultValue:"On"},{name:"defaultFilterFormTab",kind:"unknown",description:"Whether to open the Filter Form on the Values or Predicates tab",uiLabel:"Default Filter Form Tab",isOptional:!0,gridInfo:"item",defaultValue:"'Values'"},{name:"defaultNumericColumnFilter",kind:"unknown",description:"Default filter type for numeric Columns",uiLabel:"Default Numeric Column Filter",isOptional:!0,gridInfo:"item",defaultValue:"Equals"},{name:"defaultStringColumnFilter",kind:"unknown",description:"Default filter type for string Columns",uiLabel:"Default String Column Filter",isOptional:!0,gridInfo:"item",defaultValue:"Contains"},{name:"enableFilterOnSpecialColumns",kind:"boolean",description:"Allows filtering on Calculated & FreeText columns",uiLabel:"Enable Filter On Special Columns",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"filterActionOnExternalDataChange",kind:"REFERENCE",description:"When to re-filter grid after data ticks: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')",uiLabel:"Filter Action On External Data Change",isOptional:!0,defaultValue:"'Never'",reference:"FilterActionOnDataChange"},{name:"filterActionOnUserDataChange",kind:"REFERENCE",description:"When to re-filter grid after user edits data: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')",uiLabel:"Filter Action On User Data Change",isOptional:!0,defaultValue:"'Always'",reference:"FilterActionOnDataChange"},{name:"hideQuickFilterDropdown",kind:"unknown",description:"Hides the Dropdown in Quick Filter Bar for a given Column",uiLabel:"Hide Quick Filter Dropdown",isOptional:!0,defaultValue:"undefined"},{name:"hideQuickFilterInput",kind:"unknown",description:"Hides the Input in Quick Filter Bar for a given Column",uiLabel:"Hide Quick Filter Input",isOptional:!0,defaultValue:"undefined"},{name:"indicateFilteredColumns",kind:"boolean",description:"Make Column header distinctive for filtered columns, helps users see currently filtered columns",uiLabel:"Indicate Filtered Columns",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"maxFilterValuesToDisplay",kind:"number",description:"Distinct column items to display in Filter Form; useful with large datasource (though AdapTable offers virtualisation)",uiLabel:"Max Filter Values To Display",isOptional:!0,gridInfo:"item",defaultValue:"2,000"},{name:"quickFilterHeight",kind:"number",description:"Sets a height for Quick Filter Bar (if not provided AG Grid's default is used)",uiLabel:"Quick Filter Height",isOptional:!0,gridInfo:"item",defaultValue:"null"},{name:"quickFilterTrigger",kind:"unknown",description:"Whether to open Quick Filter dropdown with mouse hover or click",uiLabel:"Quick Filter Trigger",isOptional:!0,gridInfo:"item",defaultValue:"'mouseenter'"},{name:"quickFilterValuesTrigger",kind:"unknown",description:"Whether to open Quick Filter Values dropdown with mouse hover or click",uiLabel:"Quick Filter Values Trigger",isOptional:!0,gridInfo:"item",defaultValue:"'mouseenter'"},{name:"sortColumnValuesInFilter",kind:"boolean",description:"Whether column values in filter dropdown should apply column's current Sort Order for the column",uiLabel:"Sort Column Values In Filter",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"systemFilters",kind:"REFERENCE",description:"Which Adaptable System Filter Predicates are available",uiLabel:"System Filters",isOptional:!0,reference:"unknown"},{name:"useAdaptableFilterForm",kind:"unknown",description:"Uses Adaptable's Filter Form in Column Menu for all columns if 'true' (the default) or those listed, in preference to AG Grid's Filter Form",uiLabel:"Use Adaptable Filter Form",isOptional:!0,defaultValue:"true"},{name:"useAdaptableQuickFilter",kind:"unknown",description:"Use Adaptable's Quick Filter Bar for all columns if 'true' (the default) or those listed, in preference to AG Grid's Floating Filter",uiLabel:"Use Adaptable Quick Filter",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"useAgGridFilterFormStyle",kind:"boolean",description:"Styles Adaptable Filter Form to match AG Grid's styling (if using Balham theme)",uiLabel:"Use Ag Grid Filter Form Style",isOptional:!0,gridInfo:"item",defaultValue:"true"}]},FilterPermittedValues:{name:"FilterPermittedValues",kind:"Interface",description:"Used to define values inside the floating filter and floating filter (quick filter)",properties:[{name:"suppressFilterSearchBar",kind:"boolean",description:"Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed",uiLabel:"Suppress Filter Search Bar",isOptional:!0,defaultValue:"false"}]},FilterState:{name:"FilterState",kind:"Interface",description:"Predefined Configuration for Filters",properties:[{name:"ColumnFilters",kind:"unknown",description:"Collection of Column Filters",uiLabel:"Column Filters",isOptional:!0},{name:"IsQuickFilterVisible",kind:"boolean",description:"Whether to display Quick Filter Bar between Column Header and the Grid",uiLabel:"Is Quick Filter Visible",isOptional:!0,defaultValue:"true"}]},FinanceApi:{name:"FinanceApi",kind:"Interface",description:"Provides run-time access to the OpenFin Plugin",properties:[{name:"getPluginOptions",kind:"function",description:"Retrieves the OpenFinPlugOptions provided in OpenFin Plugin",uiLabel:"Get Plugin Options"}]},FinancePluginOptions:{name:"FinancePluginOptions",kind:"Interface",description:"Options required for when using the Finance plugin",properties:[{name:"fdc3Columns",kind:"unknown",description:"Columns to be defined as FDC3",uiLabel:"Fdc3Columns",isOptional:!0},{name:"weightedAverageColumns",kind:"unknown",description:"Columns to use a Weighted Average aggregation",uiLabel:"Weighted Average Columns",isOptional:!0}]},FlashingCellApi:{name:"FlashingCellApi",kind:"Interface",description:"Provides run-time access to Flashing Cell functionality and associated State",properties:[{name:"addFlashingCellDefinition",kind:"function",description:"Adds a Flashing cell Definition to State",uiLabel:"Add Flashing Cell Definition"},{name:"addFlashingCellDefinitions",kind:"function",description:"Adds provided Flashing cell Definitions",uiLabel:"Add Flashing Cell Definitions"},{name:"editFlashingCellDefinition",kind:"function",description:"Edits Flashing Cell Definition in State with given one",uiLabel:"Edit Flashing Cell Definition"},{name:"editFlashingCellDefinitions",kind:"function",description:"Edits provided Flashing cell Definitions",uiLabel:"Edit Flashing Cell Definitions"},{name:"getActiveFlashingCellDefinitions",kind:"function",description:"Retrieves all active (non-suspended) cell Definitions in Flashing Cell State",uiLabel:"Get Active Flashing Cell Definitions"},{name:"getFlashingCellDefinitionById",kind:"function",description:"Retrieves Flashing cell Definition By Id",uiLabel:"Get Flashing Cell Definition By Id"},{name:"getFlashingCellDefinitions",kind:"function",description:"Retrieves all Flashing cell Definitions in Flashing Cell State",uiLabel:"Get Flashing Cell Definitions"},{name:"getFlashingCellFlashTarget",kind:"function",description:"Returns where a Flashing cell Definition will flash a single cell or a whole row",uiLabel:"Get Flashing Cell Flash Target"},{name:"getFlashingCellPredicateDefs",kind:"function",description:"Retrieves all Predicate Defs with Module Scope of Flashing Cell",uiLabel:"Get Flashing Cell Predicate Defs"},{name:"getFlashingCellPredicateDefsForScope",kind:"function",description:"Retrieves all Predicate Defs that match given Scope",uiLabel:"Get Flashing Cell Predicate Defs For Scope"},{name:"getFlashingCellState",kind:"function",description:"Retrieves Flashing Cell section from Adaptable State",uiLabel:"Get Flashing Cell State"},{name:"setFlashingCellDefinitions",kind:"function",description:"Sets a collection of Flashing Cell Definitions into State",uiLabel:"Set Flashing Cell Definitions"},{name:"showFlashingCell",kind:"function",description:"Displays a Flashing Cell Definition",uiLabel:"Show Flashing Cell"},{name:"suspendFlashingCellDefinition",kind:"function",description:"Suspends a Flashing cell Definition",uiLabel:"Suspend Flashing Cell Definition"},{name:"unSuspendFlashingCellDefinition",kind:"function",description:"Activates a suspended Flashing cell Definition",uiLabel:"Un Suspend Flashing Cell Definition"}]},FlashingCellDefinition:{name:"FlashingCellDefinition",kind:"Interface",description:"The Flashing Cell Definition",properties:[{name:"DownChangeStyle",kind:"REFERENCE",description:"Style for 'Down' value changes",uiLabel:"Down Change Style",isOptional:!0,defaultValue:"Red BackColour",reference:"AdaptableStyle"},{name:"FlashDuration",kind:"unknown",description:"Duration of Flash - can be number (in ms) or 'always'",uiLabel:"Flash Duration",isOptional:!0,defaultValue:"500ms"},{name:"FlashTarget",kind:"unknown",description:"Should a cell or whole row flash",uiLabel:"Flash Target",isOptional:!0,defaultValue:"'cell'"},{name:"NeutralChangeStyle",kind:"REFERENCE",description:"Style for 'Neutral' value changes",uiLabel:"Neutral Change Style",isOptional:!0,defaultValue:"Gray BackColour",reference:"AdaptableStyle"},{name:"Rule",kind:"REFERENCE",description:"When Flashing Cell should be triggered",uiLabel:"Rule",reference:"unknown"},{name:"Scope",kind:"REFERENCE",description:"Where Flashing Cell can be triggered: one, some or all columns or DataTypes",uiLabel:"Scope",reference:"AdaptableScope"},{name:"UpChangeStyle",kind:"REFERENCE",description:"Style for 'Up' value changes",uiLabel:"Up Change Style",isOptional:!0,defaultValue:"Green BackColour",reference:"AdaptableStyle"}]},FlashingCellDisplayedInfo:{name:"FlashingCellDisplayedInfo",kind:"Interface",description:"Object returned by the `FlashingCellDisplayed` event",properties:[{name:"flashingCell",kind:"REFERENCE",description:"Details of the Cell (or row) which has just flashed",uiLabel:"Flashing Cell",reference:"AdaptableFlashingCell"}]},FlashingCellOptions:{name:"FlashingCellOptions",kind:"Interface",description:"Properties for Flashing Cell",properties:[{name:"defaultDownChangeStyle",kind:"REFERENCE",description:"Style for 'Down' value changes",uiLabel:"Default Down Change Style",isOptional:!0,defaultValue:"Red BackColour",reference:"AdaptableStyle"},{name:"defaultFlashDuration",kind:"unknown",description:"Duration of Flash - can be number (in ms) or 'always'",uiLabel:"Default Flash Duration",isOptional:!0,defaultValue:"500ms"},{name:"defaultFlashTarget",kind:"unknown",description:"Should a cell or whole row flash",uiLabel:"Default Flash Target",isOptional:!0,defaultValue:"'cell'"},{name:"defaultNeutralChangeStyle",kind:"REFERENCE",description:"Style for 'Neutral' value changes",uiLabel:"Default Neutral Change Style",isOptional:!0,defaultValue:"Gray BackColour",reference:"AdaptableStyle"},{name:"defaultUpChangeStyle",kind:"REFERENCE",description:"Style for 'Up' value changes",uiLabel:"Default Up Change Style",isOptional:!0,defaultValue:"Green BackColour",reference:"AdaptableStyle"}]},FlashingCellState:{name:"FlashingCellState",kind:"Interface",description:"Predefined Configuration for Flashing Cell module",properties:[{name:"FlashingCellDefinitions",kind:"unknown",description:"Flashing Cell Definitions - will colour cells/rows when rule is met",uiLabel:"Flashing Cell Definitions",isOptional:!0}]},FormatColumn:{name:"FormatColumn",kind:"Interface",description:"Object used in Format Column function",properties:[{name:"CellAlignment",kind:"unknown",description:"Aligns cells 'Left' or 'Right' or 'Center'",uiLabel:"Cell Alignment",isOptional:!0},{name:"ColumnStyle",kind:"REFERENCE",description:"Applies Gradient, Percent Bar or CheckBox style to a Column",uiLabel:"Column Style",isOptional:!0,reference:"ColumnStyle"},{name:"DisplayFormat",kind:"REFERENCE",description:"Display Format to apply to Column can be Numeric, String or Date",uiLabel:"Display Format",isOptional:!0,reference:"AdaptableFormat"},{name:"HeaderName",kind:"string",description:"Text to display in Column Header (doesn't change ColumnId)",uiLabel:"Header Name",isOptional:!0},{name:"IncludeGroupedRows",kind:"boolean",description:"Whether to Format the Column in Grouped Rows",uiLabel:"Include Grouped Rows",isOptional:!0,defaultValue:"false"},{name:"Scope",kind:"REFERENCE",description:"Where Format will be applied - whole Row, some Columns or all Columns of given DataType",uiLabel:"Scope",reference:"AdaptableScope"},{name:"Style",kind:"REFERENCE",description:"Style to apply",uiLabel:"Style",isOptional:!0,reference:"AdaptableStyle"}]},FormatColumnApi:{name:"FormatColumnApi",kind:"Interface",description:"Provides run-time access to the Format Column Module and associated state",properties:[{name:"addFormatColumn",kind:"function",description:"Adds a Format Column to Format Column State",uiLabel:"Add Format Column"},{name:"addFormatColumns",kind:"function",description:"Adds Format Columns to Format Column State",uiLabel:"Add Format Columns"},{name:"applyFormatColumnDisplayFormats",kind:"function",description:"Applies display format for all Format Columns in AdapTable State",uiLabel:"Apply Format Column Display Formats"},{name:"deleteAllFormatColumn",kind:"function",description:"Deletes all Format Columns in Adaptable State",uiLabel:"Delete All Format Column"},{name:"deleteFormatColumn",kind:"function",description:"Deletes an existing Format Column",uiLabel:"Delete Format Column"},{name:"editFormatColumn",kind:"function",description:"Edits the Format Column",uiLabel:"Edit Format Column"},{name:"fireCheckboxColumnClickedEvent",kind:"function",description:"Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked",uiLabel:"Fire Checkbox Column Clicked Event"},{name:"getAllActiveFormatColumn",kind:"function",description:"Retrieves all active (not-suspended) Format Columns in Adaptable State",uiLabel:"Get All Active Format Column"},{name:"getAllFormatColumn",kind:"function",description:"Retrieves all Format Columns in Adaptable State",uiLabel:"Get All Format Column"},{name:"getAllFormatColumnWithCellAlignment",kind:"function",description:"Retrieves all Format Columns in Adaptable State with `CellAlignment` property set",uiLabel:"Get All Format Column With Cell Alignment"},{name:"getAllFormatColumnWithDisplayFormat",kind:"function",description:"Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set",uiLabel:"Get All Format Column With Display Format"},{name:"getAllFormatColumnWithStyle",kind:"function",description:"Retrieves all Format Columns in Adaptable State with the `Style` property set",uiLabel:"Get All Format Column With Style"},{name:"getAllSuspendedFormatColumn",kind:"function",description:"Retrieves all suspended Format Columns in Adaptable State",uiLabel:"Get All Suspended Format Column"},{name:"getCheckBoxStyleFormatColumn",kind:"function",description:"Returns first Format Column that contains checkbox style",uiLabel:"Get Check Box Style Format Column"},{name:"getColumnComparisonForFormatColumn",kind:"function",description:"Retrieves the ColumnComparison property, if there, from a Format Column (Column Style)",uiLabel:"Get Column Comparison For Format Column"},{name:"getColumnIdsFromColumnComparison",kind:"function",description:"Returns any ColumnIds referenced in a Column Comparison",uiLabel:"Get Column Ids From Column Comparison"},{name:"getFormatColumnById",kind:"function",description:"Retrieves Format Column by Id",uiLabel:"Get Format Column By Id"},{name:"getFormatColumnForColumn",kind:"function",description:"Gets Format Column, if any, for given Column",uiLabel:"Get Format Column For Column"},{name:"getFormatColumnForColumnId",kind:"function",description:"Gets Format Column, if any, for given ColumnId",uiLabel:"Get Format Column For Column Id"},{name:"getFormatColumnState",kind:"function",description:"Retrieves Format Column section from Adaptable State",uiLabel:"Get Format Column State"},{name:"getFormatColumnWithDisplayFormatForColumn",kind:"function",description:"Will get the most appropriate one i.e. first named Column, then DataType, then All",uiLabel:"Get Format Column With Display Format For Column"},{name:"getFormatColumnWithSingleColumnScope",kind:"function",description:"Get Format Column which has Scope of Single Column, if any, for given ColumnId",uiLabel:"Get Format Column With Single Column Scope"},{name:"getFormatColumnWithStyleClassNameForColumn",kind:"function",description:"Gets Format Column if any for given Column which includes Style element with ClassName",uiLabel:"Get Format Column With Style Class Name For Column"},{name:"getFormatColumnWithStyleForColumn",kind:"function",description:"Gets Format Column if any for given Column which includes Style element",uiLabel:"Get Format Column With Style For Column"},{name:"getNumericStyleMaxValue",kind:"function",description:"Gets the Maximum Value to display for a Numeric Style",uiLabel:"Get Numeric Style Max Value"},{name:"getNumericStyleMinValue",kind:"function",description:"Gets the Minimum Value to display for a Numeric Style",uiLabel:"Get Numeric Style Min Value"},{name:"hasStyleFormatColumns",kind:"function",description:"Returns true if Format State includes Format Columns with a Style property",uiLabel:"Has Style Format Columns"},{name:"isCheckBoxStyleFormatColumn",kind:"function",description:"Whether given column is a (boolean) checkbox column",uiLabel:"Is Check Box Style Format Column"},{name:"showFormatColumnPopup",kind:"function",description:"Opens Settings Panel with Format Column section selected and visible",uiLabel:"Show Format Column Popup"},{name:"suspendFormatColumn",kind:"function",description:"Suspends an Format column",uiLabel:"Suspend Format Column"},{name:"unSuspendFormatColumn",kind:"function",description:"Suspends an Format column",uiLabel:"Un Suspend Format Column"}]},FormatColumnState:{name:"FormatColumnState",kind:"Interface",description:"Predefined Configuration for Format Column Module",properties:[{name:"FormatColumns",kind:"unknown",description:"Collection of Format Columns",uiLabel:"Format Columns",isOptional:!0}]},FreeTextColumn:{name:"FreeTextColumn",kind:"Interface",description:"The FreeTextColumn object used in the Free Text Column function",properties:[{name:"ColumnId",kind:"string",description:"Id of Column",uiLabel:"Column Id"},{name:"DataType",kind:"unknown",description:"Whether Column is String, Number, Boolean or Date",uiLabel:"Data Type",defaultValue:"'String'"},{name:"DefaultValue",kind:"unknown",description:"Initial value to use for each cell in the Column",uiLabel:"Default Value",isOptional:!0},{name:"FreeTextColumnSettings",kind:"REFERENCE",description:"Additional optional properties for Column (e.g. filterable, resizable)",uiLabel:"Free Text Column Settings",isOptional:!0,reference:"FreeTextColumnSettings"},{name:"FreeTextStoredValues",kind:"unknown",description:"Collection of Stored Values to aplly in the Column",uiLabel:"Free Text Stored Values",isOptional:!0},{name:"FriendlyName",kind:"string",description:"Friendly Name to use to refer to Column; if unset `ColumnId` is used",uiLabel:"Friendly Name",isOptional:!0},{name:"TextEditor",kind:"unknown",description:"Cell editor to use when editing a string Free Text Column *",uiLabel:"Text Editor",isOptional:!0,defaultValue:"'Inline'"}]},FreeTextColumnApi:{name:"FreeTextColumnApi",kind:"Interface",description:"Provides run-time access to FreeTextColumn Module and associated state",properties:[{name:"addEditFreeTextColumnStoredValue",kind:"function",description:"Adds FreeTextStoredValue for a FreeTextColumn (replaces existing one if exists)",uiLabel:"Add Edit Free Text Column Stored Value"},{name:"addFreeTextColumn",kind:"function",description:"Adds new FreeTextColumn to Adaptable State",uiLabel:"Add Free Text Column"},{name:"addStoredValuesToFreeTextColumn",kind:"function",description:"Adds Stored Values to Existing FreeTextColumn",uiLabel:"Add Stored Values To Free Text Column"},{name:"checkFreeTextColumnForDataChange",kind:"function",description:"Checks if a User Edit was in a Free Text Column",uiLabel:"Check Free Text Column For Data Change"},{name:"deleteFreeTextColumn",kind:"function",description:"Deletes existing FreeTextColumn from Adaptable State",uiLabel:"Delete Free Text Column"},{name:"editFreeTextColumn",kind:"function",description:"Edits existing FreeTextColumn in Adaptable State",uiLabel:"Edit Free Text Column"},{name:"getAllFreeTextColumn",kind:"function",description:"Gets all FreeTextColumns in Adaptable State",uiLabel:"Get All Free Text Column"},{name:"getFreeTextColumnById",kind:"function",description:"Retrieves FreeTextColumn for given ColumnId",uiLabel:"Get Free Text Column By Id"},{name:"getFreeTextColumnModuleReferences",kind:"function",description:"Returns all the references in the AdaptableState of the given FreeTextColumn",uiLabel:"Get Free Text Column Module References"},{name:"getFreeTextColumnState",kind:"function",description:"Retrieves FreeTextColumn section of Adaptable State",uiLabel:"Get Free Text Column State"},{name:"getFreeTextColumnValueFromRowNode",kind:"function",description:"Retrieves a Free Text Column value from a row",uiLabel:"Get Free Text Column Value From Row Node"},{name:"showFreeTextColumnPopup",kind:"function",description:"Opens Settings Panel with Free Text Column section selected and visible",uiLabel:"Show Free Text Column Popup"}]},FreeTextColumnSettings:{name:"FreeTextColumnSettings",kind:"Interface",description:"Set of optional properties that define a FreeText Columns behaviour"},FreeTextColumnState:{name:"FreeTextColumnState",kind:"Interface",description:"Predefined Configuration for the Free Text Column Module",properties:[{name:"FreeTextColumns",kind:"unknown",description:"Collection of Free Text Columns",uiLabel:"Free Text Columns",isOptional:!0}]},FreeTextStoredValue:{name:"FreeTextStoredValue",kind:"Interface",description:"Defines a cell value stored in a Free Text Column",properties:[{name:"FreeText",kind:"unknown",description:"Value to store in the cell",uiLabel:"Free Text"},{name:"PrimaryKey",kind:"unknown",description:"Primary Key Column value for the row",uiLabel:"Primary Key"}]},GeneralOptions:{name:"GeneralOptions",kind:"Interface",description:"General options for configuring AdapTable including managing Primary Keys",properties:[{name:"alternativeModuleNames",kind:"unknown",description:"Alternative names to use for Adaptable Modules in toolbars and menus",uiLabel:"Alternative Module Names",isOptional:!0,defaultValue:"null"},{name:"autoOrderGroupedColumns",kind:"boolean",description:"Order Grouped Column automatically, deriving from Adaptable State if available (CustomSort or Layout ColumnSort)",uiLabel:"Auto Order Grouped Columns",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"cellSummaryOperations",kind:"unknown",description:"Custom Cell Summary Operations to add to shipped set",uiLabel:"Cell Summary Operations",isOptional:!0},{name:"currentCalendar",kind:"string",description:"Calendar to use for calculating Holidays & Working Days",uiLabel:"Current Calendar",isOptional:!0,gridInfo:"item",defaultValue:"'United Kingdom'"},{name:"customSortComparers",kind:"unknown",description:"CustomSort column comparer functions",uiLabel:"Custom Sort Comparers",isOptional:!0},{name:"hideColumnWhenGrouped",kind:"boolean",description:"Automatically removes a column from the grid when it becomes Row Grouped",uiLabel:"Hide Column When Grouped",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"hideEmptyGroupRows",kind:"boolean",description:"Hides any grouped rows if there are no columns visible",uiLabel:"Hide Empty Group Rows",isOptional:!0,defaultValue:"false"},{name:"showGroupingTotalsAsHeader",kind:"boolean",description:"Show aggregated totals row at top of Grid when row grouping",uiLabel:"Show Grouping Totals As Header",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"showMissingColumnsWarning",kind:"boolean",description:"Show warning if AdapTable cannot find a column",uiLabel:"Show Missing Columns Warning",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showMissingPrimaryKeyAlert",kind:"boolean",description:"Shows Alert if Primary Key column in Adaptable Options is not present or incorrect",uiLabel:"Show Missing Primary Key Alert",isOptional:!0,gridInfo:"item",defaultValue:"false"}]},Glue42Api:{name:"Glue42Api",kind:"Interface",description:"Provides run-time access to the Glue42 Plugin.",properties:[{name:"clearGlue42InternalState",kind:"function",description:"Clears all Gluee42 Internal State",uiLabel:"Clear Glue42Internal State"},{name:"getCurrentLiveGlue42Report",kind:"function",description:"Retrieves the current Live Report",uiLabel:"Get Current Live Glue42Report"},{name:"getGlue42Schedules",kind:"function",description:"Retrieves all the Glue42 Schedules in from the Schedule section of AdapTable State",uiLabel:"Get Glue42Schedules"},{name:"getGlue42State",kind:"function",description:"Retrieves the Glue42 section of Adaptable State",uiLabel:"Get Glue42State"},{name:"getPluginOptions",kind:"function",description:"Retrieves the Glue42PluginOptions provided in Glue42 Plugin",uiLabel:"Get Plugin Options"},{name:"isGlue42Available",kind:"function",description:"Returns true if the Glue42 plugin is loaded",uiLabel:"Is Glue42Available"},{name:"isGlue42Running",kind:"function",description:"Returns true if the Glue42 plugin is loaded AND the user has logged into Glue42",uiLabel:"Is Glue42Running"},{name:"loginToGlue42",kind:"function",description:"Logs in the User to Glue42 using the given UserName and Password",uiLabel:"Login To Glue42"},{name:"logoutFromGlue42",kind:"function",description:"Logs out the currently logged in User from Glue42",uiLabel:"Logout From Glue42"},{name:"sendSnapshotToDo",kind:"function",description:"Starts a Snapshot as opposed to a Live report",uiLabel:"Send Snapshot To Do"},{name:"setGlue42AvailableOff",kind:"function",description:"Sets Glue42 Availability Off",uiLabel:"Set Glue42Available Off"},{name:"setGlue42AvailableOn",kind:"function",description:"Sets Glue42 Availability On",uiLabel:"Set Glue42Available On"},{name:"setGlue42LoginErrorMessage",kind:"function",description:"Sets an Error Message returned from Glue42 if login fails",uiLabel:"Set Glue42Login Error Message"},{name:"setGlue42RunningOff",kind:"function",description:"Sets Glue42 Running Off",uiLabel:"Set Glue42Running Off"},{name:"setGlue42RunningOn",kind:"function",description:"Sets Glue42 Running On",uiLabel:"Set Glue42Running On"},{name:"showNotification",kind:"function",description:"Shows a notification in Glue42",uiLabel:"Show Notification"},{name:"showNotificationForAlert",kind:"function",description:"Displays Alert as a Glue42 Notification",uiLabel:"Show Notification For Alert"},{name:"startLiveData",kind:"function",description:"Starts a "Live" report (ie. one which updates as the data ticks)",uiLabel:"Start Live Data"},{name:"stopLiveData",kind:"function",description:"Stops a "Live" report (ie. one which updates as the data ticks)",uiLabel:"Stop Live Data"}]},Glue42PluginOptions:{name:"Glue42PluginOptions",kind:"Interface",description:"Options for using the Glue42 plugin which provides a mechanism whereby AdapTable can be integreated with multiple widgets",properties:[{name:"gatewayURL",kind:"string",description:"Gateway URL",uiLabel:"Gateway URL",isOptional:!0},{name:"glue",kind:"unknown",description:"Main Glue desktop object",uiLabel:"Glue",isOptional:!0},{name:"glue42Office",kind:"unknown",description:"Main Glue42 Office object",uiLabel:"Glue42Office",isOptional:!0},{name:"password",kind:"string",description:"Password to use to login to Glue42; typically sourced from PC Credentials",uiLabel:"Password",isOptional:!0},{name:"username",kind:"string",description:"UserName to use to login to Glue42; typically sourced from PC Credentials",uiLabel:"Username",isOptional:!0}]},Glue42Report:{name:"Glue42Report",kind:"Interface",description:"Glue42 report - currently just contains name of Report",properties:[{name:"ReportName",kind:"string",description:"The Report's name (as exists in Export State)",uiLabel:"Report Name"}]},Glue42Schedule:{name:"Glue42Schedule",kind:"Interface",description:"Defines Glue42 Scheduled Report; used in Schedule Module (where State is stored)",properties:[{name:"Glue42Report",kind:"REFERENCE",description:"The Glue42 Report which will be sent when the Schedule runs",uiLabel:"Glue42Report",reference:"Glue42Report"},{name:"Transmission",kind:"unknown",description:"Whether its a one-off or 'streaming' transmission",uiLabel:"Transmission"}]},Glue42State:{name:"Glue42State",kind:"Interface",description:"Internal State used by AdapTable for managing the Glue42 plugin",properties:[{name:"CurrentLiveGlue42Report",kind:"REFERENCE",description:"Which Glue42 Report is currently live",uiLabel:"Current Live Glue42Report",isOptional:!0,reference:"Glue42Report"},{name:"Glue42LoginErrorMessage",kind:"string",description:"Message to show when Login Fails",uiLabel:"Glue42Login Error Message",isOptional:!0},{name:"IsGlue42Available",kind:"boolean",description:"Whether Glue42 is available",uiLabel:"Is Glue42Available",isOptional:!0},{name:"IsGlue42Running",kind:"boolean",description:"Whether Glue42 is running",uiLabel:"Is Glue42Running",isOptional:!0}]},GradientStyle:{name:"GradientStyle",kind:"Interface",description:"Used to display Gradient Styles in Format Column",properties:[{name:"CellRanges",kind:"unknown",description:"Ranges (e.g. to allow a traffic light effect)",uiLabel:"Cell Ranges",isOptional:!0},{name:"ColumnComparison",kind:"REFERENCE",description:"Compares cell values to another Column",uiLabel:"Column Comparison",isOptional:!0,reference:"ColumnComparison"}]},GridApi:{name:"GridApi",kind:"Interface",description:"Provides access to important properites of AdapTable e.g. sorting, selected cells etc.",properties:[{name:"addGridData",kind:"function",description:"Adds rows to Adaptable (and AG Grid)",uiLabel:"Add Grid Data"},{name:"applyGridFiltering",kind:"function",description:"Applies current Filtering and Searching in AdapTable",uiLabel:"Apply Grid Filtering"},{name:"areCellsEditable",kind:"function",description:"Checks if given set of Grid Cells are editable",uiLabel:"Are Cells Editable"},{name:"clearAdaptableSorting",kind:"function",description:"Removes Column Sorts in AdapTable",uiLabel:"Clear Adaptable Sorting"},{name:"clearGridFiltering",kind:"function",description:"Removes all current Filters and Searches in AdapTable",uiLabel:"Clear Grid Filtering"},{name:"clearRowGroupColumns",kind:"function",description:"Clears Row Grouping in the Grid",uiLabel:"Clear Row Group Columns"},{name:"closeAllRowGroups",kind:"function",description:"Close all open groups in Row Grouping",uiLabel:"Close All Row Groups"},{name:"deleteGridData",kind:"function",description:"Deletes rows from Adaptable (and AG Grid)",uiLabel:"Delete Grid Data"},{name:"deselectAll",kind:"function",description:"Deselects all selected rows, cells and ranges",uiLabel:"Deselect All"},{name:"deSelectNode",kind:"function",description:"Deselects the AG Grid Row Node in AdapTable",uiLabel:"De Select Node"},{name:"deSelectNodes",kind:"function",description:"AG Grid Row Nodes in AdapTable",uiLabel:"De Select Nodes"},{name:"deSelectRow",kind:"function",description:"Deselects Row with given Primary Key Value",uiLabel:"De Select Row"},{name:"deSelectRows",kind:"function",description:"Deselects Row with given Primary Key Values",uiLabel:"De Select Rows"},{name:"destroy",kind:"function",description:"Destroys current AdapTable instance",uiLabel:"Destroy"},{name:"expandAllRowGroups",kind:"function",description:"Expands all closed groups in Row Grouping",uiLabel:"Expand All Row Groups"},{name:"expandRowGroupsForValues",kind:"function",description:"Expands Row Groups that contain given keys",uiLabel:"Expand Row Groups For Values"},{name:"fireCellChangedEvent",kind:"function",description:"Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed",uiLabel:"Fire Cell Changed Event"},{name:"fireGridDataChangedEvent",kind:"function",description:"Fires Grid Data Changed Event - when a row has changed in AG Grid",uiLabel:"Fire Grid Data Changed Event"},{name:"fireSearchChangedEvent",kind:"function",description:"Fires Search Changed Event - typically used to enable server searching and filtering",uiLabel:"Fire Search Changed Event"},{name:"getAgGridInstance",kind:"function",description:"Returns Ag Grid instance (passed into Adaptable Options at start-up)",uiLabel:"Get Ag Grid Instance"},{name:"getCellDisplayValue",kind:"function",description:"Retrieves Display Value for a given cell",uiLabel:"Get Cell Display Value"},{name:"getCellNormalisedValue",kind:"function",description:"Retrieves Normalised Value for a given cell",uiLabel:"Get Cell Normalised Value"},{name:"getCellRawValue",kind:"function",description:"Retrieves Raw Value for a given cell",uiLabel:"Get Cell Raw Value"},{name:"getColumnCount",kind:"function",description:"Returns number of columns in Data Source",uiLabel:"Get Column Count"},{name:"getColumnSortForColumn",kind:"function",description:"Retrieves ColumnSort for a given Column",uiLabel:"Get Column Sort For Column"},{name:"getColumnSorts",kind:"function",description:"Returns Column Sort information in Adaptable",uiLabel:"Get Column Sorts"},{name:"getDisplayValueFromRowNode",kind:"function",description:"Retrieves Display Value for Cell in given Row and Column",uiLabel:"Get Display Value From Row Node"},{name:"getEntitlementAccessLevelForModule",kind:"function",description:"Retrieves the Entitlement Access Level for a given Adaptable Module",uiLabel:"Get Entitlement Access Level For Module"},{name:"getExpandRowGroupsKeys",kind:"function",description:"Get keys for any open rows in Row Grouping",uiLabel:"Get Expand Row Groups Keys"},{name:"getFilteredData",kind:"function",description:"Retrieves filtered data from the grid",uiLabel:"Get Filtered Data"},{name:"getFirstDisplayedRowNode",kind:"function",description:"Retrieves the first Displayed Row Node in AdapTable",uiLabel:"Get First Displayed Row Node"},{name:"getFirstRowNode",kind:"function",description:"Retrieves the first Row Node in AdapTable",uiLabel:"Get First Row Node"},{name:"getFormattedValueFromRawValue",kind:"function",description:"Retrieves Formatted Value for a given Raw Value in given Column",uiLabel:"Get Formatted Value From Raw Value"},{name:"getGridCellFromRowNode",kind:"function",description:"Retrieves Cell in given Row and Column",uiLabel:"Get Grid Cell From Row Node"},{name:"getGridContainerElement",kind:"function",description:"Returns the Grid Container in which the Adaptable Instance is present",uiLabel:"Get Grid Container Element"},{name:"getGridData",kind:"function",description:"Retrieves all data from the grid",uiLabel:"Get Grid Data"},{name:"getGridState",kind:"function",description:"Returns Grid section from Adaptable State",uiLabel:"Get Grid State"},{name:"getNormalisedValueFromRowNode",kind:"function",description:"Retrieves Normalised Value for Cell in given Row and Column",uiLabel:"Get Normalised Value From Row Node"},{name:"getPrimaryKeyValueForRowNode",kind:"function",description:"Returns the Primary Kev Value for a given Row Node",uiLabel:"Get Primary Key Value For Row Node"},{name:"getPrimaryKeyValuesForRowNodes",kind:"function",description:"Returns the Primary Kev Values for a given Row Node collection",uiLabel:"Get Primary Key Values For Row Nodes"},{name:"getRawValueFromRowNode",kind:"function",description:"Retrieves Raw Value for Cell in given Row and Column",uiLabel:"Get Raw Value From Row Node"},{name:"getRowCount",kind:"function",description:"Returns number of rows in Data Source",uiLabel:"Get Row Count"},{name:"getRowNodeForPrimaryKey",kind:"function",description:"Retrieves Row Node that contains given Primary Key",uiLabel:"Get Row Node For Primary Key"},{name:"getRowNodesForPrimaryKeys",kind:"function",description:"Retrieves Row Nodes that contain given Primary Keys",uiLabel:"Get Row Nodes For Primary Keys"},{name:"getSelectedCellInfo",kind:"function",description:"Returns all current Selected Cells in AdapTable",uiLabel:"Get Selected Cell Info"},{name:"getSelectedRowInfo",kind:"function",description:"Returns all current Selected Rows in AdapTable",uiLabel:"Get Selected Row Info"},{name:"getVisibleColumnCount",kind:"function",description:"Returns number of visible columns in Data Source",uiLabel:"Get Visible Column Count"},{name:"getVisibleRowCount",kind:"function",description:"Returns number of visible rows in Data Source",uiLabel:"Get Visible Row Count"},{name:"getVisibleRowNodes",kind:"function",description:"Retrieves all Row Nodes currently in the Grid (i.e. filtered)",uiLabel:"Get Visible Row Nodes"},{name:"hideFilterForm",kind:"function",description:"Hides the AdapTable Filter Form",uiLabel:"Hide Filter Form"},{name:"highlightCell",kind:"function",description:"Highlights a Cell in AdapTable",uiLabel:"Highlight Cell"},{name:"highlightRow",kind:"function",description:"Highlight a row using an adaptable style",uiLabel:"Highlight Row"},{name:"highlightRows",kind:"function",description:"Highlight rows using an adaptable style",uiLabel:"Highlight Rows"},{name:"isGridGroupable",kind:"function",description:"Whether AdapTable instance can be Row Grouped",uiLabel:"Is Grid Groupable"},{name:"isGridPivotable",kind:"function",description:"Whether AdapTable instance can be pivoted",uiLabel:"Is Grid Pivotable"},{name:"isGridRowGrouped",kind:"function",description:"Whether Grid is currently showing Row Groups",uiLabel:"Is Grid Row Grouped"},{name:"isGridSelectable",kind:"function",description:"Whether AdapTable instance offers cell selection",uiLabel:"Is Grid Selectable"},{name:"isGroupRowNode",kind:"function",description:"Whether given Row Node is a Row Group",uiLabel:"Is Group Row Node"},{name:"isQuickFilterAvailable",kind:"function",description:"Whether Quick Filter is available in the Grid",uiLabel:"Is Quick Filter Available"},{name:"jumpToCell",kind:"function",description:"Grid will jump to cell in a given Row and Column",uiLabel:"Jump To Cell"},{name:"jumpToColumn",kind:"function",description:"Grid will jump to Column that has given ColumnId",uiLabel:"Jump To Column"},{name:"jumpToRow",kind:"function",description:"Grid will jump to Row containing given Primary Kev Value",uiLabel:"Jump To Row"},{name:"loadGridData",kind:"function",description:"Loads grid with given data",uiLabel:"Load Grid Data"},{name:"redrawGrid",kind:"function",description:"Redraws AdapTable (expensive operation so use sparingly)",uiLabel:"Redraw Grid"},{name:"refreshCells",kind:"function",description:"Refresh Cells in AdapTable",uiLabel:"Refresh Cells"},{name:"refreshRowByPrimaryKey",kind:"function",description:"Forces a re-render of the row with the given primary key value",uiLabel:"Refresh Row By Primary Key"},{name:"refreshRowNode",kind:"function",description:"Forces a re-render of the given row",uiLabel:"Refresh Row Node"},{name:"refreshRowNodes",kind:"function",description:"Forces a re-render of the given rows",uiLabel:"Refresh Row Nodes"},{name:"selectAll",kind:"function",description:"Select the whole Grid",uiLabel:"Select All"},{name:"selectCellRange",kind:"function",description:"Selects a group of cells in a given range - provide either primary keys or row indexes",uiLabel:"Select Cell Range"},{name:"selectColumn",kind:"function",description:"Selects a Column in AG Grid",uiLabel:"Select Column"},{name:"selectColumns",kind:"function",description:"Selects Columns in AG Grid",uiLabel:"Select Columns"},{name:"selectNode",kind:"function",description:"Selects the AG Grid Row Node in AdapTable",uiLabel:"Select Node"},{name:"selectNodes",kind:"function",description:"Selects the AG Grid Row Nodes in AdapTable",uiLabel:"Select Nodes"},{name:"selectRow",kind:"function",description:"Selects Row with given Primary Key Value",uiLabel:"Select Row"},{name:"selectRows",kind:"function",description:"Selects Rows with given Primary Key Values",uiLabel:"Select Rows"},{name:"setAdaptableSorting",kind:"function",description:"Sorts AdapTable using given Column Sorts",uiLabel:"Set Adaptable Sorting"},{name:"setCellsValue",kind:"function",description:"Updates multiple cells",uiLabel:"Set Cells Value"},{name:"setCellValue",kind:"function",description:"Updates cell in Adaptable (first performs Cell & Server Validation)",uiLabel:"Set Cell Value"},{name:"setColumnSorts",kind:"function",description:"Sets Column Sorts in Grid",uiLabel:"Set Column Sorts"},{name:"setGridData",kind:"function",description:"Repopulates grid with given data",uiLabel:"Set Grid Data"},{name:"setRowGroupColumns",kind:"function",description:"Sets the grid to Row Group",uiLabel:"Set Row Group Columns"},{name:"showGridInfoPopup",kind:"function",description:"Opens Settings Panel with Grid Info section selected and visible",uiLabel:"Show Grid Info Popup"},{name:"undoCellEdit",kind:"function",description:"Reverses a data change (if triggered by cell edit)",uiLabel:"Undo Cell Edit"},{name:"unHighlightAllCells",kind:"function",description:"Unhighlights all highlighted Cells in AdapTable",uiLabel:"Un Highlight All Cells"},{name:"unHighlightAllRows",kind:"function",description:"Remove all highlighted rows",uiLabel:"Un Highlight All Rows"},{name:"unHighlightCell",kind:"function",description:"Unhighlights a Cell in AdapTable",uiLabel:"Un Highlight Cell"},{name:"unHighlightRow",kind:"function",description:"Remove highlight from row",uiLabel:"Un Highlight Row"},{name:"unHighlightRows",kind:"function",description:"Remove highlight from row",uiLabel:"Un Highlight Rows"},{name:"updateGridData",kind:"function",description:"Updates Adaptable (and AG Grid) with rows that have changed",uiLabel:"Update Grid Data"}]},GridCell:{name:"GridCell",kind:"Interface",description:"Defines a Cell in Adaptable - every cell is an intersection of a Column Id and a Primary Key Value",properties:[{name:"column",kind:"REFERENCE",description:"Column in which cell is situated",uiLabel:"Column",reference:"AdaptableColumn"},{name:"displayValue",kind:"unknown",description:"Display value of cell (e.g. if formatted)",uiLabel:"Display Value"},{name:"normalisedValue",kind:"unknown",description:"Normalised value of cell",uiLabel:"Normalised Value"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key column's value in row - how Adaptable locates the cell",uiLabel:"Primary Key Value",isOptional:!0},{name:"rawValue",kind:"unknown",description:"Actual raw value of cell",uiLabel:"Raw Value"},{name:"rowNode",kind:"REFERENCE",description:"AG Grid Row Node that holds the cell",uiLabel:"Row Node",reference:"unknown"}]},GridDataChangedInfo:{name:"GridDataChangedInfo",kind:"Interface",description:"EventInfo returned by GridDataChanged event",properties:[{name:"changedAt",kind:"number",description:"Timestamp of change occurrence (in milliseconds)",uiLabel:"Changed At"},{name:"dataRows",kind:"unknown",description:"Data rows that have been added, updated, or deleted",uiLabel:"Data Rows"},{name:"rowNodes",kind:"unknown",description:"Row Nodes that were affected by this change",uiLabel:"Row Nodes"},{name:"rowTrigger",kind:"unknown",description:"Trigger for row change: 'Add', 'Edit' or 'Delete'",uiLabel:"Row Trigger"}]},GridRow:{name:"GridRow",kind:"Interface",description:"Detailed information about a Row in AdapTable",properties:[{name:"primaryKeyValue",kind:"unknown",description:"Primary Key column's value for Row - how Adaptable locates a cell",uiLabel:"Primary Key Value"},{name:"rowData",kind:"unknown",description:"Actual data in the Row",uiLabel:"Row Data",isOptional:!0},{name:"rowInfo",kind:"REFERENCE",description:"Object which provides 'meta data' about the Row",uiLabel:"Row Info",isOptional:!0,reference:"RowInfo"},{name:"rowNode",kind:"REFERENCE",description:"AG Grid Row Node object for the Row",uiLabel:"Row Node",isOptional:!0,reference:"unknown"}]},IAdaptableNoCodeWizard:{name:"IAdaptableNoCodeWizard",kind:"Interface",description:"When you want to configure an Adaptable via json file D&D, use this instead of the normal Adaptable constructor"},InstrumentColumn:{name:"InstrumentColumn",kind:"Interface",description:"A Column which will be defined as an FDC3 Instrument",properties:[{name:"bbgColumnId",kind:"string",description:"Column which holds a Bloomberg Ticker value as instrument data",uiLabel:"Bbg Column Id",isOptional:!0},{name:"cusipColumnId",kind:"string",description:"Column which holds a CUSIP value as instrument data",uiLabel:"Cusip Column Id",isOptional:!0},{name:"figiColumnId",kind:"string",description:"Column which holds a FIGI value as instrument data",uiLabel:"Figi Column Id",isOptional:!0},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"},{name:"isinColumnId",kind:"string",description:"Column which holds an ISIN value as instrument data",uiLabel:"Isin Column Id",isOptional:!0},{name:"permidColumnId",kind:"string",description:"Column which holds a PERMID value as instrument data",uiLabel:"Permid Column Id",isOptional:!0},{name:"ricColumnId",kind:"string",description:"Column which holds a Reuters Instrument Code value as instrument data",uiLabel:"Ric Column Id",isOptional:!0},{name:"sedolColumnId",kind:"string",description:"Column which holds a SEDOL value as instrument data",uiLabel:"Sedol Column Id",isOptional:!0},{name:"tickerColumnId",kind:"string",description:"Column which holds a ticker value as instrument data",uiLabel:"Ticker Column Id",isOptional:!0}]},InstrumentContext:{name:"InstrumentContext",kind:"Interface",description:"Built-in context to define a financial Instrument",properties:[{name:"id",kind:"unknown",description:"The instrument data",uiLabel:"Id",isOptional:!0},{name:"name",kind:"string",description:"Free text name of instrument",uiLabel:"Name",isOptional:!0},{name:"type",kind:"unknown",description:"Context type is always 'instrument'",uiLabel:"Type"}]},IPushPullApi:{name:"IPushPullApi",kind:"Interface",description:"Provides run-time access to ipushpull Plugin",properties:[{name:"addNewIPushPullPage",kind:"function",description:"Adds a new page to ipushpull using given name in the supplied folder",uiLabel:"Add New IPush Pull Page"},{name:"clearIPushPullInternalState",kind:"function",description:"Internal method which clears out ipushpull State",uiLabel:"Clear IPush Pull Internal State"},{name:"getAutoLogin",kind:"function",description:"Retrieves `AutoLogin` from ipushpull options; if `true` AdapTable will automatically log user in to ipushpull at start-up",uiLabel:"Get Auto Login"},{name:"getCurrentIPushPullPassword",kind:"function",description:"Retrieves `Password` from ipushpull state -- AFTER someone logs in",uiLabel:"Get Current IPush Pull Password"},{name:"getCurrentIPushPullUsername",kind:"function",description:"Retrieves `Username` from ipushpull state - AFTER someone logs in",uiLabel:"Get Current IPush Pull Username"},{name:"getCurrentLiveIPushPullReport",kind:"function",description:"Retrieves current ipushpull Report from ipushpull state; A Report contains Name, Folder and ipushpull Page",uiLabel:"Get Current Live IPush Pull Report"},{name:"getFolderIdForName",kind:"function",description:"Gets the Id of the ipushpull folder / Domain with the given name",uiLabel:"Get Folder Id For Name"},{name:"getIPushPullDomains",kind:"function",description:"Retrieves all the ipushpull domain to which the current user has access",uiLabel:"Get IPush Pull Domains"},{name:"getIPushPullInstance",kind:"function",description:"Retrieves the current ipushpull instance (if one has been provided by the User at design time in ipushpull state)",uiLabel:"Get IPush Pull Instance"},{name:"getIPushPullPassword",kind:"function",description:"Retrieves `Password` from ipushpull options (if provided)",uiLabel:"Get IPush Pull Password"},{name:"getIPushPullSchedules",kind:"function",description:"Gets ipushpull schedules ie. reports set to run at particular times",uiLabel:"Get IPush Pull Schedules"},{name:"getIPushPullThrottleTime",kind:"function",description:"Retrieves Throttle Time from ipushpull State; how often a Live report will update ipushpull (if data changes)",uiLabel:"Get IPush Pull Throttle Time"},{name:"getIPushPullUsername",kind:"function",description:"Retrieves `Username` from ipushpull options (if provided)",uiLabel:"Get IPush Pull Username"},{name:"getPagesForIPushPullDomain",kind:"function",description:"Retrieves all pages in given ipushpull domain",uiLabel:"Get Pages For IPush Pull Domain"},{name:"includeSystemReports",kind:"function",description:"Whether to dispaly System Reports in ipushpull toolbar",uiLabel:"Include System Reports"},{name:"isIPushPullAvailable",kind:"function",description:"Checks if an ipushpull instance has been provided by the user",uiLabel:"Is IPush Pull Available"},{name:"isIPushPullLiveDataRunning",kind:"function",description:"Checks if a report is sending Live Data to ipushpull",uiLabel:"Is IPush Pull Live Data Running"},{name:"isIPushPullReportLive",kind:"function",description:"Checks if given report is currently 'live' (i.e. sending updates as data changes)",uiLabel:"Is IPush Pull Report Live"},{name:"isIPushPullRunning",kind:"function",description:"Checks to see if ipushpull is running (i.e. a user has successfully logged in)",uiLabel:"Is IPush Pull Running"},{name:"loginToIPushPull",kind:"function",description:"Logins in user to ipushpull with given credentials; if successful ipushpull toolbar will display full set of controls",uiLabel:"Login To IPush Pull"},{name:"logoutFromIPushPull",kind:"function",description:"Logs out the current user from ipushpull (changes ipushpull toolbar to show Login button)",uiLabel:"Logout From IPush Pull"},{name:"retrieveIPushPullDomainsFromIPushPull",kind:"function",description:"Internal AdapTable method used to manage domains",uiLabel:"Retrieve IPush Pull Domains From IPush Pull"},{name:"sendSnapshot",kind:"function",description:"Publishes an ipushpull Report as a one-off export (i.e. with no live data)",uiLabel:"Send Snapshot"},{name:"setIPushPullAvailableOff",kind:"function",description:"Internal method which sets ipushpull is unavailable",uiLabel:"Set IPush Pull Available Off"},{name:"setIPushPullAvailableOn",kind:"function",description:"Internal method which sets ipushpull is available",uiLabel:"Set IPush Pull Available On"},{name:"setIPushPullDomains",kind:"function",description:"Sets given Domains as those for the current User",uiLabel:"Set IPush Pull Domains"},{name:"setIPushPullInstance",kind:"function",description:"Sets the current ipushpull instance - this method should not generally be used.",uiLabel:"Set IPush Pull Instance"},{name:"setIPushPullLoginErrorMessage",kind:"function",description:"Internal method which displays given message in ipushpull login page",uiLabel:"Set IPush Pull Login Error Message"},{name:"setIPushPullRunningOff",kind:"function",description:"Internal method which sets ipushpull is not running",uiLabel:"Set IPush Pull Running Off"},{name:"setIPushPullRunningOn",kind:"function",description:"Internal method which sets ipushpull is running",uiLabel:"Set IPush Pull Running On"},{name:"setIPushPullThrottleTime",kind:"function",description:"Sets Throttle time for ipushpull; how often a Live report will update ipushpull (if data changes)",uiLabel:"Set IPush Pull Throttle Time"},{name:"showIPushPullPopup",kind:"function",description:"Opens iPushPullPopup (though its currently empty!)",uiLabel:"Show IPush Pull Popup"},{name:"startLiveData",kind:"function",description:"Publishes ipushpull Report as Live Data; any changes to underlying data in report will be sent to ipushpull",uiLabel:"Start Live Data"},{name:"stopLiveData",kind:"function",description:"Pauses current Live Data report",uiLabel:"Stop Live Data"}]},IPushPullDomain:{name:"IPushPullDomain",kind:"Interface",description:"Internal object that maps an IPushPull Domain object",properties:[{name:"FolderId",kind:"number",description:"the Id of the Folder",uiLabel:"Folder Id"},{name:"Name",kind:"string",description:"the Name of the Domain / Folder",uiLabel:"Name"},{name:"Pages",kind:"unknown",description:"The names of the pages within the (Folder)",uiLabel:"Pages"}]},IPushPullPluginOptions:{name:"IPushPullPluginOptions",kind:"Interface",description:"Options required for when using the ipushpull plugin",properties:[{name:"autoLogin",kind:"boolean",description:"Whether AdapTable should try log in to ipushpull automatically at start-up",uiLabel:"Auto Login",isOptional:!0,defaultValue:"false"},{name:"includeSystemReports",kind:"boolean",description:"Whether AdapTable will include System Reports (e.g. 'All Data', 'Selected Cells' etc) in the ipushpull toolbar dropdown",uiLabel:"Include System Reports",isOptional:!0,defaultValue:"true"},{name:"ippConfig",kind:"unknown",description:"The config required to run ipushpull; use your ipushpull credentials",uiLabel:"Ipp Config",isOptional:!0},{name:"password",kind:"string",description:"The user's ipushpull password; if supplied, pre-populates the login screen's password textbox",uiLabel:"Password",isOptional:!0},{name:"throttleTime",kind:"number",description:"How many miliseconds AdapTable should throttle when sending data updates to ipushpull",uiLabel:"Throttle Time",isOptional:!0,defaultValue:"2000"},{name:"username",kind:"string",description:"User's ipushpull user name (usually email address); if supplied, pre-populates the login screen's username textbox",uiLabel:"Username",isOptional:!0}]},IPushPullReport:{name:"IPushPullReport",kind:"Interface",description:"An ipushpull report"},IPushPullSchedule:{name:"IPushPullSchedule",kind:"Interface",description:"Defines an ipushpull Schedule. Used in the Schedule Module (where the State will be stored)."},IPushPullState:{name:"IPushPullState",kind:"Interface",description:"Internal State used by AdapTable for managing the ipushpull plugin"},Layout:{name:"Layout",kind:"Interface",description:"Layout object - contains everything required including Columns, Sorts, Widths, Aggregations, Grouping and Pivoting details",properties:[{name:"AggregationColumns",kind:"unknown",description:"Columns showing aggregated values in grouped rows; first value in record is Column name and second is either the agg func (e.g. sum, avg etc.) or 'true' (to use default aggfunc)",uiLabel:"Aggregation Columns",isOptional:!0},{name:"AutoSave",kind:"boolean",description:"Whether Layout should automatically save or not - overrides `autoSaveLayouts` property in LayoutOptions",uiLabel:"Auto Save",isOptional:!0},{name:"ColumnHeadersMap",kind:"unknown",description:"Set of custom header names for some (or all columns)",uiLabel:"Column Headers Map",isOptional:!0},{name:"Columns",kind:"unknown",description:"Which columns should be visible in the Layout and in which order",uiLabel:"Columns"},{name:"ColumnSorts",kind:"unknown",description:"Sorting to apply in the Layout",uiLabel:"Column Sorts",isOptional:!0},{name:"ColumnWidthMap",kind:"unknown",description:"Set of widths for some (or all columns)",uiLabel:"Column Width Map",isOptional:!0},{name:"EnablePivot",kind:"boolean",description:"Whether pivoting should be enabled in the Grid when this Layout loads",uiLabel:"Enable Pivot",isOptional:!0},{name:"ExpandedRowGroupValues",kind:"unknown",description:"Opened Row Groups - set if `displayRowGroups` in LayoutOptions is 'dynamic'",uiLabel:"Expanded Row Group Values",isOptional:!0},{name:"Name",kind:"string",description:"Name of Layout as will appear in Layout toolbar and tool panel",uiLabel:"Name"},{name:"PinnedColumnsMap",kind:"unknown",description:"Set of pinned Columns",uiLabel:"Pinned Columns Map",isOptional:!0},{name:"PivotColumns",kind:"unknown",description:"List of Columns which should be pivoted when grid is in pivot mode",uiLabel:"Pivot Columns",isOptional:!0},{name:"RowGroupedColumns",kind:"unknown",description:"Columns which are row-grouped when the Layout is applied",uiLabel:"Row Grouped Columns",isOptional:!0},{name:"SuppressAggFuncInHeader",kind:"boolean",description:"Whether to include the aggFunc name in the column header: e.g. 'sum(Bank Balance)' will just be 'Bank Balance'",uiLabel:"Suppress Agg Func In Header",isOptional:!0}]},LayoutApi:{name:"LayoutApi",kind:"Interface",description:"Provides run-time access to the Layout Module and associated state",properties:[{name:"areExpandedRowGroupsSavedInLayouts",kind:"function",description:"Returns true if Layouts will contain Expanded Row Groups information",uiLabel:"Are Expanded Row Groups Saved In Layouts"},{name:"areLayoutsEqual",kind:"function",description:"Compares 2 Layouts for equality",uiLabel:"Are Layouts Equal"},{name:"cloneAndSetLayout",kind:"function",description:"Creates new Layout based on given Layout but with name provided and then loads it into Grid",uiLabel:"Clone And Set Layout"},{name:"cloneLayout",kind:"function",description:"Creates new Layout based on given Layout but with name provided",uiLabel:"Clone Layout"},{name:"createAndSetLayout",kind:"function",description:"Creates new Layout in the state and then loads it into Grid",uiLabel:"Create And Set Layout"},{name:"createDefaultLayoutIfNeeded",kind:"function",description:"Creates a Default Layout (when none provided in Config)",uiLabel:"Create Default Layout If Needed"},{name:"createLayout",kind:"function",description:"Creates new Layout in the state",uiLabel:"Create Layout"},{name:"deleteLayout",kind:"function",description:"Deletes an existing Layout (if not Default or only existing Layout)",uiLabel:"Delete Layout"},{name:"deleteLayoutByName",kind:"function",description:"Deletes an existing Layout provided by Name (if not Default or only existing Layout)",uiLabel:"Delete Layout By Name"},{name:"doesLayoutExist",kind:"function",description:"Checks whether this Layout exists in the Adaptable State (by comparing Uuid property)",uiLabel:"Does Layout Exist"},{name:"fireLayoutChangedEvent",kind:"function",description:"Fires the `LayoutChanged` event",uiLabel:"Fire Layout Changed Event"},{name:"getAllLayout",kind:"function",description:"Retrieves all Layouts in Adaptable State",uiLabel:"Get All Layout"},{name:"getCurrentLayout",kind:"function",description:"Retrieves Current Layout from Layout State",uiLabel:"Get Current Layout"},{name:"getCurrentLayoutColumnSort",kind:"function",description:"Retrieves the sort order of a column from the current layout",uiLabel:"Get Current Layout Column Sort"},{name:"getCurrentLayoutName",kind:"function",description:"Retrieves name of current Layout",uiLabel:"Get Current Layout Name"},{name:"getCurrentVisibleColumnIds",kind:"function",description:"Retrieves array of visible ColumnIds in current Layout",uiLabel:"Get Current Visible Column Ids"},{name:"getCurrentVisibleColumnIdsMap",kind:"function",description:"Retrieves map with visible columns in current Layout",uiLabel:"Get Current Visible Column Ids Map"},{name:"getLayoutById",kind:"function",description:"Retrieves Layout by id",uiLabel:"Get Layout By Id"},{name:"getLayoutByName",kind:"function",description:"Retrieves Layout with the given name",uiLabel:"Get Layout By Name"},{name:"getLayoutDescription",kind:"function",description:"Get a string description of a Layout",uiLabel:"Get Layout Description"},{name:"getLayoutState",kind:"function",description:"Retrieves Layout section from Adaptable State",uiLabel:"Get Layout State"},{name:"isCurrentLayoutDefault",kind:"function",description:"Checks if the Current Layout is Default Layout",uiLabel:"Is Current Layout Default"},{name:"isCurrentLayoutReadOnly",kind:"function",description:"Specifies where Current Layout is editable",uiLabel:"Is Current Layout Read Only"},{name:"isDefaultLayout",kind:"function",description:"Checks if the given Layout is Default Layout",uiLabel:"Is Default Layout"},{name:"saveCurrentLayout",kind:"function",description:"Saves current Layout - using column order, visibility, sorting etc. currently in use in the grid",uiLabel:"Save Current Layout"},{name:"saveLayout",kind:"function",description:"Saves given Layout into Adaptable State",uiLabel:"Save Layout"},{name:"setColumnCaption",kind:"function",description:"Sets a new Caption / Header for a Column (this Layout only)",uiLabel:"Set Column Caption"},{name:"setLayout",kind:"function",description:"Sets (i.e. selects) the Layout",uiLabel:"Set Layout"},{name:"shouldAutoSaveLayout",kind:"function",description:"Whether this Layout should be auto saved (based on Layout State and Layout Options)",uiLabel:"Should Auto Save Layout"},{name:"showChangeColumnCaption",kind:"function",description:"Opens change column caption popup",uiLabel:"Show Change Column Caption"},{name:"showLayoutEditor",kind:"function",description:"Opens Layout Editor - for Current or a named Layout",uiLabel:"Show Layout Editor"},{name:"showLayoutPopup",kind:"function",description:"Opens Settings Panel with Layout section selected",uiLabel:"Show Layout Popup"}]},LayoutChangedInfo:{name:"LayoutChangedInfo",kind:"Interface",description:"EventInfo returned by LayoutChanged event",properties:[{name:"actionName",kind:"string",description:"What caused Layout State to change",uiLabel:"Action Name"},{name:"newLayoutState",kind:"REFERENCE",description:"Current Layout State",uiLabel:"New Layout State",reference:"LayoutState"},{name:"oldLayoutState",kind:"REFERENCE",description:"Previous Layout State",uiLabel:"Old Layout State",reference:"LayoutState"}]},LayoutOptions:{name:"LayoutOptions",kind:"Interface",description:"Options for configuring Layouts; these manage Column visibility, order, sorting, grouping and width",properties:[{name:"autoSaveLayouts",kind:"boolean",description:"Layouts save whenever Grid's column / sort info changes; if false, a Save button will display",uiLabel:"Auto Save Layouts",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"autoSizeColumnsInLayout",kind:"boolean",description:"Columns auto-size when Layout loads for first time",uiLabel:"Auto Size Columns In Layout",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"autoSizeColumnsInPivotLayout",kind:"boolean",description:"Columns auto-size when Pivot-based Layout loads first time",uiLabel:"Auto Size Columns In Pivot Layout",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"createDefaultLayout",kind:"boolean",description:"Whether a "Default Layout" will be created in addition to Layouts provided in Config",uiLabel:"Create Default Layout",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"displayRowGroups",kind:"unknown",description:"Whether RowGroups display all as expanded, all as closed or dynamically (i.e. saved in Layout)",uiLabel:"Display Row Groups",isOptional:!0},{name:"includeExpandedRowGroups",kind:"boolean",description:"Layouts will include details of expanded grouped rows; if true these will be re-applied at start-up",uiLabel:"Include Expanded Row Groups",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"view",kind:"unknown",description:"Options to customize how layout items are shown in Settings Panel",uiLabel:"View",isOptional:!0}]},LayoutState:{name:"LayoutState",kind:"Interface",description:"Predefined Configuration for the Layout Module",properties:[{name:"CurrentLayout",kind:"string",description:"Layout which will be loaded when AdapTable starts - must match `Name` property in Layout",uiLabel:"Current Layout",isOptional:!0},{name:"Layouts",kind:"unknown",description:"Collection of Layout objects - listed in Layout toolbar and Tool Panel",uiLabel:"Layouts",isOptional:!0}]},LiveDataChangedInfo:{name:"LiveDataChangedInfo",kind:"Interface",description:"EventInfo returned by LiveDataChanged event",properties:[{name:"liveDataTrigger",kind:"unknown",description:"What triggered the event to fire",uiLabel:"Live Data Trigger"},{name:"liveReport",kind:"unknown",description:"The Report which is currently live - only used if the Trigger is LiveData related",uiLabel:"Live Report",isOptional:!0},{name:"reportDestination",kind:"unknown",description:"Which Adaptable partner is the export destination for the live data",uiLabel:"Report Destination"}]},LiveReport:{name:"LiveReport",kind:"Interface",description:"Defines which Adaptable Reports are 'Live' (i.e. they will update the destination as the data in Adaptable ticks or changes)",properties:[{name:"pageName",kind:"string",description:"for OpenFin this will be the workbook name; for iPushpull the page name; for Glue42 the Spreadsheet name.",uiLabel:"Page Name"},{name:"report",kind:"REFERENCE",description:"The underlying report",uiLabel:"Report",reference:"unknown"},{name:"reportDestination",kind:"unknown",description:"Where the live data is being sent",uiLabel:"Report Destination"}]},MenuOptions:{name:"MenuOptions",kind:"Interface",description:"Options for managing menus in AdapTable",properties:[{name:"columnMenuItems",kind:"unknown",description:"User-defined Menu Items to add to the Column Menu",uiLabel:"Column Menu Items",isOptional:!0},{name:"columnMenuOrder",kind:"unknown",description:"Order in which AG Grid, AdapTable and User Menu items will appear in Column Menu",uiLabel:"Column Menu Order",isOptional:!0,gridInfo:"item",defaultValue:"'aggrid', 'adaptable', 'user'"},{name:"contextMenuItems",kind:"unknown",description:"User-defined Menu Items to add to the Context Menu",uiLabel:"Context Menu Items",isOptional:!0},{name:"contextMenuOrder",kind:"unknown",description:"Order in which AG grid, AdapTable and User Menu items will appear in Context Menu",uiLabel:"Context Menu Order",isOptional:!0,gridInfo:"item",defaultValue:"'aggrid', 'adaptable', 'user'"},{name:"showAdaptableColumnMenu",kind:"unknown",description:"Show Adaptable Column Menu (or specific items); can be boolean value or function invoked for each menu item",uiLabel:"Show Adaptable Column Menu",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showAdaptableContextMenu",kind:"unknown",description:"Show Adaptable Context Menu (or specific items); can be boolean value or function invoked for each menu item",uiLabel:"Show Adaptable Context Menu",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showUngroupColumnMenuItem",kind:"boolean",description:"Adds 'Ungroup' Column Menu item to a row grouped column",uiLabel:"Show Ungroup Column Menu Item",isOptional:!0,gridInfo:"item",defaultValue:"true"}]},ModuleExpressionFunctions:{name:"ModuleExpressionFunctions",kind:"Interface",description:"Module specific Expression Functions"},NamedQuery:{name:"NamedQuery",kind:"Interface",description:"Defines a Query which can be used in multiple AdapTable Modules",properties:[{name:"Name",kind:"string",description:"Name of the Query - how it will appear in Query dropdown",uiLabel:"Name"}]},NotificationsOptions:{name:"NotificationsOptions",kind:"Interface",description:"Options related to System Status Messages and Notifications in Adaptable.",properties:[{name:"closeWhenClicked",kind:"boolean",description:"Closes Notification automatically when its clicked",uiLabel:"Close When Clicked",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"duration",kind:"unknown",description:"How long (in ms) Notifications display for",uiLabel:"Duration",isOptional:!0,gridInfo:"item",defaultValue:"3000"},{name:"isDraggable",kind:"boolean",description:"Can Notification be dragged",uiLabel:"Is Draggable",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"maxNotifications",kind:"number",description:"How many Notifications can be displayed at one time",uiLabel:"Max Notifications",isOptional:!0,gridInfo:"item",defaultValue:"3"},{name:"maxSystemMessagesInStore",kind:"number",description:"How many System Status Messages to hold in State; when limit is reached, oldest Message is removed",uiLabel:"Max System Messages In Store",isOptional:!0,gridInfo:"item",defaultValue:"100"},{name:"pauseWhenHovering",kind:"boolean",description:"Pauses the Notification when mouse hovers over it",uiLabel:"Pause When Hovering",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"position",kind:"REFERENCE",description:"Where Notification will appear (if anywhere)",uiLabel:"Position",isOptional:!0,gridInfo:"item",defaultValue:"'BottomRight'",reference:"TOAST_POSITIONS"},{name:"showApplicationIcon",kind:"boolean",description:"Displays the application icon in Notifications",uiLabel:"Show Application Icon",isOptional:!0,defaultValue:"false"},{name:"showProgressBar",kind:"boolean",description:"Shows a Progress Bar in the Notification",uiLabel:"Show Progress Bar",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"showSystemStatusMessageNotifications",kind:"boolean",description:"Display System Status Messages as Notifications",uiLabel:"Show System Status Message Notifications",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"transition",kind:"unknown",description:"How Notification will appear: 'Bounce', 'Slide', 'Zoom' or 'Flip'",uiLabel:"Transition",isOptional:!0,gridInfo:"item",defaultValue:"'Slide'"}]},NumberFormatterOptions:{name:"NumberFormatterOptions",kind:"Interface",description:"Formatter Options for Numeric Columns",properties:[{name:"FractionDigits",kind:"number",description:"Number of digits to show in fractions",uiLabel:"Fraction Digits",isOptional:!0},{name:"FractionSeparator",kind:"string",description:"Separator to use in fractions",uiLabel:"Fraction Separator",isOptional:!0},{name:"IntegerDigits",kind:"number",description:"Number of digits to show for integers",uiLabel:"Integer Digits",isOptional:!0},{name:"IntegerSeparator",kind:"string",description:"Separator to use in integers",uiLabel:"Integer Separator",isOptional:!0},{name:"Multiplier",kind:"number",description:"Multiplier to use on the number",uiLabel:"Multiplier",isOptional:!0},{name:"Parentheses",kind:"boolean",description:"Shows negative numbers in parentheses",uiLabel:"Parentheses",isOptional:!0},{name:"Prefix",kind:"string",description:"Prefix to use before the number",uiLabel:"Prefix",isOptional:!0},{name:"Suffix",kind:"string",description:"Suffix to use after the number",uiLabel:"Suffix",isOptional:!0},{name:"Truncate",kind:"boolean",description:"Truncates a number",uiLabel:"Truncate",isOptional:!0}]},OpenFinApi:{name:"OpenFinApi",kind:"Interface",description:"Provides run-time access to the OpenFin Plugin",properties:[{name:"clearOpenFinInternalState",kind:"function",description:"Clears any objects in internal OpenFin state created by AdapTable",uiLabel:"Clear Open Fin Internal State"},{name:"getAlertOptions",kind:"function",description:"Gets the Alert section from Adaptable Options",uiLabel:"Get Alert Options"},{name:"getCurrentLiveOpenFinReport",kind:"function",description:"Retrieves the OpenFin currently sending live data to Excel",uiLabel:"Get Current Live Open Fin Report"},{name:"getNotificationsOptions",kind:"function",description:"Gets the Notification section from Adaptable Options",uiLabel:"Get Notifications Options"},{name:"getOpenFinSchedules",kind:"function",description:"Retrieves all Schedules that send data to Excel via OpenFin",uiLabel:"Get Open Fin Schedules"},{name:"getOpenFinState",kind:"function",description:"Retrieves the OpenFin section of System State",uiLabel:"Get Open Fin State"},{name:"getOpenFinThrottleTime",kind:"function",description:"Retrieves the Throttle time for live updates",uiLabel:"Get Open Fin Throttle Time"},{name:"getPluginOptions",kind:"function",description:"Retrieves the OpenFinPlugOptions provided in OpenFin Plugin",uiLabel:"Get Plugin Options"},{name:"isOpenFinAvailable",kind:"function",description:"Whether OpenFin is available",uiLabel:"Is Open Fin Available"},{name:"isOpenFinRunning",kind:"function",description:"Whether OpenFin is currently running",uiLabel:"Is Open Fin Running"},{name:"showNotification",kind:"function",description:"Shows a notification in OpenFin",uiLabel:"Show Notification"},{name:"showNotificationForAlert",kind:"function",description:"Displays Alert as an OpenFin Notification",uiLabel:"Show Notification For Alert"},{name:"startLiveData",kind:"function",description:"Runs Report in Excel as Live Report (so updates as AdapTable ticks)",uiLabel:"Start Live Data"},{name:"stopLiveData",kind:"function",description:"Stops live data; data will no longer be sent from AdapTable to Excel",uiLabel:"Stop Live Data"}]},OpenFinPluginOptions:{name:"OpenFinPluginOptions",kind:"Interface",description:"Options required for when using the OpenFin plugin",properties:[{name:"notificationTimeout",kind:"unknown",description:"Timeout (in ms) for OpenFin Notifications to expire; set false for notifications not to auto-dismiss",uiLabel:"Notification Timeout",isOptional:!0,defaultValue:"5000"},{name:"onFDC3MessageSent",kind:"unknown",description:"Useful when you also use the finance plugin configured with fdc3 related columns - values in cells such columns can be broadcasted to fdc3, and this function will be called for broadcasting. It's your job to broadcast to the desired fdc3 channel",uiLabel:"On FDC3Message Sent",isOptional:!0},{name:"onNotificationAction",kind:"unknown",description:"Function which is invoked when a button in OpenFin notification is clicked",uiLabel:"On Notification Action",isOptional:!0},{name:"onShowNotification",kind:"unknown",description:"Updates OpenFin Notification object before it's displayed (just add/remove properties); return false to stop Notification showing",uiLabel:"On Show Notification",isOptional:!0},{name:"onValidationFailureInExcel",kind:"unknown",description:"Action to perform when a data change in Live Excel report triggers Prevent Edit Alert failure",uiLabel:"On Validation Failure In Excel",isOptional:!0},{name:"showAdaptableAlertsAsNotifications",kind:"boolean",description:"Converts AdapTable Alerts configured to display in popup as OpenFin Notifications",uiLabel:"Show Adaptable Alerts As Notifications",isOptional:!0,defaultValue:"true"},{name:"showAppIconInNotifications",kind:"unknown",description:"Icon to show in Notification - uses the value supplied in UserInterfaceOptions",uiLabel:"Show App Icon In Notifications",isOptional:!0,defaultValue:"true"},{name:"throttleTime",kind:"number",description:"How long (in ms) AdapTable throttles when sending data update to OpenFin",uiLabel:"Throttle Time",isOptional:!0,defaultValue:"2000"}]},OpenFinReport:{name:"OpenFinReport",kind:"Interface",description:"An OpenFin report",properties:[{name:"ReportName",kind:"string",description:"Name of Report (which will exist in the Export State)",uiLabel:"Report Name"}]},OpenFinSchedule:{name:"OpenFinSchedule",kind:"Interface",description:"Defines a OpenFin Schedule - used in Schedule Module",properties:[{name:"OpenFinReport",kind:"REFERENCE",description:"Report being exported to Excel (via OpenFin)",uiLabel:"Open Fin Report",reference:"OpenFinReport"},{name:"Transmission",kind:"unknown",description:"Whether Snapshot or Live Data (currently only the latter is supported)",uiLabel:"Transmission"}]},OpenFinState:{name:"OpenFinState",kind:"Interface",description:"Internal State used by AdapTable for managing the OpenFin plugin"},OrganizationColumn:{name:"OrganizationColumn",kind:"Interface",description:"A (String) Column which will be defined as an FDC3 Organization",properties:[{name:"fds_IdColumnId",kind:"string",description:"Column which contains an FDS_ID",uiLabel:"Fds_Id Column Id",isOptional:!0},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"},{name:"leiColumnId",kind:"string",description:"Column which contains the LEI",uiLabel:"Lei Column Id",isOptional:!0},{name:"permIdColumnId",kind:"string",description:"Column which contains a PermId",uiLabel:"Perm Id Column Id",isOptional:!0}]},PercentBarStyle:{name:"PercentBarStyle",kind:"Interface",description:"Style used to display Percent Bars in Format Column",properties:[{name:"BackColor",kind:"string",description:"Back colour - only used for 'Percent Bar' Numeric style; leave unset if none required",uiLabel:"Back Color",isOptional:!0,defaultValue:"Gray"},{name:"CellRanges",kind:"unknown",description:"Ranges (e.g. to allow a traffic light effect)",uiLabel:"Cell Ranges",isOptional:!0},{name:"CellText",kind:"REFERENCE",description:"Whether Cell shows Cell Value, Percent Value, both or none",uiLabel:"Cell Text",isOptional:!0,reference:"unknown"},{name:"ColumnComparison",kind:"REFERENCE",description:"Compares cell values to another Column",uiLabel:"Column Comparison",isOptional:!0,reference:"ColumnComparison"},{name:"ToolTipText",kind:"REFERENCE",description:"Whether Tooltip shows Cell Value, Percent Value, both or none",uiLabel:"Tool Tip Text",isOptional:!0,reference:"unknown"}]},PermittedValues:{name:"PermittedValues",kind:"Interface",description:"Permitted/possible values, when column values can be selected (e.g. sort, bulk-update)",properties:[{name:"values",kind:"unknown",description:"Values to display: either hardcoded list or a function",uiLabel:"Values",isOptional:!0}]},PluginsApi:{name:"PluginsApi",kind:"Interface",description:"API methods dealing with AdapTable plugins",properties:[{name:"getFinancePluginApi",kind:"function",description:"Returns Finance API class in Adaptable API",uiLabel:"Get Finance Plugin Api"},{name:"getGlue42PluginApi",kind:"function",description:"Returns Glue42 API class in Adaptable API",uiLabel:"Get Glue42Plugin Api"},{name:"getipushpullPluginApi",kind:"function",description:"Returns ipushpull API class in Adaptable API",uiLabel:"Getipushpull Plugin Api"},{name:"getOpenFinPluginApi",kind:"function",description:"Returns OpenFin API class in Adaptable API",uiLabel:"Get Open Fin Plugin Api"},{name:"getPluginsState",kind:"function",description:"Retrieves the Plugin State (internal only)",uiLabel:"Get Plugins State"},{name:"getPluginState",kind:"function",description:"Gets the State for a given Plugin",uiLabel:"Get Plugin State"},{name:"registerPlugin",kind:"function",description:"Registers a Plugin (internal method)",uiLabel:"Register Plugin"},{name:"setPluginState",kind:"function",description:"Sets the initial state for a given plugin (internal method)",uiLabel:"Set Plugin State"}]},PlusMinusApi:{name:"PlusMinusApi",kind:"Interface",description:"Provides run-time access to the Plus / Minus Module and associated state",properties:[{name:"addPlusMinusNudge",kind:"function",description:"Adds new Plus Minus Rule to State",uiLabel:"Add Plus Minus Nudge"},{name:"applyPlusMinus",kind:"function",description:"Applies a Plus Minus to given cells",uiLabel:"Apply Plus Minus"},{name:"editPlusMinusNudge",kind:"function",description:"Replaces Plus Minus Rule in State with given one",uiLabel:"Edit Plus Minus Nudge"},{name:"getAllActivePlusMinus",kind:"function",description:"Retrieves all active (not-suspended) Plus Minus Rules in Adaptable State with those with expressions first",uiLabel:"Get All Active Plus Minus"},{name:"getAllPlusMinus",kind:"function",description:"Retrieves all Plus Minus Rules in Adaptable State with those with expressions first",uiLabel:"Get All Plus Minus"},{name:"getAllSuspendedPlusMinus",kind:"function",description:"Retrieves all suspended Plus Minus Rules in Adaptable State with those with expressions first",uiLabel:"Get All Suspended Plus Minus"},{name:"getPlusMinusById",kind:"function",description:"Retrieves Plus Minus Rule by Id",uiLabel:"Get Plus Minus By Id"},{name:"getPlusMinusState",kind:"function",description:"Retrieves Plus Minus section from Adaptable State",uiLabel:"Get Plus Minus State"},{name:"runPlusMinusNudge",kind:"function",description:"Applies a Plus Minus Rule to given cells",uiLabel:"Run Plus Minus Nudge"},{name:"showPlusMinusPopup",kind:"function",description:"Opens Settings Panel with Plus Minus section selected and visible",uiLabel:"Show Plus Minus Popup"},{name:"suspendPlusMinusNudge",kind:"function",description:"Suspends Plus Minus Rule",uiLabel:"Suspend Plus Minus Nudge"},{name:"unSuspendPlusMinusNudge",kind:"function",description:"Activates a suspended Plus Minus Rule",uiLabel:"Un Suspend Plus Minus Nudge"}]},PlusMinusNudge:{name:"PlusMinusNudge",kind:"Interface",description:"Defines a Plus Minus Rule - used in the Plus Minus Module",properties:[{name:"NudgeValue",kind:"number",description:"Amount by which to update cell when Rule is applied",uiLabel:"Nudge Value"},{name:"Rule",kind:"REFERENCE",description:"(Optional) Boolean Expression to determine whether to apply the Nudge",uiLabel:"Rule",isOptional:!0,reference:"unknown"},{name:"Scope",kind:"REFERENCE",description:"Where Rule is applied",uiLabel:"Scope",reference:"AdaptableScope"}]},PlusMinusState:{name:"PlusMinusState",kind:"Interface",description:"Predefined Configuration for Plus Minus Module",properties:[{name:"PlusMinusNudges",kind:"unknown",description:"Array of Plus Minus Nudges",uiLabel:"Plus Minus Nudges",isOptional:!0}]},PositionColumn:{name:"PositionColumn",kind:"Interface",description:"A (Numeric) Column which will be defined as an FDC3 Position",properties:[{name:"instrumentColumnId",kind:"string",description:"Column which contains the Instrument information of the FDC3 Message",uiLabel:"Instrument Column Id"},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"}]},PositionContext:{name:"PositionContext",kind:"Interface",description:"Built-in context to define a financial position",properties:[{name:"holding",kind:"number",description:"Holding in the Position",uiLabel:"Holding"},{name:"id",kind:"unknown",description:"Optional Id",uiLabel:"Id",isOptional:!0},{name:"name",kind:"string",description:"Free text name of Position",uiLabel:"Name",isOptional:!0},{name:"type",kind:"unknown",description:"Context type is always 'position'",uiLabel:"Type"}]},PredefinedConfig:{name:"PredefinedConfig",kind:"Interface",description:"This is the main Predefined Config interface which developers will populate at design-time",properties:[{name:"Alert",kind:"REFERENCE",description:"Collection of `AlertDefinitions` which will fire Alerts when the rule is met",uiLabel:"Alert",isOptional:!0,reference:"AlertState"},{name:"Application",kind:"REFERENCE",description:"Empty state section (only populated at Design Time) available for User to store their own data with the rest of AdapTable state.",uiLabel:"Application",isOptional:!0,reference:"ApplicationState"},{name:"CalculatedColumn",kind:"REFERENCE",description:"Supplies a collection of *CalculatedColumn* objects that will display a value based on other cells in the row (using a Calculated Column Expression)",uiLabel:"Calculated Column",isOptional:!0,reference:"CalculatedColumnState"},{name:"ConditionalStyle",kind:"REFERENCE",description:"Supplies a collection of *ConditionalStyle* objects to provides columns and rows with a particular style when the data matches a given rule",uiLabel:"Conditional Style",isOptional:!0,reference:"ConditionalStyleState"},{name:"CustomSort",kind:"REFERENCE",description:"Supplies a collection of *Custom Sort* objects to allow some columns to be sorted in non-standard (e.g. non alphabetical) ways",uiLabel:"Custom Sort",isOptional:!0,reference:"CustomSortState"},{name:"Dashboard",kind:"REFERENCE",description:"Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons",uiLabel:"Dashboard",isOptional:!0,reference:"DashboardState"},{name:"DataSource",kind:"REFERENCE",description:"Supplies a collection of *DataSource* objects to facilitate replacing the DataSource in the Grid with an alternate set of data (e.g. a Book or Stored Proc name)",uiLabel:"Data Source",isOptional:!0,reference:"DataSourceState"},{name:"Export",kind:"REFERENCE",description:"Supplies a collection of *Report* objects, together with name of the Current Report, as part of AdapTable export Module",uiLabel:"Export",isOptional:!0,reference:"ExportState"},{name:"Filter",kind:"REFERENCE",description:"Stores Filters in AdapTable - both System and Column (predicate) Filters",uiLabel:"Filter",isOptional:!0,reference:"FilterState"},{name:"FlashingCell",kind:"REFERENCE",description:"* Objects which define which cells flash in response to data changes",uiLabel:"Flashing Cell",isOptional:!0,reference:"FlashingCellState"},{name:"FormatColumn",kind:"REFERENCE",description:"Supplies a collection of *FormatColumn* objects that will style an entire column in a single way (and not subject to a rule like with Conditional Style).",uiLabel:"Format Column",isOptional:!0,reference:"FormatColumnState"},{name:"FreeTextColumn",kind:"REFERENCE",description:"Supplies a collection of *FreeText* objects so users can make their own notes in bespoke columns that will get stored with their state (and not with the DataSource). Useful if needing a 'Comments' column.",uiLabel:"Free Text Column",isOptional:!0,reference:"FreeTextColumnState"},{name:"Layout",kind:"REFERENCE",description:"Supplies a collection of *Layout* objects to name and manage groups of column visibility, order and sorts.",uiLabel:"Layout",isOptional:!0,reference:"LayoutState"},{name:"PlusMinus",kind:"REFERENCE",description:"Supplies a collection of *PlusMinus* rule objects to stipulate what happens when the user clicks '+' or '-' in a numeric cell",uiLabel:"Plus Minus",isOptional:!0,reference:"PlusMinusState"},{name:"Query",kind:"REFERENCE",description:"Named Queries available for use across multiple AdapTable Modules; and `CurrentQuery` - an Expression to run at start-up",uiLabel:"Query",isOptional:!0,reference:"QueryState"},{name:"QuickSearch",kind:"REFERENCE",description:"Configues how Quick Search will run i.e. how and whether to highlight matching cells and to filter out non-matching rows",uiLabel:"Quick Search",isOptional:!0,reference:"QuickSearchState"},{name:"Schedule",kind:"REFERENCE",description:"Supplies a collection of *Schedule* objects",uiLabel:"Schedule",isOptional:!0,reference:"ScheduleState"},{name:"Shortcut",kind:"REFERENCE",description:"Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues",uiLabel:"Shortcut",isOptional:!0,reference:"ShortcutState"},{name:"Theme",kind:"REFERENCE",description:"Specifies the current Theme and lists the User and System themes available for selection.",uiLabel:"Theme",isOptional:!0,reference:"ThemeState"},{name:"ToolPanel",kind:"REFERENCE",description:"Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)",uiLabel:"Tool Panel",isOptional:!0,reference:"ToolPanelState"}]},PredicateApi:{name:"PredicateApi",kind:"Interface",description:"Functions which manage the Predicate object in AdapTable",properties:[{name:"getCustomPredicateDefById",kind:"function",description:"Gets Predicate Definition provided by users for given Id",uiLabel:"Get Custom Predicate Def By Id"},{name:"getCustomPredicateDefs",kind:"function",description:"Returns Predicate Definitions provided by users",uiLabel:"Get Custom Predicate Defs"},{name:"getPredicateDefById",kind:"function",description:"Gets the Predicate Definition for a given Id",uiLabel:"Get Predicate Def By Id"},{name:"getPredicateDefs",kind:"function",description:"Returns all current Predicate Definitions",uiLabel:"Get Predicate Defs"},{name:"getPredicateDefsByModuleScope",kind:"function",description:"Retrieves all Predicate Definitions for given Module Scope",uiLabel:"Get Predicate Defs By Module Scope"},{name:"getSystemPredicateDefById",kind:"function",description:"Gets Predicate Definition provided by AdapTable for given Id",uiLabel:"Get System Predicate Def By Id"},{name:"getSystemPredicateDefs",kind:"function",description:"Returns Predicate Definitions provided by AdapTable",uiLabel:"Get System Predicate Defs"},{name:"handlePredicate",kind:"function",description:"Main Handler function for a Predicate Definition - used by AdapTableQL",uiLabel:"Handle Predicate"},{name:"isValidPredicate",kind:"function",description:"Checks whether a given Predicate Definition is valid",uiLabel:"Is Valid Predicate"},{name:"predicateToString",kind:"function",description:"Stringifies a given Predicate Definition",uiLabel:"Predicate To String"}]},PredicateDefHandlerParams:{name:"PredicateDefHandlerParams",kind:"Interface",description:"Object passed into an Adaptable Predicate Definition",properties:[{name:"api",kind:"REFERENCE",description:"The Adaptable Api",uiLabel:"Api",reference:"AdaptableApi"},{name:"column",kind:"REFERENCE",description:"Adaptable Column which contains the cell",uiLabel:"Column",reference:"AdaptableColumn"},{name:"displayValue",kind:"unknown",description:"Display value in cell being evaluated",uiLabel:"Display Value"},{name:"inputs",kind:"unknown",description:"Any inputs required to perform evaluation",uiLabel:"Inputs"},{name:"node",kind:"REFERENCE",description:"AG Grid Row node which contains the cell",uiLabel:"Node",reference:"unknown"},{name:"oldValue",kind:"unknown",description:"Previous value in cell (e.g. if evaluating an edit)",uiLabel:"Old Value"},{name:"value",kind:"unknown",description:"Raw value in cell being evaluated",uiLabel:"Value"}]},QueryApi:{name:"QueryApi",kind:"Interface",description:"Provides run-time access to Named and Current Queries",properties:[{name:"clearCurrentQuery",kind:"function",description:"Clears the Current Query",uiLabel:"Clear Current Query"},{name:"getAllNamedQuery",kind:"function",description:"Gets all Named Queries in Adaptable State",uiLabel:"Get All Named Query"},{name:"getCurrentQuery",kind:"function",description:"Returns the Current Query",uiLabel:"Get Current Query"},{name:"getNamedQueryByName",kind:"function",description:"Retrieves Named Query with given name from State",uiLabel:"Get Named Query By Name"},{name:"getNamedQueryModuleReferences",kind:"function",description:"Returns all the references in the AdaptableState of the NamedQuery with the given name",uiLabel:"Get Named Query Module References"},{name:"getQueryState",kind:"function",description:"Retrieves Query section from Adaptable State",uiLabel:"Get Query State"},{name:"getReferencedNamedQueryNames",kind:"function",description:"Returns the name of all the referenced Named Queries as an array of strings",uiLabel:"Get Referenced Named Query Names"},{name:"isValidNamedQueryName",kind:"function",description:"Checks if the given Named Query has a valid name",uiLabel:"Is Valid Named Query Name"},{name:"setCurrentQuery",kind:"function",description:"Set a Query as Current Query",uiLabel:"Set Current Query"},{name:"showExpandedQueryPopup",kind:"function",description:"Opens Expanded Query Popup screen",uiLabel:"Show Expanded Query Popup"},{name:"showQueryPopup",kind:"function",description:"Opens Settings Panel with Query section selected and visible",uiLabel:"Show Query Popup"}]},QueryLanguageApi:{name:"QueryLanguageApi",kind:"Interface",description:"Functions related to AdapTableQL (the Adaptable Query Language)",properties:[{name:"getAdaptableQueryExpression",kind:"function",description:"Returns the Expression string of the given AdaptableQuery: can be Boolean, AggregatedBoolean, Scalar, AggregatedScalar or Observable Expression",uiLabel:"Get Adaptable Query Expression"},{name:"getASTForExpression",kind:"function",description:"Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely",uiLabel:"Get AST For Expression"},{name:"getColumnsFromExpression",kind:"function",description:"Returns all Columns referenced in an Expression",uiLabel:"Get Columns From Expression"},{name:"getModuleExpressionFunctionMap",kind:"function",description:"Returns the current Module Expression Map",uiLabel:"Get Module Expression Function Map"},{name:"getQueryableColumnIds",kind:"function",description:"Returns all columns that can be used in an Expression",uiLabel:"Get Queryable Column Ids"},{name:"isValidAggregatedBooleanExpression",kind:"function",description:"Whether the given AggregatedBooleanExpression is valid",uiLabel:"Is Valid Aggregated Boolean Expression"},{name:"isValidAggregatedScalarExpression",kind:"function",description:"Whether the given AggregatedScalarExpression is valid",uiLabel:"Is Valid Aggregated Scalar Expression"},{name:"isValidBooleanExpression",kind:"function",description:"Whether the given BooleanExpression is valid",uiLabel:"Is Valid Boolean Expression"},{name:"isValidObservableExpression",kind:"function",description:"Whether the given ObservableExpression is valid",uiLabel:"Is Valid Observable Expression"}]},QueryState:{name:"QueryState",kind:"Interface",description:"Predefined Configuration for Query Module",properties:[{name:"CurrentQuery",kind:"string",description:"Expression used for the Query currently being run",uiLabel:"Current Query",isOptional:!0},{name:"NamedQueries",kind:"unknown",description:"Named Queries - can be referenced in other Expressions",uiLabel:"Named Queries",isOptional:!0}]},QuickSearchApi:{name:"QuickSearchApi",kind:"Interface",description:"Provides run-time access to Quick Search Module",properties:[{name:"clearQuickSearch",kind:"function",description:"Clears Quick Search",uiLabel:"Clear Quick Search"},{name:"getQuickSearchState",kind:"function",description:"Retrieves Quick Search section from Adaptable State",uiLabel:"Get Quick Search State"},{name:"getQuickSearchStyle",kind:"function",description:"Retrieves current Quick Search style",uiLabel:"Get Quick Search Style"},{name:"getQuickSearchValue",kind:"function",description:"Retrieves current Quick Search text",uiLabel:"Get Quick Search Value"},{name:"runQuickSearch",kind:"function",description:"Runs Quick Search using supplied text",uiLabel:"Run Quick Search"},{name:"setQuickSearchStyle",kind:"function",description:"Sets style for Quick Search; can be name of (a provided) css style",uiLabel:"Set Quick Search Style"},{name:"showQuickSearchPopup",kind:"function",description:"Opens Settings Panel with Quick Search section selected and visible",uiLabel:"Show Quick Search Popup"}]},QuickSearchState:{name:"QuickSearchState",kind:"Interface",description:"Predefined Configuration for Quick Search Module",properties:[{name:"QuickSearchText",kind:"string",description:"Last Quick Search that was run (and will run again at start up)",uiLabel:"Quick Search Text",isOptional:!0},{name:"Style",kind:"REFERENCE",description:"Style to use to highlight matching cells - uses common `AdaptableStyle` object",uiLabel:"Style",isOptional:!0,reference:"AdaptableStyle"}]},ReactFrameworkComponent:{name:"ReactFrameworkComponent",kind:"TypeAlias",description:"A function that returns a ReactNode"},ReminderSchedule:{name:"ReminderSchedule",kind:"Interface",description:"Schedules a Reminder to appear at a given point in time",properties:[{name:"DisplayNotification",kind:"boolean",description:"Displays Reminder as a Toast Notification",uiLabel:"Display Notification"},{name:"Header",kind:"string",description:"Reminder header text",uiLabel:"Header"},{name:"Message",kind:"string",description:"Reminder body text",uiLabel:"Message"},{name:"MessageType",kind:"REFERENCE",description:"Type of Message - 'Success', 'Info', 'Warning' or 'Error'",uiLabel:"Message Type",reference:"AdaptableMessageType"}]},ReportData:{name:"ReportData",kind:"Interface",description:"Defines the data in a Report run by AdapTable",properties:[{name:"columns",kind:"unknown",description:"Columns in the Report",uiLabel:"Columns"},{name:"rows",kind:"unknown",description:"Rows in the Report",uiLabel:"Rows"}]},ReportSchedule:{name:"ReportSchedule",kind:"Interface",description:"Defines a Scheduled Report - used in Schedule Module (where State is stored)",properties:[{name:"ExportDestination",kind:"unknown",description:"Where report data will be exported",uiLabel:"Export Destination"},{name:"ExportDestinationData",kind:"REFERENCE",description:"Additional data for a Custom Destination produced by a Dynamic Form",uiLabel:"Export Destination Data",isOptional:!0,reference:"unknown"},{name:"ReportName",kind:"string",description:"Name of Report to run on Schedule",uiLabel:"Report Name"}]},RowInfo:{name:"RowInfo",kind:"Interface",description:"Provides meta data about a Row in Adaptable",properties:[{name:"isDisplayed",kind:"boolean",description:"Is Row displayed (ie. filtered, not necessarily in viewport)",uiLabel:"Is Displayed",isOptional:!0},{name:"isExpanded",kind:"boolean",description:"Is Row expanded (if a group row)",uiLabel:"Is Expanded",isOptional:!0},{name:"isGroup",kind:"boolean",description:"Is Row grouped",uiLabel:"Is Group",isOptional:!0},{name:"isMaster",kind:"boolean",description:"Is Row a Master Row (in a Master-Detail grid)",uiLabel:"Is Master",isOptional:!0},{name:"isSelected",kind:"boolean",description:"Is Row selected",uiLabel:"Is Selected",isOptional:!0},{name:"rowGroupLevel",kind:"number",description:"What level the Row is (if Row Grouping is active)",uiLabel:"Row Group Level",isOptional:!0}]},Schedule:{name:"Schedule",kind:"Interface",description:"Defines when an action will be run - either one-off or recurring",properties:[{name:"DaysOfWeek",kind:"REFERENCE",description:"Days on which Schedule will run",uiLabel:"Days Of Week",isOptional:!0,reference:"unknown"},{name:"Hour",kind:"number",description:"Hour the Schedule will run",uiLabel:"Hour"},{name:"Minute",kind:"number",description:"Minute the Schedule will run",uiLabel:"Minute"},{name:"OneOffDate",kind:"string",description:"A one off date on which the Schedule will run",uiLabel:"One Off Date",isOptional:!0}]},ScheduleApi:{name:"ScheduleApi",kind:"Interface",description:"Provides run-time access to the Schedule Module and associated state",properties:[{name:"addGlue42Schedule",kind:"function",description:"Add Glue42-based Schedule",uiLabel:"Add Glue42Schedule"},{name:"addIPushPullSchedule",kind:"function",description:"Add ipushpull-based Schedule",uiLabel:"Add IPush Pull Schedule"},{name:"addOpenFinSchedule",kind:"function",description:"Add OpenFin-based Schedule",uiLabel:"Add Open Fin Schedule"},{name:"addReminderSchedule",kind:"function",description:"Adds Reminder-based Schedule",uiLabel:"Add Reminder Schedule"},{name:"addReportSchedule",kind:"function",description:"Adds Report / Export Schedule",uiLabel:"Add Report Schedule"},{name:"applySchedule",kind:"function",description:"Applies the Schedule of given type",uiLabel:"Apply Schedule"},{name:"deleteGlue42Schedule",kind:"function",description:"Delete Glue42-based Schedule",uiLabel:"Delete Glue42Schedule"},{name:"deleteIPushPullSchedule",kind:"function",description:"Delete ipushpull-based Schedule",uiLabel:"Delete IPush Pull Schedule"},{name:"deleteOpenFinSchedule",kind:"function",description:"Delete OpenFin-based Schedule",uiLabel:"Delete Open Fin Schedule"},{name:"deleteReminderSchedule",kind:"function",description:"Deletes Reminder-based Schedule",uiLabel:"Delete Reminder Schedule"},{name:"deleteReportSchedule",kind:"function",description:"Deletes Report / Export Schedule",uiLabel:"Delete Report Schedule"},{name:"editGlue42Schedule",kind:"function",description:"Edit Glue42-based Schedule",uiLabel:"Edit Glue42Schedule"},{name:"editIPushPullSchedule",kind:"function",description:"Edit ipushpull-based Schedule",uiLabel:"Edit IPush Pull Schedule"},{name:"editOpenFinSchedule",kind:"function",description:"Edit OpenFin-based Schedule",uiLabel:"Edit Open Fin Schedule"},{name:"editReminderSchedule",kind:"function",description:"Edits Reminder-based Schedule",uiLabel:"Edit Reminder Schedule"},{name:"editReportSchedule",kind:"function",description:"Edits Report / Export Schedule",uiLabel:"Edit Report Schedule"},{name:"getAllActiveGlue42Schedule",kind:"function",description:"Retrieves all active (not-suspended) Glue42-based Schedules from Schedule State",uiLabel:"Get All Active Glue42Schedule"},{name:"getAllActiveIPushPullSchedule",kind:"function",description:"Retrieves all active (not-suspended) ipushpull-based Schedules from Schedule State",uiLabel:"Get All Active IPush Pull Schedule"},{name:"getAllActiveOpenFinSchedule",kind:"function",description:"Retrieves all active (not-suspended) OpenFin-based Schedules from Schedule State",uiLabel:"Get All Active Open Fin Schedule"},{name:"getAllActiveReminderSchedule",kind:"function",description:"Retrieves all active (not-suspended) Reminder-based Schedules from Schedule State",uiLabel:"Get All Active Reminder Schedule"},{name:"getAllActiveReportSchedule",kind:"function",description:"Retrieves all active (not-suspended) Report / Export Schedules from Schedule State",uiLabel:"Get All Active Report Schedule"},{name:"getAllGlue42Schedule",kind:"function",description:"Retrieves all Glue42-based Schedules from Schedule State",uiLabel:"Get All Glue42Schedule"},{name:"getAllIPushPullSchedule",kind:"function",description:"Retrieves all ipushpull-based Schedules from Schedule State",uiLabel:"Get All IPush Pull Schedule"},{name:"getAllOpenFinSchedule",kind:"function",description:"Retrieves all OpenFin-based Schedules from Schedule State",uiLabel:"Get All Open Fin Schedule"},{name:"getAllReminderSchedule",kind:"function",description:"Retrieves all Reminder-based Schedules from Schedule State",uiLabel:"Get All Reminder Schedule"},{name:"getAllReportSchedule",kind:"function",description:"Retrieves all Report / Export Schedules from Schedule State",uiLabel:"Get All Report Schedule"},{name:"getAllSchedule",kind:"function",description:"Retrieves the Schedule section from Adaptable State",uiLabel:"Get All Schedule"},{name:"getAllSuspendedGlue42Schedule",kind:"function",description:"Retrieves all suspended Glue42-based Schedules from Schedule State",uiLabel:"Get All Suspended Glue42Schedule"},{name:"getAllSuspendedIPushPullSchedule",kind:"function",description:"Retrieves all suspended ipushpull-based Schedules from Schedule State",uiLabel:"Get All Suspended IPush Pull Schedule"},{name:"getAllSuspendedOpenFinSchedule",kind:"function",description:"Retrieves all suspended OpenFin-based Schedules from Schedule State",uiLabel:"Get All Suspended Open Fin Schedule"},{name:"getAllSuspendedReminderSchedule",kind:"function",description:"Retrieves all suspended Reminder-based Schedules from Schedule State",uiLabel:"Get All Suspended Reminder Schedule"},{name:"getAllSuspendedReportSchedule",kind:"function",description:"Retrieves all suspended Report / Export Schedules from Schedule State",uiLabel:"Get All Suspended Report Schedule"},{name:"getScheduleById",kind:"function",description:"Retrieves Schedule by id",uiLabel:"Get Schedule By Id"},{name:"showSchedulePopup",kind:"function",description:"Opens Settings Panel with Schedule section selected and visible",uiLabel:"Show Schedule Popup"},{name:"suspendGlue42Schedule",kind:"function",description:"Suspends Glue42-based Schedule",uiLabel:"Suspend Glue42Schedule"},{name:"suspendIPushPullSchedule",kind:"function",description:"Suspends ipushpull-based Schedule",uiLabel:"Suspend IPush Pull Schedule"},{name:"suspendOpenFinSchedule",kind:"function",description:"Suspends OpenFin-based Schedule",uiLabel:"Suspend Open Fin Schedule"},{name:"suspendReminderSchedule",kind:"function",description:"Suspends Reminder-based Schedule",uiLabel:"Suspend Reminder Schedule"},{name:"suspendReportSchedule",kind:"function",description:"Suspends Report / Export Schedule",uiLabel:"Suspend Report Schedule"},{name:"unSuspendGlue42Schedule",kind:"function",description:"Activates a suspended Glue42-based Schedule",uiLabel:"Un Suspend Glue42Schedule"},{name:"unSuspendIPushPullSchedule",kind:"function",description:"Activates a suspended ipushpull-based Schedule",uiLabel:"Un Suspend IPush Pull Schedule"},{name:"unSuspendOpenFinSchedule",kind:"function",description:"Activates a suspended OpenFin-based Schedule",uiLabel:"Un Suspend Open Fin Schedule"},{name:"unSuspendReminderSchedule",kind:"function",description:"Activates a suspended Reminder-based Schedule",uiLabel:"Un Suspend Reminder Schedule"},{name:"unSuspendReportSchedule",kind:"function",description:"Activates a suspended Report / Export Schedule",uiLabel:"Un Suspend Report Schedule"}]},ScheduleState:{name:"ScheduleState",kind:"Interface",description:"Predefined Configuration for the Schedule Module",properties:[{name:"Glue42Schedules",kind:"unknown",description:"Schedules connected to Glue42 exports - available if Glue42 plugin is running",uiLabel:"Glue42Schedules",isOptional:!0},{name:"IPushPullSchedules",kind:"unknown",description:"Schedules connected to ipushpull Reports - available if ipushpull plugin is running",uiLabel:"I Push Pull Schedules",isOptional:!0},{name:"OpenFinSchedules",kind:"unknown",description:"Schedules connected to OpenFin data exports - available if OpenFin plugin is running",uiLabel:"Open Fin Schedules",isOptional:!0},{name:"Reminders",kind:"unknown",description:"Schedules connected to Reminders - Alerts that fire at set times",uiLabel:"Reminders",isOptional:!0},{name:"ReportSchedules",kind:"unknown",description:"Schedules connected to Reports (created in the Export function)",uiLabel:"Report Schedules",isOptional:!0}]},ScopeApi:{name:"ScopeApi",kind:"Interface",description:"Provides access to a suite of functions related to the `Scope` object",properties:[{name:"areAllBooleanColumnsInScope",kind:"function",description:"True if all selected columns are boolean",uiLabel:"Are All Boolean Columns In Scope"},{name:"createCellColorRangesForScope",kind:"function",description:"Creates Cell Color Ranges (used in Format Column) for given Scope",uiLabel:"Create Cell Color Ranges For Scope"},{name:"getColumnIdsInScope",kind:"function",description:"Returns all the ColumnIds in the Scope",uiLabel:"Get Column Ids In Scope"},{name:"getColumnsForScope",kind:"function",description:"Returns list of all Columns in the given Scope",uiLabel:"Get Columns For Scope"},{name:"getDataTypesInScope",kind:"function",description:"Returns all the DataTypes in the Scope",uiLabel:"Get Data Types In Scope"},{name:"getScopeDescription",kind:"function",description:"Provides a description for the Scope",uiLabel:"Get Scope Description"},{name:"getScopeToString",kind:"function",description:"Gets string representation of the Scope",uiLabel:"Get Scope To String"},{name:"getSingleColumnInScope",kind:"function",description:"Gets the only Column in given Scope",uiLabel:"Get Single Column In Scope"},{name:"isColumnInDateScope",kind:"function",description:"True if Scope has Data DataType which contains Column",uiLabel:"Is Column In Date Scope"},{name:"isColumnInNumericScope",kind:"function",description:"True if Scope has Numeric DataType containing Column",uiLabel:"Is Column In Numeric Scope"},{name:"isColumnInScope",kind:"function",description:"True if Column is in given Scope",uiLabel:"Is Column In Scope"},{name:"isColumnInScopeColumns",kind:"function",description:"True if Column is in Scope's 'ColumnIds' section",uiLabel:"Is Column In Scope Columns"},{name:"isColumnInStringsScope",kind:"function",description:"True if Scope has String DataType containing Column",uiLabel:"Is Column In Strings Scope"},{name:"isPrimaryKeyColumnInScopeColumns",kind:"function",description:"Whether PK column is included in Scope's column section",uiLabel:"Is Primary Key Column In Scope Columns"},{name:"isScopeInScope",kind:"function",description:"True if first scope is in second Scope",uiLabel:"Is Scope In Scope"},{name:"isSingleBooleanColumnScope",kind:"function",description:"True if Scope contains just 1 boolean Column",uiLabel:"Is Single Boolean Column Scope"},{name:"isSingleColumnScope",kind:"function",description:"True if Scope contains just 1 ColumnId",uiLabel:"Is Single Column Scope"},{name:"isSingleNumericColumnScope",kind:"function",description:"True if Scope contains just 1 numeric Column",uiLabel:"Is Single Numeric Column Scope"},{name:"scopeHasColumns",kind:"function",description:"True if Scope contains ColumnIds",uiLabel:"Scope Has Columns"},{name:"scopeHasDataType",kind:"function",description:"True if Scope contains DataTypes",uiLabel:"Scope Has Data Type"},{name:"scopeHasOnlyBooleanDataType",kind:"function",description:"True if the Scope is DataTypes and contains only Boolean",uiLabel:"Scope Has Only Boolean Data Type"},{name:"scopeIsAll",kind:"function",description:"True if Scope is 'All'",uiLabel:"Scope Is All"},{name:"scopeIsEmpty",kind:"function",description:"True if Scope is empty",uiLabel:"Scope Is Empty"}]},SearchChangedInfo:{name:"SearchChangedInfo",kind:"Interface",description:"EventInfo returned by SearchChanged event; includes full AdapTable search and sort info plus the event's trigger",properties:[{name:"adaptableSearchState",kind:"REFERENCE",description:"Current searches and filters in the Grid",uiLabel:"Adaptable Search State",reference:"AdaptableSearchState"},{name:"adaptableSortState",kind:"REFERENCE",description:"Current sort state in the Grid",uiLabel:"Adaptable Sort State",reference:"AdaptableSortState"},{name:"searchChangedTrigger",kind:"unknown",description:"What search-related change caused the event to fire",uiLabel:"Search Changed Trigger"}]},SearchOptions:{name:"SearchOptions",kind:"Interface",description:"Search options section of Adaptable Options; includes options for running some (or all) search functions on the server",properties:[{name:"clearSearchesOnStartUp",kind:"boolean",description:"Clears saved searches when AdapTable loads",uiLabel:"Clear Searches On Start Up",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"excludeColumnFromQuickSearch",kind:"unknown",description:"Function enabling specific Columns to be excluded from Quick Search",uiLabel:"Exclude Column From Quick Search",isOptional:!0,defaultValue:"undefined"},{name:"filterResultsAfterQuickSearch",kind:"boolean",description:"Runs a Query after Quick Search runs, filtering on quick search results",uiLabel:"Filter Results After Quick Search",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"quickSearchPlaceholder",kind:"string",description:"Value to use as placeholder in QuickSearch controls (e.g. in Dashboard)",uiLabel:"Quick Search Placeholder",isOptional:!0,gridInfo:"item",defaultValue:"'Search'"}]},SelectedCellInfo:{name:"SelectedCellInfo",kind:"Interface",description:"Describes which Cells are currently selected in AdapTable",properties:[{name:"columns",kind:"unknown",description:"Array of Columns which have selected cells",uiLabel:"Columns"},{name:"gridCells",kind:"unknown",description:"Array of GridCells (which provide cell value, primary kev value and other info)",uiLabel:"Grid Cells"}]},SelectedRowInfo:{name:"SelectedRowInfo",kind:"Interface",description:"Describes which Rows are currently selected in AdapTable",properties:[{name:"gridRows",kind:"unknown",description:"Array of Grid Rows containing full information about a row in AdapTable",uiLabel:"Grid Rows"}]},SelectionChangedInfo:{name:"SelectionChangedInfo",kind:"Interface",description:"Event Info published by SelectionChanged event",properties:[{name:"selectedCellInfo",kind:"REFERENCE",description:"Details of cells currently selected in the Grid",uiLabel:"Selected Cell Info",reference:"SelectedCellInfo"},{name:"selectedRowInfo",kind:"REFERENCE",description:"Details of rows currently selected in the Grid",uiLabel:"Selected Row Info",reference:"SelectedRowInfo"}]},SettingsPanelApi:{name:"SettingsPanelApi",kind:"Interface",description:"Provides run-time access to the Settings Panel",properties:[{name:"showCustomSettingsPanel",kind:"function",description:"Opens Settings Panel with the Custom Settings Panel, provided by name, displayed",uiLabel:"Show Custom Settings Panel"},{name:"showSettingsPanel",kind:"function",description:"Opens Settings Panel and displays specified Module (if provided) or first available one",uiLabel:"Show Settings Panel"}]},SharedEntity:{name:"SharedEntity",kind:"Interface",description:"Defines an object used in Team Sharing",properties:[{name:"ChangedAt",kind:"number",description:"Last time when the object was changed",uiLabel:"Changed At"},{name:"ChangedBy",kind:"string",description:"Last User who changed the object",uiLabel:"Changed By"},{name:"Description",kind:"string",description:"Description of object being shared",uiLabel:"Description"},{name:"Entity",kind:"REFERENCE",description:"Actual Adaptable Object being shared",uiLabel:"Entity",reference:"AdaptableObject"},{name:"EntityDependencyIds",kind:"unknown",description:"Ids of direct entity dependencies",uiLabel:"Entity Dependency Ids"},{name:"Module",kind:"REFERENCE",description:"Adaptable Module to which object belongs",uiLabel:"Module",reference:"AdaptableModule"},{name:"Revision",kind:"number",description:"Revision - incremental for 'Active', always 1 for 'Snapshot'",uiLabel:"Revision"},{name:"Timestamp",kind:"number",description:"When the object was shared",uiLabel:"Timestamp"},{name:"Type",kind:"REFERENCE",description:"'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing between local state & Team Share)",uiLabel:"Type",reference:"unknown"},{name:"UserName",kind:"string",description:"User who shared the object",uiLabel:"User Name"}]},Shortcut:{name:"Shortcut",kind:"Interface",description:"Used to define a Shortcut as used in Shortcut State",properties:[{name:"Scope",kind:"unknown",description:"Numeric Columns where Shortcut is applied",uiLabel:"Scope"},{name:"ShortcutKey",kind:"string",description:"Key which triggers the Shortcut when pressed",uiLabel:"Shortcut Key"},{name:"ShortcutOperation",kind:"unknown",description:"The Operation: 'Add', 'Subtract', 'Multiply', 'Divide'",uiLabel:"Shortcut Operation"},{name:"ShortcutValue",kind:"number",description:"Value which acts as 2nd operand for ShortcutOperation (the first operand being the cell value)",uiLabel:"Shortcut Value"}]},ShortcutApi:{name:"ShortcutApi",kind:"Interface",description:"Provides run-time access to Shortcut Module and associated state",properties:[{name:"addShortcut",kind:"function",description:"Adds new Shortcut to the state",uiLabel:"Add Shortcut"},{name:"deleteAllShortcut",kind:"function",description:"Deletes all Shortcuts in Adaptable State",uiLabel:"Delete All Shortcut"},{name:"deleteShortcut",kind:"function",description:"Deletes Shortcut from the state",uiLabel:"Delete Shortcut"},{name:"getAllActiveShortcut",kind:"function",description:"Gets all active (not-suspended) Shortcuts in Adaptable State",uiLabel:"Get All Active Shortcut"},{name:"getAllShortcut",kind:"function",description:"Gets all Shortcuts in Adaptable State",uiLabel:"Get All Shortcut"},{name:"getAllSuspendedShortcut",kind:"function",description:"Gets all suspended Shortcuts in Adaptable State",uiLabel:"Get All Suspended Shortcut"},{name:"getShortcutById",kind:"function",description:"Retrieves Shortcut by Id",uiLabel:"Get Shortcut By Id"},{name:"getShortcutState",kind:"function",description:"Retrieves Shortcut section from Adaptable State",uiLabel:"Get Shortcut State"},{name:"showShortcutPopup",kind:"function",description:"Opens Settings Panel with Shortcut section selected and visible",uiLabel:"Show Shortcut Popup"},{name:"suspendShortcut",kind:"function",description:"Suspends Shortcut definition",uiLabel:"Suspend Shortcut"},{name:"unSuspendShortcut",kind:"function",description:"Activates a suspended Shortcut definition",uiLabel:"Un Suspend Shortcut"}]},ShortcutScopeDataType:{name:"ShortcutScopeDataType",kind:"TypeAlias",description:"Shortcut scope data type."},ShortcutState:{name:"ShortcutState",kind:"Interface",description:"Predefined Configuration for Shortcut Module",properties:[{name:"Shortcuts",kind:"unknown",description:"Collection of Shortcuts - designed to speed up data entry",uiLabel:"Shortcuts",isOptional:!0}]},SmartEditApi:{name:"SmartEditApi",kind:"Interface",description:"Provides run-time access to the Smart Edit Module",properties:[{name:"applySmartEdit",kind:"function",description:"Applies a Smart Edit to given Cells",uiLabel:"Apply Smart Edit"},{name:"getSmartEditOperation",kind:"function",description:"Gets current Smart Edit Operation",uiLabel:"Get Smart Edit Operation"},{name:"getSmartEditValue",kind:"function",description:"Returns current Smart Edit Value",uiLabel:"Get Smart Edit Value"},{name:"setSmartEditOperation",kind:"function",description:"Sets Smart Edit operation: ('Add','Subtract','Multiply','Divide'",uiLabel:"Set Smart Edit Operation"},{name:"setSmartEditValue",kind:"function",description:"Sets Smart Edit Value",uiLabel:"Set Smart Edit Value"},{name:"showSmartEditPopup",kind:"function",description:"Opens Settings Panel with Smart Edit section selected and visible",uiLabel:"Show Smart Edit Popup"}]},SpecialColumnSettings:{name:"SpecialColumnSettings",kind:"Interface",description:"Base Settings for Calculated Columns and FreeText Columns",properties:[{name:"Aggregatable",kind:"boolean",description:"Whether Column can be used in an aggregation when grouping",uiLabel:"Aggregatable",isOptional:!0,defaultValue:"true"},{name:"ColumnTypes",kind:"unknown",description:"Custom column types to be added to AG Grid Column Types when object is created",uiLabel:"Column Types",isOptional:!0},{name:"Filterable",kind:"boolean",description:"Whether Column is filterable",uiLabel:"Filterable",isOptional:!0,defaultValue:"true"},{name:"Groupable",kind:"boolean",description:"Whether Column can be grouped",uiLabel:"Groupable",isOptional:!0,defaultValue:"true"},{name:"Pivotable",kind:"boolean",description:"Whether Column can be used when grid is in pivot mode",uiLabel:"Pivotable",isOptional:!0,defaultValue:"true"},{name:"Resizable",kind:"boolean",description:"Whether Column can be resized (by dragging column header edges)",uiLabel:"Resizable",isOptional:!0,defaultValue:"true"},{name:"Sortable",kind:"boolean",description:"Whether Column is sortable",uiLabel:"Sortable",isOptional:!0,defaultValue:"true"},{name:"SuppressMenu",kind:"boolean",description:"Whether if no menu should be shown for this Column header.",uiLabel:"Suppress Menu",isOptional:!0,defaultValue:"false"},{name:"SuppressMovable",kind:"boolean",description:"Whether if this Column should be movable via dragging",uiLabel:"Suppress Movable",isOptional:!0,defaultValue:"false"},{name:"Width",kind:"number",description:"Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid",uiLabel:"Width",isOptional:!0}]},StateOptions:{name:"StateOptions",kind:"Interface",description:"Options related to Adaptable State hydration/dehydration - allows users to intercept state persistence and state loading with custom functionality",properties:[{name:"applyState",kind:"unknown",description:"Allows hooking into Adaptable State hydration",uiLabel:"Apply State",isOptional:!0},{name:"clearState",kind:"REFERENCE",description:"Allows clearing of remote Adaptable State",uiLabel:"Clear State",isOptional:!0,reference:"unknown"},{name:"debounceStateDelay",kind:"number",description:"Delay (in ms) to debounce `saveState` / `persistState` calls enabling grouping multiple sequential calls in single one (e.g. elevator doors)",uiLabel:"Debounce State Delay",isOptional:!0,defaultValue:"400"},{name:"loadState",kind:"REFERENCE",description:"Allows the customization of Adaptable State loading",uiLabel:"Load State",isOptional:!0,reference:"AdaptableLoadStateFunction"},{name:"persistState",kind:"REFERENCE",description:"Allows the customization of state persistence",uiLabel:"Persist State",isOptional:!0,reference:"AdaptablePersistStateFunction"},{name:"saveState",kind:"REFERENCE",description:"Allows the customization of the Adaptable State that is going to be persisted",uiLabel:"Save State",isOptional:!0,reference:"unknown"}]},StringFormatterOptions:{name:"StringFormatterOptions",kind:"Interface",description:"Formatter Options for String Columns",properties:[{name:"Case",kind:"unknown",description:"Sets text to Upper or Lower case",uiLabel:"Case",isOptional:!0},{name:"Prefix",kind:"string",description:"Prefix to use before the cell text",uiLabel:"Prefix",isOptional:!0},{name:"Suffix",kind:"string",description:"Suffix to use after the cell text",uiLabel:"Suffix",isOptional:!0},{name:"Trim",kind:"boolean",description:"Trims text (both start and end)",uiLabel:"Trim",isOptional:!0}]},SuspendableObject:{name:"SuspendableObject",kind:"Interface",description:"Interface that extends Adaptable Object for those config items that can be suspended at run-time",properties:[{name:"IsSuspended",kind:"boolean",description:"Suspends (i.e. turns off) an Adaptable Object",uiLabel:"Is Suspended",isOptional:!0}]},SystemStatusApi:{name:"SystemStatusApi",kind:"Interface",description:"Provides access to System Status Module and associated state",properties:[{name:"deleteAllSystemStatusMessages",kind:"function",description:"Deletes all System Status messages",uiLabel:"Delete All System Status Messages"},{name:"fireSystemStatusMessageDisplayedEvent",kind:"function",description:"Fires SystemStatusMessageDisplayed Event",uiLabel:"Fire System Status Message Displayed Event"},{name:"getCurrentSystemStatusMessageInfo",kind:"function",description:"Retrieves current System Status Message",uiLabel:"Get Current System Status Message Info"},{name:"setErrorSystemStatus",kind:"function",description:"Sets an **Error** System Status Message",uiLabel:"Set Error System Status"},{name:"setInfoSystemStatus",kind:"function",description:"Sets an **Info** System Status Message",uiLabel:"Set Info System Status"},{name:"setSuccessSystemStatus",kind:"function",description:"Sets a **Success** System Status Message",uiLabel:"Set Success System Status"},{name:"setSystemStatus",kind:"function",description:"Sets a new System Status message; appears in System Status toolbar, tool panel (and popup).",uiLabel:"Set System Status"},{name:"setWarningSystemStatus",kind:"function",description:"Sets a **Warning** System Status Message",uiLabel:"Set Warning System Status"},{name:"showSystemStatusPopup",kind:"function",description:"Opens System Status popup",uiLabel:"Show System Status Popup"}]},SystemStatusMessageDisplayedInfo:{name:"SystemStatusMessageDisplayedInfo",kind:"Interface",description:"Object returned by the `SystemStatusMessageDisplayed` event",properties:[{name:"systemStatusMessageInfo",kind:"REFERENCE",description:"Details of the System Status Message and Type",uiLabel:"System Status Message Info",reference:"SystemStatusMessageInfo"}]},SystemStatusMessageInfo:{name:"SystemStatusMessageInfo",kind:"Interface",description:"Wraps a System Status Message",properties:[{name:"statusFurtherInformation",kind:"string",description:"Additional information to display (optional)",uiLabel:"Status Further Information",isOptional:!0},{name:"statusMessage",kind:"string",description:"The Message to be displayed",uiLabel:"Status Message"},{name:"statusType",kind:"REFERENCE",description:"Type of Message i.e. Succcess, Warning, Error, Info",uiLabel:"Status Type",reference:"AdaptableMessageType"},{name:"timestamp",kind:"date",description:"When Message was sent",uiLabel:"Timestamp",isOptional:!0}]},TeamSharingApi:{name:"TeamSharingApi",kind:"Interface",description:"Provides run-time access to Team Sharing Module and associated state",properties:[{name:"checkForUpdates",kind:"function",description:"Checks if active Shared Entities have updates (higher revisions than the local counterpart objects)",uiLabel:"Check For Updates"},{name:"fireTeamSharingEntityChangedEvent",kind:"function",description:"Fires the Team Sharing Entity Changed Event",uiLabel:"Fire Team Sharing Entity Changed Event"},{name:"getSharedEntities",kind:"function",description:"Retrieves all Shared Entities in Team Sharing State",uiLabel:"Get Shared Entities"},{name:"getTeamSharingState",kind:"function",description:"Retrieves Team Sharing section of State",uiLabel:"Get Team Sharing State"},{name:"hasTeamSharingFullRights",kind:"function",description:"Whether current user has full Team Sharing rights (for creating & updating shared items)",uiLabel:"Has Team Sharing Full Rights"},{name:"isTeamSharingActivated",kind:"function",description:"Whether Team Sharing is Activated",uiLabel:"Is Team Sharing Activated"},{name:"showTeamSharingPopup",kind:"function",description:"Opens Settings Panel with Team Sharing section selected and visible",uiLabel:"Show Team Sharing Popup"}]},TeamSharingEntityChangedInfo:{name:"TeamSharingEntityChangedInfo",kind:"Interface",description:"EventInfo returned by TeamSharingEntityChanged event",properties:[{name:"sharedEntity",kind:"REFERENCE",description:"Object containing the Shared Entity that has changed",uiLabel:"Shared Entity",reference:"SharedEntity"}]},TeamSharingOptions:{name:"TeamSharingOptions",kind:"Interface",description:"Options for managing Team Sharing - which enables Adaptable Objects to be shared between colleagues",properties:[{name:"enableTeamSharing",kind:"boolean",description:"Whether Team Sharing is enabled",uiLabel:"Enable Team Sharing",gridInfo:"item",defaultValue:"false"},{name:"getSharedEntities",kind:"unknown",description:"Async function which retrieves available Shared Entities that user can download and merge automatically with Adaptable State",uiLabel:"Get Shared Entities",defaultValue:"null"},{name:"setSharedEntities",kind:"unknown",description:"Async function which uploads Shared Entities so they can be downloaded by other members of the team",uiLabel:"Set Shared Entities",defaultValue:"null"},{name:"updateInterval",kind:"number",description:"Frequency (in minutes) to check if Active Shared Entities have a newer revision",uiLabel:"Update Interval",isOptional:!0,gridInfo:"item",defaultValue:"0 (never)"},{name:"updateNotification",kind:"unknown",description:"How user is informed when Active Shared Entities have newer revisions",uiLabel:"Update Notification",isOptional:!0,gridInfo:"item",defaultValue:"null (none)"}]},TeamSharingState:{name:"TeamSharingState",kind:"Interface",description:"State for Team Sharing; this is internal so not designed to be provided as part of Predefined Config",properties:[{name:"ActiveSharedEntityMap",kind:"unknown",description:"Mapping of active AdaptableObjects which are shared with the local state. Maps UUIDs of local AdaptableObjects to a snapshot of the latest synchronized SharedEntity",uiLabel:"Active Shared Entity Map"},{name:"importProcessInProgress",kind:"boolean",description:"TRUE if an import is in progress, FALSE otherwise. This is required to skip the TEAMSHARING_UPDATE_ITEM action as a result of the import",uiLabel:"Import Process In Progress"},{name:"SharedEntities",kind:"unknown",description:"List of objects currently being Team Shared",uiLabel:"Shared Entities"}]},ThemeApi:{name:"ThemeApi",kind:"Interface",description:"Provides run-time access to the Theme Module and associated state",properties:[{name:"applyCurrentTheme",kind:"function",description:"Applies the Current Theme",uiLabel:"Apply Current Theme"},{name:"getAgGridCurrentThemeName",kind:"function",description:"Get the name of the current AG Grid theme",uiLabel:"Get Ag Grid Current Theme Name"},{name:"getAllSystemTheme",kind:"function",description:"Retrieves System Themes in State",uiLabel:"Get All System Theme"},{name:"getAllTheme",kind:"function",description:"Retrieves all Themes (both System User) in State",uiLabel:"Get All Theme"},{name:"getAllUserTheme",kind:"function",description:"Retrieves User Themes in State",uiLabel:"Get All User Theme"},{name:"getCurrentTheme",kind:"function",description:"Retrieves name of Current Theme",uiLabel:"Get Current Theme"},{name:"getThemeState",kind:"function",description:"Retrieves Theme section from Adaptable State",uiLabel:"Get Theme State"},{name:"loadDarkTheme",kind:"function",description:"Sets AdapTable Dark Theme - updates the AG Grid theme to match",uiLabel:"Load Dark Theme"},{name:"loadLightTheme",kind:"function",description:"Sets AdapTable Light Theme - updates the AG Grid theme to match",uiLabel:"Load Light Theme"},{name:"loadTheme",kind:"function",description:"Sets Adaptable to use a given theme",uiLabel:"Load Theme"},{name:"setSystemThemes",kind:"function",description:"Sets available System Themes; if empty array is passed none will be",uiLabel:"Set System Themes"},{name:"setUserThemes",kind:"function",description:"Sets available User Themes",uiLabel:"Set User Themes"},{name:"showThemePopup",kind:"function",description:"Opens Settings Panel with Theme section selected and visible",uiLabel:"Show Theme Popup"}]},ThemeChangedInfo:{name:"ThemeChangedInfo",kind:"Interface",description:"Object returned by the `ThemeChanged` event",properties:[{name:"theme",kind:"unknown",description:"Selected Theme: either name of a (System) theme or the (Custom) Theme itself",uiLabel:"Theme"}]},ThemeState:{name:"ThemeState",kind:"Interface",description:"Theme section of Adaptable State",properties:[{name:"CurrentTheme",kind:"unknown",description:"Name of current theme (or theme to set at startup); leave blank if using 'Light Theme', set to 'dark' for 'Dark Theme' or provide name of Custom Theme",uiLabel:"Current Theme",isOptional:!0},{name:"SystemThemes",kind:"unknown",description:"Which, if any, of the 2 themes shipped by Adaptable should be available; leave unset to provide both, or an empty array to provide neither.",uiLabel:"System Themes",isOptional:!0},{name:"UserThemes",kind:"unknown",description:"Custom themes (of type AdaptableTheme) provided by developers",uiLabel:"User Themes",isOptional:!0}]},TOAST_POSITIONS:{name:"TOAST_POSITIONS",kind:"TypeAlias",description:"Different positions offered by Notifications"},ToolPanelApi:{name:"ToolPanelApi",kind:"Interface",description:"Functions for managing the AdapTable ToolPanel Component (at side of grid)",properties:[{name:"closeAdapTableToolPanel",kind:"function",description:"Closes the Tool Panel section (irrespective of which toolpanel is showing)",uiLabel:"Close Adap Table Tool Panel"},{name:"getCustomToolPanelButtons",kind:"function",description:"Retrieves all Custom Tool Panel Buttons defined in ToolPanelOptions",uiLabel:"Get Custom Tool Panel Buttons"},{name:"getCustomToolPanelByName",kind:"function",description:"Retrieves the CustomToolPanel with the given name (or undefined if no match is found)",uiLabel:"Get Custom Tool Panel By Name"},{name:"getCustomToolPanels",kind:"function",description:"Retrieves all Custom Tool Panels defined in ToolPanelOptions",uiLabel:"Get Custom Tool Panels"},{name:"getToolPanelState",kind:"function",description:"Retrieves Tool Panel section from Tool Panel State",uiLabel:"Get Tool Panel State"},{name:"openAdapTableToolPanel",kind:"function",description:"Opens the Adaptable ToolPanel Component",uiLabel:"Open Adap Table Tool Panel"},{name:"setAdaptableToolPanelVisibilityMode",kind:"function",description:"Sets the given Adaptable ToolPanel with the provided visibilityMode (expanded / collapsed)",uiLabel:"Set Adaptable Tool Panel Visibility Mode"},{name:"setCustomToolPanelVisibilityMode",kind:"function",description:"Sets the Custom ToolPanel with the given name with the provided visibilityMode (expanded / collapsed)",uiLabel:"Set Custom Tool Panel Visibility Mode"},{name:"showToolPanelPopup",kind:"function",description:"Opens the Tool Panel popup",uiLabel:"Show Tool Panel Popup"}]},ToolPanelButtonContext:{name:"ToolPanelButtonContext",kind:"Interface",description:"Context required by functions when using a ToolPanel Button",properties:[{name:"toolPanelState",kind:"REFERENCE",description:"Current ToolPanel State",uiLabel:"Tool Panel State",reference:"ToolPanelState"}]},ToolPanelOptions:{name:"ToolPanelOptions",kind:"Interface",description:"Options related to managing the AdapTable ToolPanel Component",properties:[{name:"adaptableToolPanelTitle",kind:"string",description:"Title for AdapTable ToolPanel Component - appears vertically at side",uiLabel:"Adaptable Tool Panel Title",isOptional:!0,gridInfo:"item",defaultValue:"'AdapTable'"},{name:"customButtons",kind:"unknown",description:"ToolPanel Buttons provided by Users which perform custom behaviour",uiLabel:"Custom Buttons",isOptional:!0},{name:"customToolPanels",kind:"unknown",description:"ToolPanels provided by Users which contain custom content",uiLabel:"Custom Tool Panels",isOptional:!0},{name:"iconKey",kind:"string",description:"Key of icon to be used (beside the label) for Adaptable ToolPanel Component",uiLabel:"Icon Key",isOptional:!0,gridInfo:"item",defaultValue:"'menu'"},{name:"maxWidth",kind:"number",description:"The max width of AdapTable ToolPanel",uiLabel:"Max Width",isOptional:!0,defaultValue:"undefined"},{name:"minWidth",kind:"number",description:"The min width of AdapTable ToolPanel",uiLabel:"Min Width",isOptional:!0,defaultValue:"var(--ab-cmp-toolpanel__width)"},{name:"showAdaptableToolPanel",kind:"boolean",description:"Displays Adaptable ToolPanel Component (only if AG Grid Sidebar is provided)",uiLabel:"Show Adaptable Tool Panel",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showToolPanelsDropdown",kind:"boolean",description:"Display the Tool Panels dropdown",uiLabel:"Show Tool Panels Dropdown",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"toolPanelOrder",kind:"unknown",description:"Order of displayed ToolPanels in Sidebar",uiLabel:"Tool Panel Order",isOptional:!0,defaultValue:"['filters', 'columns', 'adaptable']"},{name:"width",kind:"number",description:"The initial width of AdapTable ToolPanel",uiLabel:"Width",isOptional:!0,defaultValue:"var(--ab-cmp-toolpanel__width)"}]},ToolPanelState:{name:"ToolPanelState",kind:"Interface",description:"Predefined Configuration for the Adaptable ToolPanel",properties:[{name:"ModuleButtons",kind:"REFERENCE",description:"AdapTable Module Buttons visible in ToolPanel",uiLabel:"Module Buttons",isOptional:!0,defaultValue:"Empty Array",reference:"unknown"},{name:"ToolPanels",kind:"unknown",description:"ToolPanels visible",uiLabel:"Tool Panels",isOptional:!0,defaultValue:"ToolPanels for all available Modules (subject to Entitlement rules)"}]},ToolPanelVisibilityMode:{name:"ToolPanelVisibilityMode",kind:"TypeAlias",description:"Whether a ToolPanel displays as expanded or collapsed"},UserInterfaceApi:{name:"UserInterfaceApi",kind:"Interface",description:"Functions relating to User Interface section of Adaptable State",properties:[{name:"addColumnMenuItem",kind:"function",description:"Adds menu item to Column Menu",uiLabel:"Add Column Menu Item"},{name:"addContextMenuItem",kind:"function",description:"Adds menu item to Context Menu",uiLabel:"Add Context Menu Item"},{name:"getAllActionColumn",kind:"function",description:"Retrieves any Action Columns in User Interface Options",uiLabel:"Get All Action Column"},{name:"getAllEditLookUpItems",kind:"function",description:"Retrieves `editLookUpItems` property from User Interface Options",uiLabel:"Get All Edit Look Up Items"},{name:"getAllPermittedValuesItems",kind:"function",description:"Retrieves `permittedValues` property from User Interface Options",uiLabel:"Get All Permitted Values Items"},{name:"getBulkUpdatePermittedValuesForColumn",kind:"function",description:"Retrieves Permitted values for Bulk Update Module",uiLabel:"Get Bulk Update Permitted Values For Column"},{name:"getColorPalette",kind:"function",description:"Retrieves Color Palette currently being used",uiLabel:"Get Color Palette"},{name:"getCustomSortPermittedValuesForColumn",kind:"function",description:"Retrieves Permitted values for Custom Sort Module",uiLabel:"Get Custom Sort Permitted Values For Column"},{name:"getEditableCellStyle",kind:"function",description:"Returns Style set for Editable cells",uiLabel:"Get Editable Cell Style"},{name:"getEditLookUpItemForColumn",kind:"function",description:"Retrieves EditLookUpItems for a given Column",uiLabel:"Get Edit Look Up Item For Column"},{name:"getEditLookUpValuesForEditLookUpItem",kind:"function",description:"Retrieves actual Look Up Values from an EditLookUpItem",uiLabel:"Get Edit Look Up Values For Edit Look Up Item"},{name:"getFilterPermittedValuesForColumn",kind:"function",description:"Retrieves Permitted values for filtering by column values in Floating Filter and Quick Filter Bar",uiLabel:"Get Filter Permitted Values For Column"},{name:"getPermittedValuesForColumn",kind:"function",description:"Retrieves Permitted Values for a given Column",uiLabel:"Get Permitted Values For Column"},{name:"getReadOnlyCellStyle",kind:"function",description:"Returns Style set for ReadOnly cells",uiLabel:"Get Read Only Cell Style"},{name:"getStyleClassNames",kind:"function",description:"Retrieves any Style Class Names from User Interface Options",uiLabel:"Get Style Class Names"}]},UserInterfaceOptions:{name:"UserInterfaceOptions",kind:"Interface",description:"Options for managing the User Interface of AdapTable",properties:[{name:"actionColumns",kind:"unknown",description:"Columns which contain an AdapTable Button - used for performing Actions",uiLabel:"Action Columns",isOptional:!0},{name:"applicationIcon",kind:"REFERENCE",description:"The application icon to appear in Dashboard and elsewhere (e.g. OpenFin notifications)",uiLabel:"Application Icon",isOptional:!0,defaultValue:"null",reference:"AdaptableIcon"},{name:"bulkUpdatePermittedValues",kind:"unknown",description:"Custom column values for editing via bulk-update; when not defined defaults to permittedValues",uiLabel:"Bulk Update Permitted Values",isOptional:!0},{name:"colorPalette",kind:"unknown",description:"Colours to display in Colour Picker (in place of AdapTable's default set); can be hardcoded list or function",uiLabel:"Color Palette",isOptional:!0},{name:"columnTypes",kind:"unknown",description:"Optional list of Column Types - used primarily for special columns",uiLabel:"Column Types",isOptional:!0},{name:"customSortPermittedValues",kind:"unknown",description:"Custom column values for defining Custom Sort; when not defined defaults to permittedValues",uiLabel:"Custom Sort Permitted Values",isOptional:!0},{name:"dateInputOptions",kind:"REFERENCE",description:"Options for managing and customizing date inputs in AdapTable",uiLabel:"Date Input Options",isOptional:!0,reference:"DateInputOptions"},{name:"editableCellStyle",kind:"REFERENCE",description:"Style to set for editable cells",uiLabel:"Editable Cell Style",isOptional:!0,reference:"AdaptableStyle"},{name:"editLookUpItems",kind:"unknown",description:"Dropdown values displayed when column is being edited; when not defined defaults to permittedValues",uiLabel:"Edit Look Up Items",isOptional:!0},{name:"filterPermittedValues",kind:"unknown",description:"Custom column values for 'IN' filter; when not defined defaults to permittedValues",uiLabel:"Filter Permitted Values",isOptional:!0},{name:"gridInfoSections",kind:"REFERENCE",description:"Which sections to show in the Grid Info Screen",uiLabel:"Grid Info Sections",isOptional:!0,defaultValue:"['GridSummary', 'AdaptableOptions', 'ColumnInfo']",reference:"unknown"},{name:"permittedValues",kind:"unknown",description:"List of values which are permitted (e.g. to show in filter)",uiLabel:"Permitted Values",isOptional:!0},{name:"readOnlyCellStyle",kind:"REFERENCE",description:"Style to set for non-editable cells",uiLabel:"Read Only Cell Style",isOptional:!0,reference:"AdaptableStyle"},{name:"showDocumentationLinks",kind:"boolean",description:"Provide links to AdapTable documentation (in Module popups and Expression Editor)",uiLabel:"Show Documentation Links",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"styleClassNames",kind:"unknown",description:"Optional list of CSS styles that can be used when creating Adaptable Styles in Adaptable (e.g. in Conditional Style, Format Column and other Modules)",uiLabel:"Style Class Names",isOptional:!0,gridInfo:"item"},{name:"useCustomMacLikeScrollbars",kind:"boolean",description:"Show Mac-like scrollbars; size is configurable via CSS variable `--ab-custom-scrollbar-size` (default: `10px`)",uiLabel:"Use Custom Mac Like Scrollbars",isOptional:!0,gridInfo:"item",defaultValue:"false"}]},UserMenuItem:{name:"UserMenuItem",kind:"Interface",description:"Menu Item which is added to Column Header or Context Menu, and can contain sub items",properties:[{name:"disabled",kind:"unknown",description:"Function to evaluate whether Menu Item is enabled",uiLabel:"Disabled",isOptional:!0},{name:"hidden",kind:"unknown",description:"Function to evaluate whether Menu Item is visible",uiLabel:"Hidden",isOptional:!0},{name:"icon",kind:"string",description:"Optional icon to display",uiLabel:"Icon",isOptional:!0},{name:"label",kind:"unknown",description:"Text that will appear in the Menu Item",uiLabel:"Label"},{name:"onClick",kind:"unknown",description:"Function to invoke when the Menu Item is clicked",uiLabel:"On Click",isOptional:!0},{name:"subMenuItems",kind:"unknown",description:"Array of Menu Items, enabling limitless levels of menus",uiLabel:"Sub Menu Items",isOptional:!0}]},ValidationResult:{name:"ValidationResult",kind:"Interface",description:"Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server",properties:[{name:"NewValue",kind:"unknown",description:"Cell Value to use for after Server Validation",uiLabel:"New Value",isOptional:!0},{name:"ValidationMessage",kind:"string",description:"Message to diplay with validation",uiLabel:"Validation Message",isOptional:!0}]},WeightedAverageColumn:{name:"WeightedAverageColumn",kind:"Interface",description:"An Column which contains a Weighted Average aggregation",properties:[{name:"columnId",kind:"string",description:"Column which will contain the aggregation",uiLabel:"Column Id"},{name:"weightedColumnId",kind:"string",description:"Column used to perform the aggreation calculation",uiLabel:"Weighted Column Id"}]}};var d1=class{constructor(t){this.adaptableApi=t;this.gridInfoOptions=new Map;this.adaptableApi=t,this.gridInfoOptions=this.buildGridInfoOptions()}getGridInfoOptions(){return this.gridInfoOptions}buildGridInfoOptions(){let t=new Map,n=mwe,r=n.AdaptableOptions,o=this.adaptableApi.internalApi.getAdaptableOptions(),a=Kt;if(!r)return t;let i=this.mapGridInfoContainerItems(r,o,a);return t.set("baseOptions",{containerLabel:"Base Options",items:i}),r.properties.filter(l=>l.gridInfo==="container").forEach(l=>{let u=l.reference,d=l.name,c=n[u],m=o[d],f=a[d];if(!c||!m||!f)return;let h=this.mapGridInfoContainerItems(c,m,f);t.set(l.name,{containerLabel:l.uiLabel,items:h})}),t}mapGridInfoContainerItems(t,n,r){var o;return(o=t.properties)==null?void 0:o.filter(a=>a.gridInfo==="item").map(a=>({name:a.name,value:n[a.name],defaultValue:r[a.name],description:a.description}))}destroy(){}};var p1=pN();zt.ModuleRegistry.registerModules(zt.AllCommunityModules);var fwe="/",w9=e=>{!e||(e.field&&!e.colId&&(e.colId=e.field),e.children?e.children.forEach(w9):e.colId||nt("A column is missing the colId - please check ",e,'Either pass a "field" property or a "colId" property.'))},ywe=zt.RowNode.prototype,lIt=ywe.dispatchLocalEvent,D9=zt.GridApi.prototype.setColumnDefs,Swe=(e,t,n)=>{e.forEach((r,o,a)=>{r.children?Swe(r.children,t,r):t(r,o,a,n)})},c1={},Ui=class{constructor(){this.colDefPropertyCache=new Map;this.gridOptionsPropertyCache=new Map;this.isCheckedColumnDataType=!1;this._on=(t,n)=>this.emitter?this.emitter.on(t,n):()=>{};this._onIncludeFired=(t,n)=>this.emitter?this.emitter.onIncludeFired(t,n):()=>{};this._emit=(t,n)=>{if(this.emitter)return this.emitter.emit(t,n)};this._emitSync=(t,n)=>{if(this.emitter)return this.emitter.emitSync(t,n)};this._adaptableReady=!1;this.isDestroyed=!1;this.agGridModules=[];this.isPluginLoaded=t=>{let n=this.adaptableOptions.plugins||[];for(let r=0,o=n.length;r<o;r++)if(n[r].pluginId===t)return!0;return!1};this.isAgGridReady=()=>{var n,r;let t=(r=(n=this.adaptableOptions.containerOptions)==null?void 0:n.agGridContainerWaitTimeout)!=null?r:6e4;return pM(()=>!!this.gridOptions.api,t)};this.debouncedSetColumnIntoStore=(0,ab.default)(()=>{!this.gridOptions.api||this.updateColumnsIntoStore()},Pb);this.debouncedSaveGridLayout=(0,ab.default)(()=>{!this.gridOptions.api||this.updateLayoutFromGrid()},Pb);this.debouncedSetSelectedCells=(0,ab.default)(()=>{!this.gridOptions.api||this.setSelectedCells()},250);this.debouncedSetSelectedRows=(0,ab.default)(()=>{!this.gridOptions.api||this.setSelectedRows()},Pb);this.debouncedFilterGrid=(0,ab.default)((t=()=>{})=>{!this.gridOptions.api||(this.applyGridFiltering(),t&&t())},Pb);this.mapColumnDefs=(t,n,r)=>(r=r||{removeEmpty:!1},t=t||this.getGroupAndColumnDefs(),Swe(t,(o,a,i,l)=>{let u=n(o,a,i),d=l?l.children:i;d[a]=u,a===i.length-1&&r.removeEmpty&&l&&(l.children=d.filter(c=>!!c))}),r.removeEmpty&&(t=t.filter(o=>!!o)),t);this.getGroupAndColumnDefs=()=>[].concat(this.currentColumnDefs||this.gridOptions.columnDefs);this.getColumnDefsWithCorrectVisibility=()=>{let t=this.api.layoutApi.getCurrentVisibleColumnIdsMap();return this.gridOptions.columnApi.getAllColumns().map(n=>{let r=n.getColDef(),o=n.getColId();return r.colId=o,r.hide=!t[o],r})};this.getPreviousColDefInfo=t=>t.__ab||{}}static init(t){return Ui.initInternal(t)}static async initInternal(t,n){let r={renderGrid:void 0,runtimeConfig:null},o=null;if(Array.isArray(t.plugins))for(let i of t.plugins)o=o&&o.then?o.then(()=>i.beforeInit(t)):i.beforeInit(t);let a=i=>i.init(t,n,!0).then(l=>(Array.isArray(t.plugins)&&t.plugins.forEach(u=>{u.afterInit(i)}),l));if(o&&o.then)return o.then(()=>{let i=new Ui;return a(i)});{let i=new Ui;return a(i)}}static collectInstance(t){t._id=t.adaptableOptions.adaptableId||yt(),c1[t._id]=t}static forEachAdaptable(t){Object.keys(c1).forEach(n=>{t(c1[n])})}static dismissInstance(t){delete c1[t._id]}async init(t,n,r){var o,a,i,l,u,d;return r||Qo(`
|
|
311
|
+
justify-content: center;`,this.eGui.appendChild(r),this.value=t.value}getGui(){return this.eGui}getValue(){return this.value}};s();var $L=class extends ft{constructor(t){super(wl,"Data Changes","track-changes","DataChangeHistoryPopup","Provides an overview of all previous changes, giving the possibility to undo specific changes",t),this.api.internalApi.getDataService().on("CellDataChanged",n=>{n.trigger!=="undo"&&n.trigger!=="aggChange"&&this.shouldLogDataChange(n)&&this.api.internalApi.dispatchReduxAction(sY(n))})}getPopupMaxWidth(){return 1e3}hasNamedQueryReferences(){return!1}shouldLogDataChange(t){return this.api.internalApi.getState().System.DataChangeHistory.currentMode!=="ACTIVE"?!1:this.api.internalApi.getAdaptableOptions().dataChangeHistoryOptions.showDataChange?this.api.internalApi.getAdaptableOptions().dataChangeHistoryOptions.showDataChange(t):!0}};s();s();var DTe=e=>({name:"Duration",values:[e.FlashDuration]});s();s();var jS=A(require("react")),TTe=A(J());var wTe=e=>{let r=e,{data:t}=r,n=qe(r,["data"]);return jS.default.createElement(TTe.Flex,g({flexDirection:"row"},n),jS.default.createElement(ii,{mr:1,flex:1,styleObject:e.data.UpChangeStyle},"Up ",e.data.UpChangeStyle?"":" - no style"),jS.default.createElement(ii,{mr:1,flex:1,styleObject:e.data.DownChangeStyle},"Down",e.data.DownChangeStyle?"":" - no style"),jS.default.createElement(ii,{flex:1,styleObject:e.data.NeutralChangeStyle},"Neutral ",e.data.NeutralChangeStyle?"":" - no style"))};var OTe=()=>({name:"Flash Styles",label:"Change Style",view:wTe});s();var hs=A(require("react")),ob=require("react"),JL=A(J());s();var hn=A(require("react")),FTe=require("react"),bp=A(J());var MTe=e=>hn.createElement(hn.Fragment,null,hn.createElement(bp.Text,{fontSize:2},e.FlashDuration==="always"?hn.createElement(hn.Fragment,null,"Flashing is never removed"):hn.createElement(hn.Fragment,null,"Flashing is removed after ",hn.createElement(Fn,null,e.FlashDuration)," ","milliseconds"))),NTe=e=>{var d,c,m,f,h,b,C;let{data:t}=ze();t=t!=null?t:e.flashingCell;let n=y=>{e.onChange(R(g({},t),{FlashDuration:y}))},r=(d=t.FlashDuration)!=null?d:500,o=hn.useRef(typeof r=="number"?r:500),a=(0,FTe.useRef)(null),i=Ga(r,r);hn.useEffect(()=>{var y;i==="always"&&r!=i&&((y=a.current)==null||y.focus())},[r,i]);let l=y=>{n(y==="number"?o.current:"always")},u=(y,v)=>{var I;let S=(I=t.FlashTarget)!=null?I:[];typeof S=="string"&&(S=[S]),Array.isArray(S)&&(v?S=[...S,y]:S=S.filter(P=>y!=P)),e.onChange(R(g({},t),{FlashTarget:S}))};return hn.createElement(bp.Flex,{height:"100%",flexDirection:"column","data-name":"plus-minus-column-settings"},hn.createElement(j,{autoFocus:!1,padding:2},hn.createElement(j.Tab,null,"Flashing Cell Settings"),hn.createElement(j.Content,null,hn.createElement(Je,null,hn.createElement(de,{label:"Duration Type"},hn.createElement(We,{mr:3,checked:r=="always",tabIndex:-1,onChange:()=>l("always")},"Always"),hn.createElement(We,{checked:r!=="always",tabIndex:-1,onChange:()=>l("number")},"Limited (ms)")),hn.createElement(de,{label:""},r!=="always"&&hn.createElement(bp.Flex,{flexDirection:"row",alignItems:"baseline"},hn.createElement(bp.Text,{fontSize:2,mr:2},"After"),hn.createElement(Ke,{readOnly:e.readOnly,type:"text",name:"value",ref:a,mt:2,mr:1,value:r,onChange:y=>{let v=y.target.value;n(isNaN(Number(v))?500:Number(v))}}),hn.createElement(bp.Text,{fontSize:2},"milliseconds")),r==="always"&&hn.createElement(bp.Text,{height:43,fontSize:3},"Persists the flashing style indeterminately - can be removed manually")),hn.createElement(de,{label:"Flash Target"},hn.createElement(pe,{onChange:y=>u("cell",y),mr:3,checked:(t==null?void 0:t.FlashTarget)==="cell"||((m=(c=t==null?void 0:t.FlashTarget)==null?void 0:c.includes)==null?void 0:m.call(c,"cell")),tabIndex:-1},"Cell"),hn.createElement(pe,{mr:3,onChange:y=>u("row",y),checked:(t==null?void 0:t.FlashTarget)==="row"||((h=(f=t==null?void 0:t.FlashTarget)==null?void 0:f.includes)==null?void 0:h.call(f,"row")),tabIndex:-1},"Row"),hn.createElement(pe,{onChange:y=>u("aggFuncCell",y),checked:(t==null?void 0:t.FlashTarget)==="aggFuncCell"||((C=(b=t==null?void 0:t.FlashTarget)==null?void 0:b.includes)==null?void 0:C.call(b,"aggFuncCell")),tabIndex:-1},"Aggregated Function Cell"))))))};s();var Ir=A(require("react"));var _Te=e=>{var r;let{api:{flashingCellApi:t}}=ze(),n=(r=e.FlashTarget)!=null?r:t.getFlashingCellFlashTarget(e);return Ir.createElement(Gd,{data:e,renderPredicate:o=>Ir.createElement(Ir.Fragment,null,"Flash ",Ir.createElement(Fn,null,n)," - value condition"," ",Ir.createElement(Fn,null,o)),renderQueryExpression:o=>Ir.createElement(Ir.Fragment,null,"Flash ",Ir.createElement(Fn,null,n)," when"," ",Ir.createElement("b",null,Ir.createElement(Fn,null,o)))})},LTe=e=>{let{data:t,api:n,moduleInfo:r}=ze(),o=n.flashingCellApi.getFlashingCellPredicateDefsForScope(t.Scope);return Ir.createElement(Hd,{module:r.ModuleName,defaultPredicateId:"Any",data:t,predicateDefs:o,onChange:e.onChange,showAggregation:!1,showObservable:!1,showBoolean:!0,showPredicate:!0,descriptions:{selectPredicate:"Select an Flashing Cell Rule - to be applied when data changes",useBooleanQuery:Ir.createElement(Ir.Fragment,null,"Use an BooleanQuery if ",Ir.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression"),useObservableQuery:Ir.createElement(Ir.Fragment,null,"Use an ObservableQuery if ",Ir.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression"),useAggregationQuery:Ir.createElement(Ir.Fragment,null,"Use an AggregatedBooleanQuery if ",Ir.createElement("i",null,"Scope")," is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")}})};s();var Wr=A(require("react")),XL=A(J());var S9=Wr.createElement(XL.Text,{fontSize:2,style:{display:"inline-block"}},"Change style"),kTe=e=>{var r,o,a;let{data:t,api:n}=ze();return t=t!=null?t:e.flashingAlert,Wr.createElement(Wr.Fragment,null,Wr.createElement(j,{defaultValue:"up"},Wr.createElement(j.Tab,{value:"up"},"Up ",S9),Wr.createElement(j.Content,{value:"up"},Wr.createElement(ya,{headless:!0,api:n,Style:(r=t.UpChangeStyle)!=null?r:{},UpdateStyle:i=>e.onStyleChange("UpChangeStyle",i)})),Wr.createElement(j.Tab,{value:"down"},"Down ",S9),Wr.createElement(j.Content,{value:"down"},Wr.createElement(ya,{headless:!0,api:n,Style:(o=t.DownChangeStyle)!=null?o:{},UpdateStyle:i=>e.onStyleChange("DownChangeStyle",i)})),Wr.createElement(j.Tab,{value:"neutral"},"Neutral ",S9),Wr.createElement(j.Content,{value:"neutral"},Wr.createElement(ya,{headless:!0,api:n,Style:(a=t.NeutralChangeStyle)!=null?a:{},UpdateStyle:i=>e.onStyleChange("NeutralChangeStyle",i)}))))},_Et=e=>{let r=e,{data:t}=r,n=qe(r,["data"]);return Wr.createElement(XL.Box,g({},n),Wr.createElement(ii,{styleObject:e.data.UpChangeStyle},"Up change style ",e.data.UpChangeStyle?"":" - no style"),Wr.createElement(ii,{mt:2,styleObject:e.data.DownChangeStyle},"Down change style ",e.data.DownChangeStyle?"":" - no style"),Wr.createElement(ii,{mt:2,styleObject:e.data.NeutralChangeStyle},"Neutral change style ",e.data.NeutralChangeStyle?"":" - no style"))},BTe=e=>Wr.createElement(_Et,{data:e});s();var v9=A(require("react")),VTe=A(J());var GTe=e=>{let{data:t,api:n}=ze();return v9.createElement(VTe.Flex,{flexDirection:"column",style:{height:"100%"},padding:2},v9.createElement(xa,{descriptions:{rowScope:"Changes anywhere in the row will trigger an Flashing Cell",columnScope:"Changes in selected columns will trigger an Flashing Cell"},scope:t.Scope,updateScope:r=>{let o=R(g({},t),{Scope:r});o.Rule.Predicate&&(o.Rule={Predicate:{PredicateId:"Any"}}),e.onChange(o)}}))};s();var HTe=(e,t,n)=>{let r=!0;if(!e.Rule.Predicate&&!e.Rule.BooleanExpression)return"No Rule defined for Flashing Cell";if(r&&e.Rule.Predicate&&(r=t.predicateApi.isValidPredicate(e.Rule.Predicate),!r))return"Predicate is not valid";if(r&&e.Rule.BooleanExpression&&(r=t.queryLanguageApi.isValidBooleanExpression(e.Rule.BooleanExpression,wf),!r))return"The Expression is not a valid Boolean Expression";if(n.namedQuery!=!1){let o=t.queryApi.isValidNamedQueryName(n.namedQuery);if(!o.valid)return o.message}return!0};var UTe=e=>{let{api:t}=$e(),[n,r]=(0,ob.useState)(()=>{let d=e.data?Bn(e.data):it.CreateEmptyFlashingCellDefinition();return d=t.flashingCellApi.mergeFlashingCellDefinitionWithDefaults(d),!d.Rule.BooleanExpression&&!d.Rule.Predicate&&(d.Rule.BooleanExpression=""),d}),o=d=>c=>{r(m=>(m=R(g({},m),{[d]:c}),m))},a={DownChangeStyle:(0,ob.useCallback)(o("DownChangeStyle"),[]),UpChangeStyle:(0,ob.useCallback)(o("UpChangeStyle"),[]),NeutralChangeStyle:(0,ob.useCallback)(o("NeutralChangeStyle"),[])},i=hs.createElement(kTe,{onStyleChange:(d,c)=>{a[d](c)}}),l=Rt(),u=()=>{e.data?l(Gf(n)):l(jp(n)),e.onFinishWizard(n)};return hs.createElement($n,{defaultCurrentSectionName:e.defaultCurrentSectionName,moduleInfo:e.moduleInfo,data:n,onHide:e.onCloseWizard,onFinish:u,sections:[{details:"Specify which data changes should trigger Cell Flashing",isValid:Ni,render:()=>hs.createElement(GTe,{onChange:r}),renderSummary:fL,title:"Scope"},{details:"Build the Rules for when Cells should Flash",isValid:HTe,render:()=>hs.createElement(LTe,{onChange:r}),renderSummary:_Te,title:"Rule"},{details:"Select the Duration of the Flash",render:()=>hs.createElement(JL.Box,{padding:2},hs.createElement(NTe,{onChange:r})),renderSummary:MTe,title:"Settings"},{details:"Choose the Flashing Styles",render:()=>hs.createElement(JL.Box,{padding:2},i),renderSummary:BTe,title:"Flash Styles"},"-",{details:"Review the Flashing Cell Rule",render:()=>hs.createElement(JL.Box,{padding:2},hs.createElement(Xn,null)),title:"Summary"}]})};s();var WTe=e=>({name:"Target",values:Array.isArray(e.FlashTarget)?e.FlashTarget:[e.FlashTarget]});var ZL=class extends ft{constructor(t){super(wf,"Flashing Cell","flashing-cell","FlashingAlert","Flash cells when they change",t),this.api.internalApi.getDataService().on("CellDataChanged",n=>{if(n.trigger!=="undo"){if(this.api.internalApi.getAdaptableOptions().alertOptions.dataChangeDetectionPolicy==="formattedValue"){let{oldValue:r,newValue:o}=n,a=n.column.columnId,i=this.api.gridApi.getFormattedValueFromRawValue(a,r),l=this.api.gridApi.getFormattedValueFromRawValue(a,o);if(i===l)return}this.handleDataSourceChanged(n)}})}getModuleAdaptableObjects(){return this.api.flashingCellApi.getFlashingCellDefinitions()}getExplicitlyReferencedColumnIds(t){let n=this.api.queryLanguageApi.getAdaptableQueryExpression(t.Rule);return n?this.api.queryLanguageApi.getColumnsFromExpression(n):this.api.scopeApi.scopeHasColumns(t.Scope)?this.api.scopeApi.getColumnsForScope(t.Scope).map(r=>r.columnId):[]}getReferencedNamedQueryNames(t){let n=this.api.queryLanguageApi.getAdaptableQueryExpression(t.Rule);return n?this.api.queryApi.getReferencedNamedQueryNames(n):[]}addColumnMenuItems(t){if(t&&this.isModuleEditable()&&!this.api.columnApi.isCalculatedColumn(t.columnId)){let r=this.api.flashingCellApi.getFlashingCellDefinitions().find(o=>this.api.scopeApi.isColumnInScope(t,o.Scope));return r?[this.createColumnMenuItemReduxAction("Remove Flashing Cell",this.moduleInfo.Glyph,TB(r))]:[this.createColumnMenuItemReduxAction("Add Flashing Cell",this.moduleInfo.Glyph,jp({Scope:{ColumnIds:[t.columnId]},Rule:{Predicate:{PredicateId:"Any"}}}))]}}addContextMenuItems(t){let n=[];if(!t.isRowGroupColumn&&this.isModuleAvailable()&&t.adaptableColumn&&t.rowNode){let r=this.api.internalApi.getAdaptableFlashingCellFor(t.primaryKeyValue),o=this.api.internalApi.getAdaptableFlashingCellFor(t.primaryKeyValue,t.adaptableColumn.columnId);r&&r.flashTarget==="row"?n.push(this.createColumnMenuItemReduxAction("Clear Flashing Cell for Row",this.moduleInfo.Glyph,Tb(r))):o&&o.flashTarget==="cell"&&n.push(this.createColumnMenuItemReduxAction("Clear Flashing Cell for Cell",this.moduleInfo.Glyph,Tb(o)))}return n}handleDataSourceChanged(t){let n=this.getFlashingCellDefinitionsForDataChange(t);Ee.IsNotNullOrEmpty(n)&&this.showFlashingCellsForDefinitions(t,n)}showFlashingCellsForDefinitions(t,n=[]){let r=this.api.columnApi.getColumns().map(c=>c.columnId),o=t.column.dataType,a=o==="Number",i=a||o==="Date",l=!1,u=!1,d="neutral";if(i){let c=a?Number(t.newValue):t.newValue,m=a?Number(t.oldValue):t.oldValue;l=c>m,u=c<m,d=l?"up":u?"down":"neutral"}n.forEach(c=>{var b;let m=this.api.flashingCellApi.getFlashingCellFlashTarget(c),f={[t.column.columnId]:!0};(m==="row"||((b=m==null?void 0:m.includes)==null?void 0:b.call(m,"row")))&&r.forEach(C=>{f[C]=!0});let h=t.primaryKeyValue;this.api.flashingCellApi.showFlashingCell({rowPrimaryKey:h,flashingCellDefinition:c,cellDataChangedInfo:t,direction:d,flashTarget:m,flashColumnIds:f})})}isFlashingTargetOnlyAggChange(t){return t.FlashTarget==="aggFuncCell"?!0:Array.isArray(t.FlashTarget)&&t.FlashTarget.length===1&&t.FlashTarget.includes("aggFuncCell")}getFlashingCellDefinitionsForDataChange(t){let n=this.api.flashingCellApi.getActiveFlashingCellDefinitions(),r=!1,o=n.filter(i=>this.api.scopeApi.isColumnInScope(t.column,i.Scope)).filter(i=>!zp(i.Rule)),a=[];return Ee.IsNotNullOrEmpty(o)&&o.forEach(i=>{if(!(t.trigger!=="aggChange"&&this.isFlashingTargetOnlyAggChange(i)))if(i.Rule.BooleanExpression){let l=i.Rule.BooleanExpression,u=t.rowNode;u||(u=this.api.gridApi.getRowNodeForPrimaryKey(t.primaryKeyValue)),this.api.queryLanguageApi.isValidBooleanExpression(l,this.moduleInfo.ModuleName,`Invalid Alert boolean expression '${l}'`)&&this.api.internalApi.getQueryLanguageService().evaluateBooleanExpression(l,this.moduleInfo.ModuleName,u)&&a.push(i)}else this.isAlertPredicateTriggered(i,t,r)&&a.push(i)}),a}isAlertPredicateTriggered(t,n,r=!1){return this.api.predicateApi.handlePredicate(t.Rule.Predicate,{value:n.newValue,oldValue:n.oldValue,displayValue:null,node:n.rowNode,column:n.column},r)}getTeamSharingAction(){return{ModuleEntities:this.api.flashingCellApi.getFlashingCellDefinitions(),AddAction:jp,EditAction:Gf}}toView(t){return{items:[R(g({},Gi(t.Scope,this.api)),{label:"Trigger"}),R(g({},cp(t.Rule,this.api)),{label:"Rule",name:"Rule"}),DTe(t),WTe(t),OTe()],abObject:t}}toViewAll(){return this.api.flashingCellApi.getFlashingCellDefinitions().map(t=>this.toView(t))}getViewProperties(){return{getSuspendAction:mE,getUnSuspendAction:fE,getDeleteAction:TB,getEditWizard:()=>UTe}}};s();var e1=class extends ft{constructor(t){let n=t.internalApi.getAdaptableOptions().settingsPanelOptions.title;super(NR,n,"settings",null,"Manage all Adaptable Settings",t)}addColumnMenuItems(t){return[this.createColumnMenuItemReduxAction("Open "+this.moduleInfo.FriendlyName,this.moduleInfo.Glyph,Rn())]}addContextMenuItems(t){return[this.createColumnMenuItemReduxAction("Open "+this.moduleInfo.FriendlyName,this.moduleInfo.Glyph,Rn())]}addModuleMenuItem(t){if(this.isModuleAvailable())return this.createColumnMenuItemReduxAction("Open "+this.moduleInfo.FriendlyName,this.moduleInfo.Glyph,Rn())}};s();var t1=class extends ft{constructor(t){super(MR,"Charts","chart","ChartPopup","Create Charts in order to see Adaptable Data visually",t)}isModuleAvailable(){return this.api.chartingApi.isChartingEnabled()&&super.isModuleAvailable()}};s();var qTe=A(Eb());var zTe=(e,t)=>{var n;if(!!((n=e==null?void 0:e.ColumnStyle)!=null&&n.PercentBarStyle))return class{init(o){if(!e.IncludeGroupedRows&&t.gridApi.isGroupRowNode(o.node))return;let a=t.formatColumnApi.getNumericStyleMinValue(e.ColumnStyle,o.node,o.value),i=t.formatColumnApi.getNumericStyleMaxValue(e.ColumnStyle,o.node,o.value),l=o.value;sn.objectNotExists(l)&&(l=0);let u=(0,qTe.default)(l,a,i),d=(u-a)/(i-a)*100,c,m=e.ColumnStyle.PercentBarStyle;if(m.ColumnComparison)c=m.ColumnComparison.Color;else{let f=m.CellRanges.find(h=>h.Min<=u&&h.Max>=u);f&&(c=f.Color)}if(c){this.eGui=document.createElement("div"),this.eGui.className="ab-PercentBar__wrapper",this.eGui.style.height=m.CellText?"80%":"100%",this.eGui.style.display="flex",this.eGui.style.flexDirection="column",this.eGui.style.justifyContent="center";let f=document.createElement("div");f.className="ab-PercentBar__bar",f.style.background=m.BackColor,f.style.flex="1";let h=document.createElement("div");if(h.className="ab-PercentBar__barInside",h.style.background=c,h.style.height="100%",h.style.width=`${d.toFixed(0)}%`,f.append(h),this.eGui.append(f),m.CellText){let b=document.createElement("div");if(b.className="ab-PercentBar__text",b.style.lineHeight="1.2",m.CellText.includes("CellValue")){if(e.DisplayFormat){let C=e.DisplayFormat.Options;C&&(l=Yr.NumberFormatter(o.value,C))}b.innerText=l}m.CellText.includes("PercentageValue")&&(b.innerText+=` (${d.toFixed(0)}%)`),this.eGui.append(b)}}}getGui(){return this.eGui}refresh(o){return!1}}};var YS=pN(),n1=class{constructor(t,n){this.adaptable=t;this.gridOptions=n;this.initialAgGridColDefs={};this.adaptable=t,this.gridOptions=n}getAgGridLightThemeName(){return"ag-theme-balham"}getAgGridDarkThemeName(){return"ag-theme-balham-dark"}setUpModules(){let t=new Map,n=this.adaptable.api;return t.set(Tl,new EL(n)),t.set(wr,new yL(n)),t.set(wf,new ZL(n)),t.set(Yi,new SL(n)),t.set(Or,new vL(n)),t.set(Dl,new AL(n)),t.set(Vn,new xL(n)),t.set(bo,new RL(n)),t.set(wl,new $L(n)),t.set(Du,new IL(n)),t.set(kr,new PL(n)),t.set(Co,new DL(n)),t.set(yo,new TL(n)),t.set(ao,new wL(n)),t.set(Ki,new ML(n)),t.set(yr,new NL(n)),t.set(Gn,new LL(n)),t.set(fi,new kL(n)),t.set(Ol,new VL(n)),t.set(hi,new WL(n)),t.set(Fl,new UL(n)),t.set(Ff,new qL(n)),t.set(wu,new QL(n)),t.set(Ml,new YL(n)),t.set(Tu,new zL(n)),t.set(Ou,new jL(n)),t.set(Of,new OL(n)),t.set(NR,new e1(n)),t.set(MR,new t1(n)),t}TrySetUpNodeIds(t){if(we.IsNullOrEmpty(this.adaptable.adaptableOptions.primaryKey))return!1;if(Mt.objectExists(this.gridOptions.getRowNodeId)||Mt.objectExists(this.gridOptions.getRowId))return!0;let n=this.adaptable.adaptableOptions.primaryKey;return t?this.gridOptions.getRowId=r=>(Mt.objectNotExists(r.data[n])&&(r.data[n]=yt()),r.data[n]):this.gridOptions.getRowId=r=>r.data[n],!0}createCheckboxRendererComp(t,n){return PTe(t,n,this.adaptable.api)}createPercentBarRendererComp(t){return zTe(t,this.adaptable.api)}getCleanValue(t){if(!(t==null||t=="null"||t==null||t=="undefined"))return String(t)||""}getRenderedValue(t,n){let r=t.cellRenderer;return typeof r=="string"?this.getCleanValue(n):r({value:n})||""}createAdaptableColumnFromAgGridColumn(t,n){let r=t.getColId(),o=t.getColDef(),a=this.gridOptions.columnApi.getDisplayNameForColumn(t,"header");this.initialAgGridColDefs[r]||(this.initialAgGridColDefs[r]=g({},t.getUserProvidedColDef()));let i=r,l=this.adaptable.adaptableOptions.primaryKey,u=n==null?void 0:n[i],d={Uuid:yt(),columnId:i,friendlyName:a,isPrimaryKey:i===l,dataType:this.getColumnDataType(t,!1),visible:t.isVisible(),readOnly:this.isColumnReadonly(o),columnGroup:u,sortable:this.isColumnSortable(o),filterable:this.isColumnFilterable(o),groupable:this.isColumnGroupable(o),pivotable:this.isColumnPivotable(o),aggregatable:this.isColumnAggregetable(o),availableAggregationFunctions:null,aggregationFunction:null,moveable:this.isColumnMoveable(o),hideable:this.isColumnHideable(o),queryable:this.isColumnQueryable(o,i),isGrouped:this.isColumnGrouped(o),isFixed:this.isColumnFixed(o),pinned:this.getColumnPinnedPosition(o),isExcludedFromQuickSearch:!1,isSparkline:this.isColumnSparkline(o)};d.aggregatable&&(d.availableAggregationFunctions=this.getColumnAggregationFunctions(o),typeof o.aggFunc=="string"&&(d.aggregationFunction=o.aggFunc));let c=this.adaptable.adaptableOptions.searchOptions.excludeColumnFromQuickSearch;return c&&c(d)&&(d.isExcludedFromQuickSearch=!0),d}createAdaptableSideBarDefs(t,n){let r=[];if(t){let a={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"};r.push(a)}if(n){let a={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"};r.push(a)}return r.push(this.createAdaptableToolPanel()),this.orderToolPanels(r),{toolPanels:r,defaultToolPanel:""}}createAdaptableToolPanel(){return{id:"adaptable",toolPanel:"AdaptableToolPanel",labelDefault:this.adaptable.adaptableOptions.toolPanelOptions.adaptableToolPanelTitle,labelKey:"adaptable",iconKey:this.adaptable.adaptableOptions.toolPanelOptions.iconKey,width:this.adaptable.adaptableOptions.toolPanelOptions.width,minWidth:this.adaptable.adaptableOptions.toolPanelOptions.minWidth,maxWidth:this.adaptable.adaptableOptions.toolPanelOptions.maxWidth}}orderToolPanels(t){let n=this.adaptable.adaptableOptions.toolPanelOptions.toolPanelOrder;t.sort(function(r,o){let a=typeof r=="string"?r:r.id,i=typeof o=="string"?o:o.id;return n.indexOf(a)-n.indexOf(i)})}reselectSelectedCells(){let t=this.gridOptions.api.getCellRanges();if(Ee.CorrectLength(t,1)){let n=t[0],r={rowStartIndex:n.startRow.rowIndex,rowEndIndex:n.endRow.rowIndex,columns:n.columns};this.gridOptions.api.clearRangeSelection(),this.gridOptions.api.addCellRange(r)}}fireSelectionChangedEvent(){let t={adaptableApi:this.adaptable.api,selectedCellInfo:this.adaptable.api.gridApi.getGridState().SelectedCellInfo,selectedRowInfo:this.adaptable.api.gridApi.getGridState().SelectedRowInfo};this.adaptable.api.eventApi.emit("SelectionChanged",t)}isColumnReadonly(t){return t&&typeof t.editable=="function"?!1:!t.editable}isColumnSortable(t){return t&&t.sortable!=null?t.sortable:!1}isColumnGroupable(t){return t&&t.enableRowGroup!=null?t.enableRowGroup:!1}isColumnPivotable(t){return t&&t.enablePivot!=null?t.enablePivot:!1}isColumnAggregetable(t){return t&&t.enableValue!=null?t.enableValue:!1}getColumnAggregationFunctions(t){return t.allowedAggFuncs||["sum","min","max","count","avg","first","last"]}isColumnMoveable(t){return!(!t||t.suppressMovable!=null&&t.suppressMovable==!0||this.isColumnFixed(t))}isColumnQueryable(t,n){if(!t)return!1;let r=this.adaptable.api.queryLanguageApi.getQueryableColumnIds();return Ee.IsNull(r)?!0:Ee.IsEmpty(r)?!1:r.find(o=>o==n)!=null}isColumnHideable(t){return!(!t||t.lockVisible!=null&&t.lockVisible==!0)}isColumnFilterable(t){return t!=null&&t.filter!=null&&t.filter!=!1}getColumnPinnedPosition(t){return t.pinned?t.pinned==="left"||t.pinned===!0?"left":"right":!1}isColumnFixed(t){return t?t.lockPosition!=null&&t.lockPosition==!0||t.lockPinned!=null&&t.lockPinned==!0:!1}isColumnGrouped(t){return t?t.rowGroup!=null&&t.rowGroup==!0||t.rowGroupIndex!=null:!1}isColumnSparkline(t){return(t==null?void 0:t.cellRenderer)==="agSparklineCellRenderer"}getColumnDataType(t,n=!0){if(!t)return nt("column is undefined returning String for Type"),"String";let r="Unknown",o=this.adaptable.api.columnApi.getColumnFromId(t.getId(),n);if(o&&o.dataType!="Unknown")return o.dataType;let a=t.getColDef().type;if(a&&(Array.isArray(a)?a.forEach(d=>{r=="Unknown"&&(r=this.getabColDefValue(d))}):r=this.getabColDefValue(a),r!="Unknown"))return r;let i=this.gridOptions.api.getModel();if(i==null)return nt(`No model so returning type "Unknown" for Column: "${t.getColId()}"`),"Unknown";let l=i.getRow(0);if(l==null)return nt(`No data in grid so returning type "Unknown" for Column: "${t.getColId()}"`),"Unknown";if(l.group){let d=l.childrenAfterGroup;if(Ee.IsNullOrEmpty(d))return nt(`No data in grid so returning type "Unknown" for Column: "${t.getColId()}"`),"Unknown";l=d[0]}let u=this.gridOptions.api.getValue(t,l);if(u instanceof Date)r="Date";else if(Array.isArray(u)&&u.length&&typeof u[0]=="number")r="Unknown";else switch(typeof u){case"string":r="String";break;case"number":r="Number";break;case"boolean":r="Boolean";break;case"object":r="Object";break;default:break}return nt(`No defined type for column '${t.getColId()}'. Defaulting to type of first value: ${r}`),r}getabColDefValue(t){if(t=="numericColumn")return"Number";if(t.startsWith("abColDef"))switch(t){case"abColDefNumber":return"Number";case"abColDefString":return"String";case"abColDefBoolean":return"Boolean";case"abColDefDate":return"Date";case"abColDefObject":return"Object";default:return"Unknown"}return"Unknown"}getAgGridDataType(t){if(!t)return"abColDefString";switch(t){case"Boolean":return"abColDefBoolean";case"Date":return"abColDefDate";case"Number":return"abColDefNumber";case"Object":return"abColDefObject";case"String":return"abColDefString";case"All":case"Unknown":return"abColDefCustom"}}checkShouldClearExistingFiltersOrSearches(){this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp&&Ee.IsNotNullOrEmpty(this.adaptable.api.filterApi.getAllColumnFilter())&&(nt('Clearing existing Column Filters as "clearFiltersOnStartUp" is true'),this.adaptable.api.filterApi.clearAllColumnFilter()),this.adaptable.adaptableOptions.searchOptions.clearSearchesOnStartUp&&(we.IsNotNullOrEmpty(this.adaptable.api.quickSearchApi.getQuickSearchState().QuickSearchText)||we.IsNotNullOrEmpty(this.adaptable.api.queryApi.getCurrentQuery())||Ee.IsNotNullOrEmpty(this.adaptable.api.dataSourceApi.getAllDataSource()))&&(nt('Clearing existing Searches as "clearSearchesOnStartUp" is true'),this.adaptable.api.quickSearchApi.clearQuickSearch(),this.adaptable.api.queryApi.clearCurrentQuery(),this.adaptable.api.dataSourceApi.clearDataSource())}runAdaptableGroupComparerFunction(){let t=this.adaptable;return function(r,o){let a=t.getFirstGroupedColumn();if(a){let i=t.getActiveColumnComparator(a.columnId,t.api.customSortApi.getCustomSortByColumn(a.columnId),t.api.internalApi.getCustomSortComparer(a));if(i)return i(r.key,o.key);if(t.api.layoutApi.getCurrentLayoutColumnSort(a.columnId)==="Desc")return r.key>o.key?-1:1}return r.key==o.key?0:r.key<o.key?-1:1}}getCurrentIPPStyle(){let t=document.querySelectorAll(".ag-header-cell").item(0),n=document.querySelector(".ag-header"),r=n?window.getComputedStyle(n,null):null,o=document.querySelector(".ag-row-even"),a=o?window.getComputedStyle(o,null):null,i=document.querySelector(".ag-row-odd"),l=i?window.getComputedStyle(i,null):{backgroundColor:"#fff"};return{Header:{headerColor:YS(r.color).toHexString(),headerBackColor:YS(r.backgroundColor).toHexString(),headerFontFamily:r.fontFamily,headerFontSize:r.fontSize,headerFontStyle:r.fontStyle,headerFontWeight:r.fontWeight,height:Number(r.height.replace("px","")),Columns:this.adaptable.api.columnApi.getColumns().map(u=>{let d=document.querySelector(`.ag-header-cell[col-id='${u.columnId}']`),c=window.getComputedStyle(d||t,null);return{columnFriendlyName:u.friendlyName,width:Number(c.width.replace("px","")),textAlign:c.textAlign}})},Row:{color:YS(a.color).toHexString(),backColor:YS(a.backgroundColor).toHexString(),altBackColor:YS(l.backgroundColor).toHexString(),fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight,height:Number(a.height.replace("px","")),Columns:this.adaptable.api.columnApi.getColumns().map(u=>{let d=document.querySelector(`.ag-cell[col-id='${u.columnId}']`),c=window.getComputedStyle(d||o,null);return{columnFriendlyName:u.friendlyName,width:Number(c.width.replace("px","")),textAlign:c.textAlign}})}}}};s();var A9=A(ewe()),r1=class{constructor(t,n){this.adaptable=t;this.gridOptions=n;this.adaptable=t,this.gridOptions=n}buildColumnMenu(t,n){let r=t.column.getColId(),o=[],a=[],i=[];o.push(...this.createAgGridColumnMenuItems(n,t));let l=this.adaptable.adaptableOptions.menuOptions.showAdaptableColumnMenu,u=l==null||l!==!1;u&&o.push("separator");let d=this.adaptable.api.columnApi.getColumnFromId(r),c=this.createColumnMenuContextObject(d,t.column);if(c.isRowGroupColumn){let f=this.createGroupedColumnMenuItem();f&&a.push(f)}u&&a.push(...this.createAdaptableColumnMenuItems(d,c)),i.push(...this.createUserColumnMenuItems(c));let m={aggrid:o,adaptable:a,user:i};return(0,A9.default)(this.adaptable.adaptableOptions.menuOptions.columnMenuOrder.map(f=>m[f]))}buildContextMenu(t,n){let r=[],o=[],a=[],i=this.adaptable.adaptableOptions.menuOptions.showAdaptableContextMenu,l=i==null||i!==!1,u=this.adaptable.adaptableOptions.menuOptions.contextMenuItems,d=Ee.IsNotNullOrEmpty(u),c=this.createAgGridContextMenuItems(n,t);c&&(r.push(...c),(l||d)&&r.push("separator"));let m=[],f=t.column;if(f){let b=this.adaptable.api.columnApi.getColumnFromId(f.getColId()),C=this.createContextMenuContextObject(t,b),y=this.createAdaptableContextMenuItems(C);Ee.IsNotNullOrEmpty(y)&&m.push(...y),Ee.IsNotNullOrEmpty(m)&&l&&o.push(...this.createAgGridAdaptableContextMenuItems(m,C)),d&&a.push(...this.createAgGridUserContextMenuItems(u,C))}let h={aggrid:r,adaptable:o,user:a};return(0,A9.default)(this.adaptable.adaptableOptions.menuOptions.contextMenuOrder.map(b=>h[b]))}createRemoveGroupsMenuItem(t){return{name:t.label,action:t.onClick?t.onClick:()=>this.adaptable.api.internalApi.dispatchReduxAction(t.reduxAction),icon:ZH(t.icon,{style:{fill:"var(--ab-color-text-on-primary)"}})}}createAgGridMenuDefFromAdaptableMenu(t){let n=Ee.IsNotNullOrEmpty(t.subItems)?t.subItems.map(r=>this.createAgGridMenuDefFromAdaptableMenu(r)):void 0;return{name:t.label,action:t.onClick?t.onClick:t.reduxAction?()=>this.adaptable.api.internalApi.dispatchReduxAction(t.reduxAction):void 0,icon:ZH(t.icon,{style:{fill:"var(--ab-color-text-on-primary)"}}),subMenu:n}}createAgGridColumnMenuDefFromUserMenu(t,n){let r=t.onClick,o=t.disabled&&t.disabled(n);return{name:this.getLabelFromUserColumnMenuItem(t,n),action:()=>r?r(n):null,icon:t.icon,disabled:o,subMenu:Ee.IsNullOrEmpty(t.subMenuItems)?void 0:t.subMenuItems.map(a=>this.createAgGridColumnMenuDefFromUserMenu(a,n))}}createAgGridContextMenuDefFromUserMenu(t,n){let r=t.onClick,o=t.disabled&&t.disabled(n);return{name:this.getLabelFromUserContextMenuItem(t,n),action:()=>r?r(n):null,icon:t.icon,disabled:o,subMenu:Ee.IsNullOrEmpty(t.subMenuItems)?void 0:t.subMenuItems.map(a=>this.createAgGridContextMenuDefFromUserMenu(a,n))}}createAdaptableColumnMenuItemFromUserMenu(t,n){let r=t.onClick;return{label:this.getLabelFromUserColumnMenuItem(t,n),reduxAction:null,onClick:()=>r?r(n):null,isVisible:!0,icon:t.icon}}createAgGridColumnMenuItems(t,n){return t?t(n):n.defaultItems.slice(0)}createGroupedColumnMenuItem(){if(this.adaptable.adaptableOptions.menuOptions.showUngroupColumnMenuItem){let n={label:this.gridOptions.columnApi.getRowGroupColumns().length==1?"Ungroup Column":"Ungroup All",onClick:()=>this.gridOptions.columnApi.setRowGroupColumns([]),isVisible:!0,icon:"undo"};return this.createAgGridMenuDefFromAdaptableMenu(n)}}createAdaptableColumnMenuItems(t,n){let r=[];return this.getAdaptableMenuItemsColumnHeader(t,n).forEach(a=>{let i=this.createAgGridMenuDefFromAdaptableMenu(a);r.push(i)}),r}createUserColumnMenuItems(t){let n=[],r=this.getUserMenuItemsColumnHeader(t);return Ee.IsNotNullOrEmpty(r)&&r.forEach(o=>{let a=this.createAgGridColumnMenuDefFromUserMenu(o,t);n.push(a)}),n}createColumnMenuContextObject(t,n){return{adaptableColumn:t,agGridColumn:n,adaptableApi:this.adaptable.api,isRowGroupColumn:this.adaptable.api.columnApi.isRowGroupColumn(n.getColId())}}createContextMenuContextObject(t,n){let r=!1,o=!1,a;n&&(a=this.adaptable.getGridCellFromRowNode(t.node,n.columnId));let i=this.adaptable.api.gridApi.getSelectedCellInfo();a&&i&&(o=i.gridCells.find(d=>d!=null&&d.column==a.column&&d.primaryKeyValue==a.primaryKeyValue)!=null,o&&(r=Ee.CorrectLength(i.columns,1)));let l=this.adaptable.setSelectedRows();return{isSelectedCell:o,gridCell:a,adaptableColumn:n,agGridColumn:t.column,rowNode:t.node,isGroupedNode:t.node?t.node.group:!1,isSingleSelectedColumn:r,isSingleSelectedCell:o&&(i==null?void 0:i.gridCells.length)==1,primaryKeyValue:a?a.primaryKeyValue:void 0,adaptableApi:this.adaptable.api,selectedCellInfo:i,selectedRowInfo:l,isRowGroupColumn:this.adaptable.api.columnApi.isRowGroupColumn(t.column.getColId())}}createAgGridContextMenuItems(t,n){return t?t(n).slice(0):n.defaultItems?n.defaultItems.slice(0):[]}createAdaptableContextMenuItems(t){let n=[];return this.adaptable.adaptableModules.forEach(r=>{let o=r.addContextMenuItems(t);o&&n.push(...o)}),this.adaptable._emitSync("CreateAdaptableContextMenuItems",{items:n,menuContext:t}),n}createAgGridAdaptableContextMenuItems(t,n){let r=[],o=this.adaptable.adaptableOptions.menuOptions.showAdaptableContextMenu;return(o==null||o!==!1)&&t.forEach(a=>{if(a){let i=!0;if(o!=null&&typeof o=="function"&&(i=o(a,n)),i){let l=this.createAgGridMenuDefFromAdaptableMenu(a);r.push(l)}}}),r}createAgGridUserContextMenuItems(t,n){let r=[];return t.filter(o=>!!o).filter(o=>o.hidden?!o.hidden(n):!0).forEach(o=>{let a=this.createAgGridContextMenuDefFromUserMenu(o,n);r.push(a)}),r}getAdaptableMenuItemsColumnHeader(t,n){let r=[],o=this.adaptable.adaptableOptions.menuOptions.showAdaptableColumnMenu,a=o==null||o!==!1;return this.adaptable.adaptableModules.forEach(i=>{let l=i.addColumnMenuItems(t);l&&(a?l.forEach(u=>{if(u){let d=!0;o!=null&&typeof o=="function"&&(d=o(u,n)),d&&r.push(u)}}):r.push(...l))}),r}getLabelFromUserColumnMenuItem(t,n){return typeof t.label=="function"?t.label(n):t.label}getLabelFromUserContextMenuItem(t,n){return typeof t.label=="function"?t.label(n):t.label}getUserMenuItemsColumnHeader(t){var n,r;return(r=(n=this.adaptable.adaptableOptions.menuOptions)==null?void 0:n.columnMenuItems)==null?void 0:r.filter(o=>o.hidden?!o.hidden(t):!0)}buildStandaloneColumnHeader(t){let n=this.createColumnMenuContextObject(t,null),r=[];r.push(...this.getAdaptableMenuItemsColumnHeader(t,n));let o=this.getUserMenuItemsColumnHeader(n);return Ee.IsNotNullOrEmpty(o)&&o.forEach(a=>{let i=this.createAdaptableColumnMenuItemFromUserMenu(a,n);r.push(i)}),r}};s();var XS=A(require("react-dom"));s();var zn=A(require("react"));s();var gl=A(require("react"));var x9=A(J());s();var KS=A(require("react"));var WEt="ab-GridList",qEt=new Map([["item",{field:"item",header:null,flex:1}]]),zEt=e=>{var n;let t=KS.Children.map(e.children,(r,o)=>({item:r,id:o})).filter(r=>!!r.item);return KS.createElement(Gc,{data:t,primaryKey:"id"},KS.createElement(ts,{header:!1,showZebraRows:e.showZebraRows,rowHeight:(n=e.rowHeight)!=null?n:"--ab-grid-row-height",domProps:{className:He(WEt,e.className),style:{minHeight:"15rem"}},columns:qEt}))},twe=zEt;var $S=require("react");var o1=e=>{let[t,n]=(0,$S.useState)(""),r=gl.useCallback(f=>{n(f),e==null||e.onFilterChange(f)},[e.onFilterChange]),[o,a]=(0,$S.useState)(e.uiSelectedColumnValues),i=f=>{a(f),e.onColumnValueSelectedChange(f)};(0,$S.useEffect)(()=>{a(e.uiSelectedColumnValues)},[e.uiSelectedColumnValues]);let l=f=>gl.createElement(pe,R(g({},f),{variant:"agGrid",fontSize:2,marginTop:1,marginBottom:1,marginLeft:1,marginRight:1})),u=f=>{let h=o.indexOf(f);if(h>=0){let b=[...o];b.splice(h,1),i(b)}else i([...o,f])},d=e.columnDistinctValues.map((f,h)=>{let b=o.indexOf(f)>=0,C=f;return we.IsNullOrEmpty(C)||!e.suppressClientSideFilter&&we.IsNotNullOrEmpty(t)&&C.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())<0?null:e.useAgGridStyle?l({key:"columnValue"+h,children:C,checked:b,onChange:()=>u(f)}):gl.createElement(Hg,{noZebra:e.useAgGridStyle,key:"columnValue"+h,onClick:()=>u(f),active:b,value:C},C)}),c=gl.createElement(Ii,{autoFocus:!0,type:"text",placeholder:"Search Column Values",value:t,style:{paddingTop:"var(--ab-space-1)",paddingBottom:"var(--ab-space-1)",paddingLeft:"var(--ab-space-1)",borderRadius:"var(--ab__border-radius)"},OnTextChange:r}),m="ab-ListBoxFilterForm";return gl.createElement("div",{className:He(m,e.useAgGridStyle?`${m}--aggrid-style`:null,e.isLoading&&`${m}--loading`)},gl.createElement(x9.Box,{px:2},gl.createElement(x9.Box,{mx:e.useAgGridStyle?0:"2px",marginBottom:2},c,e.isLoading&&gl.createElement(wS,null,"Loading"))),!e.isLoading&&gl.createElement(twe,{showZebraRows:!1,className:e.useAgGridStyle?"":"ab-padding-horizontal-0"},d))};s();var xm=A(require("react"));var a1=class extends xm.Component{constructor(t){super(t),this.state={}}render(){let t=this.props.MenuItems.map((n,r)=>xm.createElement(Hg,{key:r,onClick:()=>this.onClick(n)},n.icon&&xm.createElement(Ct,{name:n.icon}),n.label));return xm.createElement("div",{style:QEt},xm.createElement(x_,null,t))}onClick(t){this.props.onMenuItemClick(t)}},QEt={overflowY:"auto",overflowX:"hidden",height:"450px",marginBottom:"0"};s();var ra=A(require("react")),fu=A(J());var i1=class extends ra.Component{render(){let t=ra.createElement(fu.Flex,{alignItems:"center",flexDirection:"row",style:{width:"100%"}},this.props.IsAlwaysFilter?ra.createElement(fu.Flex,{flex:6,marginRight:2},"Filter"):ra.createElement(fu.Flex,{flex:6,flexDirection:"column"},ra.createElement(fu.Flex,null,ra.createElement(fu.Flex,{flex:6},ra.createElement(We,{value:"Menu",checked:this.props.ColumnMenuTab=="Menu",onChange:()=>this.onSelectMenu()},"Menu")),ra.createElement(fu.Flex,{flex:6},ra.createElement(We,{value:"Filter",checked:this.props.ColumnMenuTab=="Filter",onChange:()=>this.onSelectFilter()},"Filter")))),this.props.clearFilterButton&&this.props.ColumnMenuTab=="Filter"&&this.props.clearFilterButton,this.props.saveButton&&this.props.ColumnMenuTab=="Filter"&&this.props.saveButton);return ra.createElement(fu.Flex,{flexDirection:"column"},ra.createElement(Gt,{className:"ab-FilterFormPanel",header:t,headerProps:{padding:1},style:R(g({},this.props.style),{flex:1}),bodyProps:{padding:0,style:{maxHeight:"50vh"}},bodyScroll:!0,borderRadius:0,border:"none"},this.props.children),this.props.autoApplyFilter?null:ra.createElement(fu.Flex,{flex:"none",flexDirection:"row",padding:1,justifyContent:"flex-end"},ra.createElement(re,{variant:"raised",tone:"accent",disabled:this.props.applyFilterButtonDisabled,onClick:()=>this.onApplyFilterClicked()},"Apply Filter")))}onApplyFilterClicked(){this.props.onFilterApplied()}onSelectMenu(){this.props.ColumnMenuTabChanged("Menu")}onSelectFilter(){this.props.ColumnMenuTabChanged("Filter")}};var Rm=A(J());s();var Cp=(e,t)=>typeof t=="function"?t(e):t;var YEt={width:"100%",minWidth:150},yp=class extends zn.Component{constructor(n){super(n);this._isMounted=!1;this.handleFilterChange=n=>{this.state.suppressClientSideFilter&&this.loadPermittedValues(n)};this._isMounted=!0;let r=yp.createColumnFilterFromProps(this.props);this.state={columnFilters:n.columnFilters,distinctColumnValues:[],isDistinctColumnValuesLoading:!1,showTab:!0,selectedTab:"Filter",editedColumnFilter:r,currentTab:yp.getCurrentTab(r),suppressClientSideFilter:!1}}static createColumnFilterFromProps(n){let r=n.columnFilters.find(o=>o.ColumnId==n.currentColumn.columnId);if(!r){let o=n.api.internalApi.getAdaptableOptions().filterOptions;if(o.defaultFilterFormTab=="Values")return Vt.CreateColumnFilter(n.currentColumn.columnId,"Values",[]);if(n.currentColumn.dataType==="Number")return Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultNumericColumnFilter),[""]);if(n.currentColumn.dataType==="String")return Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultStringColumnFilter),[""]);if(n.currentColumn.dataType==="Date")return Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultDateColumnFilter),[""]);if(n.currentColumn.dataType==="Boolean")return Vt.CreateColumnFilter(n.currentColumn.columnId,"BooleanToggle",["all"])}return r}static getCurrentTab(n){return n&&n.Predicate&&n.Predicate.PredicateId&&n.Predicate.PredicateId!="Values"?"predicates":"values"}static getDerivedStateFromProps(n,r){let a=n.api.internalApi.getAdaptableOptions().filterOptions.autoApplyFilter?yp.createColumnFilterFromProps(n):r.editedColumnFilter,i=r.columnFilters,l=!1;return n.columnFilters!==i&&(i=n.columnFilters,l=!0),{editedColumnFilter:a,columnFilters:i,currentTab:l||!r.currentTab?yp.getCurrentTab(a):r.currentTab}}componentWillUnmount(){this._isMounted=!1}componentDidMount(){this.props.currentColumn.dataType!="Boolean"&&this.loadPermittedValues()}async loadPermittedValues(n=""){let{values:r,suppressClientSideFilter:o}=await Ld(this.props.api.columnApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId,n),()=>this._isMounted&&this.setState({isDistinctColumnValuesLoading:!0}));!this._isMounted||this.setState({distinctColumnValues:r,isDistinctColumnValuesLoading:!1,suppressClientSideFilter:o})}render(){var c,m;let n=this.isFilterable(),r=this.props.api.internalApi.getAdaptableOptions().filterOptions,o=this.props.api.filterApi.getFilterPredicateDefsForColumn(this.props.currentColumn).filter(f=>!f.onlyQuickFilter),a=((m=(c=this.state.editedColumnFilter)==null?void 0:c.Predicate)==null?void 0:m.PredicateId)==="Values"?this.state.editedColumnFilter.Predicate.Inputs:[],i=sn.objectNotExists(this.state.editedColumnFilter)||sn.objectNotExists(this.state.editedColumnFilter.Predicate)||sn.objectNotExists(this.state.editedColumnFilter.Predicate.PredicateId),l=zn.createElement(Jg,{onClick:()=>this.onCloseForm(),tooltip:null,accessLevel:"Full"}),u=zn.createElement(ti,{onClick:()=>this.onClearFilter(),disabled:i,tooltip:null,accessLevel:"Full",showText:!0,showIcon:!1}),d=!!r.useAgGridFilterFormStyle;return zn.createElement("div",{"data-name":"filter-form"},we.IsNullOrEmpty(n)?zn.createElement(i1,{style:YEt,ColumnMenuTab:this.state.selectedTab,ColumnMenuTabChanged:f=>this.onSelectTab(f),IsAlwaysFilter:this.props.embedColumnMenu,clearFilterButton:u,closeButton:l,showCloseButton:this.props.showCloseButton,autoApplyFilter:!!r.autoApplyFilter,useAgGridStyle:d,applyFilterButtonDisabled:i,onFilterApplied:()=>this.onFilterApplied()},this.state.selectedTab=="Menu"?zn.createElement(a1,{MenuItems:this.props.api.internalApi.buildStandaloneColumnHeader(this.props.currentColumn),onMenuItemClick:f=>this.onMenuItemClick(f)}):zn.createElement("div",null,this.state.showTab&&zn.createElement("div",null,zn.createElement(We,{marginLeft:1,flex:1,checked:this.state.currentTab=="values",onChange:()=>this.setState({currentTab:"values"})},zn.createElement(Rm.Flex,{fontSize:"var( --ab-font-size-2)"},"Column Values")),zn.createElement(We,{marginLeft:2,flex:1,checked:this.state.currentTab=="predicates",onChange:()=>this.setState({currentTab:"predicates"})},zn.createElement(Rm.Flex,{fontSize:"var( --ab-font-size-2)"},"Filters"))),this.state.currentTab==="values"&&zn.createElement("div",null,zn.createElement(o1,{suppressClientSideFilter:this.state.suppressClientSideFilter,isLoading:this.state.isDistinctColumnValuesLoading,onFilterChange:this.handleFilterChange,currentColumn:this.props.currentColumn,columns:this.props.columns,columnDistinctValues:this.state.distinctColumnValues,dataType:this.props.currentColumn.dataType,uiSelectedColumnValues:a,useAgGridStyle:d,onColumnValueSelectedChange:f=>this.onColumnValuesChange(f)})),this.state.currentTab==="predicates"&&zn.createElement("div",null," ",this.state.showTab&&zn.createElement("hr",null),o.filter(f=>f.id!="Values").map((f,h)=>this.renderColumnPredicate(f,h))))):zn.createElement(Nt,null,n))}renderColumnPredicate(n,r){var i;let{editedColumnFilter:o}=this.state,a=((i=o==null?void 0:o.Predicate)==null?void 0:i.PredicateId)===n.id;return zn.createElement(Rm.Flex,{key:r,flexDirection:"column"},zn.createElement(We,{fontSize:"var(--ab-font-size-2)",margin:1,flex:1,checked:a,onChange:()=>this.selectColumnPredicate(n)},n.label),zn.createElement(Rm.Flex,{flexDirection:"column",flex:0,marginLeft:3,marginRight:2},a&&this.renderPredicateInput(n,o)))}renderPredicateInput(n,r){var o;return(n==null?void 0:n.id)==="BooleanToggle"?zn.createElement(Rm.Flex,{flexDirection:"row",flex:1,justifyContent:"center",alignItems:"center"},zn.createElement(pe,{checked:r.Predicate.Inputs[0]==="true"?!0:r.Predicate.Inputs[0]==="false"?!1:null,onChange:a=>{let i=r.Predicate.Inputs[0]==="false"&&a===!0?"all":a===!0?"true":"false";this.changeColumnPredicateInput(i,0)}})):(o=n.inputs)==null?void 0:o.map((a,i)=>zn.createElement(Rm.Flex,{key:i,flexDirection:"row"},zn.createElement(Yn,{type:a.type,autoFocus:i===0,value:r.Predicate.Inputs[i],onChange:l=>this.changeColumnPredicateInput(l.target.value,i),style:{marginBottom:5,flex:1,fontSize:"var( --ab-font-size-2)"}})))}isFilterable(){return this.props.currentColumn.filterable?"":"Column is not filterable"}onSelectTab(n){this.setState({selectedTab:n})}onColumnValuesChange(n){let{editedColumnFilter:r}=this.state;r.Predicate={PredicateId:"Values",Inputs:n},this.setState({editedColumnFilter:r}),this.persistFilter()}persistFilter(){let{editedColumnFilter:n}=this.state;n.Predicate===void 0||n.Predicate.PredicateId==="Values"&&n.Predicate.Inputs.length===0?this.props.onClearColumnFilter(n):this.props.api.internalApi.getAdaptableOptions().filterOptions.autoApplyFilter&&this.props.onSetColumnFilter(n)}onClearFilter(){let{editedColumnFilter:n}=this.state;n.Predicate=void 0,this.setState({editedColumnFilter:n}),this.persistFilter()}onFilterApplied(){this.props.onAddColumnFilter(this.state.editedColumnFilter),this.props.onHideFilterForm()}onCloseForm(){this.props.onHideFilterForm()}onMenuItemClick(n){n.reduxAction&&this.props.onMenuItemClick(n.reduxAction),n.onClick&&n.onClick(),this.props.onHideFilterForm()}selectColumnPredicate(n){var o;let{editedColumnFilter:r}=this.state;r.Predicate={PredicateId:n.id,Inputs:((o=n.inputs)!=null?o:[]).map(a=>{var i;return(i=a.defaultValue)!=null?i:""})},this.setState({editedColumnFilter:r}),this.persistFilter()}changeColumnPredicateInput(n,r){let{editedColumnFilter:o}=this.state;o.Predicate.Inputs[r]=n,this.setState({editedColumnFilter:o}),this.props.api.internalApi.getAdaptableOptions().filterOptions.autoApplyFilter&&this.props.onSetColumnFilter(o)}};function KEt(e,t){return{currentColumn:t.currentColumn,columns:e.Grid.Columns,columnFilters:e.Filter.ColumnFilters,showCloseButton:t.showCloseButton}}function $Et(e){return{onMenuItemClick:t=>e(t),onClearColumnFilter:t=>e(Bl(t)),onAddColumnFilter:t=>e(ws(t)),onEditColumnFilter:t=>e(Jf(t)),onSetColumnFilter:t=>e(DC(t)),onHideFilterForm:()=>e(Jre())}}var XEt=Ye(KEt,$Et)(yp),nwe=e=>ki(zn.createElement(XEt,{api:e.Adaptable.api,currentColumn:e.Column,teamSharingActivated:!1,embedColumnMenu:e.Adaptable.embedColumnMenu,showCloseButton:e.ShowCloseButton}),e.Adaptable);var rwe=e=>class{init(n){this.params=n,this.column=n.column,this.filterContainer=document.createElement("div"),this.filterContainer.id="filter_"+this.params.column.getColId()+"_"+e.adaptableOptions.adaptableId}isFilterActive(){return e.api.filterApi.getAllColumnFilter().findIndex(n=>n.ColumnId==this.params.column.getColId())>-1}doesFilterPass(n){return!0}getModel(){}setModel(n){}getGui(){return this.filterContainer}afterGuiAttached(n){XS.unmountComponentAtNode(this.filterContainer);let r=e.api.columnApi.getColumnFromId(this.column.getColId());if(r){let o={Column:r,Adaptable:e,ShowCloseButton:n!=null&&n.hidePopup!=null};e.hideFilterFormPopup=n?n.hidePopup:null,XS.render(nwe(o),this.filterContainer)}}destroy(){XS.unmountComponentAtNode(this.filterContainer),this.filterContainer=null}};s();var l1=A(require("react-dom"));s();var gn=A(require("react")),R9=A(Fm());var Em=A(J());var owe=A(Ep());var E9=class extends gn.Component{constructor(n){super(n);this._isMounted=!1;this.handleFilterChange=n=>{this.state.suppressClientSideFilter&&this.loadPermittedValues(n)};this.loadPermittedValues=async(n="")=>{let{values:r,suppressClientSideFilter:o}=await Ld(this.props.api.columnApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId,n),()=>this._isMounted&&this.setState({isDistinctColumnValuesLoading:!0}));!this._isMounted||this.setState({distinctColumnValues:r,suppressClientSideFilter:o,isDistinctColumnValuesLoading:!1})};this.debouncedAddFilter=(0,R9.default)(()=>this.props.onAddColumnFilter(this.state.filter),250);this.debouncedEditFilter=(0,R9.default)(()=>this.props.onEditColumnFilter(this.state.filter),250);let r=this.getFilterFromProps();this._isMounted=!0,this.state={filter:r,suppressClientSideFilter:!1,isDistinctColumnValuesLoading:!1,distinctColumnValues:[]}}componentDidMount(){var n,r;((r=(n=this.state)==null?void 0:n.filter)==null?void 0:r.Predicate.PredicateId)==="Values"&&this.loadPermittedValues()}componentWillUnmount(){this._isMounted=!1}UNSAFE_componentWillReceiveProps(n){let r=this.getFilterFromProps(n);(0,owe.default)(r,this.state.filter)||(this.setState({filter:r}),(r==null?void 0:r.Predicate)&&r.Predicate.PredicateId==="Values"&&(this.setState({isDistinctColumnValuesLoading:!0}),this.loadPermittedValues()))}getFilterFromProps(n=this.props){let r=n.columnFilters.find(a=>a.ColumnId==n.currentColumn.columnId),o=n.api.internalApi.getAdaptableOptions().filterOptions;return r||(!r&&n.currentColumn.dataType==="Number"?Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultNumericColumnFilter),[""]):!r&&n.currentColumn.dataType==="String"?Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultStringColumnFilter),[""]):!r&&n.currentColumn.dataType==="Date"?Vt.CreateColumnFilter(n.currentColumn.columnId,Cp(n.currentColumn,o.defaultDateColumnFilter),[""]):!r&&n.currentColumn.dataType==="Boolean"?Vt.CreateColumnFilter(this.props.currentColumn.columnId,"BooleanToggle",["all"]):Vt.CreateColumnFilter(this.props.currentColumn.columnId,null,null))}render(){let{filter:n}=this.state,r=this.props.api.filterApi.getFilterPredicateDefsForColumn(this.props.currentColumn),o=this.props.api.predicateApi.getPredicateDefById(n==null?void 0:n.Predicate.PredicateId);if(!this.props.currentColumn||!this.props.currentColumn.filterable)return null;let a="mouseenter",i="mouseleave";this.props.quickFilterTrigger==="click"&&(a="click",i="blur");let l=!0,u=this.props.api.internalApi.getAdaptableOptions().filterOptions.hideQuickFilterDropdown;u&&(l=!u(this.props.currentColumn));let d=!0,c=this.props.api.internalApi.getAdaptableOptions().filterOptions.hideQuickFilterInput;return c&&(d=!c(this.props.currentColumn)),gn.createElement(gn.Fragment,null,l&&gn.createElement(Ha,{showEvent:a,hideEvent:i,preventPortalEventPropagation:a==="click",alignHorizontal:"left",targetOffset:10,hideDelay:300,"data-name":"quick-filter-overlay",style:{overflowY:"auto",fontSize:"var(--ab-font-size-2)",border:"1px solid var(--ab-color-primarydark)",background:"var(--ab-color-defaultbackground)"},render:()=>gn.createElement(Em.Flex,{flexDirection:"column","data-name":"quick-filter"},(n==null?void 0:n.Predicate.PredicateId)&&gn.createElement(gn.Fragment,null,gn.createElement(re,{p:2,variant:"text",onClick:()=>this.clearFilter()},gn.createElement("span",{style:{width:20,marginRight:10}},gn.createElement(Ct,{name:"delete"})),"Clear")),r.map(m=>gn.createElement(re,{key:m.id,p:2,variant:"text",tone:(n==null?void 0:n.Predicate.PredicateId)===m.id?"info":"none",onClick:()=>this.selectColumnPredicate(m.id)},gn.createElement("span",{style:{width:20,marginRight:10}},this.renderPredicateIcon(m)),m.label)))},gn.createElement(re,{style:{borderRadius:0,borderColor:"var(--ab-color-primarydark)"}},this.renderPredicateIcon(o))),d&&this.renderLabel(n,o),d&&this.renderPredicateInput(o,n))}renderLabel(n,r){return(n==null?void 0:n.Predicate.PredicateId)==="Values"?De.IsNullOrEmpty(n.Predicate.Inputs)&&De.IsNullOrEmptyOrContainsSingleEmptyValue(this.state.distinctColumnValues)?this.renderNoValuesDropdown(n):this.renderValuesDropdown(n):r&&(r==null?void 0:r.inputs)===void 0&&gn.createElement(Em.Box,{p:1,alignSelf:"center"},r.label)}renderPredicateIcon(n){if(!n||!n.icon)return gn.createElement(Ct,{name:"filter-outline"});if("text"in n.icon)return gn.createElement("span",null,n.icon.text);if("path"in n.icon)return gn.createElement(Ct,{name:n.icon.path})}renderPredicateInput(n,r){var o;return(n==null?void 0:n.id)==="BooleanToggle"?gn.createElement(Em.Flex,{flexDirection:"row",flex:1,justifyContent:"center",alignItems:"center",style:{position:"absolute",left:0,right:0,bottom:0,top:0}},gn.createElement(pe,{checked:r.Predicate.Inputs[0]==="checked"?!0:r.Predicate.Inputs[0]==="unchecked"?!1:null,onChange:a=>{let i=r.Predicate.Inputs[0]==="unchecked"&&a===!0?"all":a===!0?"checked":"unchecked";this.changeColumnPredicateInput(i,0)}})):(o=n==null?void 0:n.inputs)==null?void 0:o.map((a,i)=>{var l,u;return gn.createElement(Yn,{key:i,type:a.type==="number"?"text":a.type,autoFocus:!1,value:(u=(l=r.Predicate.Inputs)==null?void 0:l[i])!=null?u:"",onChange:d=>this.changeColumnPredicateInput(d.target.value,i),onKeyDownCapture:d=>{d.nativeEvent.key==="Escape"&&(d.nativeEvent.preventDefault(),d.nativeEvent.stopPropagation(),this.clearFilter())},flex:1,style:{minWidth:0,padding:"var(--ab-space-1)",borderRadius:0,borderLeftWidth:0}})})}renderNoValuesDropdown(n){return gn.createElement(re,{disabled:!0,style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",borderRadius:0,borderLeftWidth:0,borderColor:"var(--ab-color-primarydark)"}},"No Column Values")}renderValuesDropdown(n){let r="mouseenter";return this.props.quickFilterValuesTrigger==="click"&&(r="click"),gn.createElement(Ha,{alignHorizontal:"left",showEvent:r,hideEvent:"mouseleave",hideDelay:300,ref:o=>{this.valuesDropdown=o},render:()=>{var o;return gn.createElement(Em.Flex,{onMouseEnter:()=>{var a;r==="click"&&((a=this.valuesDropdown)==null||a.show())},"data-name":"quick-filter-form",flexDirection:"column",style:{fontSize:"var(--ab-font-size-2)",border:"1px solid var(--ab-color-primarydark)",background:"var(--ab-color-defaultbackground)",zIndex:1e3}},gn.createElement(Em.Flex,{m:2},gn.createElement(re,{onClick:()=>this.clearFilter()},"Clear Filter"),((o=this.props.api.internalApi.getAdaptableOptions().filterOptions)==null?void 0:o.autoApplyFilter)==!1&&gn.createElement(re,{ml:2,onClick:()=>this.updateFilter(this.state.filter)},"Apply Filter")),gn.createElement(o1,{suppressClientSideFilter:this.state.suppressClientSideFilter,isLoading:this.state.isDistinctColumnValuesLoading,onFilterChange:this.handleFilterChange,currentColumn:this.props.currentColumn,columns:[],columnDistinctValues:this.state.distinctColumnValues,dataType:this.props.currentColumn.dataType,uiSelectedColumnValues:this.state.filter.Predicate.Inputs,useAgGridStyle:!0,onColumnValueSelectedChange:a=>this.onColumnValuesChange(a)}))}},gn.createElement(re,{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",borderRadius:0,borderLeftWidth:0,borderColor:"var(--ab-color-primarydark)"},disabled:De.IsNullOrEmptyOrContainsSingleEmptyValue(this.state.distinctColumnValues)},n.Predicate.Inputs.join(", ")||"Select Values"))}onColumnValuesChange(n){var o;let{filter:r}=this.state;r.Predicate={PredicateId:"Values",Inputs:n},(o=this.props.api.internalApi.getAdaptableOptions().filterOptions)!=null&&o.autoApplyFilter?this.updateFilter(r):this.setState({filter:r})}selectColumnPredicate(n){var a;let r=g({},this.state.filter),o=this.props.api.predicateApi.getPredicateDefById(n);r.Predicate={PredicateId:n,Inputs:((a=o.inputs)!=null?a:[]).map(i=>{var l;return(l=i.defaultValue)!=null?l:""})},this.updateFilter(r),n==="Values"&&(this.loadPermittedValues(),requestAnimationFrame(()=>{this.valuesDropdown&&this.valuesDropdown.show()}))}updateFilter(n){this.setState({filter:n}),n.Uuid?this.debouncedEditFilter():this.debouncedAddFilter()}changeColumnPredicateInput(n,r){let o=this.getPredicateIdForShortcutValue(n);if(o)this.selectColumnPredicate(o);else{let{filter:a}=this.state;a.Predicate.Inputs=a.Predicate.Inputs||[],a.Predicate.Inputs[r]=n,this.updateFilter(a)}}getPredicateIdForShortcutValue(n){var r;return(r=this.props.api.filterApi.findPredicateDefByShortcut(n,this.props.currentColumn))==null?void 0:r.id}clearFilter(){let{filter:n}=this.state;this.props.api.filterApi.clearColumnFilterByColumn(n.ColumnId)}};function JEt(e,t){return{currentColumn:t.currentColumn,columnFilters:e.Filter.ColumnFilters}}function ZEt(e){return{onAddColumnFilter:t=>e(ws(t)),onEditColumnFilter:t=>e(Jf(t))}}var eIt=Ye(JEt,ZEt)(E9),awe=e=>{var t,n;return ki(gn.createElement(eIt,{api:e.Adaptable.api,quickFilterTrigger:(t=e.Adaptable.adaptableOptions.filterOptions)==null?void 0:t.quickFilterTrigger,quickFilterValuesTrigger:(n=e.Adaptable.adaptableOptions.filterOptions)==null?void 0:n.quickFilterValuesTrigger,currentColumn:e.Column,teamSharingActivated:!1,embedColumnMenu:e.Adaptable.embedColumnMenu}),e.Adaptable)};var iwe=e=>class{onParentModelChanged(n,r){}afterGuiAttached(n){this.filterContainer.parentElement.style.overflow="visible",this.filterContainer.parentElement.parentElement.style.padding="var(--ab-space-1)"}init(n){let r=n.column.getColId();this.filterContainer=document.createElement("div"),this.filterContainer.id=`floatingFilter_${r}_${e.adaptableOptions.adaptableId}`,this.filterContainer.style.overflow="hidden",this.filterContainer.style.minWidth="0",this.filterContainer.style.height="100%",this.filterContainer.style.display="flex",this.filterContainer.style.alignItems="stretch",this.filterContainer.style.position="relative";let o=e.api.columnApi.getColumnFromId(r);o&&l1.render(awe({Column:o,Adaptable:e,ShowCloseButton:!1}),this.filterContainer)}getGui(){return this.filterContainer}destroy(){l1.unmountComponentAtNode(this.filterContainer),this.filterContainer=null}};s();var swe=A(require("react")),s1=require("react-dom");s();var ui=A(require("react"));var tIt={position:"absolute",left:0,top:0,right:0,bottom:0},nIt=R(g({},tIt),{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"}),rIt={position:"relative",background:"transparent",boxSizing:"border-box",minWidth:0,outline:"none",width:"100%",border:"none"},lwe=ui.forwardRef((e,t)=>{var l;let n=ui.useRef(null),r=()=>{var u;(u=n.current)==null||u.focus()},[o,a]=fn(e,"value",e.defaultValue,{onChange:u=>{var d;u!==""&&u==Number(u)&&(u=Number(u)),(d=e.onValueChange)==null||d.call(e,u)}});ui.useImperativeHandle(t,()=>({focus:r,setValue:a}));let i=e.showClearButton&&e.emptyValue!=null&&o!=e.emptyValue;return ui.createElement("div",{style:nIt,onKeyDown:u=>{u.key==="Tab"&&i&&document.activeElement===n.current&&u.stopPropagation()}},ui.createElement("input",{type:(l=e.type)!=null?l:"number",value:o,onChange:ui.useCallback(u=>{a(u.target.value)},[]),style:rIt,ref:n}),i?ui.createElement("div",{style:{display:"inline-block",marginRight:"var(--ab-space-1)",marginLeft:"var(--ab-space-1)"},onClick:u=>{e.emptyValue!=null&&(a(e.emptyValue),u.stopPropagation(),r())},onKeyDown:u=>{e.emptyValue!=null&&u.key==="Enter"&&(a(e.emptyValue),u.stopPropagation(),r())}},ui.createElement(Ct,{size:18,name:"clear",tabIndex:0})):null)});var I9=require("@ag-grid-community/all-modules"),JS=class{constructor(){this.valueParser=({newValue:t,oldValue:n})=>t;this.onValueChange=t=>{this.value=this.valueParser?this.valueParser(R(g({},this.params),{oldValue:this.params.value,newValue:t})):t}}init(t){this.value=this.getStartValue(t),this.params=t,this.columnId=t.column.getColId();let{valueParser:n}=t.column.getColDef();typeof n=="function"&&(this.valueParser=n),this.el=document.createElement("div"),this.el.style.position="absolute",this.el.style.top="0px",this.el.style.left="0px",this.el.style.right="0px",this.el.style.bottom="0px"}getGui(){return this.el}getValue(){return this.value}focusIn(){var t;(t=this.editor)==null||t.focus()}focusOut(){}afterGuiAttached(){var o,a;let t=this.params.api.__adaptable,n=this.value,r=swe.createElement(lwe,{defaultValue:n,showClearButton:(o=this.params.showClearButton)!=null?o:!0,emptyValue:(a=this.params.emptyValue)!=null?a:"",onValueChange:this.onValueChange,ref:i=>{this.editor=i,i==null||i.focus()}});(0,s1.render)(ki(r,t),this.el),this.getGui().addEventListener("keydown",i=>{t._emit("CellEditorKeyDown",{keyDownEvent:i,cellValue:this.value,columnId:this.columnId,updateValueCallback:l=>{this.editor.setValue(l)}})})}destroy(){(0,s1.unmountComponentAtNode)(this.el)}getStartValue(t){return this.shouldClearExistingValue(t)?"":t.charPress&&this.isValidChar(t.charPress)?t.charPress:t.value}shouldClearExistingValue(t){return t.eventKey===I9.KeyCode.BACKSPACE||t.eventKey===I9.KeyCode.DELETE}isValidChar(t){return["0","1","2","3","4","5","6","7","8","9"].includes(t)}};s();var pwe=A(require("react")),u1=require("react-dom");s();var Hi=A(require("react")),uwe=A(Bb());var oIt={position:"absolute",left:0,top:0,right:0,bottom:0},aIt=R(g({},oIt),{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"}),iIt={position:"relative",background:"transparent",boxSizing:"border-box",minWidth:0,outline:"none",width:"100%",border:"none"},dwe=Hi.forwardRef((e,t)=>{var u;let n=Hi.useRef(null),r=()=>{var d;(d=n.current)==null||d.focus()},[o,a]=fn(e,"value",e.defaultValue,{onChange:d=>{var c,m;if(d===""||d==null)(c=e.onValueChange)==null||c.call(e,null);else{let f=typeof d=="string"?(0,uwe.default)(d):new Date(d);(m=e.onValueChange)==null||m.call(e,f)}}});Hi.useImperativeHandle(t,()=>({focus:r}));let i=TR(o,e.dateFormat),l=Hi.useCallback(d=>{a(d.target.value)},[]);return Hi.createElement("div",{style:aIt},Hi.createElement(s4.Provider,{value:{onHide:d=>{var c;(c=e.onStopEdit)==null||c.call(e,d)},onShow:()=>{},showClearButton:(u=e.showClearButton)!=null?u:!0}},Hi.createElement(Yn,{type:"date",value:i,onChange:l,style:iIt,ref:n})))});var P9=require("@ag-grid-community/all-modules");var ZS=class{constructor(){this.valueParser=({newValue:t,oldValue:n,defaultParser:r})=>(typeof n=="string"||n==null)&&r?r(t):t}init(t){this.value=this.shouldClearExistingValue(t)?"":t.value;let{valueParser:n}=t.column.getColDef();this.params=t,typeof n=="function"&&(this.valueParser=n),this.el=document.createElement("div"),this.el.style.position="absolute",this.el.style.top="0px",this.el.style.left="0px",this.el.style.right="0px",this.el.style.bottom="0px"}getGui(){return this.el}getValue(){return this.value}focusIn(){var t;(t=this.editor)==null||t.focus()}focusOut(){}getAdaptableInstance(t){return t.api.__adaptable}afterGuiAttached(){var o;let t=this.getAdaptableInstance(this.params),n=this.shouldClearExistingValue(this.params)?"":this.params.value,r=pwe.createElement(dwe,{defaultValue:n,dateFormat:t.adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat,onValueChange:a=>{let i=isNaN(+a);if(this.valueParser){let l=R(g({},this.params),{oldValue:this.params.value,newValue:a,defaultParser:u=>{var c,m;let d=(m=(c=t.adaptableOptions.userInterfaceOptions)==null?void 0:c.dateInputOptions)==null?void 0:m.dateFormat;return d?go(u,{Pattern:d}):u}});this.value=this.valueParser(l)}else this.value=i?null:a;i||requestAnimationFrame(()=>{this.params.stopEditing()})},showClearButton:(o=this.params.showClearButton)!=null?o:!0,onStopEdit:a=>{a==="Escape"?this.params.api.stopEditing(!0):this.params.stopEditing()},ref:a=>{this.editor=a,a==null||a.focus()}});(0,u1.render)(ki(r,t),this.el)}destroy(){(0,u1.unmountComponentAtNode)(this.el)}shouldClearExistingValue(t){return t.eventKey===P9.KeyCode.BACKSPACE||t.eventKey===P9.KeyCode.DELETE}};s();var cwe=1650344441447;s();s();var mwe={AccessLevel:{name:"AccessLevel",kind:"TypeAlias",description:"Defines Access Level for an Entitlement - can be `ReadOnly`, `Hidden` or `Full`"},ActionColumn:{name:"ActionColumn",kind:"Interface",description:"A Special Column that wraps an AdapTable Button",properties:[{name:"actionColumnButton",kind:"unknown",description:"Button (or list of buttons) to display in the Column",uiLabel:"Action Column Button"},{name:"actionColumnSettings",kind:"REFERENCE",description:"Additional optional properties for Column (e.g. filterable, resizable)",uiLabel:"Action Column Settings",isOptional:!0,reference:"ActionColumnSettings"},{name:"columnId",kind:"string",description:"Mandatory 'Id'; if no value set for `FriendlyName`, this will also be Column name",uiLabel:"Column Id"},{name:"friendlyName",kind:"string",description:"How Column appears in Column Header, Menus; if no value set, `ColumnId` is used",uiLabel:"Friendly Name",isOptional:!0},{name:"includeGroupedRows",kind:"boolean",description:"Shows Action Column also in grouped rows",uiLabel:"Include Grouped Rows",isOptional:!0}]},ActionColumnButtonContext:{name:"ActionColumnButtonContext",kind:"Interface",description:"Context required by functions when using an Action Column Button",properties:[{name:"actionColumn",kind:"REFERENCE",description:"Action Column in question",uiLabel:"Action Column",reference:"ActionColumn"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key Value in current row",uiLabel:"Primary Key Value"},{name:"rowNode",kind:"REFERENCE",description:"Current AG Grid Row Node",uiLabel:"Row Node",reference:"unknown"}]},ActionColumnSettings:{name:"ActionColumnSettings",kind:"Interface",description:"Set of optional properties that define an Action Columns behaviour",properties:[{name:"resizable",kind:"boolean",description:"Whether Column can be resized (by dragging column header edges)",uiLabel:"Resizable",isOptional:!0,defaultValue:"true"},{name:"suppressMenu",kind:"boolean",description:"Whether no menu should be shown for this Column header.",uiLabel:"Suppress Menu",isOptional:!0,defaultValue:"false"},{name:"suppressMovable",kind:"boolean",description:"Whether if this Column should be movable via dragging",uiLabel:"Suppress Movable",isOptional:!0,defaultValue:"false"},{name:"width",kind:"number",description:"Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid",uiLabel:"Width",isOptional:!0}]},ActionHandler:{name:"ActionHandler",kind:"TypeAlias",description:"Handles a Form Button Action"},AdaptableAlert:{name:"AdaptableAlert",kind:"TypeAlias",description:"Defines an Alert fired by AdapTable"},AdaptableAlertBase:{name:"AdaptableAlertBase",kind:"Interface",description:"Defines the base(common) properties of an Alert fired by AdapTable, regardless of the type of change",properties:[{name:"alertDefinition",kind:"REFERENCE",description:"Rule that caused Alert to fire",uiLabel:"Alert Definition",reference:"AlertDefinition"},{name:"alertType",kind:"unknown",description:"The type of Alert",uiLabel:"Alert Type"},{name:"header",kind:"string",description:"Alert Header text",uiLabel:"Header"},{name:"message",kind:"string",description:"Alert Body text",uiLabel:"Message"}]},AdaptableAlertQuery:{name:"AdaptableAlertQuery",kind:"TypeAlias",description:"Alert Query which may be either a Boolean, Observable or AggregatedBoolean Expression"},AdaptableApi:{name:"AdaptableApi",kind:"Interface",description:"The `AdaptableApi` provides developers with run-time access to AdapTable.",properties:[{name:"alertApi",kind:"REFERENCE",description:"Provides access to the Alert Module",uiLabel:"Alert Api",reference:"AlertApi"},{name:"applicationApi",kind:"REFERENCE",description:"Provides access to the Application Module",uiLabel:"Application Api",reference:"ApplicationApi"},{name:"bulkUpdateApi",kind:"REFERENCE",description:"Provides access to the Bulk Update Module",uiLabel:"Bulk Update Api",reference:"BulkUpdateApi"},{name:"calculatedColumnApi",kind:"REFERENCE",description:"Provides access to the Calculated Column Module",uiLabel:"Calculated Column Api",reference:"CalculatedColumnApi"},{name:"cellSummaryApi",kind:"REFERENCE",description:"Provides access to the Cell Summary Module",uiLabel:"Cell Summary Api",reference:"CellSummaryApi"},{name:"chartingApi",kind:"REFERENCE",description:"Provides run-time access to Charting Module and state",uiLabel:"Charting Api",reference:"unknown"},{name:"columnApi",kind:"REFERENCE",description:"Provides a number of column-related methods",uiLabel:"Column Api",reference:"ColumnApi"},{name:"conditionalStyleApi",kind:"REFERENCE",description:"Provides access to the Conditional Style Module",uiLabel:"Conditional Style Api",reference:"ConditionalStyleApi"},{name:"configApi",kind:"REFERENCE",description:"Methods giving access to Adaptable State",uiLabel:"Config Api",reference:"ConfigApi"},{name:"customSortApi",kind:"REFERENCE",description:"Provides access to the Custom Sort Module",uiLabel:"Custom Sort Api",reference:"CustomSortApi"},{name:"dashboardApi",kind:"REFERENCE",description:"Provides access to the Dashboard",uiLabel:"Dashboard Api",reference:"DashboardApi"},{name:"dataChangeHistoryApi",kind:"REFERENCE",description:"Provides run-time access to the Data Changes Module",uiLabel:"Data Change History Api",reference:"DataChangeHistoryApi"},{name:"dataSourceApi",kind:"REFERENCE",description:"Provides access to the Data Source Module",uiLabel:"Data Source Api",reference:"DataSourceApi"},{name:"destroy",kind:"unknown",description:"Cleanup method - should be called only when using the vanilla javascript component, as framework components cleanup is performed when the component is destroyed/unmounted.",uiLabel:"Destroy"},{name:"eventApi",kind:"REFERENCE",description:"Used for listenning / subscribing to the various Events published by AdapTable",uiLabel:"Event Api",reference:"EventApi"},{name:"exportApi",kind:"REFERENCE",description:"Provides access to the Export Module and Reports",uiLabel:"Export Api",reference:"ExportApi"},{name:"filterApi",kind:"REFERENCE",description:"Provides access to AdapTable's filtering functionality",uiLabel:"Filter Api",reference:"FilterApi"},{name:"flashingCellApi",kind:"REFERENCE",description:"Provides access to the Flashing Cell Module",uiLabel:"Flashing Cell Api",reference:"FlashingCellApi"},{name:"formatColumnApi",kind:"REFERENCE",description:"Provides access to the Format Column Module",uiLabel:"Format Column Api",reference:"FormatColumnApi"},{name:"freeTextColumnApi",kind:"REFERENCE",description:"Provides access to the FreeText Column Module",uiLabel:"Free Text Column Api",reference:"FreeTextColumnApi"},{name:"gridApi",kind:"REFERENCE",description:"Provides methods for managing the Grid, and Grid data, directly",uiLabel:"Grid Api",reference:"GridApi"},{name:"layoutApi",kind:"REFERENCE",description:"Provides access to the Layout Module",uiLabel:"Layout Api",reference:"LayoutApi"},{name:"pluginsApi",kind:"REFERENCE",description:"Offers access to AdapTable Plugin (e.g. ipushpull, OpenFin etc)",uiLabel:"Plugins Api",reference:"PluginsApi"},{name:"plusMinusApi",kind:"REFERENCE",description:"Provides access to the Plus Minus Module",uiLabel:"Plus Minus Api",reference:"PlusMinusApi"},{name:"predicateApi",kind:"REFERENCE",description:"Manages the Predicate - a boolean-return function used in Filters and Alerts",uiLabel:"Predicate Api",reference:"PredicateApi"},{name:"queryApi",kind:"REFERENCE",description:"Provides access to functions related to the Query Module",uiLabel:"Query Api",reference:"QueryApi"},{name:"queryLanguageApi",kind:"REFERENCE",description:"Mangages AdapTableQL (Query Language)",uiLabel:"Query Language Api",reference:"QueryLanguageApi"},{name:"quickSearchApi",kind:"REFERENCE",description:"Provides access to the Quick Search Module",uiLabel:"Quick Search Api",reference:"QuickSearchApi"},{name:"scheduleApi",kind:"REFERENCE",description:"Provides access to the Schedule Module",uiLabel:"Schedule Api",reference:"ScheduleApi"},{name:"scopeApi",kind:"REFERENCE",description:"Manages the `Scope` object - used widely to determine where objects are applied",uiLabel:"Scope Api",reference:"ScopeApi"},{name:"settingsPanelApi",kind:"REFERENCE",description:"Provides access to the Settings Panel",uiLabel:"Settings Panel Api",reference:"SettingsPanelApi"},{name:"shortcutApi",kind:"REFERENCE",description:"Provides access to the Shortcut Module",uiLabel:"Shortcut Api",reference:"ShortcutApi"},{name:"smartEditApi",kind:"REFERENCE",description:"Provides access to the Smart Edit Module",uiLabel:"Smart Edit Api",reference:"SmartEditApi"},{name:"systemStatusApi",kind:"REFERENCE",description:"Methods related to displaying System Status and application health messages",uiLabel:"System Status Api",reference:"SystemStatusApi"},{name:"teamSharingApi",kind:"REFERENCE",description:"Functions related to run-time Team Sharing of AdapTable objects between colleagues",uiLabel:"Team Sharing Api",reference:"TeamSharingApi"},{name:"themeApi",kind:"REFERENCE",description:"Api methods related to Theme management",uiLabel:"Theme Api",reference:"ThemeApi"},{name:"toolPanelApi",kind:"REFERENCE",description:"Provides access to the AdapTable Tool Panel on the right hand side of the grid",uiLabel:"Tool Panel Api",reference:"ToolPanelApi"},{name:"userInterfaceApi",kind:"REFERENCE",description:"Manages User Interface Options where colours, styles and permitted values are configured",uiLabel:"User Interface Api",reference:"UserInterfaceApi"}]},AdaptableButton:{name:"AdaptableButton",kind:"Interface",description:"Defines a Button that appears in numerous places including Adaptable Form",properties:[{name:"buttonStyle",kind:"unknown",description:"Style for Button - can be object or function thats provides a `Style` object",uiLabel:"Button Style",isOptional:!0},{name:"disabled",kind:"unknown",description:"Function that disables / enables the button based on its evaluation result",uiLabel:"Disabled",isOptional:!0},{name:"hidden",kind:"unknown",description:"Function which sets whether Button is hidden",uiLabel:"Hidden",isOptional:!0},{name:"icon",kind:"REFERENCE",description:"Icon to display, requires string for URL, other props are optional",uiLabel:"Icon",isOptional:!0,reference:"AdaptableIcon"},{name:"label",kind:"unknown",description:"Label for Button - can be string or function that provides string",uiLabel:"Label",isOptional:!0},{name:"onClick",kind:"unknown",description:"Function to invoke when button is clicked",uiLabel:"On Click",isOptional:!0},{name:"tooltip",kind:"unknown",description:"Tooltip for Button - can be string or function that provides string",uiLabel:"Tooltip",isOptional:!0}]},AdaptableCalculatedColumnQuery:{name:"AdaptableCalculatedColumnQuery",kind:"TypeAlias",description:"Calculated Column Query which may be a Scalar or an AggregatedScalar Expression"},AdaptableCellChangedAlert:{name:"AdaptableCellChangedAlert",kind:"Interface",description:"Defines an Alert fired by AdapTable when a cell is changed",properties:[{name:"cellDataChangedInfo",kind:"REFERENCE",description:"Cell DataChange which triggered Alert",uiLabel:"Cell Data Changed Info",reference:"CellDataChangedInfo"}]},AdaptableColumn:{name:"AdaptableColumn",kind:"Interface",description:"Defines an Adaptable Column - created at run-time based on AG Grid column definition",properties:[{name:"aggregatable",kind:"boolean",description:"Is Column able to display aggregations (e.g. 'sum') when grouped",uiLabel:"Aggregatable"},{name:"aggregationFunction",kind:"string",description:"Custom aggregation function for the Column",uiLabel:"Aggregation Function",isOptional:!0},{name:"availableAggregationFunctions",kind:"unknown",description:"Available aggregations for the Column",uiLabel:"Available Aggregation Functions",isOptional:!0},{name:"columnGroup",kind:"REFERENCE",description:"The parent column group, if the column belongs to one",uiLabel:"Column Group",isOptional:!0,reference:"unknown"},{name:"filterable",kind:"boolean",description:"Is Column able to be filtered",uiLabel:"Filterable"},{name:"flex",kind:"number",description:"Flex details of the column",uiLabel:"Flex",isOptional:!0},{name:"groupable",kind:"boolean",description:"Can Column form a Row Group",uiLabel:"Groupable"},{name:"hideable",kind:"boolean",description:"Can Column be removed from the grid",uiLabel:"Hideable"},{name:"isExcludedFromQuickSearch",kind:"boolean",description:"Has colummn been excluded from Quick Search results",uiLabel:"Is Excluded From Quick Search"},{name:"isFixed",kind:"boolean",description:"Is Column pinned or locked into position",uiLabel:"Is Fixed"},{name:"isGrouped",kind:"boolean",description:"Is Column currently grouped",uiLabel:"Is Grouped"},{name:"isPrimaryKey",kind:"boolean",description:"Is this the Primary Key column",uiLabel:"Is Primary Key"},{name:"isSparkline",kind:"boolean",description:"Is it a Sparkline Column",uiLabel:"Is Sparkline"},{name:"moveable",kind:"boolean",description:"Can Column be moved at run-time to a new position",uiLabel:"Moveable"},{name:"pinned",kind:"unknown",description:"The pinned position of the column",uiLabel:"Pinned"},{name:"pivotable",kind:"boolean",description:"Can Column be used in a Pivot Grid",uiLabel:"Pivotable"},{name:"queryable",kind:"boolean",description:"Can the Column be in included in Queries / Expressions",uiLabel:"Queryable"},{name:"readOnly",kind:"boolean",description:"Is the column editable; returns FALSE if the column has conditional/dynamic editability, assuming some rows are editable",uiLabel:"Read Only"},{name:"sortable",kind:"boolean",description:"Is Column sortable",uiLabel:"Sortable"},{name:"visible",kind:"boolean",description:"Is Column currently visible",uiLabel:"Visible"},{name:"width",kind:"number",description:"Column width",uiLabel:"Width",isOptional:!0}]},AdaptableColumnBase:{name:"AdaptableColumnBase",kind:"Interface",description:"Base class for Adaptable Column containing most important properties",properties:[{name:"columnId",kind:"string",description:"Name of Column in AG Grid (e.g. field or colId)",uiLabel:"Column Id"},{name:"dataType",kind:"unknown",description:"DataType of the column",uiLabel:"Data Type"},{name:"friendlyName",kind:"string",description:"How Column is referred to in Adaptable UI; `Caption` property in AG Grid",uiLabel:"Friendly Name"}]},AdaptableComparerFunction:{name:"AdaptableComparerFunction",kind:"TypeAlias",description:"Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required"},AdaptableCoordinate:{name:"AdaptableCoordinate",kind:"Interface",description:"Used by AdapTable to remember position of Floating Dashboard",properties:[{name:"x",kind:"number",description:"x axis number",uiLabel:"X"},{name:"y",kind:"number",description:"y axis number",uiLabel:"Y"}]},AdaptableFlashingCell:{name:"AdaptableFlashingCell",kind:"Interface",description:"Defines an Alert fired by AdapTable",properties:[{name:"cellDataChangedInfo",kind:"REFERENCE",description:"Data change which triggered the FlashingCell",uiLabel:"Cell Data Changed Info",isOptional:!0,reference:"CellDataChangedInfo"},{name:"direction",kind:"unknown",description:"Direction of the change: 'up', 'down' or 'neutral'",uiLabel:"Direction"},{name:"flashColumnIds",kind:"unknown",description:"Column Ids that are flashing",uiLabel:"Flash Column Ids"},{name:"flashingCellDefinition",kind:"REFERENCE",description:"Rule that caused the FlashingCell to fire",uiLabel:"Flashing Cell Definition",reference:"FlashingCellDefinition"},{name:"flashTarget",kind:"unknown",description:"What will flash (e.g. Cell, Row)",uiLabel:"Flash Target"},{name:"rowPrimaryKey",kind:"string",description:"Primary Key Value of Row which is flashing",uiLabel:"Row Primary Key"}]},AdaptableForm:{name:"AdaptableForm",kind:"Interface",description:"Defines a form which appears dynamically; used by Alerts & Export Custom Destinations",properties:[{name:"buttons",kind:"unknown",description:"Buttons to include in the Form",uiLabel:"Buttons",isOptional:!0},{name:"description",kind:"string",description:"Additional information to appear in the Form",uiLabel:"Description",isOptional:!0},{name:"fields",kind:"unknown",description:"Collection of Dynamic Fields to display",uiLabel:"Fields",isOptional:!0},{name:"title",kind:"string",description:"Title to appear in the Form",uiLabel:"Title",isOptional:!0}]},AdaptableFormat:{name:"AdaptableFormat",kind:"TypeAlias",description:"Object containing formatting information for Numeric and Date Columns"},AdaptableFormField:{name:"AdaptableFormField",kind:"Interface",description:"Defines a Field that appears in an Adaptable Form",properties:[{name:"defaultValue",kind:"unknown",description:"Field Default Value - can be of type string, boolean, number",uiLabel:"Default Value",isOptional:!0},{name:"fieldType",kind:"unknown",description:"Field Type: text, date, number, checkbox, select",uiLabel:"Field Type"},{name:"label",kind:"string",description:"Label to display in in the Field",uiLabel:"Label"},{name:"name",kind:"string",description:"Name of the Field",uiLabel:"Name"},{name:"options",kind:"unknown",description:"Items to populate the Select input",uiLabel:"Options",isOptional:!0}]},AdaptableIcon:{name:"AdaptableIcon",kind:"Interface",description:"Defines an icon to be used in AdapTable (e.g. in Dashboard Header and Buttons)",properties:[{name:"cssProperties",kind:"REFERENCE",description:"CSS Properties",uiLabel:"Css Properties",isOptional:!0,reference:"unknown"},{name:"src",kind:"string",description:"url specifying where icon can be found (mandatory)",uiLabel:"Src"},{name:"style",kind:"unknown",description:"The style for the icon - has height and width properties",uiLabel:"Style",isOptional:!0}]},AdaptableLoadStateFunction:{name:"AdaptableLoadStateFunction",kind:"Interface",description:"Allows the customization of state loading."},AdaptableMenuItem:{name:"AdaptableMenuItem",kind:"Interface",description:"Menu item used by Adaptable in both Column and Context Menus",properties:[{name:"icon",kind:"string",description:"Icon to display in Menu Item",uiLabel:"Icon",isOptional:!0},{name:"isVisible",kind:"boolean",description:"Whether menu item is visible",uiLabel:"Is Visible"},{name:"label",kind:"string",description:"Name that appears in the menu",uiLabel:"Label"},{name:"module",kind:"unknown",description:"Adaptable Module associated with (Adaptable) menu item.",uiLabel:"Module",isOptional:!0},{name:"onClick",kind:"unknown",description:"Function to invoke when (custom) menu item is clicked",uiLabel:"On Click",isOptional:!0},{name:"reduxAction",kind:"unknown",description:"Adaptable Redux Action to invoke when (Adaptable) menu item is clicked",uiLabel:"Redux Action",isOptional:!0},{name:"subItems",kind:"unknown",description:"Sub Menu Items to display",uiLabel:"Sub Items",isOptional:!0}]},AdaptableMessageType:{name:"AdaptableMessageType",kind:"TypeAlias",description:"Defines a Message Types: 'Success', 'Info', 'Warning' or 'Error'"},AdaptableModule:{name:"AdaptableModule",kind:"TypeAlias",description:"Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config"},AdaptableObject:{name:"AdaptableObject",kind:"Interface",description:"Base interface which all other Adaptable State-related objects extend",properties:[{name:"IsReadOnly",kind:"boolean",description:"Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')",uiLabel:"Is Read Only",isOptional:!0},{name:"Source",kind:"unknown",description:"Source of state object: 'Config' if provided via , 'User' or undefined for runtime state.",uiLabel:"Source",isOptional:!0},{name:"Uuid",kind:"REFERENCE",description:"Unique identifier for the Adaptable Object, generated and used internally by AdapTable",uiLabel:"Uuid",isOptional:!0,reference:"unknown"}]},AdaptableOptions:{name:"AdaptableOptions",kind:"Interface",description:"Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience",properties:[{name:"adaptableId",kind:"string",description:"Identifier for this instance of AdapTable",uiLabel:"Adaptable Id",isOptional:!0,gridInfo:"item",defaultValue:"'adaptable_id'"},{name:"adaptableQLOptions",kind:"REFERENCE",description:"Options for managing AdapTableQL",uiLabel:"Adaptable QL Options",isOptional:!0,reference:"AdaptableQLOptions"},{name:"adaptableStateKey",kind:"string",description:"Identifier used as localStorage persistence key for AdaptableState",uiLabel:"Adaptable State Key",isOptional:!0,gridInfo:"item",defaultValue:"`adaptableId` value"},{name:"alertOptions",kind:"REFERENCE",description:"Options for managing Alerts in AdapTable",uiLabel:"Alert Options",isOptional:!0,gridInfo:"container",reference:"AlertOptions"},{name:"autogeneratePrimaryKey",kind:"boolean",description:"Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities",uiLabel:"Autogenerate Primary Key",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"containerOptions",kind:"REFERENCE",description:"Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed",uiLabel:"Container Options",isOptional:!0,reference:"ContainerOptions"},{name:"customPredicateDefs",kind:"unknown",description:"Predicate definitions provided by developers at Design-Time",uiLabel:"Custom Predicate Defs",isOptional:!0},{name:"dashboardOptions",kind:"REFERENCE",description:"Options related to managing the Dashboard in AdapTable",uiLabel:"Dashboard Options",isOptional:!0,gridInfo:"container",reference:"DashboardOptions"},{name:"dataChangeHistoryOptions",kind:"REFERENCE",description:"Options to manage Data Change History Module which provides an overview of all data changes",uiLabel:"Data Change History Options",isOptional:!0,gridInfo:"container",reference:"DataChangeHistoryOptions"},{name:"editOptions",kind:"REFERENCE",description:"Options related to Editing in AdapTable including Server Validation",uiLabel:"Edit Options",isOptional:!0,gridInfo:"container",reference:"EditOptions"},{name:"entitlementOptions",kind:"REFERENCE",description:"Options for managing Entitlements",uiLabel:"Entitlement Options",isOptional:!0,gridInfo:"container",reference:"EntitlementOptions"},{name:"exportOptions",kind:"REFERENCE",description:"Options for managing Exporting and Reports in AdapTable",uiLabel:"Export Options",isOptional:!0,gridInfo:"container",reference:"ExportOptions"},{name:"filterOptions",kind:"REFERENCE",description:"Options for managing Filtering in AdapTable",uiLabel:"Filter Options",isOptional:!0,gridInfo:"container",reference:"FilterOptions"},{name:"flashingCellOptions",kind:"REFERENCE",description:"Options for managing Flashing Cells - primarily default values",uiLabel:"Flashing Cell Options",isOptional:!0,gridInfo:"container",reference:"FlashingCellOptions"},{name:"generalOptions",kind:"REFERENCE",description:"General options to manage AdapTable e.g. grouping behaviour, Primary Keys",uiLabel:"General Options",isOptional:!0,gridInfo:"container",reference:"GeneralOptions"},{name:"gridOptions",kind:"REFERENCE",description:"The AG Grid object which AdapTable interacts with. Note: if using AdapTable React or AdapTable Angular, no need to populate this property as AdapTable wires it up differently",uiLabel:"Grid Options",isOptional:!0,defaultValue:"n/a (Mandatory)",reference:"unknown"},{name:"layoutOptions",kind:"REFERENCE",description:"Options related to Layouts",uiLabel:"Layout Options",isOptional:!0,gridInfo:"container",reference:"LayoutOptions"},{name:"licenseKey",kind:"string",description:"Commercial license key. If the license is not provided or is expired, various visual information notes will be displayed and some functionality may be limited.",uiLabel:"License Key",isOptional:!0},{name:"menuOptions",kind:"REFERENCE",description:"Options for managing AdapTable menus",uiLabel:"Menu Options",isOptional:!0,gridInfo:"container",reference:"MenuOptions"},{name:"modules",kind:"unknown",description:"AG Grid Modules that should be provided - needs to be provided separately",uiLabel:"Modules",isOptional:!0},{name:"notificationsOptions",kind:"REFERENCE",description:"Options for managing Notifications in AdapTable",uiLabel:"Notifications Options",isOptional:!0,gridInfo:"container",reference:"NotificationsOptions"},{name:"plugins",kind:"unknown",description:"Used for managing the AdapTable Plugins",uiLabel:"Plugins",isOptional:!0},{name:"predefinedConfig",kind:"unknown",description:"User State set at design-time and shipped with AdapTable for first use; can be `PredefinedConfig` object or url to file containing config",uiLabel:"Predefined Config",isOptional:!0,defaultValue:"undefined"},{name:"primaryKey",kind:"string",description:"Name of Column in AdapTable guaranteed to contain unique values",uiLabel:"Primary Key",gridInfo:"item",defaultValue:"n/a (Mandatory)"},{name:"searchOptions",kind:"REFERENCE",description:"Options for managing Search related functions in AdapTable",uiLabel:"Search Options",isOptional:!0,gridInfo:"container",reference:"SearchOptions"},{name:"settingsPanelOptions",kind:"REFERENCE",description:"Setting panel options",uiLabel:"Settings Panel Options",isOptional:!0,gridInfo:"container",reference:"unknown"},{name:"stateOptions",kind:"REFERENCE",description:"Options related to state hydration / dehydration - allows users to intercept state persistence and state loading and change default behavior of saving to local storage",uiLabel:"State Options",isOptional:!0,reference:"StateOptions"},{name:"teamSharingOptions",kind:"REFERENCE",description:"Options for managing 'Team Sharing' which allows users to create Adaptable Objects and share with colleagues",uiLabel:"Team Sharing Options",isOptional:!0,gridInfo:"container",reference:"TeamSharingOptions"},{name:"toolPanelOptions",kind:"REFERENCE",description:"Options related to managing the Tool Panel elements in AdapTable",uiLabel:"Tool Panel Options",isOptional:!0,gridInfo:"container",reference:"ToolPanelOptions"},{name:"userInterfaceOptions",kind:"REFERENCE",description:"Options for managing the User Interface elements of AdapTable, i.e. Action Columns, Color Palette etc.",uiLabel:"User Interface Options",isOptional:!0,gridInfo:"container",reference:"UserInterfaceOptions"},{name:"userName",kind:"string",description:"Name of current AdapTable user",uiLabel:"User Name",isOptional:!0,gridInfo:"item",defaultValue:"'anonymous'"}]},AdaptablePersistStateFunction:{name:"AdaptablePersistStateFunction",kind:"Interface",description:"Allows the customization of state persistence."},AdaptablePredicate:{name:"AdaptablePredicate",kind:"Interface",description:"Predicate object used by AdapTableQL - essentially a boolean function",properties:[{name:"Inputs",kind:"unknown",description:"Optional Inputs that might be needed for evaluation",uiLabel:"Inputs",isOptional:!0},{name:"PredicateId",kind:"string",description:"Id of Predicate (e.g. `Equals`, `GreaterThan`)",uiLabel:"Predicate Id"}]},AdaptablePredicateDef:{name:"AdaptablePredicateDef",kind:"Interface",description:"Defines a Predicate - include where it can run and what it does",properties:[{name:"columnScope",kind:"REFERENCE",description:"Columns (or DataTypes) where Predicate is active",uiLabel:"Column Scope",reference:"AdaptableScope"},{name:"handler",kind:"unknown",description:"Actual boolean function invoked when evaluating the Predicate",uiLabel:"Handler"},{name:"icon",kind:"unknown",description:"Icon to show (primarily used in Filter dropdown)",uiLabel:"Icon",isOptional:!0},{name:"id",kind:"string",description:"Unique Id for the object",uiLabel:"Id"},{name:"inputs",kind:"unknown",description:"Inputs the Predicate can take",uiLabel:"Inputs",isOptional:!0},{name:"label",kind:"string",description:"Name of the Predicate",uiLabel:"Label"},{name:"moduleScope",kind:"unknown",description:"Modules where the Predicate can run",uiLabel:"Module Scope"},{name:"onlyQuickFilter",kind:"boolean",description:"Display this predicate only in Quick Filter Bar (and NOT in Filter Form)",uiLabel:"Only Quick Filter",isOptional:!0},{name:"shortcuts",kind:"unknown",description:"Keyboard shortcuts to initiate predicate - used in Quick Filter bar",uiLabel:"Shortcuts",isOptional:!0},{name:"toString",kind:"unknown",description:"String representation of the Predicate",uiLabel:"To String",isOptional:!0}]},AdaptableQLOptions:{name:"AdaptableQLOptions",kind:"Interface",description:"Options for managing AdaptableQL - the Adaptable Query Lanaguage which evaluates Predicates and Expressions",properties:[{name:"caseSensitiveTextComparisons",kind:"boolean",description:"Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates",uiLabel:"Case Sensitive Text Comparisons",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"expressionOptions",kind:"REFERENCE",description:"Options for managing Expressions in AdapTableQL",uiLabel:"Expression Options",isOptional:!0,reference:"ExpressionOptions"},{name:"externallyEvaluatedModules",kind:"REFERENCE",description:"Which searching and filtering options should take place on server",uiLabel:"Externally Evaluated Modules",isOptional:!0,gridInfo:"item",defaultValue:"undefined",reference:"unknown"}]},AdaptableQuery:{name:"AdaptableQuery",kind:"TypeAlias",description:"An AdaptableQuery can be either a Boolean, Scalar, Observable, AggregatedBoolean, or AggregatedScalar expression"},AdaptableReadyInfo:{name:"AdaptableReadyInfo",kind:"Interface",description:"Object returned by `AdaptableReady` event - fired when AdapTable has loaded",properties:[{name:"gridOptions",kind:"REFERENCE",description:"Underlying AG Grid GridOptions object",uiLabel:"Grid Options",reference:"unknown"}]},AdaptableRowChangedAlert:{name:"AdaptableRowChangedAlert",kind:"Interface",description:"Defines an Alert fired by AdapTable when a row is changed",properties:[{name:"gridDataChangedInfo",kind:"REFERENCE",description:"Row DataChange which triggered Alert",uiLabel:"Grid Data Changed Info",reference:"GridDataChangedInfo"}]},AdaptableScope:{name:"AdaptableScope",kind:"TypeAlias",description:"Defines where a given Object / Module is active"},AdaptableSearchState:{name:"AdaptableSearchState",kind:"Interface",description:"Current Searches and Filter in AdapTable",properties:[{name:"columnFilters",kind:"unknown",description:"Currently applied Column Filters",uiLabel:"Column Filters"},{name:"currentQuery",kind:"unknown",description:"Current Query",uiLabel:"Current Query"},{name:"dataSource",kind:"unknown",description:"Current Data Source (if one selected)",uiLabel:"Data Source"},{name:"queryAST",kind:"unknown",description:"AST for Current Query",uiLabel:"Query AST"}]},AdaptableSortState:{name:"AdaptableSortState",kind:"Interface",description:"Overview of current sorting state in the grid",properties:[{name:"columnSorts",kind:"unknown",description:"Which columns have sorting applied and,if so, which direction",uiLabel:"Column Sorts"},{name:"customSorts",kind:"unknown",description:"All the Custom Sorts in State; this is always sent even if no custom sorts are active",uiLabel:"Custom Sorts"}]},AdaptableState:{name:"AdaptableState",kind:"Interface",description:"The main state object that Adaptable persists"},AdaptableStateChangedInfo:{name:"AdaptableStateChangedInfo",kind:"Interface",description:"Object returned by the `AdaptableStateChanged` event",properties:[{name:"action",kind:"unknown",description:"The Redux Action that was invoked",uiLabel:"Action"},{name:"actionName",kind:"string",description:"Name of the Action",uiLabel:"Action Name"},{name:"adaptableId",kind:"string",description:"Current AdapTableId",uiLabel:"Adaptable Id"},{name:"adaptableStateKey",kind:"string",description:"Current Adaptable State Key",uiLabel:"Adaptable State Key"},{name:"clientTimestamp",kind:"date",description:"Time on user's computer when message was sent",uiLabel:"Client Timestamp"},{name:"newState",kind:"REFERENCE",description:"Adaptable State after the Action",uiLabel:"New State",reference:"AdaptableState"},{name:"oldState",kind:"REFERENCE",description:"Adaptable State before the Action",uiLabel:"Old State",reference:"AdaptableState"},{name:"userName",kind:"string",description:"Name of current AdapTable user",uiLabel:"User Name"}]},AdaptableStyle:{name:"AdaptableStyle",kind:"Interface",description:"Style object used in numerous AdapTable Modules",properties:[{name:"BackColor",kind:"string",description:"Colour background of cell: provide hex value or name",uiLabel:"Back Color",isOptional:!0},{name:"BorderColor",kind:"string",description:"Colour of cell border: provide hex value or name",uiLabel:"Border Color",isOptional:!0},{name:"ClassName",kind:"string",description:"Existing CSS Class; use instead of setting other object properties",uiLabel:"Class Name",isOptional:!0},{name:"FontSize",kind:"unknown",description:"Size of font: `XSmall`, `Small`, `Medium`, `Large` or `XLarge`",uiLabel:"Font Size",isOptional:!0},{name:"FontStyle",kind:"unknown",description:"Style of font: `Normal` or `Italic`",uiLabel:"Font Style",isOptional:!0},{name:"FontWeight",kind:"unknown",description:"Weight of font: `Normal` or `Bold`",uiLabel:"Font Weight",isOptional:!0},{name:"ForeColor",kind:"string",description:"Font colour in cell: provide hex value or name",uiLabel:"Fore Color",isOptional:!0}]},AdaptableTheme:{name:"AdaptableTheme",kind:"Interface",description:"Used for creating User (i.e. Custom) Themes",properties:[{name:"AgGridClassName",kind:"string",description:"Ag Grid theme to apply when loading theme",uiLabel:"Ag Grid Class Name",isOptional:!0},{name:"Description",kind:"string",description:"Description of Theme - will appear in Theme Toolbar and Toolpanel",uiLabel:"Description"},{name:"Name",kind:"string",description:"Name of the Theme",uiLabel:"Name"},{name:"VendorGridClassName",kind:"string",description:"deprecated use `AgGridClassName` property instead",uiLabel:"Vendor Grid Class Name",isOptional:!0}]},AdaptableToolPanelDefinition:{name:"AdaptableToolPanelDefinition",kind:"Interface",description:"Defines a ToolPanel - Name and VisibilityMode (Expanded / Collapsed)",properties:[{name:"Name",kind:"unknown",description:"ToolPanel name - either an Adaptable Module or a Custom ToolPanel (defined in ToolPanel Options)",uiLabel:"Name"},{name:"VisibilityMode",kind:"unknown",description:"Whether the ToolPanel is 'expanded' or 'collapsed'",uiLabel:"Visibility Mode",isOptional:!0,defaultValue:"'collapsed'"}]},AlertApi:{name:"AlertApi",kind:"Interface",description:"Provides run-time access to Alert function and associated State",properties:[{name:"addAlertDefinition",kind:"function",description:"Adds new Alert Definition",uiLabel:"Add Alert Definition"},{name:"displayAlert",kind:"function",description:"Displays (fully formed) inputted Alert to the User",uiLabel:"Display Alert"},{name:"displayMessageAlertPopup",kind:"function",description:"Displays given Alert as a Popup",uiLabel:"Display Message Alert Popup"},{name:"editAlertDefinition",kind:"function",description:"Edits Alert in State with given one",uiLabel:"Edit Alert Definition"},{name:"executeAlertAction",kind:"function",description:"Runs after an Alert Action is invoked",uiLabel:"Execute Alert Action"},{name:"executeAlertButton",kind:"function",description:"Runs after a button in an Alert Form is clicked",uiLabel:"Execute Alert Button"},{name:"getActiveNonReactiveAlertDefinitions",kind:"function",description:"Retrieves all active (non-suspended) Alert Definitions in Alert State which are NOT Reactive (BooleanQuery)",uiLabel:"Get Active Non Reactive Alert Definitions"},{name:"getActiveReactiveAlertDefinitions",kind:"function",description:"Retrieves all active (non-suspended) Alert Definitions in Alert State which are reactive (ObservableQuery & AggregationQuery)",uiLabel:"Get Active Reactive Alert Definitions"},{name:"getAdaptableFormByName",kind:"function",description:"Retrieeves the Adaptable Form with the given name",uiLabel:"Get Adaptable Form By Name"},{name:"getAlertDefinitionById",kind:"function",description:"Retrieves alert definition by id",uiLabel:"Get Alert Definition By Id"},{name:"getAlertDefinitions",kind:"function",description:"Retrieves all Alert Definitions in Alert State",uiLabel:"Get Alert Definitions"},{name:"getAlertDefinitionsWithAllowEdit",kind:"function",description:"Retrieves all Alert Definitions which allow a Cell Edit",uiLabel:"Get Alert Definitions With Allow Edit"},{name:"getAlertDefinitionsWithPreventEdit",kind:"function",description:"Retrieves all Alert Definitions which prevent a Cell Edit",uiLabel:"Get Alert Definitions With Prevent Edit"},{name:"getAlertDescription",kind:"function",description:"Returns a description of an Alert Definition",uiLabel:"Get Alert Description"},{name:"getAlertPredicateDefs",kind:"function",description:"Retrieves all Predicate Defs with Module Scope of Alert",uiLabel:"Get Alert Predicate Defs"},{name:"getAlertPredicateDefsForScope",kind:"function",description:"Retrieves all Predicate Defs that match given Scope",uiLabel:"Get Alert Predicate Defs For Scope"},{name:"getAlertRuleDescription",kind:"function",description:"Returns a description of an Alert Definition's Rule",uiLabel:"Get Alert Rule Description"},{name:"getAlertState",kind:"function",description:"Retrieves Alert section from Adaptable State",uiLabel:"Get Alert State"},{name:"getNonReactiveAlertDefinitions",kind:"function",description:"Retrieves all Alert Definitions in Alert State which are NOT Reactive (BooleanQuery)",uiLabel:"Get Non Reactive Alert Definitions"},{name:"getReactiveAlertDefinitions",kind:"function",description:"Retrieves all Alert Definitions in Alert State which are reactive (ObservableQuery & AggregationQuery)",uiLabel:"Get Reactive Alert Definitions"},{name:"publishAlertFiredEvent",kind:"function",description:"Publishes an event when an Alert is triggered",uiLabel:"Publish Alert Fired Event"},{name:"showAlert",kind:"function",description:"Creates Alert formed from inputted values and displays it.",uiLabel:"Show Alert"},{name:"showAlertError",kind:"function",description:"Creates Alert formed from inputted values and displays it as Error Alert.",uiLabel:"Show Alert Error"},{name:"showAlertInfo",kind:"function",description:"Creates Alert formed from inputted values and displays it as Info Alert.",uiLabel:"Show Alert Info"},{name:"showAlertPopup",kind:"function",description:"Opens Settings Panel with Alert section selected and visible",uiLabel:"Show Alert Popup"},{name:"showAlertSuccess",kind:"function",description:"Creates Alert formed from inputted values and displays it as Succcess Alert.",uiLabel:"Show Alert Success"},{name:"showAlertWarning",kind:"function",description:"Creates Alert formed from inputted values and displays it as Warning Alert.",uiLabel:"Show Alert Warning"},{name:"suspendAlertDefinition",kind:"function",description:"Suspends Alert Definition",uiLabel:"Suspend Alert Definition"},{name:"unSuspendAlertDefinition",kind:"function",description:"Activates a suspended Alert Definition",uiLabel:"Un Suspend Alert Definition"}]},AlertButton:{name:"AlertButton",kind:"Interface",description:"Defines a button that appears in an Alert Form",properties:[{name:"Action",kind:"unknown",description:"Predefined Action(s) to trigger when button is clicked; but the implementation in `actionHandlers` property of Alert Options",uiLabel:"Action",isOptional:!0},{name:"ButtonStyle",kind:"REFERENCE",description:"Style for the Button",uiLabel:"Button Style",isOptional:!0,reference:"ButtonStyle"},{name:"Label",kind:"string",description:"Label to show in the Button",uiLabel:"Label"},{name:"Tooltip",kind:"string",description:"ToolTip to display",uiLabel:"Tooltip",isOptional:!0}]},AlertButtonContext:{name:"AlertButtonContext",kind:"Interface",description:"Context required by functions when using an Alert Button",properties:[{name:"alert",kind:"REFERENCE",description:"Alert that has been triggered",uiLabel:"Alert",reference:"AdaptableAlert"},{name:"formData",kind:"REFERENCE",description:"Data in the Alert Form",uiLabel:"Form Data",isOptional:!0,reference:"unknown"}]},AlertDefinition:{name:"AlertDefinition",kind:"Interface",description:"The Alert Definition object used in the Alert function",properties:[{name:"AlertForm",kind:"unknown",description:"Form to display in Alert with buttons and inputs",uiLabel:"Alert Form",isOptional:!0},{name:"AlertProperties",kind:"REFERENCE",description:"Series of properties which set what happens when Alert is triggered",uiLabel:"Alert Properties",isOptional:!0,reference:"AlertProperties"},{name:"MessageText",kind:"string",description:"Alert Message - can be string or function; if not provided AdapTable creates dynamically using Rule & Scope",uiLabel:"Message Text",isOptional:!0},{name:"MessageType",kind:"REFERENCE",description:"Type of Alert: 'Info', 'Success', 'Warning', 'Error'; influences Alert colour, icon and logging",uiLabel:"Message Type",reference:"AdaptableMessageType"},{name:"Rule",kind:"REFERENCE",description:"When Alert should be triggered",uiLabel:"Rule",reference:"AlertRule"},{name:"Scope",kind:"REFERENCE",description:"Where Alert can be triggered: one, some or all columns or DataTypes",uiLabel:"Scope",reference:"AdaptableScope"}]},AlertFiredInfo:{name:"AlertFiredInfo",kind:"Interface",description:"Object returned by the `AlertFired` event",properties:[{name:"alert",kind:"REFERENCE",description:"Alert which has been fired",uiLabel:"Alert",reference:"AdaptableAlert"}]},AlertForm:{name:"AlertForm",kind:"TypeAlias",description:"Form to show in an Alert"},AlertOptions:{name:"AlertOptions",kind:"Interface",description:"Options related to Alerts in Adaptable.",properties:[{name:"actionHandlers",kind:"unknown",description:"onClick Handlers for Alert Buttons (defined in Alert State)",uiLabel:"Action Handlers",isOptional:!0},{name:"alertForms",kind:"unknown",description:"Full definitions of Alert Forms - the names of which are provided in Alert State",uiLabel:"Alert Forms",isOptional:!0},{name:"alertMessageText",kind:"unknown",description:"Function providing Message to display in Alert; if empty, AdapTable provides dynamically",uiLabel:"Alert Message Text",isOptional:!0},{name:"cellHighlightDuration",kind:"number",description:"How long (in ms) a cell will be highlighted",uiLabel:"Cell Highlight Duration",isOptional:!0,gridInfo:"item",defaultValue:"3000"},{name:"dataChangeDetectionPolicy",kind:"unknown",description:"Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data",uiLabel:"Data Change Detection Policy",isOptional:!0,gridInfo:"item",defaultValue:"'rawValue'"},{name:"maxAlertsInStore",kind:"number",description:"How many alerts held in State at any one time; when limit is breached, oldest alert will be removed",uiLabel:"Max Alerts In Store",isOptional:!0,gridInfo:"item",defaultValue:"20"}]},AlertProperties:{name:"AlertProperties",kind:"Interface",description:"Additional properties that specify how a particular Alert will ALWAYS behave",properties:[{name:"DisplayNotification",kind:"boolean",description:"Displays a notification when Alert is triggered",uiLabel:"Display Notification",isOptional:!0},{name:"HighlightCell",kind:"unknown",description:"Colours updated cell using `MessageType` property of triggering Alert Definition",uiLabel:"Highlight Cell",isOptional:!0},{name:"HighlightRow",kind:"unknown",description:"Colours updated cell using `MessageType` property of triggering Alert Definition",uiLabel:"Highlight Row",isOptional:!0},{name:"JumpToCell",kind:"boolean",description:"Grid will 'jump' to the changed cell which triggered the Alert",uiLabel:"Jump To Cell",isOptional:!0},{name:"JumpToRow",kind:"boolean",description:"Grid will 'jump' to the newly added row which triggered the Alert",uiLabel:"Jump To Row",isOptional:!0},{name:"LogToConsole",kind:"boolean",description:"Logs the Alert message to the console",uiLabel:"Log To Console",isOptional:!0},{name:"PreventEdit",kind:"boolean",description:"Automatically prevent any cell edit which triggered the Alert (i.e. validation)",uiLabel:"Prevent Edit",isOptional:!0,defaultValue:"false"},{name:"ShowInDiv",kind:"boolean",description:"Shows Alert text in the div specificed in `alertContainer` property of Container Options",uiLabel:"Show In Div",isOptional:!0}]},AlertRule:{name:"AlertRule",kind:"TypeAlias",description:"The Alert Rule defined by either an AdaptablePredicate or an AdaptableQuery"},AlertState:{name:"AlertState",kind:"Interface",description:"Predefined Configuration for Alert Module",properties:[{name:"AlertDefinitions",kind:"unknown",description:"Alert Definitions - will trigger Alerts when rule is met",uiLabel:"Alert Definitions",isOptional:!0}]},AlternativeModuleName:{name:"AlternativeModuleName",kind:"Interface",description:"Defines a new name for an Adaptable Module (e.g. change Dashboard to Grid Manager)",properties:[{name:"adaptableModule",kind:"REFERENCE",description:"Adaptable Module to rename",uiLabel:"Adaptable Module",reference:"AdaptableModule"},{name:"newName",kind:"string",description:"New name to use",uiLabel:"New Name"}]},AngularFrameworkComponent:{name:"AngularFrameworkComponent",kind:"TypeAlias",description:"An Angular component defined by its type and an optional initialisation callback."},ApplicationApi:{name:"ApplicationApi",kind:"Interface",description:"Provides run-time access to the Application Module",properties:[{name:"addApplicationDataEntry",kind:"function",description:"Adds new Application Data Entry",uiLabel:"Add Application Data Entry"},{name:"createApplicationDataEntry",kind:"function",description:"Creates new Application Data Entry with given Key and Value",uiLabel:"Create Application Data Entry"},{name:"deleteApplicationDataEntry",kind:"function",description:"Deletes given Application Data Entry",uiLabel:"Delete Application Data Entry"},{name:"editApplicationDataEntry",kind:"function",description:"Edits given Application Data Entry",uiLabel:"Edit Application Data Entry"},{name:"getApplicationDataEntries",kind:"function",description:"Retrieves all Key Value Pairs in Application state",uiLabel:"Get Application Data Entries"},{name:"getApplicationDataEntriesByValue",kind:"function",description:"Gets Application Data Entry with given value",uiLabel:"Get Application Data Entries By Value"},{name:"getApplicationDataEntryByKey",kind:"function",description:"Gets Application Data Entry with given key",uiLabel:"Get Application Data Entry By Key"},{name:"getApplicationState",kind:"function",description:"Retrieves Application section from Adaptable State",uiLabel:"Get Application State"}]},ApplicationDataEntry:{name:"ApplicationDataEntry",kind:"Interface",description:"Simple Key / Value pair object used to store custom - stringifiable - data in Adaptable State.",properties:[{name:"Key",kind:"string",description:"Key of Key / Value pair - always stored as a string",uiLabel:"Key"},{name:"Value",kind:"unknown",description:"Value of Key / Value pair (actual data being stored) - needs to stringifiable",uiLabel:"Value"}]},ApplicationState:{name:"ApplicationState",kind:"Interface",description:"Predefined Configuration for the Application Module",properties:[{name:"ApplicationDataEntries",kind:"unknown",description:"Array of Key / Value pairs enabling custom data to be stored in Adaptable State.",uiLabel:"Application Data Entries",isOptional:!0}]},BaseMenuContext:{name:"BaseMenuContext",kind:"Interface",description:"Base Context object used for both Column and Context Menu Context",properties:[{name:"adaptableApi",kind:"REFERENCE",description:"The Adaptable Api - included as a convenience",uiLabel:"Adaptable Api",reference:"AdaptableApi"}]},BulkUpdateApi:{name:"BulkUpdateApi",kind:"Interface",description:"Provides run-time access to the Bulk Update Module",properties:[{name:"applyBulkUpdate",kind:"function",description:"Applies a Bulk Update to given Cells",uiLabel:"Apply Bulk Update"},{name:"getBulkUpdateValue",kind:"function",description:"Returns current Bulk Update value",uiLabel:"Get Bulk Update Value"},{name:"setBulkUpdateValue",kind:"function",description:"Sets Bulk Update value",uiLabel:"Set Bulk Update Value"},{name:"showBulkUpdatePopup",kind:"function",description:"Opens Settings Panel with Bulk Update section selected and visible",uiLabel:"Show Bulk Update Popup"}]},BulkUpdatePermittedValues:{name:"BulkUpdatePermittedValues",kind:"Interface",description:"User to define permitted values when updating cells via bulk update"},ButtonStyle:{name:"ButtonStyle",kind:"Interface",description:"Defines the look and feel of an Adaptable Button",properties:[{name:"className",kind:"string",description:"CSS Classname to use for the Button",uiLabel:"Class Name",isOptional:!0},{name:"tone",kind:"unknown",description:"Button's Tone - values: 'success', 'error', 'neutral', 'none', 'warning', 'info', 'accent'",uiLabel:"Tone",isOptional:!0,defaultValue:"'neutral'"},{name:"variant",kind:"unknown",description:"How Button appears - values: 'text', 'outlined', 'raised'",uiLabel:"Variant",isOptional:!0,defaultValue:"'outlined'"}]},CalculatedColumn:{name:"CalculatedColumn",kind:"Interface",description:"Defines a Column where the display value is derived from other values in row, and the definition is stored in State.",properties:[{name:"CalculatedColumnSettings",kind:"REFERENCE",description:"Additional optional properties for Column (e.g. filterable, resizable)",uiLabel:"Calculated Column Settings",isOptional:!0,reference:"CalculatedColumnSettings"},{name:"ColumnId",kind:"string",description:"Name of Calculated Column",uiLabel:"Column Id"},{name:"FriendlyName",kind:"string",description:"Name to be used in Column Header; if blank `ColumnId` is used",uiLabel:"Friendly Name",isOptional:!0},{name:"Query",kind:"REFERENCE",description:"Scalar/AggregatedScalar Query used by AdapTableQL to evaluate Column's value",uiLabel:"Query",isOptional:!0,reference:"AdaptableCalculatedColumnQuery"}]},CalculatedColumnApi:{name:"CalculatedColumnApi",kind:"Interface",description:"Provides run-time access to the Calculated Column Module",properties:[{name:"addCalculatedColumn",kind:"function",description:"Adds new Calculated Column",uiLabel:"Add Calculated Column"},{name:"deleteCalculatedColumn",kind:"function",description:"Removes Calculated Column from State",uiLabel:"Delete Calculated Column"},{name:"editCalculatedColumn",kind:"function",description:"Edits given Calculated Column",uiLabel:"Edit Calculated Column"},{name:"editCalculatedColumns",kind:"function",description:"Edits given Calculated Columns",uiLabel:"Edit Calculated Columns"},{name:"getAllCalculatedColumn",kind:"function",description:"Retrieves all Calculated Columns in Adaptable State",uiLabel:"Get All Calculated Column"},{name:"getCalculatedColumnById",kind:"function",description:"Retrieves Calculated Column by the unique identifier of the Adaptable Object in the CalculatedColumnState",uiLabel:"Get Calculated Column By Id"},{name:"getCalculatedColumnForColumnId",kind:"function",description:"Gets Calculated Column, if any, for given ColumnId",uiLabel:"Get Calculated Column For Column Id"},{name:"getCalculatedColumnModuleReferences",kind:"function",description:"Returns all the references in the AdaptableState of the given CalculatedColumn",uiLabel:"Get Calculated Column Module References"},{name:"getCalculatedColumnsReferencingColumnId",kind:"function",description:"Returns all Calculated Columns whose Expression contains the ColumnId",uiLabel:"Get Calculated Columns Referencing Column Id"},{name:"getCalculatedColumnState",kind:"function",description:"Retrieves Calculated Column section from Adaptable State",uiLabel:"Get Calculated Column State"},{name:"getReferencedColumnIdsForCalculatedColumn",kind:"function",description:"Gets any ColumnIds referenced in a Calculated Column",uiLabel:"Get Referenced Column Ids For Calculated Column"},{name:"getReferencedColumnIdsForCalculatedColumnId",kind:"function",description:"Gets any ColumnIds referenced in a Calculated Column",uiLabel:"Get Referenced Column Ids For Calculated Column Id"},{name:"showCalculatedColumnPopup",kind:"function",description:"Opens Settings Panel with Calculated Column section selected and visible",uiLabel:"Show Calculated Column Popup"}]},CalculatedColumnSettings:{name:"CalculatedColumnSettings",kind:"Interface",description:"Set of optional properties that define a Calculated Column's behaviour",properties:[{name:"DataType",kind:"unknown",description:"Expression's return value DataType; inferred by AdapTable but settable by User",uiLabel:"Data Type",isOptional:!0},{name:"ShowToolTip",kind:"boolean",description:"Show underlying Expression as ToolTip when hovering over a cell",uiLabel:"Show Tool Tip",isOptional:!0,defaultValue:"false"}]},CalculatedColumnState:{name:"CalculatedColumnState",kind:"Interface",description:"Predefined Configuration for Calculated Column Module",properties:[{name:"CalculatedColumns",kind:"unknown",description:"Collection of Calculated Columns",uiLabel:"Calculated Columns",isOptional:!0}]},CellChangedInfo:{name:"CellChangedInfo",kind:"Interface",description:"EventInfo returned by CellChanged event",properties:[{name:"cellChange",kind:"REFERENCE",description:"Object providing full information of the cell (and column and row) that changed",uiLabel:"Cell Change",reference:"CellDataChangedInfo"}]},CellColorRange:{name:"CellColorRange",kind:"Interface",description:"Defines which Colours to show in Gradient and Percent Bar Styles",properties:[{name:"Color",kind:"string",description:"Cell colour to use for values that fall inside Range",uiLabel:"Color"},{name:"Max",kind:"number",description:"End number of Range",uiLabel:"Max"},{name:"Min",kind:"number",description:"Start number of Range",uiLabel:"Min"},{name:"ReverseGradient",kind:"boolean",description:"Reverses the Gradient so the lower the cell value the darker the colour",uiLabel:"Reverse Gradient",isOptional:!0}]},CellDataChangedInfo:{name:"CellDataChangedInfo",kind:"Interface",description:"Defines a Cell Edit - includes full details of old and new values, the column and the enclosing Row",properties:[{name:"changedAt",kind:"number",description:"Timestamp of change occurrence (in milliseconds)",uiLabel:"Changed At"},{name:"column",kind:"REFERENCE",description:"Column in which cell is situated",uiLabel:"Column",reference:"AdaptableColumn"},{name:"newValue",kind:"unknown",description:"New value for the cell",uiLabel:"New Value"},{name:"oldValue",kind:"unknown",description:"Value in the Cell before the edit",uiLabel:"Old Value"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key Column's value for the row where edited cell is situated",uiLabel:"Primary Key Value"},{name:"rowData",kind:"unknown",description:"Data in the Row",uiLabel:"Row Data",isOptional:!0},{name:"rowNode",kind:"REFERENCE",description:"AG Grid RowNode that contains the cell",uiLabel:"Row Node",isOptional:!0,reference:"unknown"},{name:"trigger",kind:"unknown",description:"What triggered the change - user, background change or a reverted change?",uiLabel:"Trigger",isOptional:!0}]},CellHighlightInfo:{name:"CellHighlightInfo",kind:"Interface",description:"Defines how a given Cell in AdapTable should be highlighted",properties:[{name:"columnId",kind:"string",description:"Id of Column containing Cell",uiLabel:"Column Id"},{name:"highlightStyle",kind:"REFERENCE",description:"Adaptable Style to use in the Cell Highlight",uiLabel:"Highlight Style",reference:"AdaptableStyle"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key Value of row containing Cell",uiLabel:"Primary Key Value"},{name:"timeout",kind:"number",description:"Time after which Cell should be unhighlighted",uiLabel:"Timeout",isOptional:!0}]},CellSummaryApi:{name:"CellSummaryApi",kind:"Interface",description:"Provides run-time access to the Cell Summary Module",properties:[{name:"getCellSummaryOperationDefinitions",kind:"function",description:"Retrieves all Cell Summary Definitions from Cell Summary State",uiLabel:"Get Cell Summary Operation Definitions"},{name:"getCurrentCellSummaryOperation",kind:"function",description:"Retrieves currently selected Cell Summary Operation",uiLabel:"Get Current Cell Summary Operation"},{name:"setCurrentCellSummaryOperation",kind:"function",description:"Sets the currently selected Cell Summary Operation",uiLabel:"Set Current Cell Summary Operation"},{name:"showCellSummaryPopup",kind:"function",description:"Opens Settings Panel with Cell Summary section selected and visible",uiLabel:"Show Cell Summary Popup"}]},CellSummaryOperationParams:{name:"CellSummaryOperationParams",kind:"Interface",description:"Params provided to a custom Cell Summary Operation function",properties:[{name:"allValues",kind:"unknown",description:"All values of selected cells",uiLabel:"All Values"},{name:"api",kind:"REFERENCE",description:"Adaptable Api object",uiLabel:"Api",reference:"AdaptableApi"},{name:"distinctCount",kind:"number",description:"Count of currently selected cells",uiLabel:"Distinct Count"},{name:"numericColumns",kind:"unknown",description:"Any numeric columns in current selection",uiLabel:"Numeric Columns"},{name:"numericValues",kind:"unknown",description:"Any numeric values in current selection",uiLabel:"Numeric Values"},{name:"selectedCellInfo",kind:"REFERENCE",description:"Currently selected cells",uiLabel:"Selected Cell Info",reference:"SelectedCellInfo"}]},CellSummmary:{name:"CellSummmary",kind:"Interface",description:"Defines the Summary operations provides for Selected Cells"},CellTextOption:{name:"CellTextOption",kind:"TypeAlias",description:"List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button"},CellValuesList:{name:"CellValuesList",kind:"TypeAlias",description:"Use PermittedValues instead"},CheckboxColumnClickedInfo:{name:"CheckboxColumnClickedInfo",kind:"Interface",description:"Event Info published by CheckboxColumnClicked event",properties:[{name:"column",kind:"REFERENCE",description:"Name of Column where Checkbox was clicked",uiLabel:"Column",reference:"AdaptableColumn"},{name:"isChecked",kind:"boolean",description:"Whether or not the Checkbox is checked",uiLabel:"Is Checked"},{name:"primaryKeyValue",kind:"unknown",description:"Value in Primary Key Column for row where Checkbox was clicked",uiLabel:"Primary Key Value"},{name:"rowData",kind:"unknown",description:"Data in the row where the Checkbox was clicked",uiLabel:"Row Data"}]},ColumnApi:{name:"ColumnApi",kind:"Interface",description:"A large range of column-related functions in AdapTable",properties:[{name:"addColumnsToSelection",kind:"function",description:"Adds (highlights) a group of Columns to any existing selection",uiLabel:"Add Columns To Selection"},{name:"addColumnToSelection",kind:"function",description:"Adds (highlights) a Column to any existing selection",uiLabel:"Add Column To Selection"},{name:"autosizeAllColumns",kind:"function",description:"Autosizes all Columns in the Grid",uiLabel:"Autosize All Columns"},{name:"autosizeColumn",kind:"function",description:"AutoSizes a Column",uiLabel:"Autosize Column"},{name:"autosizeColumns",kind:"function",description:"Autosizes given Columns",uiLabel:"Autosize Columns"},{name:"doesColumnExist",kind:"function",description:"Returns true if the given Column exists in the Grid",uiLabel:"Does Column Exist"},{name:"getAggregetableColumns",kind:"function",description:"Returns all Aggregatable Columns",uiLabel:"Get Aggregetable Columns"},{name:"getAgGridColumnFieldForAdaptableColumn",kind:"function",description:"Retrieves AG Grid's field property for the column",uiLabel:"Get Ag Grid Column Field For Adaptable Column"},{name:"getAgGridColumnForAdaptableColumn",kind:"function",description:"Retrieves AG Grid's column for an Adaptable column",uiLabel:"Get Ag Grid Column For Adaptable Column"},{name:"getAgGridColumnType",kind:"function",description:"Retrieves 'ColumnType' property for a given Column",uiLabel:"Get Ag Grid Column Type"},{name:"getAllColumnFriendlyNames",kind:"function",description:"Retrieves a list providing the Friendly Name / Caption for all columns",uiLabel:"Get All Column Friendly Names"},{name:"getBooleanColumns",kind:"function",description:"Returns all boolean Columns",uiLabel:"Get Boolean Columns"},{name:"getColumnDataTypeFromColumnId",kind:"function",description:"Returns Data Type for a Column",uiLabel:"Get Column Data Type From Column Id"},{name:"getColumnFromFriendlyName",kind:"function",description:"Retrieves Adaptable Column with given Friendly name",uiLabel:"Get Column From Friendly Name"},{name:"getColumnFromId",kind:"function",description:"Retrieves Adaptable Column with given ColumnId",uiLabel:"Get Column From Id"},{name:"getColumnIdFromFriendlyName",kind:"function",description:"Retrieves ColumnId for Column with given Friendly Name",uiLabel:"Get Column Id From Friendly Name"},{name:"getColumnIdsFromFriendlyNames",kind:"function",description:"Retrieves ColumnIds for Columns with given Friendly Names",uiLabel:"Get Column Ids From Friendly Names"},{name:"getColumnIdsFromId",kind:"function",description:"Returns the ColumnId if regular, otherwise referenced columns if Calculated Column",uiLabel:"Get Column Ids From Id"},{name:"getColumns",kind:"function",description:"Returns all Columns",uiLabel:"Get Columns"},{name:"getColumnsFromFriendlyNames",kind:"function",description:"Retrieves Adaptable Columns with given Friendly names",uiLabel:"Get Columns From Friendly Names"},{name:"getColumnsFromIds",kind:"function",description:"Retrieves Adaptable Columns with given ColumnIds",uiLabel:"Get Columns From Ids"},{name:"getColumnsOfType",kind:"function",description:"Returns all Columns that have given DataType",uiLabel:"Get Columns Of Type"},{name:"getDateColumns",kind:"function",description:"Returns all Date Columns",uiLabel:"Get Date Columns"},{name:"getDistinctBulkUpdateDisplayValuesForColumn",kind:"function",description:"Gets all distinct column display values for bulk update.",uiLabel:"Get Distinct Bulk Update Display Values For Column"},{name:"getDistinctCustomSortDisplayValuesForColumn",kind:"function",description:"Gets all distinct column display values in for custom sort.",uiLabel:"Get Distinct Custom Sort Display Values For Column"},{name:"getDistinctDisplayValuesForColumn",kind:"function",description:"Gets all distinct display values in the Column",uiLabel:"Get Distinct Display Values For Column"},{name:"getDistinctFilterDisplayValuesForColumn",kind:"function",description:"Gets all distinct display values in for filter column, used for Floating Filter and Column Header filter",uiLabel:"Get Distinct Filter Display Values For Column"},{name:"getDistinctRawValuesForColumn",kind:"function",description:"Gets all distinct raw values in Column",uiLabel:"Get Distinct Raw Values For Column"},{name:"getDistinctVisibleDisplayValuesForColumn",kind:"function",description:"Gets all distinct visible display values in the Column",uiLabel:"Get Distinct Visible Display Values For Column"},{name:"getDistinctVisibleRawValuesForColumn",kind:"function",description:"Gets all distinct visible raw values in the Column",uiLabel:"Get Distinct Visible Raw Values For Column"},{name:"getFriendlyNameFromColumn",kind:"function",description:"Retrieves Friendly Name for a given Column",uiLabel:"Get Friendly Name From Column"},{name:"getFriendlyNameFromColumnId",kind:"function",description:"Retrieves Friendly Name for a given ColumnId",uiLabel:"Get Friendly Name From Column Id"},{name:"getFriendlyNamesFromColumnIds",kind:"function",description:"Retrieves Friendly Names for given ColumnIds",uiLabel:"Get Friendly Names From Column Ids"},{name:"getGroupableColumns",kind:"function",description:"Returns all Groupable Columns",uiLabel:"Get Groupable Columns"},{name:"getNumericColumns",kind:"function",description:"Returns all numeric Columns",uiLabel:"Get Numeric Columns"},{name:"getPivotableColumns",kind:"function",description:"Returns all Pivotable Columns",uiLabel:"Get Pivotable Columns"},{name:"getPrimaryKeyColumn",kind:"function",description:"Retrieves current Primary Key Column in AdapTable",uiLabel:"Get Primary Key Column"},{name:"getQueryableColumns",kind:"function",description:"Returns all Queryable Columns",uiLabel:"Get Queryable Columns"},{name:"getSortableColumns",kind:"function",description:"Returns all Sortable Columns",uiLabel:"Get Sortable Columns"},{name:"getStringColumns",kind:"function",description:"Returns all string Columns",uiLabel:"Get String Columns"},{name:"getVisibleColumns",kind:"function",description:"Returns all visible Columns",uiLabel:"Get Visible Columns"},{name:"hideColumn",kind:"function",description:"Hides a Column from Grid",uiLabel:"Hide Column"},{name:"isActionColumn",kind:"function",description:"Is Column an Action Column",uiLabel:"Is Action Column"},{name:"isBooleanColumn",kind:"function",description:"Is Column Boolean",uiLabel:"Is Boolean Column"},{name:"isCalculatedColumn",kind:"function",description:"Is Column a Calculated Column",uiLabel:"Is Calculated Column"},{name:"isColumnReferencedInExpression",kind:"function",description:"Checks if a column is referenced in a given Expression",uiLabel:"Is Column Referenced In Expression"},{name:"isDateColumn",kind:"function",description:"Is Column a Date",uiLabel:"Is Date Column"},{name:"isFormatNumericStyleColumn",kind:"function",description:"Does Column have a numeric style (e.g. Percent Bar or Gradient)",uiLabel:"Is Format Numeric Style Column"},{name:"isFreeTextColumn",kind:"function",description:"Is Column a Free Text Column",uiLabel:"Is Free Text Column"},{name:"isNumericColumn",kind:"function",description:"Is Column Numeric",uiLabel:"Is Numeric Column"},{name:"isRowGroupColumn",kind:"function",description:"Is Column row-grouped",uiLabel:"Is Row Group Column"},{name:"selectAllColumns",kind:"function",description:"Selects all Columns",uiLabel:"Select All Columns"},{name:"selectColumn",kind:"function",description:"Selects (highlights) a Column",uiLabel:"Select Column"},{name:"selectColumns",kind:"function",description:"Selects (highlights) group of Columns",uiLabel:"Select Columns"},{name:"showColumn",kind:"function",description:"Makes a Column visible",uiLabel:"Show Column"},{name:"usesAdaptableFilterForm",kind:"function",description:"Does Column use AdapTable's Filter Form",uiLabel:"Uses Adaptable Filter Form"},{name:"usesAdaptableQuickFilter",kind:"function",description:"Does Column use AdapTable's Quick Filter",uiLabel:"Uses Adaptable Quick Filter"}]},ColumnComparison:{name:"ColumnComparison",kind:"Interface",description:"Enables a Percent Bar or Gradient Style to use another column in its calculations",properties:[{name:"Color",kind:"string",description:"Colour to use for the Percent bar",uiLabel:"Color"},{name:"MaxValue",kind:"unknown",description:"End value - either numeric or Column name",uiLabel:"Max Value"},{name:"MinValue",kind:"unknown",description:"Start value - either numeric or Column name",uiLabel:"Min Value"}]},ColumnFilter:{name:"ColumnFilter",kind:"Interface",description:"Defines a Filter applied on a Column using a Predicate",properties:[{name:"ColumnId",kind:"string",description:"Column where Filter should be applied",uiLabel:"Column Id"},{name:"Predicate",kind:"REFERENCE",description:"`AdaptablePredicate` which AdaptableQL will evaluate when the Filter is run",uiLabel:"Predicate",reference:"unknown"}]},ColumnMenuContext:{name:"ColumnMenuContext",kind:"Interface",description:"Provides full details about the Column in which the Column Menu will appear",properties:[{name:"adaptableColumn",kind:"REFERENCE",description:"Current Adaptable Column",uiLabel:"Adaptable Column",reference:"AdaptableColumn"},{name:"agGridColumn",kind:"REFERENCE",description:"Current AG Grid Column",uiLabel:"Ag Grid Column",reference:"unknown"},{name:"isRowGroupColumn",kind:"boolean",description:"Whether current Column is Row Group",uiLabel:"Is Row Group Column"}]},ColumnSort:{name:"ColumnSort",kind:"Interface",description:"Defines how a Column is sorted",properties:[{name:"ColumnId",kind:"string",description:"Id of Column being sorted",uiLabel:"Column Id"},{name:"SortOrder",kind:"unknown",description:"How Column is sorted - either 'Asc' or 'Desc'",uiLabel:"Sort Order"}]},ColumnStyle:{name:"ColumnStyle",kind:"Interface",description:"Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox",properties:[{name:"CheckBoxStyle",kind:"boolean",description:"Style a boolean column so each cell displays a checkbox",uiLabel:"Check Box Style",isOptional:!0},{name:"GradientStyle",kind:"REFERENCE",description:"Style a numeric column so each cell value shows a gradient shade",uiLabel:"Gradient Style",isOptional:!0,reference:"GradientStyle"},{name:"PercentBarStyle",kind:"REFERENCE",description:"Style a numeric column so each cell displays a 'bar'",uiLabel:"Percent Bar Style",isOptional:!0,reference:"PercentBarStyle"}]},ColumnValuesComparer:{name:"ColumnValuesComparer",kind:"Interface",description:"Comparer object for Column Values - used for custom sorting",properties:[{name:"comparer",kind:"REFERENCE",description:"Comparer function to use",uiLabel:"Comparer",reference:"AdaptableComparerFunction"},{name:"scope",kind:"REFERENCE",description:"Column for which to compare values",uiLabel:"Scope",reference:"AdaptableScope"}]},ConditionalStyle:{name:"ConditionalStyle",kind:"Interface",description:"Object used in Conditional Style function - contains Scope, a Rule and a Style",properties:[{name:"IncludeGroupedRows",kind:"boolean",description:"Whether to apply Style in Grouped Rows and when Pivoting",uiLabel:"Include Grouped Rows",isOptional:!0,defaultValue:"false"},{name:"Rule",kind:"REFERENCE",description:"Predicate-based Rule to use for deciding if a style needs to be applied.",uiLabel:"Rule",reference:"ConditionalStyleRule"},{name:"Scope",kind:"REFERENCE",description:"Where Style is applied - can be whole Row, some Columns or all Columns of given DataType",uiLabel:"Scope",reference:"AdaptableScope"},{name:"Style",kind:"REFERENCE",description:"Adaptable Style (e.g. font properties and colurs) to apply.",uiLabel:"Style",reference:"AdaptableStyle"}]},ConditionalStyleApi:{name:"ConditionalStyleApi",kind:"Interface",description:"Provides run-time access to Conditional Style Module and state",properties:[{name:"addConditionalStyle",kind:"function",description:"Adds new Conditional Style to State",uiLabel:"Add Conditional Style"},{name:"editConditionalStyle",kind:"function",description:"Replaces Conditional Style in State with given one",uiLabel:"Edit Conditional Style"},{name:"editConditionalStyles",kind:"function",description:"Replaces Conditional Styles in State with given ones",uiLabel:"Edit Conditional Styles"},{name:"getAllActiveConditionalStyle",kind:"function",description:"Gets all Conditional Styles that are active (not-suspended) in Adaptable State",uiLabel:"Get All Active Conditional Style"},{name:"getAllConditionalStyle",kind:"function",description:"Gets all Conditional Styles in Adaptable State",uiLabel:"Get All Conditional Style"},{name:"getAllSuspendedConditionalStyle",kind:"function",description:"Gets all Conditional Styles that are suspended in Adaptable State",uiLabel:"Get All Suspended Conditional Style"},{name:"getConditionalStyleById",kind:"function",description:"Get conditional style by id",uiLabel:"Get Conditional Style By Id"},{name:"getConditionalStylePredicateDefs",kind:"function",description:"Returns all Predicates usable in Conditional Styles",uiLabel:"Get Conditional Style Predicate Defs"},{name:"getConditionalStylesForColumn",kind:"function",description:"Gets all Conditional Styles that style a given Column",uiLabel:"Get Conditional Styles For Column"},{name:"getConditionalStyleState",kind:"function",description:"Retrieves Conditional Style section from Adaptable State",uiLabel:"Get Conditional Style State"},{name:"getConditionalStylesWithExpression",kind:"function",description:"Retrieves all Conditional Styles which have an Expression",uiLabel:"Get Conditional Styles With Expression"},{name:"getCondStylePredicateDefsForScope",kind:"function",description:"Returns all Predicates appropriate for the given Scope",uiLabel:"Get Cond Style Predicate Defs For Scope"},{name:"getOrderedConditionalStyles",kind:"function",description:"Retrieves all Conditional Styles ordered by Column then Row",uiLabel:"Get Ordered Conditional Styles"},{name:"getRowConditionalStyles",kind:"function",description:"Retrieves all Conditional Styles that style whole row",uiLabel:"Get Row Conditional Styles"},{name:"showConditionalStylePopup",kind:"function",description:"Opens Settings Panel with Conditional Style section selected and visible",uiLabel:"Show Conditional Style Popup"},{name:"suspendConditionalStyle",kind:"function",description:"Suspends conditional style, a readonly object cannot be suspended",uiLabel:"Suspend Conditional Style"},{name:"unSuspendConditionalStyle",kind:"function",description:"Un-suspends or activates a suspended conditional style",uiLabel:"Un Suspend Conditional Style"}]},ConditionalStyleRule:{name:"ConditionalStyleRule",kind:"TypeAlias",description:"The Conditional Style Rule - can be either a Predicate or an Expression"},ConditionalStyleState:{name:"ConditionalStyleState",kind:"Interface",description:"Predefined Configuration for the Conditional Style Module",properties:[{name:"ConditionalStyles",kind:"unknown",description:"Array of Conditional Styles to ship with AdapTable",uiLabel:"Conditional Styles",isOptional:!0}]},ConfigApi:{name:"ConfigApi",kind:"Interface",description:"Range of functions to access Predefined Config and Adaptable State",properties:[{name:"configInit",kind:"function",description:"Initialised Adaptable State (for internal use only)",uiLabel:"Config Init"},{name:"copyAllStateToClipboard",kind:"function",description:"Copies all Adaptable state to clipboard",uiLabel:"Copy All State To Clipboard"},{name:"copyUserStateToClipboard",kind:"function",description:"Copies User State sections of Adaptable State to clipboard",uiLabel:"Copy User State To Clipboard"},{name:"dispatchStateReadyAction",kind:"function",description:"Sent by each Module when it is Ready",uiLabel:"Dispatch State Ready Action"},{name:"getAdaptableSearchState",kind:"function",description:"Gets search-related sections of Adaptable State",uiLabel:"Get Adaptable Search State"},{name:"getAdaptableSortState",kind:"function",description:"Gets sort-related sections of Adaptable State",uiLabel:"Get Adaptable Sort State"},{name:"getAlertState",kind:"function",description:"Returns Alert section of Adaptable State",uiLabel:"Get Alert State"},{name:"getAllState",kind:"function",description:"Retrieves ALL state which is currently stored by Adaptable (both User and internal)",uiLabel:"Get All State"},{name:"getAllUserState",kind:"function",description:"Retrieves the PERSISTED state in Adaptable",uiLabel:"Get All User State"},{name:"getApplicationState",kind:"function",description:"Returns Application section of Adaptable State",uiLabel:"Get Application State"},{name:"getCalculatedColumnState",kind:"function",description:"Returns Calculated Column section of Adaptable State",uiLabel:"Get Calculated Column State"},{name:"getConditionalStyleState",kind:"function",description:"Returns Conditional Style section of Adaptable State",uiLabel:"Get Conditional Style State"},{name:"getCustomSortState",kind:"function",description:"Returns Custom Sort section of Adaptable State",uiLabel:"Get Custom Sort State"},{name:"getDashboardState",kind:"function",description:"Returns Dashboard section of Adaptable State",uiLabel:"Get Dashboard State"},{name:"getDataSourceState",kind:"function",description:"Returns Data Source section of Adaptable State",uiLabel:"Get Data Source State"},{name:"getDescriptionForModule",kind:"function",description:"Retrieves a brief description of an AdapTable Module",uiLabel:"Get Description For Module"},{name:"getExportState",kind:"function",description:"Returns Export section of Adaptable State",uiLabel:"Get Export State"},{name:"getFilterState",kind:"function",description:"Returns Filter section of Adaptable State",uiLabel:"Get Filter State"},{name:"getFormatColumnState",kind:"function",description:"Returns Formt Column section of Adaptable State",uiLabel:"Get Format Column State"},{name:"getFreeTextColumnState",kind:"function",description:"Returns FreeText Column section of Adaptable State",uiLabel:"Get Free Text Column State"},{name:"getHelpPageForModule",kind:"function",description:"Retrieves the help page for an AdapTable Module",uiLabel:"Get Help Page For Module"},{name:"getLayoutState",kind:"function",description:"Returns Layout section of Adaptable State",uiLabel:"Get Layout State"},{name:"getPlusMinusState",kind:"function",description:"Returns Plus Minus section of Adaptable State",uiLabel:"Get Plus Minus State"},{name:"getPredefinedConfig",kind:"function",description:"Returns current Predefined Config",uiLabel:"Get Predefined Config"},{name:"getQueryState",kind:"function",description:"Returns Query section of Adaptable State",uiLabel:"Get Query State"},{name:"getQuickSearchState",kind:"function",description:"Returns Quick Search section of Adaptable State",uiLabel:"Get Quick Search State"},{name:"getScheduleState",kind:"function",description:"Returns Schedule section of Adaptable State",uiLabel:"Get Schedule State"},{name:"getShortcutState",kind:"function",description:"Returns Shortcut section of Adaptable State",uiLabel:"Get Shortcut State"},{name:"getThemeState",kind:"function",description:"Returns Theme section of Adaptable State",uiLabel:"Get Theme State"},{name:"getToolPanelState",kind:"function",description:"Returns Tool Panel section of Adaptable State",uiLabel:"Get Tool Panel State"},{name:"getUserStateByStateKey",kind:"function",description:"Returns given section of Adaptable State (as JSON or object)",uiLabel:"Get User State By State Key"},{name:"incrementUserStateRevision",kind:"function",description:"Adds '1' to current revision number of State element",uiLabel:"Increment User State Revision"},{name:"loadUserState",kind:"function",description:"Loads supplied user state, replacing (not merging) existing User State.",uiLabel:"Load User State"},{name:"reloadPredefinedConfig",kind:"function",description:"Reloads either existing or supplied Predefined Config; deletes local storage and calls clearState function for remote storage removal",uiLabel:"Reload Predefined Config"},{name:"setAdaptableStateKey",kind:"function",description:"Changes the key used for persisting the Adaptablestate into localStorage",uiLabel:"Set Adaptable State Key"}]},ConfigState:{name:"ConfigState",kind:"Interface",description:"Base Interface for all Adaptable State objects; contains`Revision` property, used for versioning",properties:[{name:"Revision",kind:"unknown",description:"Version number of the Item - allows developers to update one section in Predefined Config while keeping others unchanged",uiLabel:"Revision",isOptional:!0}]},ContactColumn:{name:"ContactColumn",kind:"Interface",description:"A (String) Column which will be defined as an FDC3 Contact columnId and at least one other property is required",properties:[{name:"emailColumnId",kind:"string",description:"Column which holds the email address of a Contact",uiLabel:"Email Column Id",isOptional:!0},{name:"fds_IdColumnId",kind:"string",description:"Column which holds an FDS_ID value a Contact",uiLabel:"Fds_Id Column Id",isOptional:!0},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"}]},ContainerOptions:{name:"ContainerOptions",kind:"Interface",description:"Options for managing the different div elements required by AdapTable",properties:[{name:"adaptableContainer",kind:"unknown",description:"Div containing AdapTable - string Id or HTMLElement",uiLabel:"Adaptable Container",isOptional:!0,gridInfo:"item",defaultValue:""adaptable""},{name:"agGridContainer",kind:"unknown",description:"Div containing AG Grid instance - string Id or HTMLElement",uiLabel:"Ag Grid Container",isOptional:!0,gridInfo:"item",defaultValue:""grid""},{name:"agGridContainerWaitTimeout",kind:"number",description:"How long AdapTable waits for AG Grid before giving up connecting to it",uiLabel:"Ag Grid Container Wait Timeout",isOptional:!0,gridInfo:"item",defaultValue:"60s"},{name:"alertContainer",kind:"unknown",description:"Div to show Alerts - string Id or HTMLElement",uiLabel:"Alert Container",isOptional:!0,gridInfo:"item",defaultValue:"undefined"},{name:"modalContainer",kind:"unknown",description:"Name of div where modals appear (if null, will be centre of page)",uiLabel:"Modal Container",isOptional:!0,gridInfo:"item",defaultValue:"undefined"},{name:"systemStatusContainer",kind:"unknown",description:"Div to show System Status messages - string Id or HTMLElement",uiLabel:"System Status Container",isOptional:!0,gridInfo:"item",defaultValue:"undefined"}]},ContextMenuContext:{name:"ContextMenuContext",kind:"Interface",description:"Provides full details about current cell (and selected cells) where the Context Menu will appear",properties:[{name:"adaptableColumn",kind:"REFERENCE",description:"Current Adaptable Column",uiLabel:"Adaptable Column",reference:"AdaptableColumn"},{name:"agGridColumn",kind:"REFERENCE",description:"Current AG Grid Column",uiLabel:"Ag Grid Column",reference:"unknown"},{name:"gridCell",kind:"REFERENCE",description:"Cell that has been clicked; contains cell value",uiLabel:"Grid Cell",reference:"GridCell"},{name:"isGroupedNode",kind:"boolean",description:"Whether current AG Grid row node is grouped",uiLabel:"Is Grouped Node"},{name:"isRowGroupColumn",kind:"boolean",description:"Whether current Column is Row Grouped",uiLabel:"Is Row Group Column"},{name:"isSelectedCell",kind:"boolean",description:"Whether cell that was clicked is also currently selected",uiLabel:"Is Selected Cell"},{name:"isSingleSelectedCell",kind:"boolean",description:"Whether the clicked cell is the only selected cell",uiLabel:"Is Single Selected Cell"},{name:"isSingleSelectedColumn",kind:"boolean",description:"Whether Column that was clicked is only column with selected cells",uiLabel:"Is Single Selected Column"},{name:"primaryKeyValue",kind:"unknown",description:"Value of Primary Key column in current row",uiLabel:"Primary Key Value"},{name:"rowNode",kind:"REFERENCE",description:"Current AG Grid row node",uiLabel:"Row Node",reference:"unknown"},{name:"selectedCellInfo",kind:"REFERENCE",description:"Currently selected cells in the grid",uiLabel:"Selected Cell Info",reference:"SelectedCellInfo"},{name:"selectedRowInfo",kind:"REFERENCE",description:"Currently selected rows in the grid",uiLabel:"Selected Row Info",reference:"SelectedRowInfo"}]},CountryColumn:{name:"CountryColumn",kind:"Interface",description:"A (String) Column which will be defined as an FDC3 Country",properties:[{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"},{name:"isoAlpha2ColumnId",kind:"string",description:"Column which contains the ISOALPHA2 Standard",uiLabel:"Iso Alpha2Column Id",isOptional:!0},{name:"isoAlpha3ColumnId",kind:"string",description:"Column which contains the ISOALPHA3 Standard",uiLabel:"Iso Alpha3Column Id",isOptional:!0}]},CustomDestination:{name:"CustomDestination",kind:"Interface",description:"Defines a custom Export destination",properties:[{name:"form",kind:"unknown",description:"Optional Adaptable Form - if provided, it must include Buttons that will execute the export",uiLabel:"Form",isOptional:!0},{name:"name",kind:"string",description:"Name of Custom Destination",uiLabel:"Name"},{name:"onExport",kind:"unknown",description:"Function invoked when export is applied (used if no form is supplied)",uiLabel:"On Export",isOptional:!0}]},CustomReport:{name:"CustomReport",kind:"Interface",description:"Defines a Report where all the data is provided entirely by the user",properties:[{name:"name",kind:"string",description:"Name of the Report",uiLabel:"Name"},{name:"onRunReport",kind:"unknown",description:"Function invoked to return the data (in the form of a `ReportData` object)",uiLabel:"On Run Report"}]},CustomSettingsPanel:{name:"CustomSettingsPanel",kind:"Interface",description:"Definition of a Custom Panel to add to the Adaptable Settings Panel",properties:[{name:"frameworkComponent",kind:"REFERENCE",description:"Framework-specific (Angular or React) component to be rendered",uiLabel:"Framework Component",isOptional:!0,reference:"unknown"},{name:"icon",kind:"REFERENCE",description:"Icon rendered inside settings-panel name, inside the navigation",uiLabel:"Icon",isOptional:!0,reference:"AdaptableIcon"},{name:"name",kind:"string",description:"Appears in Settings Panel Navigation and must be included in settingsPanelOptions.navigation for it to be displayed (by default added to the end)",uiLabel:"Name"},{name:"render",kind:"unknown",description:"Function to provide bespoke content when NOT using a Framework wrapper",uiLabel:"Render",isOptional:!0}]},CustomSort:{name:"CustomSort",kind:"Interface",description:"Custom Sort object used in Custom Sort function.",properties:[{name:"ColumnId",kind:"string",description:"Id of Column on which Custom Sort will be applied",uiLabel:"Column Id"},{name:"SortedValues",kind:"unknown",description:"Order of values by which Column will be sorted",uiLabel:"Sorted Values",isOptional:!0}]},CustomSortApi:{name:"CustomSortApi",kind:"Interface",description:"Provides run-time access to the Custom Sort function",properties:[{name:"addCustomSort",kind:"function",description:"Adds a Custom Sort to Custom Sort collection in Adaptable State",uiLabel:"Add Custom Sort"},{name:"createCustomSort",kind:"function",description:"Creates new Custom Sort based on given values",uiLabel:"Create Custom Sort"},{name:"deleteCustomSort",kind:"function",description:"Removes Custom Sort for a given ColumnId",uiLabel:"Delete Custom Sort"},{name:"editCustomSort",kind:"function",description:"Updates existing Custom Sort with new set of Sorted Values",uiLabel:"Edit Custom Sort"},{name:"getAllActiveCustomSort",kind:"function",description:"Retrieves all Custom Sorts that are active (not-suspended) in Adaptable State",uiLabel:"Get All Active Custom Sort"},{name:"getAllCustomSort",kind:"function",description:"Retrieves all Custom Sorts in Adaptable State",uiLabel:"Get All Custom Sort"},{name:"getAllSuspendedCustomSort",kind:"function",description:"Retrieves all Custom Sorts that are suspended in Adaptable State",uiLabel:"Get All Suspended Custom Sort"},{name:"getCustomSortByColumn",kind:"function",description:"Retrieves Custom Sort from Adaptable State for given ColumnId",uiLabel:"Get Custom Sort By Column"},{name:"getCustomSortById",kind:"function",description:"Retrieves Custom Sort by id",uiLabel:"Get Custom Sort By Id"},{name:"getCustomSortState",kind:"function",description:"Retrieves Custom Sort section from Adaptable State",uiLabel:"Get Custom Sort State"},{name:"showCustomSortPopup",kind:"function",description:"Opens Settings Panel with Custom Sort section selected and visible",uiLabel:"Show Custom Sort Popup"},{name:"suspendCustomSort",kind:"function",description:"Suspends Custom Sort",uiLabel:"Suspend Custom Sort"},{name:"unSuspendCustomSort",kind:"function",description:"Un-suspends or activates a suspended Custom Sort",uiLabel:"Un Suspend Custom Sort"}]},CustomSortPermittedValues:{name:"CustomSortPermittedValues",kind:"Interface",description:"Custom column values for custom sort."},CustomSortState:{name:"CustomSortState",kind:"Interface",description:"Predefined Configuration for Custom Sort Module",properties:[{name:"CustomSorts",kind:"unknown",description:"Collection of Custom Sort objects.",uiLabel:"Custom Sorts",isOptional:!0}]},CustomToolbar:{name:"CustomToolbar",kind:"Interface",description:"Custom Toolbar (which AdapTable will manage) enabling devs to populate Dashboard with bepoke content",properties:[{name:"frameworkComponent",kind:"REFERENCE",description:"The Framework-specific (Angular or React) component to be rendered",uiLabel:"Framework Component",isOptional:!0,reference:"unknown"},{name:"name",kind:"string",description:"How Toolbar is referenced (e.g. in Dashboard Popup when managing toolbars)",uiLabel:"Name"},{name:"render",kind:"unknown",description:"Function to provide custom content when NOT using a Framework wrapper",uiLabel:"Render",isOptional:!0},{name:"showCloseButton",kind:"boolean",description:"Shows a Close button at the bottom of Custom Toolbar",uiLabel:"Show Close Button",isOptional:!0},{name:"showConfigureButton",kind:"boolean",description:"Shows a Configure (wrench) button which when clicked fires `CustomToolbarConfigured` event",uiLabel:"Show Configure Button",isOptional:!0},{name:"title",kind:"string",description:"Title to display in Toolbar; if unset or empty string, nothing will show",uiLabel:"Title",isOptional:!0},{name:"toolbarButtons",kind:"unknown",description:"Optional set of buttons to show in the Toolbar",uiLabel:"Toolbar Buttons",isOptional:!0}]},CustomToolbarButtonContext:{name:"CustomToolbarButtonContext",kind:"Interface",description:"Context required by functions when using a Custom Toolbar Button",properties:[{name:"customToolbar",kind:"REFERENCE",description:"Custom Toolbar which hosts the Button",uiLabel:"Custom Toolbar",reference:"CustomToolbar"},{name:"dashboardState",kind:"REFERENCE",description:"Current Dashboard State",uiLabel:"Dashboard State",reference:"DashboardState"}]},CustomToolbarConfiguredInfo:{name:"CustomToolbarConfiguredInfo",kind:"Interface",description:"EventInfo returned by the CustomToolbarConfigured event",properties:[{name:"customToolbar",kind:"REFERENCE",description:"Custom Toolbar in which the 'Configure' button has been clicked",uiLabel:"Custom Toolbar",reference:"CustomToolbar"}]},CustomToolPanel:{name:"CustomToolPanel",kind:"Interface",description:"Defines a Custom ToolPanel - provided by Users and contains custom content",properties:[{name:"buttons",kind:"unknown",description:"Optional set of buttons to show in the ToolPanel",uiLabel:"Buttons",isOptional:!0},{name:"frameworkComponent",kind:"REFERENCE",description:"Framework-specific (Angular or React) component to be rendered",uiLabel:"Framework Component",isOptional:!0,reference:"unknown"},{name:"name",kind:"string",description:"Name of Custom ToolPanel - should be unique",uiLabel:"Name"},{name:"render",kind:"unknown",description:"Function to provide bespoke content when NOT using a Framework wrapper",uiLabel:"Render",isOptional:!0},{name:"title",kind:"string",description:"Title to display in Custom ToolPanel; if undefined, will default to `name` property",uiLabel:"Title",isOptional:!0}]},DashboardApi:{name:"DashboardApi",kind:"Interface",description:"Functions relating to the AdapTable Dashboard.",properties:[{name:"addCustomToolbarButtons",kind:"function",description:"Adds Toolbar Buttons to current collection in Custom Toolbar",uiLabel:"Add Custom Toolbar Buttons"},{name:"clearCustomToolbarButtons",kind:"function",description:"Clears all Toolbar Buttons from Custom Toolbar",uiLabel:"Clear Custom Toolbar Buttons"},{name:"collapseDashboard",kind:"function",description:"Collapses Dashboard so only Dashboard Header is visible (and not Toolbars' contents)",uiLabel:"Collapse Dashboard"},{name:"dockDashboard",kind:"function",description:"Docks Dashboard so it 'snaps back' into its customary position above the grid",uiLabel:"Dock Dashboard"},{name:"expandDashboard",kind:"function",description:"Expands Dashboard so Toolbars in Active Tab are fully visible",uiLabel:"Expand Dashboard"},{name:"fireDashboardChangedEvent",kind:"function",description:"Fires Dashboard Changed Event",uiLabel:"Fire Dashboard Changed Event"},{name:"floatDashboard",kind:"function",description:"Floats Dashboard so only Dashboard Header is visible (in reduced size); can be dragged to a new location",uiLabel:"Float Dashboard"},{name:"getActiveTab",kind:"function",description:"Returns current Active Tab (if there is one)",uiLabel:"Get Active Tab"},{name:"getActiveTabIndex",kind:"function",description:"Returns current Active Tab index (if there is one)",uiLabel:"Get Active Tab Index"},{name:"getCurrentToolbars",kind:"function",description:"Retrieves all Toolbars in Active Tab",uiLabel:"Get Current Toolbars"},{name:"getCustomDashboardButtonByLabel",kind:"function",description:"Retrieves first Custom Button with given Label",uiLabel:"Get Custom Dashboard Button By Label"},{name:"getCustomDashboardButtons",kind:"function",description:"Retrieves all Custom Buttons",uiLabel:"Get Custom Dashboard Buttons"},{name:"getCustomToolbarByName",kind:"function",description:"Returns Custom Toolbar with the given name",uiLabel:"Get Custom Toolbar By Name"},{name:"getCustomToolbarContentsDiv",kind:"function",description:"Returns 'div' element for given Custom Toolbar",uiLabel:"Get Custom Toolbar Contents Div"},{name:"getCustomToolbars",kind:"function",description:"Retrieves all Custom Toolbars",uiLabel:"Get Custom Toolbars"},{name:"getDashboardState",kind:"function",description:"Retrieves Dashboard section from Adaptable State",uiLabel:"Get Dashboard State"},{name:"getTabByName",kind:"function",description:"Retrieves the Tab from State that matches inputted name",uiLabel:"Get Tab By Name"},{name:"hasCustomToolbarChanged",kind:"function",description:"Has a custom toolbar become visible or",uiLabel:"Has Custom Toolbar Changed"},{name:"hideDashboard",kind:"function",description:"Hides the Dashboard so cannot be seen",uiLabel:"Hide Dashboard"},{name:"isDashboardCollapsed",kind:"function",description:"Is Dashboard Collapsed",uiLabel:"Is Dashboard Collapsed"},{name:"isDashboardDocked",kind:"function",description:"Is Dashboard Docked",uiLabel:"Is Dashboard Docked"},{name:"isDashboardExpanded",kind:"function",description:"Is Dashboard Expanded",uiLabel:"Is Dashboard Expanded"},{name:"isDashboardFloating",kind:"function",description:"Is Dashboard Floating",uiLabel:"Is Dashboard Floating"},{name:"isDashboardHidden",kind:"function",description:"Is Dashboard Hidden",uiLabel:"Is Dashboard Hidden"},{name:"isDashboardVisible",kind:"function",description:"Is Dashboard Visible",uiLabel:"Is Dashboard Visible"},{name:"isToolbarVisible",kind:"function",description:"Checks if a given Toolbar is visible",uiLabel:"Is Toolbar Visible"},{name:"setActiveTab",kind:"function",description:"Sets Active Tab in Dashboard",uiLabel:"Set Active Tab"},{name:"setActiveTabIndex",kind:"function",description:"Sets Active Tab in Dashboard",uiLabel:"Set Active Tab Index"},{name:"setCustomToolbarButtons",kind:"function",description:"Replaces Toolbar Buttons in Custom Toolbar with the new set",uiLabel:"Set Custom Toolbar Buttons"},{name:"setCustomToolbarContents",kind:"function",description:"Populates a Custom Toolbar with content",uiLabel:"Set Custom Toolbar Contents"},{name:"setDashboardTitle",kind:"function",description:"Sets title of Dashboard Header",uiLabel:"Set Dashboard Title"},{name:"setModuleButtons",kind:"function",description:"Sets which Module Buttons are visible",uiLabel:"Set Module Buttons"},{name:"showDashboard",kind:"function",description:"Makes the Dashboard visible",uiLabel:"Show Dashboard"},{name:"showDashboardPopup",kind:"function",description:"Opens Settings Panel with Dashboard section selected and visible",uiLabel:"Show Dashboard Popup"}]},DashboardButtonContext:{name:"DashboardButtonContext",kind:"Interface",description:"Context required by functions when using a Dashboard Button",properties:[{name:"dashboardState",kind:"REFERENCE",description:"Current Dashboard State",uiLabel:"Dashboard State",reference:"DashboardState"}]},DashboardChangedInfo:{name:"DashboardChangedInfo",kind:"Interface",description:"Object returned by the `DashboardChanged` event",properties:[{name:"actionName",kind:"string",description:"What caused Dashboard State to change",uiLabel:"Action Name"},{name:"newDashboardState",kind:"REFERENCE",description:"Current Dashboard State",uiLabel:"New Dashboard State",reference:"DashboardState"},{name:"oldDashboardState",kind:"REFERENCE",description:"Previous Dashboard State",uiLabel:"Old Dashboard State",reference:"DashboardState"}]},DashboardOptions:{name:"DashboardOptions",kind:"Interface",description:"Options related to the Dashboard in Adaptable.",properties:[{name:"buttonsLocation",kind:"unknown",description:"Where in Dashboard to display Module and Custom Buttons",uiLabel:"Buttons Location",isOptional:!0,defaultValue:"'right'"},{name:"canFloat",kind:"boolean",description:"Whether the Dashboard can be floated; if true (the default), double-clicking Dashboard puts it in float mode",uiLabel:"Can Float",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"customDashboardButtons",kind:"unknown",description:"Custom Adaptable Buttons to appear in Dashboard (alongside Module Buttons)",uiLabel:"Custom Dashboard Buttons",isOptional:!0},{name:"customToolbars",kind:"unknown",description:"Toolbars provided by Users which contain custom content",uiLabel:"Custom Toolbars",isOptional:!0},{name:"showQuickSearchInHeader",kind:"boolean",description:"Shows Quick Search textbox in the Dashboard Header",uiLabel:"Show Quick Search In Header",isOptional:!0,gridInfo:"item",defaultValue:"true"}]},DashboardState:{name:"DashboardState",kind:"Interface",description:"Predefined Configuration for the AdapTable Dashboard",properties:[{name:"ActiveTabIndex",kind:"number",description:"The index of the Active Tab (in Tabs collection)",uiLabel:"Active Tab Index",isOptional:!0},{name:"DashboardTitle",kind:"string",description:"Title to display in Dashboard Header",uiLabel:"Dashboard Title",isOptional:!0,defaultValue:"`adaptableId` in Adaptable Options"},{name:"FloatingPosition",kind:"REFERENCE",description:"Position of Dashboard when in 'floating mode'",uiLabel:"Floating Position",isOptional:!0,reference:"AdaptableCoordinate"},{name:"IsCollapsed",kind:"boolean",description:"Whether Dashboard is collapsed; if true, header is visible (but not tabs' contents)",uiLabel:"Is Collapsed",isOptional:!0,defaultValue:"false"},{name:"IsFloating",kind:"boolean",description:"Whether Dashboard is floating; if true, appears in draggable, minmised form (double-click to revert to default position)",uiLabel:"Is Floating",isOptional:!0,defaultValue:"false"},{name:"IsHidden",kind:"boolean",description:"Whether Dashboard is completely hidden - can be made visible again in Column menu and toolpanel",uiLabel:"Is Hidden",isOptional:!0,defaultValue:"false"},{name:"IsInline",kind:"boolean",description:"Alternative way of showing Expanded Dashboard where headers section is to left of Toolbars",uiLabel:"Is Inline",isOptional:!0,defaultValue:"false"},{name:"ModuleButtons",kind:"REFERENCE",description:"Module Buttons which open screen in Settings Panel for associated AdapTable Module",uiLabel:"Module Buttons",isOptional:!0,defaultValue:"['SettingsPanel']",reference:"unknown"},{name:"Tabs",kind:"unknown",description:"Named group of Toolbars",uiLabel:"Tabs",isOptional:!0,defaultValue:"Empty Array"}]},DashboardTab:{name:"DashboardTab",kind:"Interface",description:"Defines a named set of Toolbars in the AdapTable Dashboard",properties:[{name:"Name",kind:"string",description:"Name of the tab - as appears in the Dashboard",uiLabel:"Name"},{name:"Toolbars",kind:"unknown",description:"List of Toolbars to show in the Tab",uiLabel:"Toolbars"}]},DataChangeHistoryApi:{name:"DataChangeHistoryApi",kind:"Interface",description:"Provides run-time access to the Data Change History Module",properties:[{name:"activateDataChangeHistory",kind:"function",description:"Activates Data Change History tracking (or resumes it, if it is currently suspended)",uiLabel:"Activate Data Change History"},{name:"deactivateDataChangeHistory",kind:"function",description:"Deactivates Data Change History tracking and flushes the cache",uiLabel:"Deactivate Data Change History"},{name:"getDataChangeHistoryLog",kind:"function",description:"Retrieves all data changes which are currently available",uiLabel:"Get Data Change History Log"},{name:"getDataChangeHistoryMode",kind:"function",description:"Retrieves current Data Change History mode: 'ACTIVE', 'INACTIVE', 'SUSPENDED'",uiLabel:"Get Data Change History Mode"},{name:"showDataChangeHistoryPopup",kind:"function",description:"Opens Data Change History screen",uiLabel:"Show Data Change History Popup"},{name:"suspendDataChangeHistory",kind:"function",description:"Suspends data change history tracking",uiLabel:"Suspend Data Change History"},{name:"undoDataChangeHistoryEntry",kind:"function",description:"Reverts the provided data change to its previous value",uiLabel:"Undo Data Change History Entry"}]},DataChangeHistoryOptions:{name:"DataChangeHistoryOptions",kind:"Interface",description:"Options to manage the 'Data Change History Module', which provides an overview of all previous changes, giving the possibility to undo specific changes",properties:[{name:"activeByDefault",kind:"boolean",description:"Whether data change history should be active by default",uiLabel:"Active By Default",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"showDataChange",kind:"unknown",description:"Function specifying which data changes to include in Data Change History",uiLabel:"Show Data Change",isOptional:!0,gridInfo:"item",defaultValue:"undefined (all data changes are logged)"}]},DataSource:{name:"DataSource",kind:"Interface",description:"Defines a Data Source object - used in Data Source function",properties:[{name:"Description",kind:"string",description:"Describes the Data Source",uiLabel:"Description"},{name:"Form",kind:"unknown",description:"Params for DataSource pops up a form",uiLabel:"Form",isOptional:!0},{name:"Name",kind:"string",description:"Name of Data Source",uiLabel:"Name"}]},DataSourceApi:{name:"DataSourceApi",kind:"Interface",description:"Provides run-time access to Data Source Module",properties:[{name:"addDataSource",kind:"function",description:"Adds new DataSource to State",uiLabel:"Add Data Source"},{name:"clearDataSource",kind:"function",description:"Clears currently selected DataSource",uiLabel:"Clear Data Source"},{name:"createDataSource",kind:"function",description:"Creates a DataSource from a given name and description",uiLabel:"Create Data Source"},{name:"getAllDataSource",kind:"function",description:"Retrieves all Data Sources in the Adaptable State",uiLabel:"Get All Data Source"},{name:"getCurrentDataSource",kind:"function",description:"Retrieves the currently applied Data Source",uiLabel:"Get Current Data Source"},{name:"getDataSourceById",kind:"function",description:"Retrieves Data Source by id",uiLabel:"Get Data Source By Id"},{name:"getDataSourceByName",kind:"function",description:"Retrives Data Source from State with given name",uiLabel:"Get Data Source By Name"},{name:"getDataSourceState",kind:"function",description:"Retrieves Data Source section from Adaptable State",uiLabel:"Get Data Source State"},{name:"setDataSource",kind:"function",description:"Makes given DataSource current",uiLabel:"Set Data Source"},{name:"showDataSourcePopup",kind:"function",description:"Opens Settings Panel with Data Source section selected and visible",uiLabel:"Show Data Source Popup"}]},DataSourceState:{name:"DataSourceState",kind:"Interface",description:"Predefined Configuration for Data Source Module",properties:[{name:"CurrentDataSource",kind:"string",description:"Name of the currently selected Data Source",uiLabel:"Current Data Source",isOptional:!0},{name:"DataSources",kind:"unknown",description:"Collection of available Data Sources",uiLabel:"Data Sources",isOptional:!0}]},DataUpdateConfig:{name:"DataUpdateConfig",kind:"Interface",description:"Object passed into Adaptable Grid Api data management methods",properties:[{name:"addIndex",kind:"number",description:"Index where to add new rows",uiLabel:"Add Index",isOptional:!0},{name:"callback",kind:"unknown",description:"Callback function invoked when a batch successfully updates",uiLabel:"Callback",isOptional:!0},{name:"runAsync",kind:"boolean",description:"Whether data should be updated asynchronously",uiLabel:"Run Async",isOptional:!0}]},DateFormatterOptions:{name:"DateFormatterOptions",kind:"Interface",description:"Formatter Options for Date Columns - contains a single `Pattern` property",properties:[{name:"Pattern",kind:"string",description:"Pattern to use for Date Format",uiLabel:"Pattern",isOptional:!0}]},DateInputOptions:{name:"DateInputOptions",kind:"Interface",description:"Options for managing and customizing the date inputs.",properties:[{name:"dateFormat",kind:"string",description:"Format string for formatting date input field",uiLabel:"Date Format",isOptional:!0,defaultValue:"'yyyy-MM-dd'"},{name:"datepickerButtons",kind:"unknown",description:"List of buttons which are displayed in the datepicker overlay in the given order (provide empty array to display no buttons); custom button layout and positioning is achievable with the special elements `-` and `|`",uiLabel:"Datepicker Buttons",isOptional:!0,defaultValue:"['close','today']"},{name:"locale",kind:"unknown",description:"Locale object (to localize Date Picker)",uiLabel:"Locale",isOptional:!0,defaultValue:"`en-US`"},{name:"showOutsideDays",kind:"boolean",description:"Display outside days (i.e. those falling in next or previous month)",uiLabel:"Show Outside Days",isOptional:!0,defaultValue:"true"},{name:"showWeekNumber",kind:"boolean",description:"Display the week numbers column",uiLabel:"Show Week Number",isOptional:!0,defaultValue:"false"},{name:"useNativeInput",kind:"boolean",description:"Use browser specific date input instead of AdapTable's Date Picker",uiLabel:"Use Native Input",isOptional:!0,defaultValue:"false"}]},EditLookUpPermittedValues:{name:"EditLookUpPermittedValues",kind:"Interface",description:"Used to define permitted values for inline column editor"},EditOptions:{name:"EditOptions",kind:"Interface",description:"Options related to Editing in Adaptable.",properties:[{name:"displayServerValidationMessages",kind:"boolean",description:"Displays message after Server Validation",uiLabel:"Display Server Validation Messages",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"isCellEditable",kind:"unknown",description:"Function which checks if given Grid Cell is editable",uiLabel:"Is Cell Editable",isOptional:!0},{name:"validateOnServer",kind:"unknown",description:"Function to validate on Server Adaptable data edits",uiLabel:"Validate On Server",isOptional:!0}]},EntitlementOptions:{name:"EntitlementOptions",kind:"Interface",description:"Options for managing Entitlements in AdapTable, ie. which Modules are available to the User and whether as *Full*, *ReadOnly* or *Hidden*.",properties:[{name:"defaultAccessLevel",kind:"unknown",description:"AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke",uiLabel:"Default Access Level",isOptional:!0,gridInfo:"item",defaultValue:"'Full'"},{name:"moduleEntitlements",kind:"unknown",description:"Returns either collection of `Entitlements`, or a function to invoke when an Entitlement is required",uiLabel:"Module Entitlements",isOptional:!0,gridInfo:"item"}]},EventApi:{name:"EventApi",kind:"Interface",description:"Responsible for publishing the many Events that AdapTable fires",properties:[{name:"off",kind:"function",description:"Unsubscribe from SearchChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from CheckboCxolumnClicked",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from LayoutChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from CustomToolbarConfigured",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from DashboardChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from AdaptableStateChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from LiveDataChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from AdaptableReady",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from CellChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from TeamSharingEntityChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from GridDataChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from SelectionChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from ThemeChanged",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from SystemStatusMessageDisplayed",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from AlertFired",uiLabel:"Off"},{name:"off",kind:"function",description:"Unsubscribe from FlashingCellDisplayed",uiLabel:"Off"},{name:"on",kind:"function",description:"Event fired whenever search criteria in AdapTable changes",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the **Button in a Checkbox Column is clicked**.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the current Layout updates in AdapTable",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Configure Button is clicked in a Custom Toolbar**",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Dashboard State changes** Primarily used for rendering Custom toolbars.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Adaptable State changes**",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **a change occurs relating to live reports / data** Used in conjunction with AdapTable's partners OpenFin, ipushpull or Glue42",uiLabel:"On"},{name:"on",kind:"function",description:"Fired when Adaptable is up and running - has no arguments.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever a cell changes in the Grid",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever a Shared Entity in Team Sharing changes",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired when a row is added, deleted or updated in the Grid",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the Cell or Row **Selection in AdapTable changes**.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever the **selected theme of AdapTable is changed**.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever a **System Status Message is displayed** in AdapTable",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever an **Alert is triggered** in AdapTable.",uiLabel:"On"},{name:"on",kind:"function",description:"Event fired whenever **Cell Flashing** is triggered in AdapTable.",uiLabel:"On"}]},ExportApi:{name:"ExportApi",kind:"Interface",description:"Provides run-time access to the Export Module and Report state",properties:[{name:"canExportToExcel",kind:"function",description:"If this AdapTable instance can to export to Excel; if false, the Export to Excel option will not be visible",uiLabel:"Can Export To Excel"},{name:"editReport",kind:"function",description:"Edits an existing report",uiLabel:"Edit Report"},{name:"editReports",kind:"function",description:"Edits existing reports",uiLabel:"Edit Reports"},{name:"exportDataToExcel",kind:"function",description:"Exports data to Excel",uiLabel:"Export Data To Excel"},{name:"exportVisualDataToExcel",kind:"function",description:"Exports data currently in grid to Excel as What-You-See-Is-What-You-Get",uiLabel:"Export Visual Data To Excel"},{name:"getAllCustomDestination",kind:"function",description:"Retrieves all Custom Destinations from Export Options",uiLabel:"Get All Custom Destination"},{name:"getAllReports",kind:"function",description:"Retrieves all Reports in State - both System and User-created Reports",uiLabel:"Get All Reports"},{name:"getAvailableExportDestinations",kind:"function",description:"Retrieves the available export destinations",uiLabel:"Get Available Export Destinations"},{name:"getAvailableSystemReports",kind:"function",description:"Retrieves System Reports section of Export State",uiLabel:"Get Available System Reports"},{name:"getCurrentReport",kind:"function",description:"Retrieves currently selected Report",uiLabel:"Get Current Report"},{name:"getCurrentReportName",kind:"function",description:"Retrieves name of currently selected Report",uiLabel:"Get Current Report Name"},{name:"getDestinationByName",kind:"function",description:"Retrieves Destination with the given name",uiLabel:"Get Destination By Name"},{name:"getExportDestinationForm",kind:"function",description:"Form Data entered by the User in the UI for a Custom Destination",uiLabel:"Get Export Destination Form"},{name:"getExportState",kind:"function",description:"Retrieves Export section from Adaptable State",uiLabel:"Get Export State"},{name:"getReportById",kind:"function",description:"Retrieves Report by Id",uiLabel:"Get Report By Id"},{name:"getReportByName",kind:"function",description:"Retrieves Report with the given name",uiLabel:"Get Report By Name"},{name:"getReportDataForReport",kind:"function",description:"Returns the ReportData for the Report with the given name",uiLabel:"Get Report Data For Report"},{name:"getReportSchedules",kind:"function",description:"Retrieves all Report Schedules",uiLabel:"Get Report Schedules"},{name:"isDataChangeInReport",kind:"function",description:"Whether given data change affects given report",uiLabel:"Is Data Change In Report"},{name:"isExportDestinationCustom",kind:"function",description:"If the given destination is a Custom one",uiLabel:"Is Export Destination Custom"},{name:"runCustomReport",kind:"function",description:"Runs the report function of the CustomReport with the given reportName",uiLabel:"Run Custom Report"},{name:"sendReport",kind:"function",description:"Sends a Report to a given destination",uiLabel:"Send Report"},{name:"showExportPopup",kind:"function",description:"Opens Settings Panel with Export section selected and visible",uiLabel:"Show Export Popup"}]},ExportButtonContext:{name:"ExportButtonContext",kind:"Interface",description:"Context required by functions when using an Export Button",properties:[{name:"customDestination",kind:"REFERENCE",description:"Custom Export destination",uiLabel:"Custom Destination",reference:"CustomDestination"},{name:"formData",kind:"REFERENCE",description:"Adaptable Form Data",uiLabel:"Form Data",reference:"unknown"},{name:"report",kind:"REFERENCE",description:"The exported report",uiLabel:"Report",reference:"unknown"},{name:"reportData",kind:"REFERENCE",description:"The data in the report",uiLabel:"Report Data",reference:"ReportData"}]},ExportOptions:{name:"ExportOptions",kind:"Interface",description:"Options regarding Exporting data from AdapTable",properties:[{name:"appendFileTimestamp",kind:"boolean",description:"Whether to add a timestamp as a suffix to exported file name",uiLabel:"Append File Timestamp",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"customDestinations",kind:"unknown",description:"User-provided Report Destinations (in addition to those shipped in AdapTable)",uiLabel:"Custom Destinations",isOptional:!0},{name:"customReports",kind:"unknown",description:"Reports run entirely by users (and not AdapTable)",uiLabel:"Custom Reports",isOptional:!0},{name:"exportDateFormat",kind:"string",description:"Optional custom format for Date columns when exporting",uiLabel:"Export Date Format",isOptional:!0,gridInfo:"item",defaultValue:"undefined"},{name:"exportFormatType",kind:"unknown",description:"Format of exported values; can be set either for whole grid or specifically for each column type",uiLabel:"Export Format Type",isOptional:!0,defaultValue:"rawValue"},{name:"systemExportDestinations",kind:"REFERENCE",description:"Export destinations to use; leave blank for all, empty array for none",uiLabel:"System Export Destinations",isOptional:!0,gridInfo:"item",defaultValue:"'Excel', 'CSV', 'Clipboard', 'JSON'",reference:"unknown"},{name:"systemReportNames",kind:"REFERENCE",description:"System Reports to use; leave blank for all, empty array for none",uiLabel:"System Report Names",isOptional:!0,gridInfo:"item",defaultValue:"'Visual Data', 'All Data', 'Current Data', 'Selected Cells', 'Selected Rows',",reference:"unknown"}]},ExportState:{name:"ExportState",kind:"Interface",description:"Predefined Configuration for Export Module",properties:[{name:"CurrentDestination",kind:"unknown",description:"Currently selected Report Destination in Export Toolbar & Tool Panel",uiLabel:"Current Destination",isOptional:!0},{name:"CurrentReport",kind:"string",description:"Currently selected Report - in Export Toolbar & Tool Panel",uiLabel:"Current Report",isOptional:!0},{name:"Reports",kind:"unknown",description:"User-created Reports; each has Name and Row and Column Scope",uiLabel:"Reports",isOptional:!0}]},ExpressionContext:{name:"ExpressionContext",kind:"Interface",description:"Provides context to an Expression Function, including current row node and AdaptableApi",properties:[{name:"api",kind:"REFERENCE",description:"Main Adaptable Api object",uiLabel:"Api",isOptional:!0,reference:"AdaptableApi"},{name:"filterFn",kind:"unknown",description:"Optional filter function to be applied before evaluating the expression",uiLabel:"Filter Fn",isOptional:!0},{name:"functions",kind:"REFERENCE",description:"All Expression Functions available to AdapTableQL",uiLabel:"Functions",reference:"unknown"},{name:"namedQueryCallStack",kind:"unknown",description:"All shared(named) query evaluations are tracked in order to detect circular dependencies",uiLabel:"Named Query Call Stack",isOptional:!0},{name:"node",kind:"unknown",description:"Current row node in grid being evaluated",uiLabel:"Node"},{name:"whereClauseFunctions",kind:"REFERENCE",description:"All Expression Functions available to AdapTableQL in the (optional) WHERE clause",uiLabel:"Where Clause Functions",isOptional:!0,reference:"unknown"}]},ExpressionFunction:{name:"ExpressionFunction",kind:"Interface",description:"Defines an AdapTableQL Function used in an Adaptable Expression",properties:[{name:"description",kind:"string",description:"What the AdapTableQL Function does",uiLabel:"Description",isOptional:!0},{name:"examples",kind:"unknown",description:"Examples that use the AdapTableQL Function",uiLabel:"Examples",isOptional:!0},{name:"handler",kind:"REFERENCE",description:"Actual AdapTableQL Function called by the Expression (mandatory prop)",uiLabel:"Handler",reference:"ExpressionFunctionHandler"},{name:"hasEagerEvaluation",kind:"boolean",description:"Whether Expression is evaluated eagerly (without handling inner AST nodes)",uiLabel:"Has Eager Evaluation",isOptional:!0},{name:"isHiddenFromMenu",kind:"boolean",description:"Removes entry from Expression Editor's Functions dropdown",uiLabel:"Is Hidden From Menu",isOptional:!0},{name:"isPredicate",kind:"boolean",description:"Whether the AdapTableQL Function returns true, if so can be used as Query",uiLabel:"Is Predicate",isOptional:!0},{name:"signatures",kind:"unknown",description:"How the AdapTableQL Function should be called",uiLabel:"Signatures",isOptional:!0}]},ExpressionFunctionDocBlock:{name:"ExpressionFunctionDocBlock",kind:"TypeAlias",description:"Defines how an AdapTableQL Function is described in Expression Editor"},ExpressionFunctionHandler:{name:"ExpressionFunctionHandler",kind:"TypeAlias",description:"The javascript function which is invoked by an AdapTableQL Function"},ExpressionOptions:{name:"ExpressionOptions",kind:"Interface",description:"Options for managing Expressions using AdapTableQL",properties:[{name:"defaultAggregatedBooleanFunctions",kind:"REFERENCE",description:"Aggregated Boolean Expression Functions available in AdapTableQL",uiLabel:"Default Aggregated Boolean Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultAggregatedScalarFunctions",kind:"REFERENCE",description:"Aggregated Scalar Expression Functions available in AdapTableQL",uiLabel:"Default Aggregated Scalar Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultBooleanFunctions",kind:"REFERENCE",description:"Boolean Expression Functions available in AdapTableQL",uiLabel:"Default Boolean Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultObservableFunctions",kind:"REFERENCE",description:"Observable Expression Functions available in AdapTableQL",uiLabel:"Default Observable Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"defaultScalarFunctions",kind:"REFERENCE",description:"Scalar Expression Functions available in AdapTableQL",uiLabel:"Default Scalar Functions",isOptional:!0,gridInfo:"item",defaultValue:"null (sets all)",reference:"unknown"},{name:"maxTimeframeSize",kind:"number",description:"Maximum time (in milliseconds) to hold a Data Change event in a trailing timeframe (see observableExpressionFunctions); value is capped at 86400000 (~24 hours) for performance reasons",uiLabel:"Max Timeframe Size",isOptional:!0,gridInfo:"item",defaultValue:"28800000 (~8 hours)"},{name:"moduleExpressionFunctions",kind:"unknown",description:"Module specific ExpressionFunctions; if not defined, it falls back to the defined default values",uiLabel:"Module Expression Functions",isOptional:!0,gridInfo:"item",defaultValue:"undefined (defaults to default values)"},{name:"performExpressionValidation",kind:"boolean",description:"Validate Expressions before they can be run or saved",uiLabel:"Perform Expression Validation",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"queryableColumns",kind:"unknown",description:"Columns that can be included in AdapTableQL Expressions; leave unset to include **ALL**, provide empty array to set **NONE**",uiLabel:"Queryable Columns",isOptional:!0,gridInfo:"item",defaultValue:"undefined"}]},FDC3Context:{name:"FDC3Context",kind:"Interface",description:"General-purpose context type, as defined by [FDC3](https://fdc3.finos.org/docs/1.0/context-intro). A context object is a well-understood datum that is streamable between FDC3 participants. As a result it has a field describing what type it is, and data indicating its identity. Use this as a base to derive your own with any custom properties or metadata.",properties:[{name:"id",kind:"unknown",description:"An optional map of any equivalent identifiers for the context type, e.g. ISIN, CUSIP, etc. for an instrument.",uiLabel:"Id",isOptional:!0},{name:"name",kind:"string",description:"The name of the context data (optional). This is a text string that describes the data being sent. Implementors of context may choose to make the name mandatory.",uiLabel:"Name",isOptional:!0},{name:"type",kind:"string",description:"The type of the context that uniquely identifies it, e.g. "instrument". This is used to refer to the accepted context(s) when declaring intents. See [[AppDirIntent]].",uiLabel:"Type"}]},FilterActionOnDataChange:{name:"FilterActionOnDataChange",kind:"Interface",description:"Determines whether Adaptable should re-apply filtering after cell and ticking data edits. * If the 'applyFilter' value is 'Throttle' then the 'throttleDelay' property should be additionally set.",properties:[{name:"applyFilter",kind:"unknown",description:"When to re-apply Filters: 'Always', 'Never' or 'Throttle'",uiLabel:"Apply Filter"},{name:"throttleDelay",kind:"number",description:"Delay in ms (when `applyFilter` is set to 'Throttle')",uiLabel:"Throttle Delay",isOptional:!0}]},FilterApi:{name:"FilterApi",kind:"Interface",description:"Provides run-time access to Filter section of Adaptable State.",properties:[{name:"clearAllColumnFilter",kind:"function",description:"Clears all Column Filters in State",uiLabel:"Clear All Column Filter"},{name:"clearAndSetColumnFilter",kind:"function",description:"Clears existing Column Filters and then sets the new ones",uiLabel:"Clear And Set Column Filter"},{name:"clearColumnFilter",kind:"function",description:"Clears given Column Filter",uiLabel:"Clear Column Filter"},{name:"clearColumnFilterByColumn",kind:"function",description:"Clears Column Filter for given Column",uiLabel:"Clear Column Filter By Column"},{name:"clearColumnFilterByColumns",kind:"function",description:"Clears Column Filters for given set of Columns",uiLabel:"Clear Column Filter By Columns"},{name:"columnFiltersToString",kind:"function",description:"Retrieves descriptions of given Column Filters",uiLabel:"Column Filters To String"},{name:"columnFilterToString",kind:"function",description:"Retrieves description of given Column Filter",uiLabel:"Column Filter To String"},{name:"createColumnFilterForCell",kind:"function",description:"Creates new Column Filter on given Column using Primary Key values",uiLabel:"Create Column Filter For Cell"},{name:"evaluateColumnFilter",kind:"function",description:"Calls AdapTableQL to evaluate Filter for given Row",uiLabel:"Evaluate Column Filter"},{name:"findPredicateDefByShortcut",kind:"function",description:"Returns Predicate Definition for given Column and Quick Filter shortcut",uiLabel:"Find Predicate Def By Shortcut"},{name:"getAllColumnFilter",kind:"function",description:"Retrieves all the Column Filters in the Column Filter State (of Predefined Config)",uiLabel:"Get All Column Filter"},{name:"getAllColumnFilterForColumn",kind:"function",description:"Retrieves all Column Filters for given Column",uiLabel:"Get All Column Filter For Column"},{name:"getAllSystemFilterIds",kind:"function",description:"Retrieves Ids for all System Filters",uiLabel:"Get All System Filter Ids"},{name:"getColumnFilterById",kind:"function",description:"Retrieves ColumnFilter by Id",uiLabel:"Get Column Filter By Id"},{name:"getFilterPredicateDefsForColumn",kind:"function",description:"Gets all Filter Predicates available for a given Column",uiLabel:"Get Filter Predicate Defs For Column"},{name:"getFilterPredicateDefsForColumnId",kind:"function",description:"Gets all Filter Predicates available for a given ColumnId",uiLabel:"Get Filter Predicate Defs For Column Id"},{name:"getFilterState",kind:"function",description:"Retrieves Filter section from Adaptable State",uiLabel:"Get Filter State"},{name:"hideQuickFilterBar",kind:"function",description:"Hides Quick Filter bar",uiLabel:"Hide Quick Filter Bar"},{name:"isQuickFilterAvailable",kind:"function",description:"Whether Quick Filter is available for use",uiLabel:"Is Quick Filter Available"},{name:"isQuickFilterVisible",kind:"function",description:"Whether Quick Filter Form is currently visible",uiLabel:"Is Quick Filter Visible"},{name:"setColumnFilter",kind:"function",description:"Sets Column Filters - will replace filters for existing column and leave other column filters in place",uiLabel:"Set Column Filter"},{name:"showQuickFilterBar",kind:"function",description:"Makes Quick Filter Bar appear",uiLabel:"Show Quick Filter Bar"}]},FilterOptions:{name:"FilterOptions",kind:"Interface",description:"Options for managing Filtering in AdapTable",properties:[{name:"autoApplyFilter",kind:"boolean",description:"Apply selected filters (in Filter Form or Quick Filter Bar) as soon as they are clicked; if false an Apply Filter button is displayed",uiLabel:"Auto Apply Filter",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"clearFiltersOnStartUp",kind:"boolean",description:"Clears saved Column Filters when AdapTable loads",uiLabel:"Clear Filters On Start Up",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"defaultDateColumnFilter",kind:"unknown",description:"Default filter type for date Columns",uiLabel:"Default Date Column Filter",isOptional:!0,gridInfo:"item",defaultValue:"On"},{name:"defaultFilterFormTab",kind:"unknown",description:"Whether to open the Filter Form on the Values or Predicates tab",uiLabel:"Default Filter Form Tab",isOptional:!0,gridInfo:"item",defaultValue:"'Values'"},{name:"defaultNumericColumnFilter",kind:"unknown",description:"Default filter type for numeric Columns",uiLabel:"Default Numeric Column Filter",isOptional:!0,gridInfo:"item",defaultValue:"Equals"},{name:"defaultStringColumnFilter",kind:"unknown",description:"Default filter type for string Columns",uiLabel:"Default String Column Filter",isOptional:!0,gridInfo:"item",defaultValue:"Contains"},{name:"enableFilterOnSpecialColumns",kind:"boolean",description:"Allows filtering on Calculated & FreeText columns",uiLabel:"Enable Filter On Special Columns",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"filterActionOnExternalDataChange",kind:"REFERENCE",description:"When to re-filter grid after data ticks: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')",uiLabel:"Filter Action On External Data Change",isOptional:!0,defaultValue:"'Never'",reference:"FilterActionOnDataChange"},{name:"filterActionOnUserDataChange",kind:"REFERENCE",description:"When to re-filter grid after user edits data: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')",uiLabel:"Filter Action On User Data Change",isOptional:!0,defaultValue:"'Always'",reference:"FilterActionOnDataChange"},{name:"hideQuickFilterDropdown",kind:"unknown",description:"Hides the Dropdown in Quick Filter Bar for a given Column",uiLabel:"Hide Quick Filter Dropdown",isOptional:!0,defaultValue:"undefined"},{name:"hideQuickFilterInput",kind:"unknown",description:"Hides the Input in Quick Filter Bar for a given Column",uiLabel:"Hide Quick Filter Input",isOptional:!0,defaultValue:"undefined"},{name:"indicateFilteredColumns",kind:"boolean",description:"Make Column header distinctive for filtered columns, helps users see currently filtered columns",uiLabel:"Indicate Filtered Columns",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"maxFilterValuesToDisplay",kind:"number",description:"Distinct column items to display in Filter Form; useful with large datasource (though AdapTable offers virtualisation)",uiLabel:"Max Filter Values To Display",isOptional:!0,gridInfo:"item",defaultValue:"2,000"},{name:"quickFilterHeight",kind:"number",description:"Sets a height for Quick Filter Bar (if not provided AG Grid's default is used)",uiLabel:"Quick Filter Height",isOptional:!0,gridInfo:"item",defaultValue:"null"},{name:"quickFilterTrigger",kind:"unknown",description:"Whether to open Quick Filter dropdown with mouse hover or click",uiLabel:"Quick Filter Trigger",isOptional:!0,gridInfo:"item",defaultValue:"'mouseenter'"},{name:"quickFilterValuesTrigger",kind:"unknown",description:"Whether to open Quick Filter Values dropdown with mouse hover or click",uiLabel:"Quick Filter Values Trigger",isOptional:!0,gridInfo:"item",defaultValue:"'mouseenter'"},{name:"sortColumnValuesInFilter",kind:"boolean",description:"Whether column values in filter dropdown should apply column's current Sort Order for the column",uiLabel:"Sort Column Values In Filter",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"systemFilters",kind:"REFERENCE",description:"Which Adaptable System Filter Predicates are available",uiLabel:"System Filters",isOptional:!0,reference:"unknown"},{name:"useAdaptableFilterForm",kind:"unknown",description:"Uses Adaptable's Filter Form in Column Menu for all columns if 'true' (the default) or those listed, in preference to AG Grid's Filter Form",uiLabel:"Use Adaptable Filter Form",isOptional:!0,defaultValue:"true"},{name:"useAdaptableQuickFilter",kind:"unknown",description:"Use Adaptable's Quick Filter Bar for all columns if 'true' (the default) or those listed, in preference to AG Grid's Floating Filter",uiLabel:"Use Adaptable Quick Filter",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"useAgGridFilterFormStyle",kind:"boolean",description:"Styles Adaptable Filter Form to match AG Grid's styling (if using Balham theme)",uiLabel:"Use Ag Grid Filter Form Style",isOptional:!0,gridInfo:"item",defaultValue:"true"}]},FilterPermittedValues:{name:"FilterPermittedValues",kind:"Interface",description:"Used to define values inside the floating filter and floating filter (quick filter)",properties:[{name:"suppressFilterSearchBar",kind:"boolean",description:"Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed",uiLabel:"Suppress Filter Search Bar",isOptional:!0,defaultValue:"false"}]},FilterState:{name:"FilterState",kind:"Interface",description:"Predefined Configuration for Filters",properties:[{name:"ColumnFilters",kind:"unknown",description:"Collection of Column Filters",uiLabel:"Column Filters",isOptional:!0},{name:"IsQuickFilterVisible",kind:"boolean",description:"Whether to display Quick Filter Bar between Column Header and the Grid",uiLabel:"Is Quick Filter Visible",isOptional:!0,defaultValue:"true"}]},FinanceApi:{name:"FinanceApi",kind:"Interface",description:"Provides run-time access to the OpenFin Plugin",properties:[{name:"getPluginOptions",kind:"function",description:"Retrieves the OpenFinPlugOptions provided in OpenFin Plugin",uiLabel:"Get Plugin Options"}]},FinancePluginOptions:{name:"FinancePluginOptions",kind:"Interface",description:"Options required for when using the Finance plugin",properties:[{name:"fdc3Columns",kind:"unknown",description:"Columns to be defined as FDC3",uiLabel:"Fdc3Columns",isOptional:!0},{name:"weightedAverageColumns",kind:"unknown",description:"Columns to use a Weighted Average aggregation",uiLabel:"Weighted Average Columns",isOptional:!0}]},FlashingCellApi:{name:"FlashingCellApi",kind:"Interface",description:"Provides run-time access to Flashing Cell functionality and associated State",properties:[{name:"addFlashingCellDefinition",kind:"function",description:"Adds a Flashing cell Definition to State",uiLabel:"Add Flashing Cell Definition"},{name:"addFlashingCellDefinitions",kind:"function",description:"Adds provided Flashing cell Definitions",uiLabel:"Add Flashing Cell Definitions"},{name:"editFlashingCellDefinition",kind:"function",description:"Edits Flashing Cell Definition in State with given one",uiLabel:"Edit Flashing Cell Definition"},{name:"editFlashingCellDefinitions",kind:"function",description:"Edits provided Flashing cell Definitions",uiLabel:"Edit Flashing Cell Definitions"},{name:"getActiveFlashingCellDefinitions",kind:"function",description:"Retrieves all active (non-suspended) cell Definitions in Flashing Cell State",uiLabel:"Get Active Flashing Cell Definitions"},{name:"getFlashingCellDefinitionById",kind:"function",description:"Retrieves Flashing cell Definition By Id",uiLabel:"Get Flashing Cell Definition By Id"},{name:"getFlashingCellDefinitions",kind:"function",description:"Retrieves all Flashing cell Definitions in Flashing Cell State",uiLabel:"Get Flashing Cell Definitions"},{name:"getFlashingCellFlashTarget",kind:"function",description:"Returns where a Flashing cell Definition will flash a single cell or a whole row",uiLabel:"Get Flashing Cell Flash Target"},{name:"getFlashingCellPredicateDefs",kind:"function",description:"Retrieves all Predicate Defs with Module Scope of Flashing Cell",uiLabel:"Get Flashing Cell Predicate Defs"},{name:"getFlashingCellPredicateDefsForScope",kind:"function",description:"Retrieves all Predicate Defs that match given Scope",uiLabel:"Get Flashing Cell Predicate Defs For Scope"},{name:"getFlashingCellState",kind:"function",description:"Retrieves Flashing Cell section from Adaptable State",uiLabel:"Get Flashing Cell State"},{name:"setFlashingCellDefinitions",kind:"function",description:"Sets a collection of Flashing Cell Definitions into State",uiLabel:"Set Flashing Cell Definitions"},{name:"showFlashingCell",kind:"function",description:"Displays a Flashing Cell Definition",uiLabel:"Show Flashing Cell"},{name:"suspendFlashingCellDefinition",kind:"function",description:"Suspends a Flashing cell Definition",uiLabel:"Suspend Flashing Cell Definition"},{name:"unSuspendFlashingCellDefinition",kind:"function",description:"Activates a suspended Flashing cell Definition",uiLabel:"Un Suspend Flashing Cell Definition"}]},FlashingCellDefinition:{name:"FlashingCellDefinition",kind:"Interface",description:"The Flashing Cell Definition",properties:[{name:"DownChangeStyle",kind:"REFERENCE",description:"Style for 'Down' value changes",uiLabel:"Down Change Style",isOptional:!0,defaultValue:"Red BackColour",reference:"AdaptableStyle"},{name:"FlashDuration",kind:"unknown",description:"Duration of Flash - can be number (in ms) or 'always'",uiLabel:"Flash Duration",isOptional:!0,defaultValue:"500ms"},{name:"FlashTarget",kind:"unknown",description:"Should a cell or whole row flash",uiLabel:"Flash Target",isOptional:!0,defaultValue:"'cell'"},{name:"NeutralChangeStyle",kind:"REFERENCE",description:"Style for 'Neutral' value changes",uiLabel:"Neutral Change Style",isOptional:!0,defaultValue:"Gray BackColour",reference:"AdaptableStyle"},{name:"Rule",kind:"REFERENCE",description:"When Flashing Cell should be triggered",uiLabel:"Rule",reference:"unknown"},{name:"Scope",kind:"REFERENCE",description:"Where Flashing Cell can be triggered: one, some or all columns or DataTypes",uiLabel:"Scope",reference:"AdaptableScope"},{name:"UpChangeStyle",kind:"REFERENCE",description:"Style for 'Up' value changes",uiLabel:"Up Change Style",isOptional:!0,defaultValue:"Green BackColour",reference:"AdaptableStyle"}]},FlashingCellDisplayedInfo:{name:"FlashingCellDisplayedInfo",kind:"Interface",description:"Object returned by the `FlashingCellDisplayed` event",properties:[{name:"flashingCell",kind:"REFERENCE",description:"Details of the Cell (or row) which has just flashed",uiLabel:"Flashing Cell",reference:"AdaptableFlashingCell"}]},FlashingCellOptions:{name:"FlashingCellOptions",kind:"Interface",description:"Properties for Flashing Cell",properties:[{name:"defaultDownChangeStyle",kind:"REFERENCE",description:"Style for 'Down' value changes",uiLabel:"Default Down Change Style",isOptional:!0,defaultValue:"Red BackColour",reference:"AdaptableStyle"},{name:"defaultFlashDuration",kind:"unknown",description:"Duration of Flash - can be number (in ms) or 'always'",uiLabel:"Default Flash Duration",isOptional:!0,defaultValue:"500ms"},{name:"defaultFlashTarget",kind:"unknown",description:"Should a cell or whole row flash",uiLabel:"Default Flash Target",isOptional:!0,defaultValue:"'cell'"},{name:"defaultNeutralChangeStyle",kind:"REFERENCE",description:"Style for 'Neutral' value changes",uiLabel:"Default Neutral Change Style",isOptional:!0,defaultValue:"Gray BackColour",reference:"AdaptableStyle"},{name:"defaultUpChangeStyle",kind:"REFERENCE",description:"Style for 'Up' value changes",uiLabel:"Default Up Change Style",isOptional:!0,defaultValue:"Green BackColour",reference:"AdaptableStyle"}]},FlashingCellState:{name:"FlashingCellState",kind:"Interface",description:"Predefined Configuration for Flashing Cell module",properties:[{name:"FlashingCellDefinitions",kind:"unknown",description:"Flashing Cell Definitions - will colour cells/rows when rule is met",uiLabel:"Flashing Cell Definitions",isOptional:!0}]},FormatColumn:{name:"FormatColumn",kind:"Interface",description:"Object used in Format Column function",properties:[{name:"CellAlignment",kind:"unknown",description:"Aligns cells 'Left' or 'Right' or 'Center'",uiLabel:"Cell Alignment",isOptional:!0},{name:"ColumnStyle",kind:"REFERENCE",description:"Applies Gradient, Percent Bar or CheckBox style to a Column",uiLabel:"Column Style",isOptional:!0,reference:"ColumnStyle"},{name:"DisplayFormat",kind:"REFERENCE",description:"Display Format to apply to Column can be Numeric, String or Date",uiLabel:"Display Format",isOptional:!0,reference:"AdaptableFormat"},{name:"HeaderName",kind:"string",description:"Text to display in Column Header (doesn't change ColumnId)",uiLabel:"Header Name",isOptional:!0},{name:"IncludeGroupedRows",kind:"boolean",description:"Whether to Format the Column in Grouped Rows",uiLabel:"Include Grouped Rows",isOptional:!0,defaultValue:"false"},{name:"Scope",kind:"REFERENCE",description:"Where Format will be applied - whole Row, some Columns or all Columns of given DataType",uiLabel:"Scope",reference:"AdaptableScope"},{name:"Style",kind:"REFERENCE",description:"Style to apply",uiLabel:"Style",isOptional:!0,reference:"AdaptableStyle"}]},FormatColumnApi:{name:"FormatColumnApi",kind:"Interface",description:"Provides run-time access to the Format Column Module and associated state",properties:[{name:"addFormatColumn",kind:"function",description:"Adds a Format Column to Format Column State",uiLabel:"Add Format Column"},{name:"addFormatColumns",kind:"function",description:"Adds Format Columns to Format Column State",uiLabel:"Add Format Columns"},{name:"applyFormatColumnDisplayFormats",kind:"function",description:"Applies display format for all Format Columns in AdapTable State",uiLabel:"Apply Format Column Display Formats"},{name:"deleteAllFormatColumn",kind:"function",description:"Deletes all Format Columns in Adaptable State",uiLabel:"Delete All Format Column"},{name:"deleteFormatColumn",kind:"function",description:"Deletes an existing Format Column",uiLabel:"Delete Format Column"},{name:"editFormatColumn",kind:"function",description:"Edits the Format Column",uiLabel:"Edit Format Column"},{name:"fireCheckboxColumnClickedEvent",kind:"function",description:"Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked",uiLabel:"Fire Checkbox Column Clicked Event"},{name:"getAllActiveFormatColumn",kind:"function",description:"Retrieves all active (not-suspended) Format Columns in Adaptable State",uiLabel:"Get All Active Format Column"},{name:"getAllFormatColumn",kind:"function",description:"Retrieves all Format Columns in Adaptable State",uiLabel:"Get All Format Column"},{name:"getAllFormatColumnWithCellAlignment",kind:"function",description:"Retrieves all Format Columns in Adaptable State with `CellAlignment` property set",uiLabel:"Get All Format Column With Cell Alignment"},{name:"getAllFormatColumnWithDisplayFormat",kind:"function",description:"Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set",uiLabel:"Get All Format Column With Display Format"},{name:"getAllFormatColumnWithStyle",kind:"function",description:"Retrieves all Format Columns in Adaptable State with the `Style` property set",uiLabel:"Get All Format Column With Style"},{name:"getAllSuspendedFormatColumn",kind:"function",description:"Retrieves all suspended Format Columns in Adaptable State",uiLabel:"Get All Suspended Format Column"},{name:"getCheckBoxStyleFormatColumn",kind:"function",description:"Returns first Format Column that contains checkbox style",uiLabel:"Get Check Box Style Format Column"},{name:"getColumnComparisonForFormatColumn",kind:"function",description:"Retrieves the ColumnComparison property, if there, from a Format Column (Column Style)",uiLabel:"Get Column Comparison For Format Column"},{name:"getColumnIdsFromColumnComparison",kind:"function",description:"Returns any ColumnIds referenced in a Column Comparison",uiLabel:"Get Column Ids From Column Comparison"},{name:"getFormatColumnById",kind:"function",description:"Retrieves Format Column by Id",uiLabel:"Get Format Column By Id"},{name:"getFormatColumnForColumn",kind:"function",description:"Gets Format Column, if any, for given Column",uiLabel:"Get Format Column For Column"},{name:"getFormatColumnForColumnId",kind:"function",description:"Gets Format Column, if any, for given ColumnId",uiLabel:"Get Format Column For Column Id"},{name:"getFormatColumnState",kind:"function",description:"Retrieves Format Column section from Adaptable State",uiLabel:"Get Format Column State"},{name:"getFormatColumnWithDisplayFormatForColumn",kind:"function",description:"Will get the most appropriate one i.e. first named Column, then DataType, then All",uiLabel:"Get Format Column With Display Format For Column"},{name:"getFormatColumnWithSingleColumnScope",kind:"function",description:"Get Format Column which has Scope of Single Column, if any, for given ColumnId",uiLabel:"Get Format Column With Single Column Scope"},{name:"getFormatColumnWithStyleClassNameForColumn",kind:"function",description:"Gets Format Column if any for given Column which includes Style element with ClassName",uiLabel:"Get Format Column With Style Class Name For Column"},{name:"getFormatColumnWithStyleForColumn",kind:"function",description:"Gets Format Column if any for given Column which includes Style element",uiLabel:"Get Format Column With Style For Column"},{name:"getNumericStyleMaxValue",kind:"function",description:"Gets the Maximum Value to display for a Numeric Style",uiLabel:"Get Numeric Style Max Value"},{name:"getNumericStyleMinValue",kind:"function",description:"Gets the Minimum Value to display for a Numeric Style",uiLabel:"Get Numeric Style Min Value"},{name:"hasStyleFormatColumns",kind:"function",description:"Returns true if Format State includes Format Columns with a Style property",uiLabel:"Has Style Format Columns"},{name:"isCheckBoxStyleFormatColumn",kind:"function",description:"Whether given column is a (boolean) checkbox column",uiLabel:"Is Check Box Style Format Column"},{name:"showFormatColumnPopup",kind:"function",description:"Opens Settings Panel with Format Column section selected and visible",uiLabel:"Show Format Column Popup"},{name:"suspendFormatColumn",kind:"function",description:"Suspends an Format column",uiLabel:"Suspend Format Column"},{name:"unSuspendFormatColumn",kind:"function",description:"Suspends an Format column",uiLabel:"Un Suspend Format Column"}]},FormatColumnState:{name:"FormatColumnState",kind:"Interface",description:"Predefined Configuration for Format Column Module",properties:[{name:"FormatColumns",kind:"unknown",description:"Collection of Format Columns",uiLabel:"Format Columns",isOptional:!0}]},FreeTextColumn:{name:"FreeTextColumn",kind:"Interface",description:"The FreeTextColumn object used in the Free Text Column function",properties:[{name:"ColumnId",kind:"string",description:"Id of Column",uiLabel:"Column Id"},{name:"DataType",kind:"unknown",description:"Whether Column is String, Number, Boolean or Date",uiLabel:"Data Type",defaultValue:"'String'"},{name:"DefaultValue",kind:"unknown",description:"Initial value to use for each cell in the Column",uiLabel:"Default Value",isOptional:!0},{name:"FreeTextColumnSettings",kind:"REFERENCE",description:"Additional optional properties for Column (e.g. filterable, resizable)",uiLabel:"Free Text Column Settings",isOptional:!0,reference:"FreeTextColumnSettings"},{name:"FreeTextStoredValues",kind:"unknown",description:"Collection of Stored Values to aplly in the Column",uiLabel:"Free Text Stored Values",isOptional:!0},{name:"FriendlyName",kind:"string",description:"Friendly Name to use to refer to Column; if unset `ColumnId` is used",uiLabel:"Friendly Name",isOptional:!0},{name:"TextEditor",kind:"unknown",description:"Cell editor to use when editing a string Free Text Column *",uiLabel:"Text Editor",isOptional:!0,defaultValue:"'Inline'"}]},FreeTextColumnApi:{name:"FreeTextColumnApi",kind:"Interface",description:"Provides run-time access to FreeTextColumn Module and associated state",properties:[{name:"addEditFreeTextColumnStoredValue",kind:"function",description:"Adds FreeTextStoredValue for a FreeTextColumn (replaces existing one if exists)",uiLabel:"Add Edit Free Text Column Stored Value"},{name:"addFreeTextColumn",kind:"function",description:"Adds new FreeTextColumn to Adaptable State",uiLabel:"Add Free Text Column"},{name:"addStoredValuesToFreeTextColumn",kind:"function",description:"Adds Stored Values to Existing FreeTextColumn",uiLabel:"Add Stored Values To Free Text Column"},{name:"checkFreeTextColumnForDataChange",kind:"function",description:"Checks if a User Edit was in a Free Text Column",uiLabel:"Check Free Text Column For Data Change"},{name:"deleteFreeTextColumn",kind:"function",description:"Deletes existing FreeTextColumn from Adaptable State",uiLabel:"Delete Free Text Column"},{name:"editFreeTextColumn",kind:"function",description:"Edits existing FreeTextColumn in Adaptable State",uiLabel:"Edit Free Text Column"},{name:"getAllFreeTextColumn",kind:"function",description:"Gets all FreeTextColumns in Adaptable State",uiLabel:"Get All Free Text Column"},{name:"getFreeTextColumnById",kind:"function",description:"Retrieves FreeTextColumn for given ColumnId",uiLabel:"Get Free Text Column By Id"},{name:"getFreeTextColumnModuleReferences",kind:"function",description:"Returns all the references in the AdaptableState of the given FreeTextColumn",uiLabel:"Get Free Text Column Module References"},{name:"getFreeTextColumnState",kind:"function",description:"Retrieves FreeTextColumn section of Adaptable State",uiLabel:"Get Free Text Column State"},{name:"getFreeTextColumnValueFromRowNode",kind:"function",description:"Retrieves a Free Text Column value from a row",uiLabel:"Get Free Text Column Value From Row Node"},{name:"showFreeTextColumnPopup",kind:"function",description:"Opens Settings Panel with Free Text Column section selected and visible",uiLabel:"Show Free Text Column Popup"}]},FreeTextColumnSettings:{name:"FreeTextColumnSettings",kind:"Interface",description:"Set of optional properties that define a FreeText Columns behaviour"},FreeTextColumnState:{name:"FreeTextColumnState",kind:"Interface",description:"Predefined Configuration for the Free Text Column Module",properties:[{name:"FreeTextColumns",kind:"unknown",description:"Collection of Free Text Columns",uiLabel:"Free Text Columns",isOptional:!0}]},FreeTextStoredValue:{name:"FreeTextStoredValue",kind:"Interface",description:"Defines a cell value stored in a Free Text Column",properties:[{name:"FreeText",kind:"unknown",description:"Value to store in the cell",uiLabel:"Free Text"},{name:"PrimaryKey",kind:"unknown",description:"Primary Key Column value for the row",uiLabel:"Primary Key"}]},GeneralOptions:{name:"GeneralOptions",kind:"Interface",description:"General options for configuring AdapTable including managing Primary Keys",properties:[{name:"alternativeModuleNames",kind:"unknown",description:"Alternative names to use for Adaptable Modules in toolbars and menus",uiLabel:"Alternative Module Names",isOptional:!0,defaultValue:"null"},{name:"autoOrderGroupedColumns",kind:"boolean",description:"Order Grouped Column automatically, deriving from Adaptable State if available (CustomSort or Layout ColumnSort)",uiLabel:"Auto Order Grouped Columns",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"cellSummaryOperations",kind:"unknown",description:"Custom Cell Summary Operations to add to shipped set",uiLabel:"Cell Summary Operations",isOptional:!0},{name:"currentCalendar",kind:"string",description:"Calendar to use for calculating Holidays & Working Days",uiLabel:"Current Calendar",isOptional:!0,gridInfo:"item",defaultValue:"'United Kingdom'"},{name:"customSortComparers",kind:"unknown",description:"CustomSort column comparer functions",uiLabel:"Custom Sort Comparers",isOptional:!0},{name:"hideColumnWhenGrouped",kind:"boolean",description:"Automatically removes a column from the grid when it becomes Row Grouped",uiLabel:"Hide Column When Grouped",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"hideEmptyGroupRows",kind:"boolean",description:"Hides any grouped rows if there are no columns visible",uiLabel:"Hide Empty Group Rows",isOptional:!0,defaultValue:"false"},{name:"showGroupingTotalsAsHeader",kind:"boolean",description:"Show aggregated totals row at top of Grid when row grouping",uiLabel:"Show Grouping Totals As Header",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"showMissingColumnsWarning",kind:"boolean",description:"Show warning if AdapTable cannot find a column",uiLabel:"Show Missing Columns Warning",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showMissingPrimaryKeyAlert",kind:"boolean",description:"Shows Alert if Primary Key column in Adaptable Options is not present or incorrect",uiLabel:"Show Missing Primary Key Alert",isOptional:!0,gridInfo:"item",defaultValue:"false"}]},Glue42Api:{name:"Glue42Api",kind:"Interface",description:"Provides run-time access to the Glue42 Plugin.",properties:[{name:"clearGlue42InternalState",kind:"function",description:"Clears all Gluee42 Internal State",uiLabel:"Clear Glue42Internal State"},{name:"getCurrentLiveGlue42Report",kind:"function",description:"Retrieves the current Live Report",uiLabel:"Get Current Live Glue42Report"},{name:"getGlue42Schedules",kind:"function",description:"Retrieves all the Glue42 Schedules in from the Schedule section of AdapTable State",uiLabel:"Get Glue42Schedules"},{name:"getGlue42State",kind:"function",description:"Retrieves the Glue42 section of Adaptable State",uiLabel:"Get Glue42State"},{name:"getPluginOptions",kind:"function",description:"Retrieves the Glue42PluginOptions provided in Glue42 Plugin",uiLabel:"Get Plugin Options"},{name:"isGlue42Available",kind:"function",description:"Returns true if the Glue42 plugin is loaded",uiLabel:"Is Glue42Available"},{name:"isGlue42Running",kind:"function",description:"Returns true if the Glue42 plugin is loaded AND the user has logged into Glue42",uiLabel:"Is Glue42Running"},{name:"loginToGlue42",kind:"function",description:"Logs in the User to Glue42 using the given UserName and Password",uiLabel:"Login To Glue42"},{name:"logoutFromGlue42",kind:"function",description:"Logs out the currently logged in User from Glue42",uiLabel:"Logout From Glue42"},{name:"sendSnapshotToDo",kind:"function",description:"Starts a Snapshot as opposed to a Live report",uiLabel:"Send Snapshot To Do"},{name:"setGlue42AvailableOff",kind:"function",description:"Sets Glue42 Availability Off",uiLabel:"Set Glue42Available Off"},{name:"setGlue42AvailableOn",kind:"function",description:"Sets Glue42 Availability On",uiLabel:"Set Glue42Available On"},{name:"setGlue42LoginErrorMessage",kind:"function",description:"Sets an Error Message returned from Glue42 if login fails",uiLabel:"Set Glue42Login Error Message"},{name:"setGlue42RunningOff",kind:"function",description:"Sets Glue42 Running Off",uiLabel:"Set Glue42Running Off"},{name:"setGlue42RunningOn",kind:"function",description:"Sets Glue42 Running On",uiLabel:"Set Glue42Running On"},{name:"showNotification",kind:"function",description:"Shows a notification in Glue42",uiLabel:"Show Notification"},{name:"showNotificationForAlert",kind:"function",description:"Displays Alert as a Glue42 Notification",uiLabel:"Show Notification For Alert"},{name:"startLiveData",kind:"function",description:"Starts a "Live" report (ie. one which updates as the data ticks)",uiLabel:"Start Live Data"},{name:"stopLiveData",kind:"function",description:"Stops a "Live" report (ie. one which updates as the data ticks)",uiLabel:"Stop Live Data"}]},Glue42PluginOptions:{name:"Glue42PluginOptions",kind:"Interface",description:"Options for using the Glue42 plugin which provides a mechanism whereby AdapTable can be integreated with multiple widgets",properties:[{name:"gatewayURL",kind:"string",description:"Gateway URL",uiLabel:"Gateway URL",isOptional:!0},{name:"glue",kind:"unknown",description:"Main Glue desktop object",uiLabel:"Glue",isOptional:!0},{name:"glue42Office",kind:"unknown",description:"Main Glue42 Office object",uiLabel:"Glue42Office",isOptional:!0},{name:"password",kind:"string",description:"Password to use to login to Glue42; typically sourced from PC Credentials",uiLabel:"Password",isOptional:!0},{name:"username",kind:"string",description:"UserName to use to login to Glue42; typically sourced from PC Credentials",uiLabel:"Username",isOptional:!0}]},Glue42Report:{name:"Glue42Report",kind:"Interface",description:"Glue42 report - currently just contains name of Report",properties:[{name:"ReportName",kind:"string",description:"The Report's name (as exists in Export State)",uiLabel:"Report Name"}]},Glue42Schedule:{name:"Glue42Schedule",kind:"Interface",description:"Defines Glue42 Scheduled Report; used in Schedule Module (where State is stored)",properties:[{name:"Glue42Report",kind:"REFERENCE",description:"The Glue42 Report which will be sent when the Schedule runs",uiLabel:"Glue42Report",reference:"Glue42Report"},{name:"Transmission",kind:"unknown",description:"Whether its a one-off or 'streaming' transmission",uiLabel:"Transmission"}]},Glue42State:{name:"Glue42State",kind:"Interface",description:"Internal State used by AdapTable for managing the Glue42 plugin",properties:[{name:"CurrentLiveGlue42Report",kind:"REFERENCE",description:"Which Glue42 Report is currently live",uiLabel:"Current Live Glue42Report",isOptional:!0,reference:"Glue42Report"},{name:"Glue42LoginErrorMessage",kind:"string",description:"Message to show when Login Fails",uiLabel:"Glue42Login Error Message",isOptional:!0},{name:"IsGlue42Available",kind:"boolean",description:"Whether Glue42 is available",uiLabel:"Is Glue42Available",isOptional:!0},{name:"IsGlue42Running",kind:"boolean",description:"Whether Glue42 is running",uiLabel:"Is Glue42Running",isOptional:!0}]},GradientStyle:{name:"GradientStyle",kind:"Interface",description:"Used to display Gradient Styles in Format Column",properties:[{name:"CellRanges",kind:"unknown",description:"Ranges (e.g. to allow a traffic light effect)",uiLabel:"Cell Ranges",isOptional:!0},{name:"ColumnComparison",kind:"REFERENCE",description:"Compares cell values to another Column",uiLabel:"Column Comparison",isOptional:!0,reference:"ColumnComparison"}]},GridApi:{name:"GridApi",kind:"Interface",description:"Provides access to important properites of AdapTable e.g. sorting, selected cells etc.",properties:[{name:"addGridData",kind:"function",description:"Adds rows to Adaptable (and AG Grid)",uiLabel:"Add Grid Data"},{name:"applyGridFiltering",kind:"function",description:"Applies current Filtering and Searching in AdapTable",uiLabel:"Apply Grid Filtering"},{name:"areCellsEditable",kind:"function",description:"Checks if given set of Grid Cells are editable",uiLabel:"Are Cells Editable"},{name:"clearAdaptableSorting",kind:"function",description:"Removes Column Sorts in AdapTable",uiLabel:"Clear Adaptable Sorting"},{name:"clearGridFiltering",kind:"function",description:"Removes all current Filters and Searches in AdapTable",uiLabel:"Clear Grid Filtering"},{name:"clearRowGroupColumns",kind:"function",description:"Clears Row Grouping in the Grid",uiLabel:"Clear Row Group Columns"},{name:"closeAllRowGroups",kind:"function",description:"Close all open groups in Row Grouping",uiLabel:"Close All Row Groups"},{name:"deleteGridData",kind:"function",description:"Deletes rows from Adaptable (and AG Grid)",uiLabel:"Delete Grid Data"},{name:"deselectAll",kind:"function",description:"Deselects all selected rows, cells and ranges",uiLabel:"Deselect All"},{name:"deSelectNode",kind:"function",description:"Deselects the AG Grid Row Node in AdapTable",uiLabel:"De Select Node"},{name:"deSelectNodes",kind:"function",description:"AG Grid Row Nodes in AdapTable",uiLabel:"De Select Nodes"},{name:"deSelectRow",kind:"function",description:"Deselects Row with given Primary Key Value",uiLabel:"De Select Row"},{name:"deSelectRows",kind:"function",description:"Deselects Row with given Primary Key Values",uiLabel:"De Select Rows"},{name:"destroy",kind:"function",description:"Destroys current AdapTable instance",uiLabel:"Destroy"},{name:"expandAllRowGroups",kind:"function",description:"Expands all closed groups in Row Grouping",uiLabel:"Expand All Row Groups"},{name:"expandRowGroupsForValues",kind:"function",description:"Expands Row Groups that contain given keys",uiLabel:"Expand Row Groups For Values"},{name:"fireCellChangedEvent",kind:"function",description:"Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed",uiLabel:"Fire Cell Changed Event"},{name:"fireGridDataChangedEvent",kind:"function",description:"Fires Grid Data Changed Event - when a row has changed in AG Grid",uiLabel:"Fire Grid Data Changed Event"},{name:"fireSearchChangedEvent",kind:"function",description:"Fires Search Changed Event - typically used to enable server searching and filtering",uiLabel:"Fire Search Changed Event"},{name:"getAgGridInstance",kind:"function",description:"Returns Ag Grid instance (passed into Adaptable Options at start-up)",uiLabel:"Get Ag Grid Instance"},{name:"getCellDisplayValue",kind:"function",description:"Retrieves Display Value for a given cell",uiLabel:"Get Cell Display Value"},{name:"getCellNormalisedValue",kind:"function",description:"Retrieves Normalised Value for a given cell",uiLabel:"Get Cell Normalised Value"},{name:"getCellRawValue",kind:"function",description:"Retrieves Raw Value for a given cell",uiLabel:"Get Cell Raw Value"},{name:"getColumnCount",kind:"function",description:"Returns number of columns in Data Source",uiLabel:"Get Column Count"},{name:"getColumnSortForColumn",kind:"function",description:"Retrieves ColumnSort for a given Column",uiLabel:"Get Column Sort For Column"},{name:"getColumnSorts",kind:"function",description:"Returns Column Sort information in Adaptable",uiLabel:"Get Column Sorts"},{name:"getDisplayValueFromRowNode",kind:"function",description:"Retrieves Display Value for Cell in given Row and Column",uiLabel:"Get Display Value From Row Node"},{name:"getEntitlementAccessLevelForModule",kind:"function",description:"Retrieves the Entitlement Access Level for a given Adaptable Module",uiLabel:"Get Entitlement Access Level For Module"},{name:"getExpandRowGroupsKeys",kind:"function",description:"Get keys for any open rows in Row Grouping",uiLabel:"Get Expand Row Groups Keys"},{name:"getFilteredData",kind:"function",description:"Retrieves filtered data from the grid",uiLabel:"Get Filtered Data"},{name:"getFirstDisplayedRowNode",kind:"function",description:"Retrieves the first Displayed Row Node in AdapTable",uiLabel:"Get First Displayed Row Node"},{name:"getFirstRowNode",kind:"function",description:"Retrieves the first Row Node in AdapTable",uiLabel:"Get First Row Node"},{name:"getFormattedValueFromRawValue",kind:"function",description:"Retrieves Formatted Value for a given Raw Value in given Column",uiLabel:"Get Formatted Value From Raw Value"},{name:"getGridCellFromRowNode",kind:"function",description:"Retrieves Cell in given Row and Column",uiLabel:"Get Grid Cell From Row Node"},{name:"getGridContainerElement",kind:"function",description:"Returns the Grid Container in which the Adaptable Instance is present",uiLabel:"Get Grid Container Element"},{name:"getGridData",kind:"function",description:"Retrieves all data from the grid",uiLabel:"Get Grid Data"},{name:"getGridState",kind:"function",description:"Returns Grid section from Adaptable State",uiLabel:"Get Grid State"},{name:"getNormalisedValueFromRowNode",kind:"function",description:"Retrieves Normalised Value for Cell in given Row and Column",uiLabel:"Get Normalised Value From Row Node"},{name:"getPrimaryKeyValueForRowNode",kind:"function",description:"Returns the Primary Kev Value for a given Row Node",uiLabel:"Get Primary Key Value For Row Node"},{name:"getPrimaryKeyValuesForRowNodes",kind:"function",description:"Returns the Primary Kev Values for a given Row Node collection",uiLabel:"Get Primary Key Values For Row Nodes"},{name:"getRawValueFromRowNode",kind:"function",description:"Retrieves Raw Value for Cell in given Row and Column",uiLabel:"Get Raw Value From Row Node"},{name:"getRowCount",kind:"function",description:"Returns number of rows in Data Source",uiLabel:"Get Row Count"},{name:"getRowNodeForPrimaryKey",kind:"function",description:"Retrieves Row Node that contains given Primary Key",uiLabel:"Get Row Node For Primary Key"},{name:"getRowNodesForPrimaryKeys",kind:"function",description:"Retrieves Row Nodes that contain given Primary Keys",uiLabel:"Get Row Nodes For Primary Keys"},{name:"getSelectedCellInfo",kind:"function",description:"Returns all current Selected Cells in AdapTable",uiLabel:"Get Selected Cell Info"},{name:"getSelectedRowInfo",kind:"function",description:"Returns all current Selected Rows in AdapTable",uiLabel:"Get Selected Row Info"},{name:"getVisibleColumnCount",kind:"function",description:"Returns number of visible columns in Data Source",uiLabel:"Get Visible Column Count"},{name:"getVisibleRowCount",kind:"function",description:"Returns number of visible rows in Data Source",uiLabel:"Get Visible Row Count"},{name:"getVisibleRowNodes",kind:"function",description:"Retrieves all Row Nodes currently in the Grid (i.e. filtered)",uiLabel:"Get Visible Row Nodes"},{name:"hideFilterForm",kind:"function",description:"Hides the AdapTable Filter Form",uiLabel:"Hide Filter Form"},{name:"highlightCell",kind:"function",description:"Highlights a Cell in AdapTable",uiLabel:"Highlight Cell"},{name:"highlightRow",kind:"function",description:"Highlight a row using an adaptable style",uiLabel:"Highlight Row"},{name:"highlightRows",kind:"function",description:"Highlight rows using an adaptable style",uiLabel:"Highlight Rows"},{name:"isGridGroupable",kind:"function",description:"Whether AdapTable instance can be Row Grouped",uiLabel:"Is Grid Groupable"},{name:"isGridPivotable",kind:"function",description:"Whether AdapTable instance can be pivoted",uiLabel:"Is Grid Pivotable"},{name:"isGridRowGrouped",kind:"function",description:"Whether Grid is currently showing Row Groups",uiLabel:"Is Grid Row Grouped"},{name:"isGridSelectable",kind:"function",description:"Whether AdapTable instance offers cell selection",uiLabel:"Is Grid Selectable"},{name:"isGroupRowNode",kind:"function",description:"Whether given Row Node is a Row Group",uiLabel:"Is Group Row Node"},{name:"isQuickFilterAvailable",kind:"function",description:"Whether Quick Filter is available in the Grid",uiLabel:"Is Quick Filter Available"},{name:"jumpToCell",kind:"function",description:"Grid will jump to cell in a given Row and Column",uiLabel:"Jump To Cell"},{name:"jumpToColumn",kind:"function",description:"Grid will jump to Column that has given ColumnId",uiLabel:"Jump To Column"},{name:"jumpToRow",kind:"function",description:"Grid will jump to Row containing given Primary Kev Value",uiLabel:"Jump To Row"},{name:"loadGridData",kind:"function",description:"Loads grid with given data",uiLabel:"Load Grid Data"},{name:"redrawGrid",kind:"function",description:"Redraws AdapTable (expensive operation so use sparingly)",uiLabel:"Redraw Grid"},{name:"refreshCells",kind:"function",description:"Refresh Cells in AdapTable",uiLabel:"Refresh Cells"},{name:"refreshRowByPrimaryKey",kind:"function",description:"Forces a re-render of the row with the given primary key value",uiLabel:"Refresh Row By Primary Key"},{name:"refreshRowNode",kind:"function",description:"Forces a re-render of the given row",uiLabel:"Refresh Row Node"},{name:"refreshRowNodes",kind:"function",description:"Forces a re-render of the given rows",uiLabel:"Refresh Row Nodes"},{name:"selectAll",kind:"function",description:"Select the whole Grid",uiLabel:"Select All"},{name:"selectCellRange",kind:"function",description:"Selects a group of cells in a given range - provide either primary keys or row indexes",uiLabel:"Select Cell Range"},{name:"selectColumn",kind:"function",description:"Selects a Column in AG Grid",uiLabel:"Select Column"},{name:"selectColumns",kind:"function",description:"Selects Columns in AG Grid",uiLabel:"Select Columns"},{name:"selectNode",kind:"function",description:"Selects the AG Grid Row Node in AdapTable",uiLabel:"Select Node"},{name:"selectNodes",kind:"function",description:"Selects the AG Grid Row Nodes in AdapTable",uiLabel:"Select Nodes"},{name:"selectRow",kind:"function",description:"Selects Row with given Primary Key Value",uiLabel:"Select Row"},{name:"selectRows",kind:"function",description:"Selects Rows with given Primary Key Values",uiLabel:"Select Rows"},{name:"setAdaptableSorting",kind:"function",description:"Sorts AdapTable using given Column Sorts",uiLabel:"Set Adaptable Sorting"},{name:"setCellsValue",kind:"function",description:"Updates multiple cells",uiLabel:"Set Cells Value"},{name:"setCellValue",kind:"function",description:"Updates cell in Adaptable (first performs Cell & Server Validation)",uiLabel:"Set Cell Value"},{name:"setColumnSorts",kind:"function",description:"Sets Column Sorts in Grid",uiLabel:"Set Column Sorts"},{name:"setGridData",kind:"function",description:"Repopulates grid with given data",uiLabel:"Set Grid Data"},{name:"setRowGroupColumns",kind:"function",description:"Sets the grid to Row Group",uiLabel:"Set Row Group Columns"},{name:"showGridInfoPopup",kind:"function",description:"Opens Settings Panel with Grid Info section selected and visible",uiLabel:"Show Grid Info Popup"},{name:"undoCellEdit",kind:"function",description:"Reverses a data change (if triggered by cell edit)",uiLabel:"Undo Cell Edit"},{name:"unHighlightAllCells",kind:"function",description:"Unhighlights all highlighted Cells in AdapTable",uiLabel:"Un Highlight All Cells"},{name:"unHighlightAllRows",kind:"function",description:"Remove all highlighted rows",uiLabel:"Un Highlight All Rows"},{name:"unHighlightCell",kind:"function",description:"Unhighlights a Cell in AdapTable",uiLabel:"Un Highlight Cell"},{name:"unHighlightRow",kind:"function",description:"Remove highlight from row",uiLabel:"Un Highlight Row"},{name:"unHighlightRows",kind:"function",description:"Remove highlight from row",uiLabel:"Un Highlight Rows"},{name:"updateGridData",kind:"function",description:"Updates Adaptable (and AG Grid) with rows that have changed",uiLabel:"Update Grid Data"}]},GridCell:{name:"GridCell",kind:"Interface",description:"Defines a Cell in Adaptable - every cell is an intersection of a Column Id and a Primary Key Value",properties:[{name:"column",kind:"REFERENCE",description:"Column in which cell is situated",uiLabel:"Column",reference:"AdaptableColumn"},{name:"displayValue",kind:"unknown",description:"Display value of cell (e.g. if formatted)",uiLabel:"Display Value"},{name:"normalisedValue",kind:"unknown",description:"Normalised value of cell",uiLabel:"Normalised Value"},{name:"primaryKeyValue",kind:"unknown",description:"Primary Key column's value in row - how Adaptable locates the cell",uiLabel:"Primary Key Value",isOptional:!0},{name:"rawValue",kind:"unknown",description:"Actual raw value of cell",uiLabel:"Raw Value"},{name:"rowNode",kind:"REFERENCE",description:"AG Grid Row Node that holds the cell",uiLabel:"Row Node",reference:"unknown"}]},GridDataChangedInfo:{name:"GridDataChangedInfo",kind:"Interface",description:"EventInfo returned by GridDataChanged event",properties:[{name:"changedAt",kind:"number",description:"Timestamp of change occurrence (in milliseconds)",uiLabel:"Changed At"},{name:"dataRows",kind:"unknown",description:"Data rows that have been added, updated, or deleted",uiLabel:"Data Rows"},{name:"rowNodes",kind:"unknown",description:"Row Nodes that were affected by this change",uiLabel:"Row Nodes"},{name:"rowTrigger",kind:"unknown",description:"Trigger for row change: 'Add', 'Edit' or 'Delete'",uiLabel:"Row Trigger"}]},GridRow:{name:"GridRow",kind:"Interface",description:"Detailed information about a Row in AdapTable",properties:[{name:"primaryKeyValue",kind:"unknown",description:"Primary Key column's value for Row - how Adaptable locates a cell",uiLabel:"Primary Key Value"},{name:"rowData",kind:"unknown",description:"Actual data in the Row",uiLabel:"Row Data",isOptional:!0},{name:"rowInfo",kind:"REFERENCE",description:"Object which provides 'meta data' about the Row",uiLabel:"Row Info",isOptional:!0,reference:"RowInfo"},{name:"rowNode",kind:"REFERENCE",description:"AG Grid Row Node object for the Row",uiLabel:"Row Node",isOptional:!0,reference:"unknown"}]},IAdaptableNoCodeWizard:{name:"IAdaptableNoCodeWizard",kind:"Interface",description:"When you want to configure an Adaptable via json file D&D, use this instead of the normal Adaptable constructor"},InstrumentColumn:{name:"InstrumentColumn",kind:"Interface",description:"A Column which will be defined as an FDC3 Instrument",properties:[{name:"bbgColumnId",kind:"string",description:"Column which holds a Bloomberg Ticker value as instrument data",uiLabel:"Bbg Column Id",isOptional:!0},{name:"cusipColumnId",kind:"string",description:"Column which holds a CUSIP value as instrument data",uiLabel:"Cusip Column Id",isOptional:!0},{name:"figiColumnId",kind:"string",description:"Column which holds a FIGI value as instrument data",uiLabel:"Figi Column Id",isOptional:!0},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"},{name:"isinColumnId",kind:"string",description:"Column which holds an ISIN value as instrument data",uiLabel:"Isin Column Id",isOptional:!0},{name:"permidColumnId",kind:"string",description:"Column which holds a PERMID value as instrument data",uiLabel:"Permid Column Id",isOptional:!0},{name:"ricColumnId",kind:"string",description:"Column which holds a Reuters Instrument Code value as instrument data",uiLabel:"Ric Column Id",isOptional:!0},{name:"sedolColumnId",kind:"string",description:"Column which holds a SEDOL value as instrument data",uiLabel:"Sedol Column Id",isOptional:!0},{name:"tickerColumnId",kind:"string",description:"Column which holds a ticker value as instrument data",uiLabel:"Ticker Column Id",isOptional:!0}]},InstrumentContext:{name:"InstrumentContext",kind:"Interface",description:"Built-in context to define a financial Instrument",properties:[{name:"id",kind:"unknown",description:"The instrument data",uiLabel:"Id",isOptional:!0},{name:"name",kind:"string",description:"Free text name of instrument",uiLabel:"Name",isOptional:!0},{name:"type",kind:"unknown",description:"Context type is always 'instrument'",uiLabel:"Type"}]},IPushPullApi:{name:"IPushPullApi",kind:"Interface",description:"Provides run-time access to ipushpull Plugin",properties:[{name:"addNewIPushPullPage",kind:"function",description:"Adds a new page to ipushpull using given name in the supplied folder",uiLabel:"Add New IPush Pull Page"},{name:"clearIPushPullInternalState",kind:"function",description:"Internal method which clears out ipushpull State",uiLabel:"Clear IPush Pull Internal State"},{name:"getAutoLogin",kind:"function",description:"Retrieves `AutoLogin` from ipushpull options; if `true` AdapTable will automatically log user in to ipushpull at start-up",uiLabel:"Get Auto Login"},{name:"getCurrentIPushPullPassword",kind:"function",description:"Retrieves `Password` from ipushpull state -- AFTER someone logs in",uiLabel:"Get Current IPush Pull Password"},{name:"getCurrentIPushPullUsername",kind:"function",description:"Retrieves `Username` from ipushpull state - AFTER someone logs in",uiLabel:"Get Current IPush Pull Username"},{name:"getCurrentLiveIPushPullReport",kind:"function",description:"Retrieves current ipushpull Report from ipushpull state; A Report contains Name, Folder and ipushpull Page",uiLabel:"Get Current Live IPush Pull Report"},{name:"getFolderIdForName",kind:"function",description:"Gets the Id of the ipushpull folder / Domain with the given name",uiLabel:"Get Folder Id For Name"},{name:"getIPushPullDomains",kind:"function",description:"Retrieves all the ipushpull domain to which the current user has access",uiLabel:"Get IPush Pull Domains"},{name:"getIPushPullInstance",kind:"function",description:"Retrieves the current ipushpull instance (if one has been provided by the User at design time in ipushpull state)",uiLabel:"Get IPush Pull Instance"},{name:"getIPushPullPassword",kind:"function",description:"Retrieves `Password` from ipushpull options (if provided)",uiLabel:"Get IPush Pull Password"},{name:"getIPushPullSchedules",kind:"function",description:"Gets ipushpull schedules ie. reports set to run at particular times",uiLabel:"Get IPush Pull Schedules"},{name:"getIPushPullThrottleTime",kind:"function",description:"Retrieves Throttle Time from ipushpull State; how often a Live report will update ipushpull (if data changes)",uiLabel:"Get IPush Pull Throttle Time"},{name:"getIPushPullUsername",kind:"function",description:"Retrieves `Username` from ipushpull options (if provided)",uiLabel:"Get IPush Pull Username"},{name:"getPagesForIPushPullDomain",kind:"function",description:"Retrieves all pages in given ipushpull domain",uiLabel:"Get Pages For IPush Pull Domain"},{name:"includeSystemReports",kind:"function",description:"Whether to dispaly System Reports in ipushpull toolbar",uiLabel:"Include System Reports"},{name:"isIPushPullAvailable",kind:"function",description:"Checks if an ipushpull instance has been provided by the user",uiLabel:"Is IPush Pull Available"},{name:"isIPushPullLiveDataRunning",kind:"function",description:"Checks if a report is sending Live Data to ipushpull",uiLabel:"Is IPush Pull Live Data Running"},{name:"isIPushPullReportLive",kind:"function",description:"Checks if given report is currently 'live' (i.e. sending updates as data changes)",uiLabel:"Is IPush Pull Report Live"},{name:"isIPushPullRunning",kind:"function",description:"Checks to see if ipushpull is running (i.e. a user has successfully logged in)",uiLabel:"Is IPush Pull Running"},{name:"loginToIPushPull",kind:"function",description:"Logins in user to ipushpull with given credentials; if successful ipushpull toolbar will display full set of controls",uiLabel:"Login To IPush Pull"},{name:"logoutFromIPushPull",kind:"function",description:"Logs out the current user from ipushpull (changes ipushpull toolbar to show Login button)",uiLabel:"Logout From IPush Pull"},{name:"retrieveIPushPullDomainsFromIPushPull",kind:"function",description:"Internal AdapTable method used to manage domains",uiLabel:"Retrieve IPush Pull Domains From IPush Pull"},{name:"sendSnapshot",kind:"function",description:"Publishes an ipushpull Report as a one-off export (i.e. with no live data)",uiLabel:"Send Snapshot"},{name:"setIPushPullAvailableOff",kind:"function",description:"Internal method which sets ipushpull is unavailable",uiLabel:"Set IPush Pull Available Off"},{name:"setIPushPullAvailableOn",kind:"function",description:"Internal method which sets ipushpull is available",uiLabel:"Set IPush Pull Available On"},{name:"setIPushPullDomains",kind:"function",description:"Sets given Domains as those for the current User",uiLabel:"Set IPush Pull Domains"},{name:"setIPushPullInstance",kind:"function",description:"Sets the current ipushpull instance - this method should not generally be used.",uiLabel:"Set IPush Pull Instance"},{name:"setIPushPullLoginErrorMessage",kind:"function",description:"Internal method which displays given message in ipushpull login page",uiLabel:"Set IPush Pull Login Error Message"},{name:"setIPushPullRunningOff",kind:"function",description:"Internal method which sets ipushpull is not running",uiLabel:"Set IPush Pull Running Off"},{name:"setIPushPullRunningOn",kind:"function",description:"Internal method which sets ipushpull is running",uiLabel:"Set IPush Pull Running On"},{name:"setIPushPullThrottleTime",kind:"function",description:"Sets Throttle time for ipushpull; how often a Live report will update ipushpull (if data changes)",uiLabel:"Set IPush Pull Throttle Time"},{name:"showIPushPullPopup",kind:"function",description:"Opens iPushPullPopup (though its currently empty!)",uiLabel:"Show IPush Pull Popup"},{name:"startLiveData",kind:"function",description:"Publishes ipushpull Report as Live Data; any changes to underlying data in report will be sent to ipushpull",uiLabel:"Start Live Data"},{name:"stopLiveData",kind:"function",description:"Pauses current Live Data report",uiLabel:"Stop Live Data"}]},IPushPullDomain:{name:"IPushPullDomain",kind:"Interface",description:"Internal object that maps an IPushPull Domain object",properties:[{name:"FolderId",kind:"number",description:"the Id of the Folder",uiLabel:"Folder Id"},{name:"Name",kind:"string",description:"the Name of the Domain / Folder",uiLabel:"Name"},{name:"Pages",kind:"unknown",description:"The names of the pages within the (Folder)",uiLabel:"Pages"}]},IPushPullPluginOptions:{name:"IPushPullPluginOptions",kind:"Interface",description:"Options required for when using the ipushpull plugin",properties:[{name:"autoLogin",kind:"boolean",description:"Whether AdapTable should try log in to ipushpull automatically at start-up",uiLabel:"Auto Login",isOptional:!0,defaultValue:"false"},{name:"includeSystemReports",kind:"boolean",description:"Whether AdapTable will include System Reports (e.g. 'All Data', 'Selected Cells' etc) in the ipushpull toolbar dropdown",uiLabel:"Include System Reports",isOptional:!0,defaultValue:"true"},{name:"ippConfig",kind:"unknown",description:"The config required to run ipushpull; use your ipushpull credentials",uiLabel:"Ipp Config",isOptional:!0},{name:"password",kind:"string",description:"The user's ipushpull password; if supplied, pre-populates the login screen's password textbox",uiLabel:"Password",isOptional:!0},{name:"throttleTime",kind:"number",description:"How many miliseconds AdapTable should throttle when sending data updates to ipushpull",uiLabel:"Throttle Time",isOptional:!0,defaultValue:"2000"},{name:"username",kind:"string",description:"User's ipushpull user name (usually email address); if supplied, pre-populates the login screen's username textbox",uiLabel:"Username",isOptional:!0}]},IPushPullReport:{name:"IPushPullReport",kind:"Interface",description:"An ipushpull report"},IPushPullSchedule:{name:"IPushPullSchedule",kind:"Interface",description:"Defines an ipushpull Schedule. Used in the Schedule Module (where the State will be stored)."},IPushPullState:{name:"IPushPullState",kind:"Interface",description:"Internal State used by AdapTable for managing the ipushpull plugin"},Layout:{name:"Layout",kind:"Interface",description:"Layout object - contains everything required including Columns, Sorts, Widths, Aggregations, Grouping and Pivoting details",properties:[{name:"AggregationColumns",kind:"unknown",description:"Columns showing aggregated values in grouped rows; first value in record is Column name and second is either the agg func (e.g. sum, avg etc.) or 'true' (to use default aggfunc)",uiLabel:"Aggregation Columns",isOptional:!0},{name:"AutoSave",kind:"boolean",description:"Whether Layout should automatically save or not - overrides `autoSaveLayouts` property in LayoutOptions",uiLabel:"Auto Save",isOptional:!0},{name:"ColumnHeadersMap",kind:"unknown",description:"Set of custom header names for some (or all columns)",uiLabel:"Column Headers Map",isOptional:!0},{name:"Columns",kind:"unknown",description:"Which columns should be visible in the Layout and in which order",uiLabel:"Columns"},{name:"ColumnSorts",kind:"unknown",description:"Sorting to apply in the Layout",uiLabel:"Column Sorts",isOptional:!0},{name:"ColumnWidthMap",kind:"unknown",description:"Set of widths for some (or all columns)",uiLabel:"Column Width Map",isOptional:!0},{name:"EnablePivot",kind:"boolean",description:"Whether pivoting should be enabled in the Grid when this Layout loads",uiLabel:"Enable Pivot",isOptional:!0},{name:"ExpandedRowGroupValues",kind:"unknown",description:"Opened Row Groups - set if `displayRowGroups` in LayoutOptions is 'dynamic'",uiLabel:"Expanded Row Group Values",isOptional:!0},{name:"Name",kind:"string",description:"Name of Layout as will appear in Layout toolbar and tool panel",uiLabel:"Name"},{name:"PinnedColumnsMap",kind:"unknown",description:"Set of pinned Columns",uiLabel:"Pinned Columns Map",isOptional:!0},{name:"PivotColumns",kind:"unknown",description:"List of Columns which should be pivoted when grid is in pivot mode",uiLabel:"Pivot Columns",isOptional:!0},{name:"RowGroupedColumns",kind:"unknown",description:"Columns which are row-grouped when the Layout is applied",uiLabel:"Row Grouped Columns",isOptional:!0},{name:"SuppressAggFuncInHeader",kind:"boolean",description:"Whether to include the aggFunc name in the column header: e.g. 'sum(Bank Balance)' will just be 'Bank Balance'",uiLabel:"Suppress Agg Func In Header",isOptional:!0}]},LayoutApi:{name:"LayoutApi",kind:"Interface",description:"Provides run-time access to the Layout Module and associated state",properties:[{name:"areExpandedRowGroupsSavedInLayouts",kind:"function",description:"Returns true if Layouts will contain Expanded Row Groups information",uiLabel:"Are Expanded Row Groups Saved In Layouts"},{name:"areLayoutsEqual",kind:"function",description:"Compares 2 Layouts for equality",uiLabel:"Are Layouts Equal"},{name:"cloneAndSetLayout",kind:"function",description:"Creates new Layout based on given Layout but with name provided and then loads it into Grid",uiLabel:"Clone And Set Layout"},{name:"cloneLayout",kind:"function",description:"Creates new Layout based on given Layout but with name provided",uiLabel:"Clone Layout"},{name:"createAndSetLayout",kind:"function",description:"Creates new Layout in the state and then loads it into Grid",uiLabel:"Create And Set Layout"},{name:"createDefaultLayoutIfNeeded",kind:"function",description:"Creates a Default Layout (when none provided in Config)",uiLabel:"Create Default Layout If Needed"},{name:"createLayout",kind:"function",description:"Creates new Layout in the state",uiLabel:"Create Layout"},{name:"deleteLayout",kind:"function",description:"Deletes an existing Layout (if not Default or only existing Layout)",uiLabel:"Delete Layout"},{name:"deleteLayoutByName",kind:"function",description:"Deletes an existing Layout provided by Name (if not Default or only existing Layout)",uiLabel:"Delete Layout By Name"},{name:"doesLayoutExist",kind:"function",description:"Checks whether this Layout exists in the Adaptable State (by comparing Uuid property)",uiLabel:"Does Layout Exist"},{name:"fireLayoutChangedEvent",kind:"function",description:"Fires the `LayoutChanged` event",uiLabel:"Fire Layout Changed Event"},{name:"getAllLayout",kind:"function",description:"Retrieves all Layouts in Adaptable State",uiLabel:"Get All Layout"},{name:"getCurrentLayout",kind:"function",description:"Retrieves Current Layout from Layout State",uiLabel:"Get Current Layout"},{name:"getCurrentLayoutColumnSort",kind:"function",description:"Retrieves the sort order of a column from the current layout",uiLabel:"Get Current Layout Column Sort"},{name:"getCurrentLayoutName",kind:"function",description:"Retrieves name of current Layout",uiLabel:"Get Current Layout Name"},{name:"getCurrentVisibleColumnIds",kind:"function",description:"Retrieves array of visible ColumnIds in current Layout",uiLabel:"Get Current Visible Column Ids"},{name:"getCurrentVisibleColumnIdsMap",kind:"function",description:"Retrieves map with visible columns in current Layout",uiLabel:"Get Current Visible Column Ids Map"},{name:"getLayoutById",kind:"function",description:"Retrieves Layout by id",uiLabel:"Get Layout By Id"},{name:"getLayoutByName",kind:"function",description:"Retrieves Layout with the given name",uiLabel:"Get Layout By Name"},{name:"getLayoutDescription",kind:"function",description:"Get a string description of a Layout",uiLabel:"Get Layout Description"},{name:"getLayoutState",kind:"function",description:"Retrieves Layout section from Adaptable State",uiLabel:"Get Layout State"},{name:"isCurrentLayoutDefault",kind:"function",description:"Checks if the Current Layout is Default Layout",uiLabel:"Is Current Layout Default"},{name:"isCurrentLayoutReadOnly",kind:"function",description:"Specifies where Current Layout is editable",uiLabel:"Is Current Layout Read Only"},{name:"isDefaultLayout",kind:"function",description:"Checks if the given Layout is Default Layout",uiLabel:"Is Default Layout"},{name:"saveCurrentLayout",kind:"function",description:"Saves current Layout - using column order, visibility, sorting etc. currently in use in the grid",uiLabel:"Save Current Layout"},{name:"saveLayout",kind:"function",description:"Saves given Layout into Adaptable State",uiLabel:"Save Layout"},{name:"setColumnCaption",kind:"function",description:"Sets a new Caption / Header for a Column (this Layout only)",uiLabel:"Set Column Caption"},{name:"setLayout",kind:"function",description:"Sets (i.e. selects) the Layout",uiLabel:"Set Layout"},{name:"shouldAutoSaveLayout",kind:"function",description:"Whether this Layout should be auto saved (based on Layout State and Layout Options)",uiLabel:"Should Auto Save Layout"},{name:"showChangeColumnCaption",kind:"function",description:"Opens change column caption popup",uiLabel:"Show Change Column Caption"},{name:"showLayoutEditor",kind:"function",description:"Opens Layout Editor - for Current or a named Layout",uiLabel:"Show Layout Editor"},{name:"showLayoutPopup",kind:"function",description:"Opens Settings Panel with Layout section selected",uiLabel:"Show Layout Popup"}]},LayoutChangedInfo:{name:"LayoutChangedInfo",kind:"Interface",description:"EventInfo returned by LayoutChanged event",properties:[{name:"actionName",kind:"string",description:"What caused Layout State to change",uiLabel:"Action Name"},{name:"newLayoutState",kind:"REFERENCE",description:"Current Layout State",uiLabel:"New Layout State",reference:"LayoutState"},{name:"oldLayoutState",kind:"REFERENCE",description:"Previous Layout State",uiLabel:"Old Layout State",reference:"LayoutState"}]},LayoutOptions:{name:"LayoutOptions",kind:"Interface",description:"Options for configuring Layouts; these manage Column visibility, order, sorting, grouping and width",properties:[{name:"autoSaveLayouts",kind:"boolean",description:"Layouts save whenever Grid's column / sort info changes; if false, a Save button will display",uiLabel:"Auto Save Layouts",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"autoSizeColumnsInLayout",kind:"boolean",description:"Columns auto-size when Layout loads for first time",uiLabel:"Auto Size Columns In Layout",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"autoSizeColumnsInPivotLayout",kind:"boolean",description:"Columns auto-size when Pivot-based Layout loads first time",uiLabel:"Auto Size Columns In Pivot Layout",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"createDefaultLayout",kind:"boolean",description:"Whether a "Default Layout" will be created in addition to Layouts provided in Config",uiLabel:"Create Default Layout",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"displayRowGroups",kind:"unknown",description:"Whether RowGroups display all as expanded, all as closed or dynamically (i.e. saved in Layout)",uiLabel:"Display Row Groups",isOptional:!0},{name:"includeExpandedRowGroups",kind:"boolean",description:"Layouts will include details of expanded grouped rows; if true these will be re-applied at start-up",uiLabel:"Include Expanded Row Groups",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"view",kind:"unknown",description:"Options to customize how layout items are shown in Settings Panel",uiLabel:"View",isOptional:!0}]},LayoutState:{name:"LayoutState",kind:"Interface",description:"Predefined Configuration for the Layout Module",properties:[{name:"CurrentLayout",kind:"string",description:"Layout which will be loaded when AdapTable starts - must match `Name` property in Layout",uiLabel:"Current Layout",isOptional:!0},{name:"Layouts",kind:"unknown",description:"Collection of Layout objects - listed in Layout toolbar and Tool Panel",uiLabel:"Layouts",isOptional:!0}]},LiveDataChangedInfo:{name:"LiveDataChangedInfo",kind:"Interface",description:"EventInfo returned by LiveDataChanged event",properties:[{name:"liveDataTrigger",kind:"unknown",description:"What triggered the event to fire",uiLabel:"Live Data Trigger"},{name:"liveReport",kind:"unknown",description:"The Report which is currently live - only used if the Trigger is LiveData related",uiLabel:"Live Report",isOptional:!0},{name:"reportDestination",kind:"unknown",description:"Which Adaptable partner is the export destination for the live data",uiLabel:"Report Destination"}]},LiveReport:{name:"LiveReport",kind:"Interface",description:"Defines which Adaptable Reports are 'Live' (i.e. they will update the destination as the data in Adaptable ticks or changes)",properties:[{name:"pageName",kind:"string",description:"for OpenFin this will be the workbook name; for iPushpull the page name; for Glue42 the Spreadsheet name.",uiLabel:"Page Name"},{name:"report",kind:"REFERENCE",description:"The underlying report",uiLabel:"Report",reference:"unknown"},{name:"reportDestination",kind:"unknown",description:"Where the live data is being sent",uiLabel:"Report Destination"}]},MenuOptions:{name:"MenuOptions",kind:"Interface",description:"Options for managing menus in AdapTable",properties:[{name:"columnMenuItems",kind:"unknown",description:"User-defined Menu Items to add to the Column Menu",uiLabel:"Column Menu Items",isOptional:!0},{name:"columnMenuOrder",kind:"unknown",description:"Order in which AG Grid, AdapTable and User Menu items will appear in Column Menu",uiLabel:"Column Menu Order",isOptional:!0,gridInfo:"item",defaultValue:"'aggrid', 'adaptable', 'user'"},{name:"contextMenuItems",kind:"unknown",description:"User-defined Menu Items to add to the Context Menu",uiLabel:"Context Menu Items",isOptional:!0},{name:"contextMenuOrder",kind:"unknown",description:"Order in which AG grid, AdapTable and User Menu items will appear in Context Menu",uiLabel:"Context Menu Order",isOptional:!0,gridInfo:"item",defaultValue:"'aggrid', 'adaptable', 'user'"},{name:"showAdaptableColumnMenu",kind:"unknown",description:"Show Adaptable Column Menu (or specific items); can be boolean value or function invoked for each menu item",uiLabel:"Show Adaptable Column Menu",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showAdaptableContextMenu",kind:"unknown",description:"Show Adaptable Context Menu (or specific items); can be boolean value or function invoked for each menu item",uiLabel:"Show Adaptable Context Menu",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showUngroupColumnMenuItem",kind:"boolean",description:"Adds 'Ungroup' Column Menu item to a row grouped column",uiLabel:"Show Ungroup Column Menu Item",isOptional:!0,gridInfo:"item",defaultValue:"true"}]},ModuleExpressionFunctions:{name:"ModuleExpressionFunctions",kind:"Interface",description:"Module specific Expression Functions"},NamedQuery:{name:"NamedQuery",kind:"Interface",description:"Defines a Query which can be used in multiple AdapTable Modules",properties:[{name:"Name",kind:"string",description:"Name of the Query - how it will appear in Query dropdown",uiLabel:"Name"}]},NotificationsOptions:{name:"NotificationsOptions",kind:"Interface",description:"Options related to System Status Messages and Notifications in Adaptable.",properties:[{name:"closeWhenClicked",kind:"boolean",description:"Closes Notification automatically when its clicked",uiLabel:"Close When Clicked",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"duration",kind:"unknown",description:"How long (in ms) Notifications display for",uiLabel:"Duration",isOptional:!0,gridInfo:"item",defaultValue:"3000"},{name:"isDraggable",kind:"boolean",description:"Can Notification be dragged",uiLabel:"Is Draggable",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"maxNotifications",kind:"number",description:"How many Notifications can be displayed at one time",uiLabel:"Max Notifications",isOptional:!0,gridInfo:"item",defaultValue:"3"},{name:"maxSystemMessagesInStore",kind:"number",description:"How many System Status Messages to hold in State; when limit is reached, oldest Message is removed",uiLabel:"Max System Messages In Store",isOptional:!0,gridInfo:"item",defaultValue:"100"},{name:"pauseWhenHovering",kind:"boolean",description:"Pauses the Notification when mouse hovers over it",uiLabel:"Pause When Hovering",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"position",kind:"REFERENCE",description:"Where Notification will appear (if anywhere)",uiLabel:"Position",isOptional:!0,gridInfo:"item",defaultValue:"'BottomRight'",reference:"TOAST_POSITIONS"},{name:"showApplicationIcon",kind:"boolean",description:"Displays the application icon in Notifications",uiLabel:"Show Application Icon",isOptional:!0,defaultValue:"false"},{name:"showProgressBar",kind:"boolean",description:"Shows a Progress Bar in the Notification",uiLabel:"Show Progress Bar",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"showSystemStatusMessageNotifications",kind:"boolean",description:"Display System Status Messages as Notifications",uiLabel:"Show System Status Message Notifications",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"transition",kind:"unknown",description:"How Notification will appear: 'Bounce', 'Slide', 'Zoom' or 'Flip'",uiLabel:"Transition",isOptional:!0,gridInfo:"item",defaultValue:"'Slide'"}]},NumberFormatterOptions:{name:"NumberFormatterOptions",kind:"Interface",description:"Formatter Options for Numeric Columns",properties:[{name:"FractionDigits",kind:"number",description:"Number of digits to show in fractions",uiLabel:"Fraction Digits",isOptional:!0},{name:"FractionSeparator",kind:"string",description:"Separator to use in fractions",uiLabel:"Fraction Separator",isOptional:!0},{name:"IntegerDigits",kind:"number",description:"Number of digits to show for integers",uiLabel:"Integer Digits",isOptional:!0},{name:"IntegerSeparator",kind:"string",description:"Separator to use in integers",uiLabel:"Integer Separator",isOptional:!0},{name:"Multiplier",kind:"number",description:"Multiplier to use on the number",uiLabel:"Multiplier",isOptional:!0},{name:"Parentheses",kind:"boolean",description:"Shows negative numbers in parentheses",uiLabel:"Parentheses",isOptional:!0},{name:"Prefix",kind:"string",description:"Prefix to use before the number",uiLabel:"Prefix",isOptional:!0},{name:"Suffix",kind:"string",description:"Suffix to use after the number",uiLabel:"Suffix",isOptional:!0},{name:"Truncate",kind:"boolean",description:"Truncates a number",uiLabel:"Truncate",isOptional:!0}]},OpenFinApi:{name:"OpenFinApi",kind:"Interface",description:"Provides run-time access to the OpenFin Plugin",properties:[{name:"clearOpenFinInternalState",kind:"function",description:"Clears any objects in internal OpenFin state created by AdapTable",uiLabel:"Clear Open Fin Internal State"},{name:"getAlertOptions",kind:"function",description:"Gets the Alert section from Adaptable Options",uiLabel:"Get Alert Options"},{name:"getCurrentLiveOpenFinReport",kind:"function",description:"Retrieves the OpenFin currently sending live data to Excel",uiLabel:"Get Current Live Open Fin Report"},{name:"getNotificationsOptions",kind:"function",description:"Gets the Notification section from Adaptable Options",uiLabel:"Get Notifications Options"},{name:"getOpenFinSchedules",kind:"function",description:"Retrieves all Schedules that send data to Excel via OpenFin",uiLabel:"Get Open Fin Schedules"},{name:"getOpenFinState",kind:"function",description:"Retrieves the OpenFin section of System State",uiLabel:"Get Open Fin State"},{name:"getOpenFinThrottleTime",kind:"function",description:"Retrieves the Throttle time for live updates",uiLabel:"Get Open Fin Throttle Time"},{name:"getPluginOptions",kind:"function",description:"Retrieves the OpenFinPlugOptions provided in OpenFin Plugin",uiLabel:"Get Plugin Options"},{name:"isOpenFinAvailable",kind:"function",description:"Whether OpenFin is available",uiLabel:"Is Open Fin Available"},{name:"isOpenFinRunning",kind:"function",description:"Whether OpenFin is currently running",uiLabel:"Is Open Fin Running"},{name:"showNotification",kind:"function",description:"Shows a notification in OpenFin",uiLabel:"Show Notification"},{name:"showNotificationForAlert",kind:"function",description:"Displays Alert as an OpenFin Notification",uiLabel:"Show Notification For Alert"},{name:"startLiveData",kind:"function",description:"Runs Report in Excel as Live Report (so updates as AdapTable ticks)",uiLabel:"Start Live Data"},{name:"stopLiveData",kind:"function",description:"Stops live data; data will no longer be sent from AdapTable to Excel",uiLabel:"Stop Live Data"}]},OpenFinPluginOptions:{name:"OpenFinPluginOptions",kind:"Interface",description:"Options required for when using the OpenFin plugin",properties:[{name:"notificationTimeout",kind:"unknown",description:"Timeout (in ms) for OpenFin Notifications to expire; set false for notifications not to auto-dismiss",uiLabel:"Notification Timeout",isOptional:!0,defaultValue:"5000"},{name:"onFDC3MessageSent",kind:"unknown",description:"Useful when you also use the finance plugin configured with fdc3 related columns - values in cells such columns can be broadcasted to fdc3, and this function will be called for broadcasting. It's your job to broadcast to the desired fdc3 channel",uiLabel:"On FDC3Message Sent",isOptional:!0},{name:"onNotificationAction",kind:"unknown",description:"Function which is invoked when a button in OpenFin notification is clicked",uiLabel:"On Notification Action",isOptional:!0},{name:"onShowNotification",kind:"unknown",description:"Updates OpenFin Notification object before it's displayed (just add/remove properties); return false to stop Notification showing",uiLabel:"On Show Notification",isOptional:!0},{name:"onValidationFailureInExcel",kind:"unknown",description:"Action to perform when a data change in Live Excel report triggers Prevent Edit Alert failure",uiLabel:"On Validation Failure In Excel",isOptional:!0},{name:"showAdaptableAlertsAsNotifications",kind:"boolean",description:"Converts AdapTable Alerts configured to display in popup as OpenFin Notifications",uiLabel:"Show Adaptable Alerts As Notifications",isOptional:!0,defaultValue:"true"},{name:"showAppIconInNotifications",kind:"unknown",description:"Icon to show in Notification - uses the value supplied in UserInterfaceOptions",uiLabel:"Show App Icon In Notifications",isOptional:!0,defaultValue:"true"},{name:"throttleTime",kind:"number",description:"How long (in ms) AdapTable throttles when sending data update to OpenFin",uiLabel:"Throttle Time",isOptional:!0,defaultValue:"2000"}]},OpenFinReport:{name:"OpenFinReport",kind:"Interface",description:"An OpenFin report",properties:[{name:"ReportName",kind:"string",description:"Name of Report (which will exist in the Export State)",uiLabel:"Report Name"}]},OpenFinSchedule:{name:"OpenFinSchedule",kind:"Interface",description:"Defines a OpenFin Schedule - used in Schedule Module",properties:[{name:"OpenFinReport",kind:"REFERENCE",description:"Report being exported to Excel (via OpenFin)",uiLabel:"Open Fin Report",reference:"OpenFinReport"},{name:"Transmission",kind:"unknown",description:"Whether Snapshot or Live Data (currently only the latter is supported)",uiLabel:"Transmission"}]},OpenFinState:{name:"OpenFinState",kind:"Interface",description:"Internal State used by AdapTable for managing the OpenFin plugin"},OrganizationColumn:{name:"OrganizationColumn",kind:"Interface",description:"A (String) Column which will be defined as an FDC3 Organization",properties:[{name:"fds_IdColumnId",kind:"string",description:"Column which contains an FDS_ID",uiLabel:"Fds_Id Column Id",isOptional:!0},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"},{name:"leiColumnId",kind:"string",description:"Column which contains the LEI",uiLabel:"Lei Column Id",isOptional:!0},{name:"permIdColumnId",kind:"string",description:"Column which contains a PermId",uiLabel:"Perm Id Column Id",isOptional:!0}]},PercentBarStyle:{name:"PercentBarStyle",kind:"Interface",description:"Style used to display Percent Bars in Format Column",properties:[{name:"BackColor",kind:"string",description:"Back colour - only used for 'Percent Bar' Numeric style; leave unset if none required",uiLabel:"Back Color",isOptional:!0,defaultValue:"Gray"},{name:"CellRanges",kind:"unknown",description:"Ranges (e.g. to allow a traffic light effect)",uiLabel:"Cell Ranges",isOptional:!0},{name:"CellText",kind:"REFERENCE",description:"Whether Cell shows Cell Value, Percent Value, both or none",uiLabel:"Cell Text",isOptional:!0,reference:"unknown"},{name:"ColumnComparison",kind:"REFERENCE",description:"Compares cell values to another Column",uiLabel:"Column Comparison",isOptional:!0,reference:"ColumnComparison"},{name:"ToolTipText",kind:"REFERENCE",description:"Whether Tooltip shows Cell Value, Percent Value, both or none",uiLabel:"Tool Tip Text",isOptional:!0,reference:"unknown"}]},PermittedValues:{name:"PermittedValues",kind:"Interface",description:"Permitted/possible values, when column values can be selected (e.g. sort, bulk-update)",properties:[{name:"values",kind:"unknown",description:"Values to display: either hardcoded list or a function",uiLabel:"Values",isOptional:!0}]},PluginsApi:{name:"PluginsApi",kind:"Interface",description:"API methods dealing with AdapTable plugins",properties:[{name:"getFinancePluginApi",kind:"function",description:"Returns Finance API class in Adaptable API",uiLabel:"Get Finance Plugin Api"},{name:"getGlue42PluginApi",kind:"function",description:"Returns Glue42 API class in Adaptable API",uiLabel:"Get Glue42Plugin Api"},{name:"getipushpullPluginApi",kind:"function",description:"Returns ipushpull API class in Adaptable API",uiLabel:"Getipushpull Plugin Api"},{name:"getOpenFinPluginApi",kind:"function",description:"Returns OpenFin API class in Adaptable API",uiLabel:"Get Open Fin Plugin Api"},{name:"getPluginsState",kind:"function",description:"Retrieves the Plugin State (internal only)",uiLabel:"Get Plugins State"},{name:"getPluginState",kind:"function",description:"Gets the State for a given Plugin",uiLabel:"Get Plugin State"},{name:"registerPlugin",kind:"function",description:"Registers a Plugin (internal method)",uiLabel:"Register Plugin"},{name:"setPluginState",kind:"function",description:"Sets the initial state for a given plugin (internal method)",uiLabel:"Set Plugin State"}]},PlusMinusApi:{name:"PlusMinusApi",kind:"Interface",description:"Provides run-time access to the Plus / Minus Module and associated state",properties:[{name:"addPlusMinusNudge",kind:"function",description:"Adds new Plus Minus Rule to State",uiLabel:"Add Plus Minus Nudge"},{name:"applyPlusMinus",kind:"function",description:"Applies a Plus Minus to given cells",uiLabel:"Apply Plus Minus"},{name:"editPlusMinusNudge",kind:"function",description:"Replaces Plus Minus Rule in State with given one",uiLabel:"Edit Plus Minus Nudge"},{name:"getAllActivePlusMinus",kind:"function",description:"Retrieves all active (not-suspended) Plus Minus Rules in Adaptable State with those with expressions first",uiLabel:"Get All Active Plus Minus"},{name:"getAllPlusMinus",kind:"function",description:"Retrieves all Plus Minus Rules in Adaptable State with those with expressions first",uiLabel:"Get All Plus Minus"},{name:"getAllSuspendedPlusMinus",kind:"function",description:"Retrieves all suspended Plus Minus Rules in Adaptable State with those with expressions first",uiLabel:"Get All Suspended Plus Minus"},{name:"getPlusMinusById",kind:"function",description:"Retrieves Plus Minus Rule by Id",uiLabel:"Get Plus Minus By Id"},{name:"getPlusMinusState",kind:"function",description:"Retrieves Plus Minus section from Adaptable State",uiLabel:"Get Plus Minus State"},{name:"runPlusMinusNudge",kind:"function",description:"Applies a Plus Minus Rule to given cells",uiLabel:"Run Plus Minus Nudge"},{name:"showPlusMinusPopup",kind:"function",description:"Opens Settings Panel with Plus Minus section selected and visible",uiLabel:"Show Plus Minus Popup"},{name:"suspendPlusMinusNudge",kind:"function",description:"Suspends Plus Minus Rule",uiLabel:"Suspend Plus Minus Nudge"},{name:"unSuspendPlusMinusNudge",kind:"function",description:"Activates a suspended Plus Minus Rule",uiLabel:"Un Suspend Plus Minus Nudge"}]},PlusMinusNudge:{name:"PlusMinusNudge",kind:"Interface",description:"Defines a Plus Minus Rule - used in the Plus Minus Module",properties:[{name:"NudgeValue",kind:"number",description:"Amount by which to update cell when Rule is applied",uiLabel:"Nudge Value"},{name:"Rule",kind:"REFERENCE",description:"(Optional) Boolean Expression to determine whether to apply the Nudge",uiLabel:"Rule",isOptional:!0,reference:"unknown"},{name:"Scope",kind:"REFERENCE",description:"Where Rule is applied",uiLabel:"Scope",reference:"AdaptableScope"}]},PlusMinusState:{name:"PlusMinusState",kind:"Interface",description:"Predefined Configuration for Plus Minus Module",properties:[{name:"PlusMinusNudges",kind:"unknown",description:"Array of Plus Minus Nudges",uiLabel:"Plus Minus Nudges",isOptional:!0}]},PositionColumn:{name:"PositionColumn",kind:"Interface",description:"A (Numeric) Column which will be defined as an FDC3 Position",properties:[{name:"instrumentColumnId",kind:"string",description:"Column which contains the Instrument information of the FDC3 Message",uiLabel:"Instrument Column Id"},{name:"intents",kind:"REFERENCE",description:"FDC3 Intents available to the Column",uiLabel:"Intents",isOptional:!0,reference:"unknown"}]},PositionContext:{name:"PositionContext",kind:"Interface",description:"Built-in context to define a financial position",properties:[{name:"holding",kind:"number",description:"Holding in the Position",uiLabel:"Holding"},{name:"id",kind:"unknown",description:"Optional Id",uiLabel:"Id",isOptional:!0},{name:"name",kind:"string",description:"Free text name of Position",uiLabel:"Name",isOptional:!0},{name:"type",kind:"unknown",description:"Context type is always 'position'",uiLabel:"Type"}]},PredefinedConfig:{name:"PredefinedConfig",kind:"Interface",description:"This is the main Predefined Config interface which developers will populate at design-time",properties:[{name:"Alert",kind:"REFERENCE",description:"Collection of `AlertDefinitions` which will fire Alerts when the rule is met",uiLabel:"Alert",isOptional:!0,reference:"AlertState"},{name:"Application",kind:"REFERENCE",description:"Empty state section (only populated at Design Time) available for User to store their own data with the rest of AdapTable state.",uiLabel:"Application",isOptional:!0,reference:"ApplicationState"},{name:"CalculatedColumn",kind:"REFERENCE",description:"Supplies a collection of *CalculatedColumn* objects that will display a value based on other cells in the row (using a Calculated Column Expression)",uiLabel:"Calculated Column",isOptional:!0,reference:"CalculatedColumnState"},{name:"ConditionalStyle",kind:"REFERENCE",description:"Supplies a collection of *ConditionalStyle* objects to provides columns and rows with a particular style when the data matches a given rule",uiLabel:"Conditional Style",isOptional:!0,reference:"ConditionalStyleState"},{name:"CustomSort",kind:"REFERENCE",description:"Supplies a collection of *Custom Sort* objects to allow some columns to be sorted in non-standard (e.g. non alphabetical) ways",uiLabel:"Custom Sort",isOptional:!0,reference:"CustomSortState"},{name:"Dashboard",kind:"REFERENCE",description:"Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons",uiLabel:"Dashboard",isOptional:!0,reference:"DashboardState"},{name:"DataSource",kind:"REFERENCE",description:"Supplies a collection of *DataSource* objects to facilitate replacing the DataSource in the Grid with an alternate set of data (e.g. a Book or Stored Proc name)",uiLabel:"Data Source",isOptional:!0,reference:"DataSourceState"},{name:"Export",kind:"REFERENCE",description:"Supplies a collection of *Report* objects, together with name of the Current Report, as part of AdapTable export Module",uiLabel:"Export",isOptional:!0,reference:"ExportState"},{name:"Filter",kind:"REFERENCE",description:"Stores Filters in AdapTable - both System and Column (predicate) Filters",uiLabel:"Filter",isOptional:!0,reference:"FilterState"},{name:"FlashingCell",kind:"REFERENCE",description:"* Objects which define which cells flash in response to data changes",uiLabel:"Flashing Cell",isOptional:!0,reference:"FlashingCellState"},{name:"FormatColumn",kind:"REFERENCE",description:"Supplies a collection of *FormatColumn* objects that will style an entire column in a single way (and not subject to a rule like with Conditional Style).",uiLabel:"Format Column",isOptional:!0,reference:"FormatColumnState"},{name:"FreeTextColumn",kind:"REFERENCE",description:"Supplies a collection of *FreeText* objects so users can make their own notes in bespoke columns that will get stored with their state (and not with the DataSource). Useful if needing a 'Comments' column.",uiLabel:"Free Text Column",isOptional:!0,reference:"FreeTextColumnState"},{name:"Layout",kind:"REFERENCE",description:"Supplies a collection of *Layout* objects to name and manage groups of column visibility, order and sorts.",uiLabel:"Layout",isOptional:!0,reference:"LayoutState"},{name:"PlusMinus",kind:"REFERENCE",description:"Supplies a collection of *PlusMinus* rule objects to stipulate what happens when the user clicks '+' or '-' in a numeric cell",uiLabel:"Plus Minus",isOptional:!0,reference:"PlusMinusState"},{name:"Query",kind:"REFERENCE",description:"Named Queries available for use across multiple AdapTable Modules; and `CurrentQuery` - an Expression to run at start-up",uiLabel:"Query",isOptional:!0,reference:"QueryState"},{name:"QuickSearch",kind:"REFERENCE",description:"Configues how Quick Search will run i.e. how and whether to highlight matching cells and to filter out non-matching rows",uiLabel:"Quick Search",isOptional:!0,reference:"QuickSearchState"},{name:"Schedule",kind:"REFERENCE",description:"Supplies a collection of *Schedule* objects",uiLabel:"Schedule",isOptional:!0,reference:"ScheduleState"},{name:"Shortcut",kind:"REFERENCE",description:"Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues",uiLabel:"Shortcut",isOptional:!0,reference:"ShortcutState"},{name:"Theme",kind:"REFERENCE",description:"Specifies the current Theme and lists the User and System themes available for selection.",uiLabel:"Theme",isOptional:!0,reference:"ThemeState"},{name:"ToolPanel",kind:"REFERENCE",description:"Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)",uiLabel:"Tool Panel",isOptional:!0,reference:"ToolPanelState"}]},PredicateApi:{name:"PredicateApi",kind:"Interface",description:"Functions which manage the Predicate object in AdapTable",properties:[{name:"getCustomPredicateDefById",kind:"function",description:"Gets Predicate Definition provided by users for given Id",uiLabel:"Get Custom Predicate Def By Id"},{name:"getCustomPredicateDefs",kind:"function",description:"Returns Predicate Definitions provided by users",uiLabel:"Get Custom Predicate Defs"},{name:"getPredicateDefById",kind:"function",description:"Gets the Predicate Definition for a given Id",uiLabel:"Get Predicate Def By Id"},{name:"getPredicateDefs",kind:"function",description:"Returns all current Predicate Definitions",uiLabel:"Get Predicate Defs"},{name:"getPredicateDefsByModuleScope",kind:"function",description:"Retrieves all Predicate Definitions for given Module Scope",uiLabel:"Get Predicate Defs By Module Scope"},{name:"getSystemPredicateDefById",kind:"function",description:"Gets Predicate Definition provided by AdapTable for given Id",uiLabel:"Get System Predicate Def By Id"},{name:"getSystemPredicateDefs",kind:"function",description:"Returns Predicate Definitions provided by AdapTable",uiLabel:"Get System Predicate Defs"},{name:"handlePredicate",kind:"function",description:"Main Handler function for a Predicate Definition - used by AdapTableQL",uiLabel:"Handle Predicate"},{name:"isValidPredicate",kind:"function",description:"Checks whether a given Predicate Definition is valid",uiLabel:"Is Valid Predicate"},{name:"predicateToString",kind:"function",description:"Stringifies a given Predicate Definition",uiLabel:"Predicate To String"}]},PredicateDefHandlerParams:{name:"PredicateDefHandlerParams",kind:"Interface",description:"Object passed into an Adaptable Predicate Definition",properties:[{name:"api",kind:"REFERENCE",description:"The Adaptable Api",uiLabel:"Api",reference:"AdaptableApi"},{name:"column",kind:"REFERENCE",description:"Adaptable Column which contains the cell",uiLabel:"Column",reference:"AdaptableColumn"},{name:"displayValue",kind:"unknown",description:"Display value in cell being evaluated",uiLabel:"Display Value"},{name:"inputs",kind:"unknown",description:"Any inputs required to perform evaluation",uiLabel:"Inputs"},{name:"node",kind:"REFERENCE",description:"AG Grid Row node which contains the cell",uiLabel:"Node",reference:"unknown"},{name:"oldValue",kind:"unknown",description:"Previous value in cell (e.g. if evaluating an edit)",uiLabel:"Old Value"},{name:"value",kind:"unknown",description:"Raw value in cell being evaluated",uiLabel:"Value"}]},QueryApi:{name:"QueryApi",kind:"Interface",description:"Provides run-time access to Named and Current Queries",properties:[{name:"clearCurrentQuery",kind:"function",description:"Clears the Current Query",uiLabel:"Clear Current Query"},{name:"getAllNamedQuery",kind:"function",description:"Gets all Named Queries in Adaptable State",uiLabel:"Get All Named Query"},{name:"getCurrentQuery",kind:"function",description:"Returns the Current Query",uiLabel:"Get Current Query"},{name:"getNamedQueryByName",kind:"function",description:"Retrieves Named Query with given name from State",uiLabel:"Get Named Query By Name"},{name:"getNamedQueryModuleReferences",kind:"function",description:"Returns all the references in the AdaptableState of the NamedQuery with the given name",uiLabel:"Get Named Query Module References"},{name:"getQueryState",kind:"function",description:"Retrieves Query section from Adaptable State",uiLabel:"Get Query State"},{name:"getReferencedNamedQueryNames",kind:"function",description:"Returns the name of all the referenced Named Queries as an array of strings",uiLabel:"Get Referenced Named Query Names"},{name:"isValidNamedQueryName",kind:"function",description:"Checks if the given Named Query has a valid name",uiLabel:"Is Valid Named Query Name"},{name:"setCurrentQuery",kind:"function",description:"Set a Query as Current Query",uiLabel:"Set Current Query"},{name:"showExpandedQueryPopup",kind:"function",description:"Opens Expanded Query Popup screen",uiLabel:"Show Expanded Query Popup"},{name:"showQueryPopup",kind:"function",description:"Opens Settings Panel with Query section selected and visible",uiLabel:"Show Query Popup"}]},QueryLanguageApi:{name:"QueryLanguageApi",kind:"Interface",description:"Functions related to AdapTableQL (the Adaptable Query Language)",properties:[{name:"getAdaptableQueryExpression",kind:"function",description:"Returns the Expression string of the given AdaptableQuery: can be Boolean, AggregatedBoolean, Scalar, AggregatedScalar or Observable Expression",uiLabel:"Get Adaptable Query Expression"},{name:"getASTForExpression",kind:"function",description:"Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely",uiLabel:"Get AST For Expression"},{name:"getColumnsFromExpression",kind:"function",description:"Returns all Columns referenced in an Expression",uiLabel:"Get Columns From Expression"},{name:"getModuleExpressionFunctionMap",kind:"function",description:"Returns the current Module Expression Map",uiLabel:"Get Module Expression Function Map"},{name:"getQueryableColumnIds",kind:"function",description:"Returns all columns that can be used in an Expression",uiLabel:"Get Queryable Column Ids"},{name:"isValidAggregatedBooleanExpression",kind:"function",description:"Whether the given AggregatedBooleanExpression is valid",uiLabel:"Is Valid Aggregated Boolean Expression"},{name:"isValidAggregatedScalarExpression",kind:"function",description:"Whether the given AggregatedScalarExpression is valid",uiLabel:"Is Valid Aggregated Scalar Expression"},{name:"isValidBooleanExpression",kind:"function",description:"Whether the given BooleanExpression is valid",uiLabel:"Is Valid Boolean Expression"},{name:"isValidObservableExpression",kind:"function",description:"Whether the given ObservableExpression is valid",uiLabel:"Is Valid Observable Expression"}]},QueryState:{name:"QueryState",kind:"Interface",description:"Predefined Configuration for Query Module",properties:[{name:"CurrentQuery",kind:"string",description:"Expression used for the Query currently being run",uiLabel:"Current Query",isOptional:!0},{name:"NamedQueries",kind:"unknown",description:"Named Queries - can be referenced in other Expressions",uiLabel:"Named Queries",isOptional:!0}]},QuickSearchApi:{name:"QuickSearchApi",kind:"Interface",description:"Provides run-time access to Quick Search Module",properties:[{name:"clearQuickSearch",kind:"function",description:"Clears Quick Search",uiLabel:"Clear Quick Search"},{name:"getQuickSearchState",kind:"function",description:"Retrieves Quick Search section from Adaptable State",uiLabel:"Get Quick Search State"},{name:"getQuickSearchStyle",kind:"function",description:"Retrieves current Quick Search style",uiLabel:"Get Quick Search Style"},{name:"getQuickSearchValue",kind:"function",description:"Retrieves current Quick Search text",uiLabel:"Get Quick Search Value"},{name:"runQuickSearch",kind:"function",description:"Runs Quick Search using supplied text",uiLabel:"Run Quick Search"},{name:"setQuickSearchStyle",kind:"function",description:"Sets style for Quick Search; can be name of (a provided) css style",uiLabel:"Set Quick Search Style"},{name:"showQuickSearchPopup",kind:"function",description:"Opens Settings Panel with Quick Search section selected and visible",uiLabel:"Show Quick Search Popup"}]},QuickSearchState:{name:"QuickSearchState",kind:"Interface",description:"Predefined Configuration for Quick Search Module",properties:[{name:"QuickSearchText",kind:"string",description:"Last Quick Search that was run (and will run again at start up)",uiLabel:"Quick Search Text",isOptional:!0},{name:"Style",kind:"REFERENCE",description:"Style to use to highlight matching cells - uses common `AdaptableStyle` object",uiLabel:"Style",isOptional:!0,reference:"AdaptableStyle"}]},ReactFrameworkComponent:{name:"ReactFrameworkComponent",kind:"TypeAlias",description:"A function that returns a ReactNode"},ReminderSchedule:{name:"ReminderSchedule",kind:"Interface",description:"Schedules a Reminder to appear at a given point in time",properties:[{name:"DisplayNotification",kind:"boolean",description:"Displays Reminder as a Toast Notification",uiLabel:"Display Notification"},{name:"Header",kind:"string",description:"Reminder header text",uiLabel:"Header"},{name:"Message",kind:"string",description:"Reminder body text",uiLabel:"Message"},{name:"MessageType",kind:"REFERENCE",description:"Type of Message - 'Success', 'Info', 'Warning' or 'Error'",uiLabel:"Message Type",reference:"AdaptableMessageType"}]},ReportData:{name:"ReportData",kind:"Interface",description:"Defines the data in a Report run by AdapTable",properties:[{name:"columns",kind:"unknown",description:"Columns in the Report",uiLabel:"Columns"},{name:"rows",kind:"unknown",description:"Rows in the Report",uiLabel:"Rows"}]},ReportSchedule:{name:"ReportSchedule",kind:"Interface",description:"Defines a Scheduled Report - used in Schedule Module (where State is stored)",properties:[{name:"ExportDestination",kind:"unknown",description:"Where report data will be exported",uiLabel:"Export Destination"},{name:"ExportDestinationData",kind:"REFERENCE",description:"Additional data for a Custom Destination produced by a Dynamic Form",uiLabel:"Export Destination Data",isOptional:!0,reference:"unknown"},{name:"ReportName",kind:"string",description:"Name of Report to run on Schedule",uiLabel:"Report Name"}]},RowInfo:{name:"RowInfo",kind:"Interface",description:"Provides meta data about a Row in Adaptable",properties:[{name:"isDisplayed",kind:"boolean",description:"Is Row displayed (ie. filtered, not necessarily in viewport)",uiLabel:"Is Displayed",isOptional:!0},{name:"isExpanded",kind:"boolean",description:"Is Row expanded (if a group row)",uiLabel:"Is Expanded",isOptional:!0},{name:"isGroup",kind:"boolean",description:"Is Row grouped",uiLabel:"Is Group",isOptional:!0},{name:"isMaster",kind:"boolean",description:"Is Row a Master Row (in a Master-Detail grid)",uiLabel:"Is Master",isOptional:!0},{name:"isSelected",kind:"boolean",description:"Is Row selected",uiLabel:"Is Selected",isOptional:!0},{name:"rowGroupLevel",kind:"number",description:"What level the Row is (if Row Grouping is active)",uiLabel:"Row Group Level",isOptional:!0}]},Schedule:{name:"Schedule",kind:"Interface",description:"Defines when an action will be run - either one-off or recurring",properties:[{name:"DaysOfWeek",kind:"REFERENCE",description:"Days on which Schedule will run",uiLabel:"Days Of Week",isOptional:!0,reference:"unknown"},{name:"Hour",kind:"number",description:"Hour the Schedule will run",uiLabel:"Hour"},{name:"Minute",kind:"number",description:"Minute the Schedule will run",uiLabel:"Minute"},{name:"OneOffDate",kind:"string",description:"A one off date on which the Schedule will run",uiLabel:"One Off Date",isOptional:!0}]},ScheduleApi:{name:"ScheduleApi",kind:"Interface",description:"Provides run-time access to the Schedule Module and associated state",properties:[{name:"addGlue42Schedule",kind:"function",description:"Add Glue42-based Schedule",uiLabel:"Add Glue42Schedule"},{name:"addIPushPullSchedule",kind:"function",description:"Add ipushpull-based Schedule",uiLabel:"Add IPush Pull Schedule"},{name:"addOpenFinSchedule",kind:"function",description:"Add OpenFin-based Schedule",uiLabel:"Add Open Fin Schedule"},{name:"addReminderSchedule",kind:"function",description:"Adds Reminder-based Schedule",uiLabel:"Add Reminder Schedule"},{name:"addReportSchedule",kind:"function",description:"Adds Report / Export Schedule",uiLabel:"Add Report Schedule"},{name:"applySchedule",kind:"function",description:"Applies the Schedule of given type",uiLabel:"Apply Schedule"},{name:"deleteGlue42Schedule",kind:"function",description:"Delete Glue42-based Schedule",uiLabel:"Delete Glue42Schedule"},{name:"deleteIPushPullSchedule",kind:"function",description:"Delete ipushpull-based Schedule",uiLabel:"Delete IPush Pull Schedule"},{name:"deleteOpenFinSchedule",kind:"function",description:"Delete OpenFin-based Schedule",uiLabel:"Delete Open Fin Schedule"},{name:"deleteReminderSchedule",kind:"function",description:"Deletes Reminder-based Schedule",uiLabel:"Delete Reminder Schedule"},{name:"deleteReportSchedule",kind:"function",description:"Deletes Report / Export Schedule",uiLabel:"Delete Report Schedule"},{name:"editGlue42Schedule",kind:"function",description:"Edit Glue42-based Schedule",uiLabel:"Edit Glue42Schedule"},{name:"editIPushPullSchedule",kind:"function",description:"Edit ipushpull-based Schedule",uiLabel:"Edit IPush Pull Schedule"},{name:"editOpenFinSchedule",kind:"function",description:"Edit OpenFin-based Schedule",uiLabel:"Edit Open Fin Schedule"},{name:"editReminderSchedule",kind:"function",description:"Edits Reminder-based Schedule",uiLabel:"Edit Reminder Schedule"},{name:"editReportSchedule",kind:"function",description:"Edits Report / Export Schedule",uiLabel:"Edit Report Schedule"},{name:"getAllActiveGlue42Schedule",kind:"function",description:"Retrieves all active (not-suspended) Glue42-based Schedules from Schedule State",uiLabel:"Get All Active Glue42Schedule"},{name:"getAllActiveIPushPullSchedule",kind:"function",description:"Retrieves all active (not-suspended) ipushpull-based Schedules from Schedule State",uiLabel:"Get All Active IPush Pull Schedule"},{name:"getAllActiveOpenFinSchedule",kind:"function",description:"Retrieves all active (not-suspended) OpenFin-based Schedules from Schedule State",uiLabel:"Get All Active Open Fin Schedule"},{name:"getAllActiveReminderSchedule",kind:"function",description:"Retrieves all active (not-suspended) Reminder-based Schedules from Schedule State",uiLabel:"Get All Active Reminder Schedule"},{name:"getAllActiveReportSchedule",kind:"function",description:"Retrieves all active (not-suspended) Report / Export Schedules from Schedule State",uiLabel:"Get All Active Report Schedule"},{name:"getAllGlue42Schedule",kind:"function",description:"Retrieves all Glue42-based Schedules from Schedule State",uiLabel:"Get All Glue42Schedule"},{name:"getAllIPushPullSchedule",kind:"function",description:"Retrieves all ipushpull-based Schedules from Schedule State",uiLabel:"Get All IPush Pull Schedule"},{name:"getAllOpenFinSchedule",kind:"function",description:"Retrieves all OpenFin-based Schedules from Schedule State",uiLabel:"Get All Open Fin Schedule"},{name:"getAllReminderSchedule",kind:"function",description:"Retrieves all Reminder-based Schedules from Schedule State",uiLabel:"Get All Reminder Schedule"},{name:"getAllReportSchedule",kind:"function",description:"Retrieves all Report / Export Schedules from Schedule State",uiLabel:"Get All Report Schedule"},{name:"getAllSchedule",kind:"function",description:"Retrieves the Schedule section from Adaptable State",uiLabel:"Get All Schedule"},{name:"getAllSuspendedGlue42Schedule",kind:"function",description:"Retrieves all suspended Glue42-based Schedules from Schedule State",uiLabel:"Get All Suspended Glue42Schedule"},{name:"getAllSuspendedIPushPullSchedule",kind:"function",description:"Retrieves all suspended ipushpull-based Schedules from Schedule State",uiLabel:"Get All Suspended IPush Pull Schedule"},{name:"getAllSuspendedOpenFinSchedule",kind:"function",description:"Retrieves all suspended OpenFin-based Schedules from Schedule State",uiLabel:"Get All Suspended Open Fin Schedule"},{name:"getAllSuspendedReminderSchedule",kind:"function",description:"Retrieves all suspended Reminder-based Schedules from Schedule State",uiLabel:"Get All Suspended Reminder Schedule"},{name:"getAllSuspendedReportSchedule",kind:"function",description:"Retrieves all suspended Report / Export Schedules from Schedule State",uiLabel:"Get All Suspended Report Schedule"},{name:"getScheduleById",kind:"function",description:"Retrieves Schedule by id",uiLabel:"Get Schedule By Id"},{name:"showSchedulePopup",kind:"function",description:"Opens Settings Panel with Schedule section selected and visible",uiLabel:"Show Schedule Popup"},{name:"suspendGlue42Schedule",kind:"function",description:"Suspends Glue42-based Schedule",uiLabel:"Suspend Glue42Schedule"},{name:"suspendIPushPullSchedule",kind:"function",description:"Suspends ipushpull-based Schedule",uiLabel:"Suspend IPush Pull Schedule"},{name:"suspendOpenFinSchedule",kind:"function",description:"Suspends OpenFin-based Schedule",uiLabel:"Suspend Open Fin Schedule"},{name:"suspendReminderSchedule",kind:"function",description:"Suspends Reminder-based Schedule",uiLabel:"Suspend Reminder Schedule"},{name:"suspendReportSchedule",kind:"function",description:"Suspends Report / Export Schedule",uiLabel:"Suspend Report Schedule"},{name:"unSuspendGlue42Schedule",kind:"function",description:"Activates a suspended Glue42-based Schedule",uiLabel:"Un Suspend Glue42Schedule"},{name:"unSuspendIPushPullSchedule",kind:"function",description:"Activates a suspended ipushpull-based Schedule",uiLabel:"Un Suspend IPush Pull Schedule"},{name:"unSuspendOpenFinSchedule",kind:"function",description:"Activates a suspended OpenFin-based Schedule",uiLabel:"Un Suspend Open Fin Schedule"},{name:"unSuspendReminderSchedule",kind:"function",description:"Activates a suspended Reminder-based Schedule",uiLabel:"Un Suspend Reminder Schedule"},{name:"unSuspendReportSchedule",kind:"function",description:"Activates a suspended Report / Export Schedule",uiLabel:"Un Suspend Report Schedule"}]},ScheduleState:{name:"ScheduleState",kind:"Interface",description:"Predefined Configuration for the Schedule Module",properties:[{name:"Glue42Schedules",kind:"unknown",description:"Schedules connected to Glue42 exports - available if Glue42 plugin is running",uiLabel:"Glue42Schedules",isOptional:!0},{name:"IPushPullSchedules",kind:"unknown",description:"Schedules connected to ipushpull Reports - available if ipushpull plugin is running",uiLabel:"I Push Pull Schedules",isOptional:!0},{name:"OpenFinSchedules",kind:"unknown",description:"Schedules connected to OpenFin data exports - available if OpenFin plugin is running",uiLabel:"Open Fin Schedules",isOptional:!0},{name:"Reminders",kind:"unknown",description:"Schedules connected to Reminders - Alerts that fire at set times",uiLabel:"Reminders",isOptional:!0},{name:"ReportSchedules",kind:"unknown",description:"Schedules connected to Reports (created in the Export function)",uiLabel:"Report Schedules",isOptional:!0}]},ScopeApi:{name:"ScopeApi",kind:"Interface",description:"Provides access to a suite of functions related to the `Scope` object",properties:[{name:"areAllBooleanColumnsInScope",kind:"function",description:"True if all selected columns are boolean",uiLabel:"Are All Boolean Columns In Scope"},{name:"createCellColorRangesForScope",kind:"function",description:"Creates Cell Color Ranges (used in Format Column) for given Scope",uiLabel:"Create Cell Color Ranges For Scope"},{name:"getColumnIdsInScope",kind:"function",description:"Returns all the ColumnIds in the Scope",uiLabel:"Get Column Ids In Scope"},{name:"getColumnsForScope",kind:"function",description:"Returns list of all Columns in the given Scope",uiLabel:"Get Columns For Scope"},{name:"getDataTypesInScope",kind:"function",description:"Returns all the DataTypes in the Scope",uiLabel:"Get Data Types In Scope"},{name:"getScopeDescription",kind:"function",description:"Provides a description for the Scope",uiLabel:"Get Scope Description"},{name:"getScopeToString",kind:"function",description:"Gets string representation of the Scope",uiLabel:"Get Scope To String"},{name:"getSingleColumnInScope",kind:"function",description:"Gets the only Column in given Scope",uiLabel:"Get Single Column In Scope"},{name:"isColumnInDateScope",kind:"function",description:"True if Scope has Data DataType which contains Column",uiLabel:"Is Column In Date Scope"},{name:"isColumnInNumericScope",kind:"function",description:"True if Scope has Numeric DataType containing Column",uiLabel:"Is Column In Numeric Scope"},{name:"isColumnInScope",kind:"function",description:"True if Column is in given Scope",uiLabel:"Is Column In Scope"},{name:"isColumnInScopeColumns",kind:"function",description:"True if Column is in Scope's 'ColumnIds' section",uiLabel:"Is Column In Scope Columns"},{name:"isColumnInStringsScope",kind:"function",description:"True if Scope has String DataType containing Column",uiLabel:"Is Column In Strings Scope"},{name:"isPrimaryKeyColumnInScopeColumns",kind:"function",description:"Whether PK column is included in Scope's column section",uiLabel:"Is Primary Key Column In Scope Columns"},{name:"isScopeInScope",kind:"function",description:"True if first scope is in second Scope",uiLabel:"Is Scope In Scope"},{name:"isSingleBooleanColumnScope",kind:"function",description:"True if Scope contains just 1 boolean Column",uiLabel:"Is Single Boolean Column Scope"},{name:"isSingleColumnScope",kind:"function",description:"True if Scope contains just 1 ColumnId",uiLabel:"Is Single Column Scope"},{name:"isSingleNumericColumnScope",kind:"function",description:"True if Scope contains just 1 numeric Column",uiLabel:"Is Single Numeric Column Scope"},{name:"scopeHasColumns",kind:"function",description:"True if Scope contains ColumnIds",uiLabel:"Scope Has Columns"},{name:"scopeHasDataType",kind:"function",description:"True if Scope contains DataTypes",uiLabel:"Scope Has Data Type"},{name:"scopeHasOnlyBooleanDataType",kind:"function",description:"True if the Scope is DataTypes and contains only Boolean",uiLabel:"Scope Has Only Boolean Data Type"},{name:"scopeIsAll",kind:"function",description:"True if Scope is 'All'",uiLabel:"Scope Is All"},{name:"scopeIsEmpty",kind:"function",description:"True if Scope is empty",uiLabel:"Scope Is Empty"}]},SearchChangedInfo:{name:"SearchChangedInfo",kind:"Interface",description:"EventInfo returned by SearchChanged event; includes full AdapTable search and sort info plus the event's trigger",properties:[{name:"adaptableSearchState",kind:"REFERENCE",description:"Current searches and filters in the Grid",uiLabel:"Adaptable Search State",reference:"AdaptableSearchState"},{name:"adaptableSortState",kind:"REFERENCE",description:"Current sort state in the Grid",uiLabel:"Adaptable Sort State",reference:"AdaptableSortState"},{name:"searchChangedTrigger",kind:"unknown",description:"What search-related change caused the event to fire",uiLabel:"Search Changed Trigger"}]},SearchOptions:{name:"SearchOptions",kind:"Interface",description:"Search options section of Adaptable Options; includes options for running some (or all) search functions on the server",properties:[{name:"clearSearchesOnStartUp",kind:"boolean",description:"Clears saved searches when AdapTable loads",uiLabel:"Clear Searches On Start Up",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"excludeColumnFromQuickSearch",kind:"unknown",description:"Function enabling specific Columns to be excluded from Quick Search",uiLabel:"Exclude Column From Quick Search",isOptional:!0,defaultValue:"undefined"},{name:"filterResultsAfterQuickSearch",kind:"boolean",description:"Runs a Query after Quick Search runs, filtering on quick search results",uiLabel:"Filter Results After Quick Search",isOptional:!0,gridInfo:"item",defaultValue:"false"},{name:"quickSearchPlaceholder",kind:"string",description:"Value to use as placeholder in QuickSearch controls (e.g. in Dashboard)",uiLabel:"Quick Search Placeholder",isOptional:!0,gridInfo:"item",defaultValue:"'Search'"}]},SelectedCellInfo:{name:"SelectedCellInfo",kind:"Interface",description:"Describes which Cells are currently selected in AdapTable",properties:[{name:"columns",kind:"unknown",description:"Array of Columns which have selected cells",uiLabel:"Columns"},{name:"gridCells",kind:"unknown",description:"Array of GridCells (which provide cell value, primary kev value and other info)",uiLabel:"Grid Cells"}]},SelectedRowInfo:{name:"SelectedRowInfo",kind:"Interface",description:"Describes which Rows are currently selected in AdapTable",properties:[{name:"gridRows",kind:"unknown",description:"Array of Grid Rows containing full information about a row in AdapTable",uiLabel:"Grid Rows"}]},SelectionChangedInfo:{name:"SelectionChangedInfo",kind:"Interface",description:"Event Info published by SelectionChanged event",properties:[{name:"selectedCellInfo",kind:"REFERENCE",description:"Details of cells currently selected in the Grid",uiLabel:"Selected Cell Info",reference:"SelectedCellInfo"},{name:"selectedRowInfo",kind:"REFERENCE",description:"Details of rows currently selected in the Grid",uiLabel:"Selected Row Info",reference:"SelectedRowInfo"}]},SettingsPanelApi:{name:"SettingsPanelApi",kind:"Interface",description:"Provides run-time access to the Settings Panel",properties:[{name:"showCustomSettingsPanel",kind:"function",description:"Opens Settings Panel with the Custom Settings Panel, provided by name, displayed",uiLabel:"Show Custom Settings Panel"},{name:"showSettingsPanel",kind:"function",description:"Opens Settings Panel and displays specified Module (if provided) or first available one",uiLabel:"Show Settings Panel"}]},SharedEntity:{name:"SharedEntity",kind:"Interface",description:"Defines an object used in Team Sharing",properties:[{name:"ChangedAt",kind:"number",description:"Last time when the object was changed",uiLabel:"Changed At"},{name:"ChangedBy",kind:"string",description:"Last User who changed the object",uiLabel:"Changed By"},{name:"Description",kind:"string",description:"Description of object being shared",uiLabel:"Description"},{name:"Entity",kind:"REFERENCE",description:"Actual Adaptable Object being shared",uiLabel:"Entity",reference:"AdaptableObject"},{name:"EntityDependencyIds",kind:"unknown",description:"Ids of direct entity dependencies",uiLabel:"Entity Dependency Ids"},{name:"Module",kind:"REFERENCE",description:"Adaptable Module to which object belongs",uiLabel:"Module",reference:"AdaptableModule"},{name:"Revision",kind:"number",description:"Revision - incremental for 'Active', always 1 for 'Snapshot'",uiLabel:"Revision"},{name:"Timestamp",kind:"number",description:"When the object was shared",uiLabel:"Timestamp"},{name:"Type",kind:"REFERENCE",description:"'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing between local state & Team Share)",uiLabel:"Type",reference:"unknown"},{name:"UserName",kind:"string",description:"User who shared the object",uiLabel:"User Name"}]},Shortcut:{name:"Shortcut",kind:"Interface",description:"Used to define a Shortcut as used in Shortcut State",properties:[{name:"Scope",kind:"unknown",description:"Numeric Columns where Shortcut is applied",uiLabel:"Scope"},{name:"ShortcutKey",kind:"string",description:"Key which triggers the Shortcut when pressed",uiLabel:"Shortcut Key"},{name:"ShortcutOperation",kind:"unknown",description:"The Operation: 'Add', 'Subtract', 'Multiply', 'Divide'",uiLabel:"Shortcut Operation"},{name:"ShortcutValue",kind:"number",description:"Value which acts as 2nd operand for ShortcutOperation (the first operand being the cell value)",uiLabel:"Shortcut Value"}]},ShortcutApi:{name:"ShortcutApi",kind:"Interface",description:"Provides run-time access to Shortcut Module and associated state",properties:[{name:"addShortcut",kind:"function",description:"Adds new Shortcut to the state",uiLabel:"Add Shortcut"},{name:"deleteAllShortcut",kind:"function",description:"Deletes all Shortcuts in Adaptable State",uiLabel:"Delete All Shortcut"},{name:"deleteShortcut",kind:"function",description:"Deletes Shortcut from the state",uiLabel:"Delete Shortcut"},{name:"getAllActiveShortcut",kind:"function",description:"Gets all active (not-suspended) Shortcuts in Adaptable State",uiLabel:"Get All Active Shortcut"},{name:"getAllShortcut",kind:"function",description:"Gets all Shortcuts in Adaptable State",uiLabel:"Get All Shortcut"},{name:"getAllSuspendedShortcut",kind:"function",description:"Gets all suspended Shortcuts in Adaptable State",uiLabel:"Get All Suspended Shortcut"},{name:"getShortcutById",kind:"function",description:"Retrieves Shortcut by Id",uiLabel:"Get Shortcut By Id"},{name:"getShortcutState",kind:"function",description:"Retrieves Shortcut section from Adaptable State",uiLabel:"Get Shortcut State"},{name:"showShortcutPopup",kind:"function",description:"Opens Settings Panel with Shortcut section selected and visible",uiLabel:"Show Shortcut Popup"},{name:"suspendShortcut",kind:"function",description:"Suspends Shortcut definition",uiLabel:"Suspend Shortcut"},{name:"unSuspendShortcut",kind:"function",description:"Activates a suspended Shortcut definition",uiLabel:"Un Suspend Shortcut"}]},ShortcutScopeDataType:{name:"ShortcutScopeDataType",kind:"TypeAlias",description:"Shortcut scope data type."},ShortcutState:{name:"ShortcutState",kind:"Interface",description:"Predefined Configuration for Shortcut Module",properties:[{name:"Shortcuts",kind:"unknown",description:"Collection of Shortcuts - designed to speed up data entry",uiLabel:"Shortcuts",isOptional:!0}]},SmartEditApi:{name:"SmartEditApi",kind:"Interface",description:"Provides run-time access to the Smart Edit Module",properties:[{name:"applySmartEdit",kind:"function",description:"Applies a Smart Edit to given Cells",uiLabel:"Apply Smart Edit"},{name:"getSmartEditOperation",kind:"function",description:"Gets current Smart Edit Operation",uiLabel:"Get Smart Edit Operation"},{name:"getSmartEditValue",kind:"function",description:"Returns current Smart Edit Value",uiLabel:"Get Smart Edit Value"},{name:"setSmartEditOperation",kind:"function",description:"Sets Smart Edit operation: ('Add','Subtract','Multiply','Divide'",uiLabel:"Set Smart Edit Operation"},{name:"setSmartEditValue",kind:"function",description:"Sets Smart Edit Value",uiLabel:"Set Smart Edit Value"},{name:"showSmartEditPopup",kind:"function",description:"Opens Settings Panel with Smart Edit section selected and visible",uiLabel:"Show Smart Edit Popup"}]},SpecialColumnSettings:{name:"SpecialColumnSettings",kind:"Interface",description:"Base Settings for Calculated Columns and FreeText Columns",properties:[{name:"Aggregatable",kind:"boolean",description:"Whether Column can be used in an aggregation when grouping",uiLabel:"Aggregatable",isOptional:!0,defaultValue:"true"},{name:"ColumnTypes",kind:"unknown",description:"Custom column types to be added to AG Grid Column Types when object is created",uiLabel:"Column Types",isOptional:!0},{name:"Filterable",kind:"boolean",description:"Whether Column is filterable",uiLabel:"Filterable",isOptional:!0,defaultValue:"true"},{name:"Groupable",kind:"boolean",description:"Whether Column can be grouped",uiLabel:"Groupable",isOptional:!0,defaultValue:"true"},{name:"Pivotable",kind:"boolean",description:"Whether Column can be used when grid is in pivot mode",uiLabel:"Pivotable",isOptional:!0,defaultValue:"true"},{name:"Resizable",kind:"boolean",description:"Whether Column can be resized (by dragging column header edges)",uiLabel:"Resizable",isOptional:!0,defaultValue:"true"},{name:"Sortable",kind:"boolean",description:"Whether Column is sortable",uiLabel:"Sortable",isOptional:!0,defaultValue:"true"},{name:"SuppressMenu",kind:"boolean",description:"Whether if no menu should be shown for this Column header.",uiLabel:"Suppress Menu",isOptional:!0,defaultValue:"false"},{name:"SuppressMovable",kind:"boolean",description:"Whether if this Column should be movable via dragging",uiLabel:"Suppress Movable",isOptional:!0,defaultValue:"false"},{name:"Width",kind:"number",description:"Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid",uiLabel:"Width",isOptional:!0}]},StateOptions:{name:"StateOptions",kind:"Interface",description:"Options related to Adaptable State hydration/dehydration - allows users to intercept state persistence and state loading with custom functionality",properties:[{name:"applyState",kind:"unknown",description:"Allows hooking into Adaptable State hydration",uiLabel:"Apply State",isOptional:!0},{name:"clearState",kind:"REFERENCE",description:"Allows clearing of remote Adaptable State",uiLabel:"Clear State",isOptional:!0,reference:"unknown"},{name:"debounceStateDelay",kind:"number",description:"Delay (in ms) to debounce `saveState` / `persistState` calls enabling grouping multiple sequential calls in single one (e.g. elevator doors)",uiLabel:"Debounce State Delay",isOptional:!0,defaultValue:"400"},{name:"loadState",kind:"REFERENCE",description:"Allows the customization of Adaptable State loading",uiLabel:"Load State",isOptional:!0,reference:"AdaptableLoadStateFunction"},{name:"persistState",kind:"REFERENCE",description:"Allows the customization of state persistence",uiLabel:"Persist State",isOptional:!0,reference:"AdaptablePersistStateFunction"},{name:"saveState",kind:"REFERENCE",description:"Allows the customization of the Adaptable State that is going to be persisted",uiLabel:"Save State",isOptional:!0,reference:"unknown"}]},StringFormatterOptions:{name:"StringFormatterOptions",kind:"Interface",description:"Formatter Options for String Columns",properties:[{name:"Case",kind:"unknown",description:"Sets text to Upper or Lower case",uiLabel:"Case",isOptional:!0},{name:"Prefix",kind:"string",description:"Prefix to use before the cell text",uiLabel:"Prefix",isOptional:!0},{name:"Suffix",kind:"string",description:"Suffix to use after the cell text",uiLabel:"Suffix",isOptional:!0},{name:"Trim",kind:"boolean",description:"Trims text (both start and end)",uiLabel:"Trim",isOptional:!0}]},SuspendableObject:{name:"SuspendableObject",kind:"Interface",description:"Interface that extends Adaptable Object for those config items that can be suspended at run-time",properties:[{name:"IsSuspended",kind:"boolean",description:"Suspends (i.e. turns off) an Adaptable Object",uiLabel:"Is Suspended",isOptional:!0}]},SystemStatusApi:{name:"SystemStatusApi",kind:"Interface",description:"Provides access to System Status Module and associated state",properties:[{name:"deleteAllSystemStatusMessages",kind:"function",description:"Deletes all System Status messages",uiLabel:"Delete All System Status Messages"},{name:"fireSystemStatusMessageDisplayedEvent",kind:"function",description:"Fires SystemStatusMessageDisplayed Event",uiLabel:"Fire System Status Message Displayed Event"},{name:"getCurrentSystemStatusMessageInfo",kind:"function",description:"Retrieves current System Status Message",uiLabel:"Get Current System Status Message Info"},{name:"setErrorSystemStatus",kind:"function",description:"Sets an **Error** System Status Message",uiLabel:"Set Error System Status"},{name:"setInfoSystemStatus",kind:"function",description:"Sets an **Info** System Status Message",uiLabel:"Set Info System Status"},{name:"setSuccessSystemStatus",kind:"function",description:"Sets a **Success** System Status Message",uiLabel:"Set Success System Status"},{name:"setSystemStatus",kind:"function",description:"Sets a new System Status message; appears in System Status toolbar, tool panel (and popup).",uiLabel:"Set System Status"},{name:"setWarningSystemStatus",kind:"function",description:"Sets a **Warning** System Status Message",uiLabel:"Set Warning System Status"},{name:"showSystemStatusPopup",kind:"function",description:"Opens System Status popup",uiLabel:"Show System Status Popup"}]},SystemStatusMessageDisplayedInfo:{name:"SystemStatusMessageDisplayedInfo",kind:"Interface",description:"Object returned by the `SystemStatusMessageDisplayed` event",properties:[{name:"systemStatusMessageInfo",kind:"REFERENCE",description:"Details of the System Status Message and Type",uiLabel:"System Status Message Info",reference:"SystemStatusMessageInfo"}]},SystemStatusMessageInfo:{name:"SystemStatusMessageInfo",kind:"Interface",description:"Wraps a System Status Message",properties:[{name:"statusFurtherInformation",kind:"string",description:"Additional information to display (optional)",uiLabel:"Status Further Information",isOptional:!0},{name:"statusMessage",kind:"string",description:"The Message to be displayed",uiLabel:"Status Message"},{name:"statusType",kind:"REFERENCE",description:"Type of Message i.e. Succcess, Warning, Error, Info",uiLabel:"Status Type",reference:"AdaptableMessageType"},{name:"timestamp",kind:"date",description:"When Message was sent",uiLabel:"Timestamp",isOptional:!0}]},TeamSharingApi:{name:"TeamSharingApi",kind:"Interface",description:"Provides run-time access to Team Sharing Module and associated state",properties:[{name:"checkForUpdates",kind:"function",description:"Checks if active Shared Entities have updates (higher revisions than the local counterpart objects)",uiLabel:"Check For Updates"},{name:"fireTeamSharingEntityChangedEvent",kind:"function",description:"Fires the Team Sharing Entity Changed Event",uiLabel:"Fire Team Sharing Entity Changed Event"},{name:"getSharedEntities",kind:"function",description:"Retrieves all Shared Entities in Team Sharing State",uiLabel:"Get Shared Entities"},{name:"getTeamSharingState",kind:"function",description:"Retrieves Team Sharing section of State",uiLabel:"Get Team Sharing State"},{name:"hasTeamSharingFullRights",kind:"function",description:"Whether current user has full Team Sharing rights (for creating & updating shared items)",uiLabel:"Has Team Sharing Full Rights"},{name:"isTeamSharingActivated",kind:"function",description:"Whether Team Sharing is Activated",uiLabel:"Is Team Sharing Activated"},{name:"showTeamSharingPopup",kind:"function",description:"Opens Settings Panel with Team Sharing section selected and visible",uiLabel:"Show Team Sharing Popup"}]},TeamSharingEntityChangedInfo:{name:"TeamSharingEntityChangedInfo",kind:"Interface",description:"EventInfo returned by TeamSharingEntityChanged event",properties:[{name:"sharedEntity",kind:"REFERENCE",description:"Object containing the Shared Entity that has changed",uiLabel:"Shared Entity",reference:"SharedEntity"}]},TeamSharingOptions:{name:"TeamSharingOptions",kind:"Interface",description:"Options for managing Team Sharing - which enables Adaptable Objects to be shared between colleagues",properties:[{name:"enableTeamSharing",kind:"boolean",description:"Whether Team Sharing is enabled",uiLabel:"Enable Team Sharing",gridInfo:"item",defaultValue:"false"},{name:"getSharedEntities",kind:"unknown",description:"Async function which retrieves available Shared Entities that user can download and merge automatically with Adaptable State",uiLabel:"Get Shared Entities",defaultValue:"null"},{name:"setSharedEntities",kind:"unknown",description:"Async function which uploads Shared Entities so they can be downloaded by other members of the team",uiLabel:"Set Shared Entities",defaultValue:"null"},{name:"updateInterval",kind:"number",description:"Frequency (in minutes) to check if Active Shared Entities have a newer revision",uiLabel:"Update Interval",isOptional:!0,gridInfo:"item",defaultValue:"0 (never)"},{name:"updateNotification",kind:"unknown",description:"How user is informed when Active Shared Entities have newer revisions",uiLabel:"Update Notification",isOptional:!0,gridInfo:"item",defaultValue:"null (none)"}]},TeamSharingState:{name:"TeamSharingState",kind:"Interface",description:"State for Team Sharing; this is internal so not designed to be provided as part of Predefined Config",properties:[{name:"ActiveSharedEntityMap",kind:"unknown",description:"Mapping of active AdaptableObjects which are shared with the local state. Maps UUIDs of local AdaptableObjects to a snapshot of the latest synchronized SharedEntity",uiLabel:"Active Shared Entity Map"},{name:"importProcessInProgress",kind:"boolean",description:"TRUE if an import is in progress, FALSE otherwise. This is required to skip the TEAMSHARING_UPDATE_ITEM action as a result of the import",uiLabel:"Import Process In Progress"},{name:"SharedEntities",kind:"unknown",description:"List of objects currently being Team Shared",uiLabel:"Shared Entities"}]},ThemeApi:{name:"ThemeApi",kind:"Interface",description:"Provides run-time access to the Theme Module and associated state",properties:[{name:"applyCurrentTheme",kind:"function",description:"Applies the Current Theme",uiLabel:"Apply Current Theme"},{name:"getAgGridCurrentThemeName",kind:"function",description:"Get the name of the current AG Grid theme",uiLabel:"Get Ag Grid Current Theme Name"},{name:"getAllSystemTheme",kind:"function",description:"Retrieves System Themes in State",uiLabel:"Get All System Theme"},{name:"getAllTheme",kind:"function",description:"Retrieves all Themes (both System User) in State",uiLabel:"Get All Theme"},{name:"getAllUserTheme",kind:"function",description:"Retrieves User Themes in State",uiLabel:"Get All User Theme"},{name:"getCurrentTheme",kind:"function",description:"Retrieves name of Current Theme",uiLabel:"Get Current Theme"},{name:"getThemeState",kind:"function",description:"Retrieves Theme section from Adaptable State",uiLabel:"Get Theme State"},{name:"loadDarkTheme",kind:"function",description:"Sets AdapTable Dark Theme - updates the AG Grid theme to match",uiLabel:"Load Dark Theme"},{name:"loadLightTheme",kind:"function",description:"Sets AdapTable Light Theme - updates the AG Grid theme to match",uiLabel:"Load Light Theme"},{name:"loadTheme",kind:"function",description:"Sets Adaptable to use a given theme",uiLabel:"Load Theme"},{name:"setSystemThemes",kind:"function",description:"Sets available System Themes; if empty array is passed none will be",uiLabel:"Set System Themes"},{name:"setUserThemes",kind:"function",description:"Sets available User Themes",uiLabel:"Set User Themes"},{name:"showThemePopup",kind:"function",description:"Opens Settings Panel with Theme section selected and visible",uiLabel:"Show Theme Popup"}]},ThemeChangedInfo:{name:"ThemeChangedInfo",kind:"Interface",description:"Object returned by the `ThemeChanged` event",properties:[{name:"theme",kind:"unknown",description:"Selected Theme: either name of a (System) theme or the (Custom) Theme itself",uiLabel:"Theme"}]},ThemeState:{name:"ThemeState",kind:"Interface",description:"Theme section of Adaptable State",properties:[{name:"CurrentTheme",kind:"unknown",description:"Name of current theme (or theme to set at startup); leave blank if using 'Light Theme', set to 'dark' for 'Dark Theme' or provide name of Custom Theme",uiLabel:"Current Theme",isOptional:!0},{name:"SystemThemes",kind:"unknown",description:"Which, if any, of the 2 themes shipped by Adaptable should be available; leave unset to provide both, or an empty array to provide neither.",uiLabel:"System Themes",isOptional:!0},{name:"UserThemes",kind:"unknown",description:"Custom themes (of type AdaptableTheme) provided by developers",uiLabel:"User Themes",isOptional:!0}]},TOAST_POSITIONS:{name:"TOAST_POSITIONS",kind:"TypeAlias",description:"Different positions offered by Notifications"},ToolPanelApi:{name:"ToolPanelApi",kind:"Interface",description:"Functions for managing the AdapTable ToolPanel Component (at side of grid)",properties:[{name:"closeAdapTableToolPanel",kind:"function",description:"Closes the Tool Panel section (irrespective of which toolpanel is showing)",uiLabel:"Close Adap Table Tool Panel"},{name:"getCustomToolPanelButtons",kind:"function",description:"Retrieves all Custom Tool Panel Buttons defined in ToolPanelOptions",uiLabel:"Get Custom Tool Panel Buttons"},{name:"getCustomToolPanelByName",kind:"function",description:"Retrieves the CustomToolPanel with the given name (or undefined if no match is found)",uiLabel:"Get Custom Tool Panel By Name"},{name:"getCustomToolPanels",kind:"function",description:"Retrieves all Custom Tool Panels defined in ToolPanelOptions",uiLabel:"Get Custom Tool Panels"},{name:"getToolPanelState",kind:"function",description:"Retrieves Tool Panel section from Tool Panel State",uiLabel:"Get Tool Panel State"},{name:"openAdapTableToolPanel",kind:"function",description:"Opens the Adaptable ToolPanel Component",uiLabel:"Open Adap Table Tool Panel"},{name:"setAdaptableToolPanelVisibilityMode",kind:"function",description:"Sets the given Adaptable ToolPanel with the provided visibilityMode (expanded / collapsed)",uiLabel:"Set Adaptable Tool Panel Visibility Mode"},{name:"setCustomToolPanelVisibilityMode",kind:"function",description:"Sets the Custom ToolPanel with the given name with the provided visibilityMode (expanded / collapsed)",uiLabel:"Set Custom Tool Panel Visibility Mode"},{name:"showToolPanelPopup",kind:"function",description:"Opens the Tool Panel popup",uiLabel:"Show Tool Panel Popup"}]},ToolPanelButtonContext:{name:"ToolPanelButtonContext",kind:"Interface",description:"Context required by functions when using a ToolPanel Button",properties:[{name:"toolPanelState",kind:"REFERENCE",description:"Current ToolPanel State",uiLabel:"Tool Panel State",reference:"ToolPanelState"}]},ToolPanelOptions:{name:"ToolPanelOptions",kind:"Interface",description:"Options related to managing the AdapTable ToolPanel Component",properties:[{name:"adaptableToolPanelTitle",kind:"string",description:"Title for AdapTable ToolPanel Component - appears vertically at side",uiLabel:"Adaptable Tool Panel Title",isOptional:!0,gridInfo:"item",defaultValue:"'AdapTable'"},{name:"customButtons",kind:"unknown",description:"ToolPanel Buttons provided by Users which perform custom behaviour",uiLabel:"Custom Buttons",isOptional:!0},{name:"customToolPanels",kind:"unknown",description:"ToolPanels provided by Users which contain custom content",uiLabel:"Custom Tool Panels",isOptional:!0},{name:"iconKey",kind:"string",description:"Key of icon to be used (beside the label) for Adaptable ToolPanel Component",uiLabel:"Icon Key",isOptional:!0,gridInfo:"item",defaultValue:"'menu'"},{name:"maxWidth",kind:"number",description:"The max width of AdapTable ToolPanel",uiLabel:"Max Width",isOptional:!0,defaultValue:"undefined"},{name:"minWidth",kind:"number",description:"The min width of AdapTable ToolPanel",uiLabel:"Min Width",isOptional:!0,defaultValue:"var(--ab-cmp-toolpanel__width)"},{name:"showAdaptableToolPanel",kind:"boolean",description:"Displays Adaptable ToolPanel Component (only if AG Grid Sidebar is provided)",uiLabel:"Show Adaptable Tool Panel",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"showToolPanelsDropdown",kind:"boolean",description:"Display the Tool Panels dropdown",uiLabel:"Show Tool Panels Dropdown",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"toolPanelOrder",kind:"unknown",description:"Order of displayed ToolPanels in Sidebar",uiLabel:"Tool Panel Order",isOptional:!0,defaultValue:"['filters', 'columns', 'adaptable']"},{name:"width",kind:"number",description:"The initial width of AdapTable ToolPanel",uiLabel:"Width",isOptional:!0,defaultValue:"var(--ab-cmp-toolpanel__width)"}]},ToolPanelState:{name:"ToolPanelState",kind:"Interface",description:"Predefined Configuration for the Adaptable ToolPanel",properties:[{name:"ModuleButtons",kind:"REFERENCE",description:"AdapTable Module Buttons visible in ToolPanel",uiLabel:"Module Buttons",isOptional:!0,defaultValue:"Empty Array",reference:"unknown"},{name:"ToolPanels",kind:"unknown",description:"ToolPanels visible",uiLabel:"Tool Panels",isOptional:!0,defaultValue:"ToolPanels for all available Modules (subject to Entitlement rules)"}]},ToolPanelVisibilityMode:{name:"ToolPanelVisibilityMode",kind:"TypeAlias",description:"Whether a ToolPanel displays as expanded or collapsed"},UserInterfaceApi:{name:"UserInterfaceApi",kind:"Interface",description:"Functions relating to User Interface section of Adaptable State",properties:[{name:"addColumnMenuItem",kind:"function",description:"Adds menu item to Column Menu",uiLabel:"Add Column Menu Item"},{name:"addContextMenuItem",kind:"function",description:"Adds menu item to Context Menu",uiLabel:"Add Context Menu Item"},{name:"getAllActionColumn",kind:"function",description:"Retrieves any Action Columns in User Interface Options",uiLabel:"Get All Action Column"},{name:"getAllEditLookUpItems",kind:"function",description:"Retrieves `editLookUpItems` property from User Interface Options",uiLabel:"Get All Edit Look Up Items"},{name:"getAllPermittedValuesItems",kind:"function",description:"Retrieves `permittedValues` property from User Interface Options",uiLabel:"Get All Permitted Values Items"},{name:"getBulkUpdatePermittedValuesForColumn",kind:"function",description:"Retrieves Permitted values for Bulk Update Module",uiLabel:"Get Bulk Update Permitted Values For Column"},{name:"getColorPalette",kind:"function",description:"Retrieves Color Palette currently being used",uiLabel:"Get Color Palette"},{name:"getCustomSortPermittedValuesForColumn",kind:"function",description:"Retrieves Permitted values for Custom Sort Module",uiLabel:"Get Custom Sort Permitted Values For Column"},{name:"getEditableCellStyle",kind:"function",description:"Returns Style set for Editable cells",uiLabel:"Get Editable Cell Style"},{name:"getEditLookUpItemForColumn",kind:"function",description:"Retrieves EditLookUpItems for a given Column",uiLabel:"Get Edit Look Up Item For Column"},{name:"getEditLookUpValuesForEditLookUpItem",kind:"function",description:"Retrieves actual Look Up Values from an EditLookUpItem",uiLabel:"Get Edit Look Up Values For Edit Look Up Item"},{name:"getFilterPermittedValuesForColumn",kind:"function",description:"Retrieves Permitted values for filtering by column values in Floating Filter and Quick Filter Bar",uiLabel:"Get Filter Permitted Values For Column"},{name:"getPermittedValuesForColumn",kind:"function",description:"Retrieves Permitted Values for a given Column",uiLabel:"Get Permitted Values For Column"},{name:"getReadOnlyCellStyle",kind:"function",description:"Returns Style set for ReadOnly cells",uiLabel:"Get Read Only Cell Style"},{name:"getStyleClassNames",kind:"function",description:"Retrieves any Style Class Names from User Interface Options",uiLabel:"Get Style Class Names"}]},UserInterfaceOptions:{name:"UserInterfaceOptions",kind:"Interface",description:"Options for managing the User Interface of AdapTable",properties:[{name:"actionColumns",kind:"unknown",description:"Columns which contain an AdapTable Button - used for performing Actions",uiLabel:"Action Columns",isOptional:!0},{name:"applicationIcon",kind:"REFERENCE",description:"The application icon to appear in Dashboard and elsewhere (e.g. OpenFin notifications)",uiLabel:"Application Icon",isOptional:!0,defaultValue:"null",reference:"AdaptableIcon"},{name:"bulkUpdatePermittedValues",kind:"unknown",description:"Custom column values for editing via bulk-update; when not defined defaults to permittedValues",uiLabel:"Bulk Update Permitted Values",isOptional:!0},{name:"colorPalette",kind:"unknown",description:"Colours to display in Colour Picker (in place of AdapTable's default set); can be hardcoded list or function",uiLabel:"Color Palette",isOptional:!0},{name:"columnTypes",kind:"unknown",description:"Optional list of Column Types - used primarily for special columns",uiLabel:"Column Types",isOptional:!0},{name:"customSortPermittedValues",kind:"unknown",description:"Custom column values for defining Custom Sort; when not defined defaults to permittedValues",uiLabel:"Custom Sort Permitted Values",isOptional:!0},{name:"dateInputOptions",kind:"REFERENCE",description:"Options for managing and customizing date inputs in AdapTable",uiLabel:"Date Input Options",isOptional:!0,reference:"DateInputOptions"},{name:"editableCellStyle",kind:"REFERENCE",description:"Style to set for editable cells",uiLabel:"Editable Cell Style",isOptional:!0,reference:"AdaptableStyle"},{name:"editLookUpItems",kind:"unknown",description:"Dropdown values displayed when column is being edited; when not defined defaults to permittedValues",uiLabel:"Edit Look Up Items",isOptional:!0},{name:"filterPermittedValues",kind:"unknown",description:"Custom column values for 'IN' filter; when not defined defaults to permittedValues",uiLabel:"Filter Permitted Values",isOptional:!0},{name:"gridInfoSections",kind:"REFERENCE",description:"Which sections to show in the Grid Info Screen",uiLabel:"Grid Info Sections",isOptional:!0,defaultValue:"['GridSummary', 'AdaptableOptions', 'ColumnInfo']",reference:"unknown"},{name:"permittedValues",kind:"unknown",description:"List of values which are permitted (e.g. to show in filter)",uiLabel:"Permitted Values",isOptional:!0},{name:"readOnlyCellStyle",kind:"REFERENCE",description:"Style to set for non-editable cells",uiLabel:"Read Only Cell Style",isOptional:!0,reference:"AdaptableStyle"},{name:"showDocumentationLinks",kind:"boolean",description:"Provide links to AdapTable documentation (in Module popups and Expression Editor)",uiLabel:"Show Documentation Links",isOptional:!0,gridInfo:"item",defaultValue:"true"},{name:"styleClassNames",kind:"unknown",description:"Optional list of CSS styles that can be used when creating Adaptable Styles in Adaptable (e.g. in Conditional Style, Format Column and other Modules)",uiLabel:"Style Class Names",isOptional:!0,gridInfo:"item"},{name:"useCustomMacLikeScrollbars",kind:"boolean",description:"Show Mac-like scrollbars; size is configurable via CSS variable `--ab-custom-scrollbar-size` (default: `10px`)",uiLabel:"Use Custom Mac Like Scrollbars",isOptional:!0,gridInfo:"item",defaultValue:"false"}]},UserMenuItem:{name:"UserMenuItem",kind:"Interface",description:"Menu Item which is added to Column Header or Context Menu, and can contain sub items",properties:[{name:"disabled",kind:"unknown",description:"Function to evaluate whether Menu Item is enabled",uiLabel:"Disabled",isOptional:!0},{name:"hidden",kind:"unknown",description:"Function to evaluate whether Menu Item is visible",uiLabel:"Hidden",isOptional:!0},{name:"icon",kind:"string",description:"Optional icon to display",uiLabel:"Icon",isOptional:!0},{name:"label",kind:"unknown",description:"Text that will appear in the Menu Item",uiLabel:"Label"},{name:"onClick",kind:"unknown",description:"Function to invoke when the Menu Item is clicked",uiLabel:"On Click",isOptional:!0},{name:"subMenuItems",kind:"unknown",description:"Array of Menu Items, enabling limitless levels of menus",uiLabel:"Sub Menu Items",isOptional:!0}]},ValidationResult:{name:"ValidationResult",kind:"Interface",description:"Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server",properties:[{name:"NewValue",kind:"unknown",description:"Cell Value to use for after Server Validation",uiLabel:"New Value",isOptional:!0},{name:"ValidationMessage",kind:"string",description:"Message to diplay with validation",uiLabel:"Validation Message",isOptional:!0}]},WeightedAverageColumn:{name:"WeightedAverageColumn",kind:"Interface",description:"An Column which contains a Weighted Average aggregation",properties:[{name:"columnId",kind:"string",description:"Column which will contain the aggregation",uiLabel:"Column Id"},{name:"weightedColumnId",kind:"string",description:"Column used to perform the aggreation calculation",uiLabel:"Weighted Column Id"}]}};var d1=class{constructor(t){this.adaptableApi=t;this.gridInfoOptions=new Map;this.adaptableApi=t,this.gridInfoOptions=this.buildGridInfoOptions()}getGridInfoOptions(){return this.gridInfoOptions}buildGridInfoOptions(){let t=new Map,n=mwe,r=n.AdaptableOptions,o=this.adaptableApi.internalApi.getAdaptableOptions(),a=Kt;if(!r)return t;let i=this.mapGridInfoContainerItems(r,o,a);return t.set("baseOptions",{containerLabel:"Base Options",items:i}),r.properties.filter(l=>l.gridInfo==="container").forEach(l=>{let u=l.reference,d=l.name,c=n[u],m=o[d],f=a[d];if(!c||!m||!f)return;let h=this.mapGridInfoContainerItems(c,m,f);t.set(l.name,{containerLabel:l.uiLabel,items:h})}),t}mapGridInfoContainerItems(t,n,r){var o;return(o=t.properties)==null?void 0:o.filter(a=>a.gridInfo==="item").map(a=>({name:a.name,value:n[a.name],defaultValue:r[a.name],description:a.description}))}destroy(){}};var p1=pN();zt.ModuleRegistry.registerModules(zt.AllCommunityModules);var fwe="/",w9=e=>{!e||(e.field&&!e.colId&&(e.colId=e.field),e.children?e.children.forEach(w9):e.colId||nt("A column is missing the colId - please check ",e,'Either pass a "field" property or a "colId" property.'))},ywe=zt.RowNode.prototype,lIt=ywe.dispatchLocalEvent,D9=zt.GridApi.prototype.setColumnDefs,Swe=(e,t,n)=>{e.forEach((r,o,a)=>{r.children?Swe(r.children,t,r):t(r,o,a,n)})},c1={},Ui=class{constructor(){this.colDefPropertyCache=new Map;this.gridOptionsPropertyCache=new Map;this.isCheckedColumnDataType=!1;this._on=(t,n)=>this.emitter?this.emitter.on(t,n):()=>{};this._onIncludeFired=(t,n)=>this.emitter?this.emitter.onIncludeFired(t,n):()=>{};this._emit=(t,n)=>{if(this.emitter)return this.emitter.emit(t,n)};this._emitSync=(t,n)=>{if(this.emitter)return this.emitter.emitSync(t,n)};this._adaptableReady=!1;this.isDestroyed=!1;this.agGridModules=[];this.isPluginLoaded=t=>{let n=this.adaptableOptions.plugins||[];for(let r=0,o=n.length;r<o;r++)if(n[r].pluginId===t)return!0;return!1};this.isAgGridReady=()=>{var n,r;let t=(r=(n=this.adaptableOptions.containerOptions)==null?void 0:n.agGridContainerWaitTimeout)!=null?r:6e4;return pM(()=>!!this.gridOptions.api,t)};this.debouncedSetColumnIntoStore=(0,ab.default)(()=>{!this.gridOptions.api||this.updateColumnsIntoStore()},Pb);this.debouncedSaveGridLayout=(0,ab.default)(()=>{!this.gridOptions.api||this.updateLayoutFromGrid()},Pb);this.debouncedSetSelectedCells=(0,ab.default)(()=>{!this.gridOptions.api||this.setSelectedCells()},250);this.debouncedSetSelectedRows=(0,ab.default)(()=>{!this.gridOptions.api||this.setSelectedRows()},Pb);this.debouncedFilterGrid=(0,ab.default)((t=()=>{})=>{!this.gridOptions.api||(this.applyGridFiltering(),t&&t())},Pb);this.mapColumnDefs=(t,n,r)=>(r=r||{removeEmpty:!1},t=t||this.getGroupAndColumnDefs(),Swe(t,(o,a,i,l)=>{let u=n(o,a,i),d=l?l.children:i;d[a]=u,a===i.length-1&&r.removeEmpty&&l&&(l.children=d.filter(c=>!!c))}),r.removeEmpty&&(t=t.filter(o=>!!o)),t);this.getGroupAndColumnDefs=()=>[].concat(this.currentColumnDefs||this.gridOptions.columnDefs);this.getColumnDefsWithCorrectVisibility=()=>{let t=this.api.layoutApi.getCurrentVisibleColumnIdsMap();return this.gridOptions.columnApi.getAllColumns().map(n=>{let r=n.getColDef(),o=n.getColId();return r.colId=o,r.hide=!t[o],r})};this.getPreviousColDefInfo=t=>t.__ab||{}}static init(t){return Ui.initInternal(t)}static async initInternal(t,n){let r={renderGrid:void 0,runtimeConfig:null},o=null;if(Array.isArray(t.plugins))for(let i of t.plugins)o=o&&o.then?o.then(()=>i.beforeInit(t)):i.beforeInit(t);let a=i=>i.init(t,n,!0).then(l=>(Array.isArray(t.plugins)&&t.plugins.forEach(u=>{u.afterInit(i)}),l));if(o&&o.then)return o.then(()=>{let i=new Ui;return a(i)});{let i=new Ui;return a(i)}}static collectInstance(t){t._id=t.adaptableOptions.adaptableId||yt(),c1[t._id]=t}static forEachAdaptable(t){Object.keys(c1).forEach(n=>{t(c1[n])})}static dismissInstance(t){delete c1[t._id]}async init(t,n,r){var o,a,i,l,u,d;return r||Qo(`
|
|
312
312
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
313
313
|
!!!!!!! You should not use the "Adaptable" constructor directly, as it was deprecated in v6 and removed in v7!
|
|
314
314
|
!!!!!!!
|