@e-llm-studio/federated-dashboard-components 2.2.9-rca-test-9 → 2.2.9-rca-test-11

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.
Files changed (61) hide show
  1. package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  2. package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
  3. package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  4. package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
  5. package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
  6. package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  7. package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
  8. package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
  9. package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
  10. package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
  11. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
  12. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
  13. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
  14. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
  15. package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  16. package/dist/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
  17. package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  18. package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
  19. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  20. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
  21. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
  22. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  23. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
  24. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
  25. package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
  26. package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
  27. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
  28. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
  29. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
  30. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
  31. package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  32. package/dist/cjs/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
  33. package/dist/cjs/index.js +1 -1
  34. package/dist/cjs/styles.css +1 -1
  35. package/dist/index.js +1 -1
  36. package/dist/styles.css +1 -1
  37. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
  38. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +10 -2
  39. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
  40. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
  41. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts +9 -0
  42. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts.map +1 -0
  43. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +47 -2
  44. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
  45. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts +7 -0
  46. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts.map +1 -0
  47. package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts +10 -0
  48. package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts.map +1 -0
  49. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts +18 -0
  50. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts.map +1 -0
  51. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts +16 -0
  52. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts.map +1 -0
  53. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +10 -3
  54. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
  55. package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts +3 -0
  56. package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts.map +1 -1
  57. package/dist/types/ExecutiveDashboard/types/index.d.ts +39 -4
  58. package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
  59. package/dist/types/index.d.ts +6 -2
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("lucide-react");function a(e){var n;return!(null==e?void 0:e.enabled)||e.unrestricted?[]:(null!==(n=e.grants)&&void 0!==n?n:[]).filter(function(e){var n;return null===(n=e.values)||void 0===n?void 0:n.length})}function t(t){var s=a(t.scope);if(0===s.length)return null;var i=s.map(function(e){return n=e.moduleName,r=e.values,a=r.slice(0,3).join(", "),t=r.length-3,"".concat(n,": ").concat(a).concat(t>0?" +".concat(t," more"):"");var n,r,a,t}).join(" · "),c=s.map(function(e){return"".concat(e.moduleName,": ").concat(e.values.join(", "))}).join("\n");return n.jsxs("div",e.__assign({className:"da-scopeChip",title:c},{children:[n.jsx(r.Eye,{size:14,"aria-hidden":"true"}),n.jsx("span",e.__assign({className:"da-scopeLabel"},{children:"Viewing"})),n.jsx("span",e.__assign({className:"da-scopeText"},{children:i}))]}))}exports.DataAccessScopeChip=t,exports.default=t,exports.restrictingGrants=a;
2
+ //# sourceMappingURL=DataAccessScopeChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataAccessScopeChip.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),n=require("react"),l=require("lucide-react"),t=require("./DashboardDateFilter/DashboardDateFilter.js"),o=require("./MetricCard/MetricCard.js"),r=require("./FiltersSidebar/FiltersSidebar.js"),a=require("./Graph/Graph.js"),d=require("./Graph/GraphEmptyState.js"),u=require("./DashboardDateFilter/datePreset.js"),s=require("./Table/TableCard.js"),v=require("./Table/TableGrid/TableGrid.js"),c=require("./DashboardGrid/DashboardGrid.js"),h=require("./DashboardGrid/buildDashboardWidgets.js"),g=require("./BarChart/BarChart.js"),p=require("./PieChart/PieChart.js"),f=require("../utils/tableColumns.js"),b=require("../utils/sectionOrder.js"),y=require("../utils/chartCards.js"),m=require("../utils/index.js"),x=require("../utils/kpiIcon.js"),C=require("./Alerts/AlertsViewTrigger.js"),k=require("./Insights/InsightsContext.js"),j=require("./Insights/insightsFilters.js"),_=require("./Insights/L1Report.js"),w=require("./Insights/InsightTabs.js"),D=require("./Insights/insightsUtils.js"),F=require("../api/insightsApi.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var A=I(n),T="control:kpiMore";function S(n){var t=n.expanded,o=n.hiddenCount,r=n.onToggle;return i.jsx("button",e.__assign({type:"button",className:"ins-kpi-more","aria-expanded":t,onClick:r},{children:t?i.jsxs(i.Fragment,{children:["View fewer KPIs ",i.jsx(l.ChevronUp,{"aria-hidden":"true"})]}):i.jsxs(i.Fragment,{children:[i.jsx(l.Plus,{"aria-hidden":"true"})," View more KPIs (",o,") ",i.jsx(l.ChevronDown,{"aria-hidden":"true"})]})}))}var B=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function L(e,i){return e?Math.max(80,Math.floor(e-96)):i}function M(I){var M,q,O,P,R,V,E,K,H,G,N,W,U,z,J,Y,Z,Q,X,$,ee,ie,ne,le,te,oe,re,ae,de,ue,se,ve,ce,he,ge,pe,fe,be,ye,me,xe,Ce,ke,je,_e,we,De,Fe,Ie,Ae,Te,Se=I.baseUrl,Be=I.configId,Le=I.uiConfig,Me=I.data,qe=I.dataLoading,Oe=I.startDate,Pe=I.endDate,Re=I.onDateChange,Ve=I.onRefresh,Ee=I.selectedKpis,Ke=I.onKpiChange,He=I.sidebarVisible,Ge=I.onSidebarShow,Ne=I.onSidebarHide,We=I.filterValues,Ue=I.onFilterChange,ze=I.onFilterReset,Je=I.onFilterApply,Ye=I.appliedFilters,Ze=I.graphEmptyState,Qe=I.insightsDrill,Xe=I.insightsLabels,$e=I.renderInsightsCell,ei=I.insightsApprovedApiHosts,ii=I.insightsActionHandlers,ni=I.insightsCellRenderers,li=I.tables,ti=I.tableLayout,oi=I.sectionOrder,ri=I.hiddenSections,ai=I.tablePages,di=I.onTableExpand,ui=I.onTableLoadMore,si=I.pollingEnabled,vi=void 0!==si&&si,ci=I.selectedPreset,hi=I.handlePresetChange,gi=I.metricCardConfig,pi=I.kpiCtaConfig,fi=I.tableCtaConfig,bi=I.activeThreshold,yi=I.onThresholdViewChange,mi=I.onAlertsClick,xi=I.showAlerts,Ci=I.onAlertClose,ki=I.accessToken,ji=I.authBaseUrl,_i=I.layout,wi=I.workingDaysOnly,Di=void 0!==wi&&wi,Fi=I.kpiCardsCollapse,Ii=null!==(O=null===(q=null===(M=null==Le?void 0:Le.data)||void 0===M?void 0:M.dateFilters)||void 0===q?void 0:q.datepresets)&&void 0!==O?O:[],Ai=n.useMemo(function(){return Ii.map(function(e){return u.DATE_PRESET_MAP[e]}).filter(Boolean)},[JSON.stringify(Ii)]),Ti=n.useMemo(function(){return m.getActiveFilterCount(Ye)},[Ye]),Si=n.useMemo(function(){var e,i;return(null!==(i=null===(e=null==Le?void 0:Le.data)||void 0===e?void 0:e.tableBuilder)&&void 0!==i?i:[]).filter(function(e){return"drilldown"!==e.showIn})},[null===(P=null==Le?void 0:Le.data)||void 0===P?void 0:P.tableBuilder]),Bi=n.useMemo(function(){var e=null==ti?void 0:ti.spans;if(e)return Si.map(function(i,n){return Array.isArray(e)?e[n]:e[i.key]})},[null==ti?void 0:ti.spans,Si]),Li=null===(R=null==Le?void 0:Le.data)||void 0===R?void 0:R.graphBuilder,Mi=null===(V=null==Le?void 0:Le.data)||void 0===V?void 0:V.insights,qi=D.isInsightsOn(Mi)&&Boolean(Be),Oi=qi?D.summaryCardConfig(null===(E=null==Le?void 0:Le.data)||void 0===E?void 0:E.decisionAdvantage):null,Pi=qi?D.insightTabItems(null===(K=null==Le?void 0:Le.data)||void 0===K?void 0:K.decisionAdvantage):[],Ri=n.useState(null),Vi=Ri[0],Ei=Ri[1],Ki=n.useState(0),Hi=Ki[0],Gi=Ki[1],Ni=n.useCallback(function(){Ve(),Gi(function(e){return e+1})},[Ve]),Wi=n.useMemo(function(){var e,i,n,l,t,o,r=null!==(e=null==Li?void 0:Li.tiers)&&void 0!==e?e:[],a=null!==(i=r.find(function(e){return 1===Number(null==e?void 0:e.displayOrder)}))&&void 0!==i?i:r[0],d=null!==(n=null==a?void 0:a.series)&&void 0!==n?n:[];return null!==(o=null===(t=null!==(l=d.find(function(e){return"primary"===(null==e?void 0:e.kpiRole)}))&&void 0!==l?l:d[0])||void 0===t?void 0:t.key)&&void 0!==o?o:null},[Li]),Ui=!b.isSectionHidden(ri,"sidebarFilters"),zi=n.useCallback(function(e){return Ei(e)},[]),Ji=n.useMemo(function(){var e;return j.resolveInsightsSidebarFilters(Ye,null===(e=null==Le?void 0:Le.data)||void 0===e?void 0:e.sidebarFilters).filters},[Ye,null===(H=null==Le?void 0:Le.data)||void 0===H?void 0:H.sidebarFilters]),Yi=JSON.stringify(Ji),Zi=n.useMemo(function(){var e,i;if(!qi)return[];var n=new Set;return(null!==(e=null==Li?void 0:Li.tiers)&&void 0!==e?e:[]).forEach(function(e){var i;return(null!==(i=null==e?void 0:e.series)&&void 0!==i?i:[]).forEach(function(e){return(null==e?void 0:e.key)&&n.add(e.key)})}),(null!==(i=null==Mi?void 0:Mi.kpis)&&void 0!==i?i:[]).map(function(e){return null==e?void 0:e.kpiId}).filter(function(e){return Boolean(e)&&n.has(e)}).slice(0,10)},[qi,Mi,Li]),Qi=D.useInsightsFetch(Zi.length?function(e){return F.fetchInsightsSeries({baseUrl:Se,configId:null!=Be?Be:"",accessToken:ki},{startDate:Oe,endDate:Pe,workingDaysOnly:Di,filters:Ji},{kpiIds:Zi},e)}:null,[Se,Be,ki,Oe.getTime(),Pe.getTime(),Di,Yi,Zi.join(","),Hi]),Xi=function(e,i){var n,l,t=null===(n=Qi.data)||void 0===n?void 0:n.series.find(function(i){return i.kpiId===e&&"root"===i.nodeKey});if(t){var o=new Map(i.map(function(e){return[String(e.x).slice(0,10),e.x]})),r=null===(l=null==Mi?void 0:Mi.kpis)||void 0===l?void 0:l.find(function(i){return i.kpiId===e}),a=(null==r?void 0:r.label)||e;return t.points.flatMap(function(i){var n,l=null===(n=i.meta)||void 0===n?void 0:n.marker,t=o.get(i.x);if(!l||void 0===t)return[];var d="".concat(a," · ").concat(D.shortDay(i.x));return[{x:t,color:D.sentimentColor(l.direction,"down"===(null==r?void 0:r.goodDirection)?"down":"up"),label:[l.criticality,D.movementLabel(l.movementType),l.headline].filter(Boolean).join(" · "),onClick:function(){return zi(l.reportId?{reportId:l.reportId,title:d}:{nodeKey:"root",kpiId:e,dataDay:i.x,title:d})}}]})}},$i=function(n,t){var o=t?function(e,i){var n=e-112-18*i-12*(i-1),l=Array.from({length:i},function(e,n){return 0===n&&i>1?6:5}),t=l.reduce(function(e,i){return e+i},0);return l.map(function(e){return Math.max(80,Math.floor(n*e/t))})}(t,n.length):void 0;return i.jsx(a.default,{loading:qe,emptyState:null!=Ze?Ze:i.jsx(d.default,{}),title:null==Li?void 0:Li.title,description:null==Li?void 0:Li.subtitle,icon:i.jsx(l.ChartLine,{size:18}),xAxis:{label:(null==Li?void 0:Li.axis.xAxisLabel)||"Date"},style:{chartHeight:o?o[0]:220},scrollable:vi,panes:n.map(function(n,t){return function(n,t,o){var r,a,d,u,s,v,c=Ee[n.key]||(null===(r=n.plotOptions[0])||void 0===r?void 0:r.key),h=Me.graph.tier.find(function(e){return e.key===n.key}),g=(null===(a=null==h?void 0:h.referenceOptions)||void 0===a?void 0:a[c])||{},p=(null===(d=null==h?void 0:h.plotbyoptions)||void 0===d?void 0:d[c])||{},f=(null==n?void 0:n.series)||[],b=Object.keys(p),y=n.plotOptions.find(function(e){return e.value===c});return{key:n.key,selector:{label:"Plot By",value:c,onChange:function(e){Ke(n.key,e)},options:n.plotOptions.map(function(e){return{label:e.label,value:e.value}}),triggerIcon:i.jsx(l.ChartLine,{size:16,color:0===t?"green":"purple"})},yAxis:{label:null==y?void 0:y.yAxisLabel,beginAtZero:"false"!==(null==c?void 0:c.yAxisBeginAtZero)},tooltip:{formatHeading:function(e){return"".concat(e)}},legend:{position:(null===(u=null==Li?void 0:Li.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(s=null==Li?void 0:Li.legend)||void 0===s?void 0:s.allowToggle),align:(null===(v=null==Li?void 0:Li.legend)||void 0===v?void 0:v.alignment)||"center"},height:null!=o?o:0===t?300:250,series:b.map(function(i,n){var l,t,o,r,a=(null===(t=null===(l=null==h?void 0:h.plotbyoptions)||void 0===l?void 0:l[c])||void 0===t?void 0:t[i])||[],d=B[n%B.length],u=f.find(function(e){return e.key===i}),s=null===(r=null===(o=null==h?void 0:h.thresholds)||void 0===o?void 0:o[c])||void 0===r?void 0:r[null==u?void 0:u.key];return e.__assign(e.__assign(e.__assign({key:i,label:(null==u?void 0:u.name)||i,data:a,area:"yes"===(null==u?void 0:u.areaFill),curve:(null==u?void 0:u.curveType)||"linear",color:(null==u?void 0:u.color)?"#".concat(String(u.color).replace(/^#+/,"")):d,dashed:"dashed"===(null==u?void 0:u.style),strokeWidth:parseInt(null==u?void 0:u.strokeWidth)||2,showPoints:"yes"===(null==u?void 0:u.showPoints),kpiRole:null==u?void 0:u.kpiRole,pointRadius:parseInt(null==u?void 0:u.pointRadius)||3,showInLegend:!0},null!=(null==s?void 0:s.value)&&{threshold:s.value}),null!=(null==s?void 0:s.unit)&&{thresholdUnit:s.unit}),{markers:Xi(i,a),valueFormatter:function(e){return"".concat(e)}})}),reference:g}}(n,t,null==o?void 0:o[t])}),activeThreshold:bi,onThresholdViewChange:yi})},en=Oi?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(_.default,{})})):i.jsx("div",e.__assign({style:{padding:"4px"}},{children:$i(null!==(G=null==Li?void 0:Li.tiers)&&void 0!==G?G:[])})),nn=function(e){var n,l,t,r=null===(n=null==Me?void 0:Me.kpiCards)||void 0===n?void 0:n[e.title],a=m.isKpiValueObject(r)?m.getKpiValueColor(r.currentValue,r.baselineValue,e.indicatorLogic):void 0,d=m.isKpiValueObject(r)?m.getKpiDelta(r.currentValue,r.baselineValue,e.indicatorLogic):void 0,u=null!==(l=e.ctaKey)&&void 0!==l?l:e.key,s=u?null==pi?void 0:pi[u]:void 0;return i.jsx(o.default,{title:e.title,subtitle:e.subtitle,value:m.formatKpiValue(r,e.valueFormat),valueColor:a,delta:d&&{label:d.label,direction:d.direction,color:a},icon:x.getKpiIcon(e.icon),loading:qe,showDelta:null===(t=null==gi?void 0:gi.showDelta)||void 0===t||t,cta:{ctaEnabled:Boolean(e.showActionButton),ctaText:e.actionButtonLabel,ctaOnClick:function(){return null==s?void 0:s(e)}}},e.title)},ln=null!=_i?_i:!1===(null===(W=null===(N=null==Le?void 0:Le.data)||void 0===N?void 0:N.components)||void 0===W?void 0:W.gridDesign)||null===(U=null==Le?void 0:Le.data)||void 0===U?void 0:U.dashboardLayout,tn=!0===(null==ln?void 0:ln.enabled),on=function(e){var i,n,l,t;if(tn){var o=null!==(i=null==ln?void 0:ln.items)&&void 0!==i?i:{},r=null!==(l=null===(n=o[e.title])||void 0===n?void 0:n.order)&&void 0!==l?l:e.key?null===(t=o[e.key])||void 0===t?void 0:t.order:void 0;return"number"==typeof r?r:void 0}},rn=e.__spreadArray([],null!==(J=null===(z=null==Le?void 0:Le.data)||void 0===z?void 0:z.kpiCards)&&void 0!==J?J:[],!0).map(function(e,i){return{card:e,index:i,order:on(e)}}).sort(function(e,i){var n,l;return null!=e.order&&null!=i.order?e.order-i.order||e.index-i.index:null!=e.order?-1:null!=i.order?1:(null!==(n=e.card.displayOrder)&&void 0!==n?n:0)-(null!==(l=i.card.displayOrder)&&void 0!==l?l:0)||e.index-i.index}).map(function(e){return e.card}),an=n.useState(!1),dn=an[0],un=an[1],sn=function(e,i){if(!1===e)return null;if(e&&"object"==typeof e){var n=Number(e.initialCount);return Number.isFinite(n)&&n>=1?Math.floor(n):3}return i?3:null}(null!=Fi?Fi:null===(Y=null==Le?void 0:Le.data)||void 0===Y?void 0:Y.kpiCardsCollapse,qi),vn=!1!==(null===(Q=null===(Z=null==Le?void 0:Le.data)||void 0===Z?void 0:Z.components)||void 0===Q?void 0:Q.kpiCards)&&null!=sn&&rn.length>sn,cn=vn&&!dn?rn.slice(0,sn):rn,hn=vn?i.jsx(S,{expanded:dn,hiddenCount:rn.length-sn,onToggle:function(){return un(function(e){return!e})}}):null,gn=i.jsxs("div",e.__assign({style:{padding:"4px",display:"flex",flexDirection:"column",gap:14}},{children:[i.jsx("div",e.__assign({style:{display:"flex",gap:"10px",flexWrap:"wrap"}},{children:cn.map(nn)})),hn]})),pn=function(n){var l,t,o,r=null!==(t=null===(l=null==Me?void 0:Me.table)||void 0===l?void 0:l[n.key])&&void 0!==t?t:[],a=null==ai?void 0:ai[n.key],d=!!(null==a?void 0:a.loaded),u=d?a.rows:r,v=!d&&n.rowLimit&&n.rowLimit>0?r.slice(0,n.rowLimit):u,c=null==li?void 0:li[n.key],h=f.buildColumns(n,c),g=null==c?void 0:c.card,p=null==g?void 0:g.icon,b=x.getKpiIcon(n.icon),y=b&&A.default.isValidElement(b)?A.default.cloneElement(b,e.__assign(e.__assign({},null!=(null==p?void 0:p.size)?{size:p.size}:{}),(null==p?void 0:p.color)?{color:p.color}:{})):b,m=p?e.__assign(e.__assign(e.__assign({width:"auto",height:"auto"},p.color?{color:p.color}:{}),p.background?{background:p.background,padding:6,borderRadius:8}:{}),p.style):void 0,C=null!==(o=n.ctaKey)&&void 0!==o?o:n.key,k=C?null==fi?void 0:fi[C]:void 0;return i.jsx(s.default,{title:n.title,icon:y,styles:{root:null==g?void 0:g.root,header:null==g?void 0:g.header,title:null==g?void 0:g.title,icon:m},cta:{ctaEnabled:Boolean(n.showActionButton),ctaText:n.actionButtonLabel,ctaOnClick:function(){return null==k?void 0:k(n)}},onExpand:function(e){return null==di?void 0:di(n.key,e)},table:{rows:f.withRowIds(v),columns:h,loading:qe,loadingMore:null==a?void 0:a.loading,hasMore:null==a?void 0:a.hasMore,onLoadMore:a?function(){return null==ui?void 0:ui(n.key)}:void 0,tableProps:null==c?void 0:c.tableProps}},n.key)},fn=Si.length>0?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(v.default,e.__assign({itemSpans:Bi,totalColumns:null!==(X=null==ti?void 0:ti.totalColumns)&&void 0!==X?X:12,defaultSpan:null==ti?void 0:ti.defaultSpan,options:null!==($=null==ti?void 0:ti.options)&&void 0!==$?$:[1,2,3],defaultColumns:null==ti?void 0:ti.defaultColumns,columns:null==ti?void 0:ti.columns,onColumnsChange:null==ti?void 0:ti.onColumnsChange,showToggle:(null===(ee=null==ti?void 0:ti.showToggle)||void 0===ee||ee)&&Si.length>1,toggleLabel:null==ti?void 0:ti.toggleLabel,minColumnWidth:null!==(ie=null==ti?void 0:ti.minColumnWidth)&&void 0!==ie?ie:380,gap:null!==(ne=null==ti?void 0:ti.gap)&&void 0!==ne?ne:12,equalHeights:null===(le=null==ti?void 0:ti.equalHeights)||void 0===le||le},{children:Si.map(function(e){return pn(e)})}))})):null,bn=n.useRef(null);bn.current={kpi:function(e){return nn(e)},graph:function(e,i){return $i(e,i.height)},table:function(e){return pn(e)},barChart:function(e,i){return Dn(e,i.height)},pieChart:function(e,i){return In(e,i.height)},decision:function(){return i.jsx(_.default,{})},insightTabs:function(e){return i.jsx(w.default,{tabs:e,insightsConfig:Mi,onOpenFilters:Ui?Ge:void 0,activeFilterCount:Ti})}};var yn=n.useRef(null);yn.current=hn;var mn=null==ln?void 0:ln.extraWidgets,xn=n.useMemo(function(){if(!tn)return[];var e={kpi:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).kpi.apply(e,i)},graph:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).graph.apply(e,i)},table:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).table.apply(e,i)},barChart:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).barChart.apply(e,i)},pieChart:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).pieChart.apply(e,i)},decision:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).decision.apply(e,i)},insightTabs:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=bn.current).insightTabs.apply(e,i)}},i=h.buildDashboardWidgets({uiData:null==Le?void 0:Le.data,renderers:e,extraWidgets:mn});if(!vn)return i;var n={key:T,title:"View more KPIs",type:"control",defaultRowSpan:"fit",render:function(){return yn.current}},l=-1;return i.forEach(function(e,i){"kpi"===e.type&&(l=i)}),i.splice(l+1,0,n),i},[tn,null==Le?void 0:Le.data,mn,vn]),Cn=n.useMemo(function(){var i;if(!tn||!ln)return ln;var n=Number(ln.columns)||3,l=e.__assign({},null!==(i=ln.items)&&void 0!==i?i:{}),t=function(i,n){var t;l[i]=e.__assign(e.__assign({},null!==(t=l[i])&&void 0!==t?t:{}),n)};if(Oi&&(t(h.DECISION_WIDGET_KEY,{colSpan:n,defaultHeight:!0,newRow:!0,endRow:!0}),t(h.GRAPH_WIDGET_KEY,{hidden:!0})),vn){rn.forEach(function(e,i){var n;!dn&&i>=sn&&t("kpi:".concat(null!==(n=e.key)&&void 0!==n?n:e.title),{hidden:!0})});var o=cn.map(on).filter(function(e){return"number"==typeof e});t(T,e.__assign({colSpan:n,defaultHeight:!0,newRow:!0,endRow:!0},o.length?{order:Math.max.apply(Math,o)+.5}:{}))}return e.__assign(e.__assign({},ln),{items:l})},[tn,ln,Oi,vn,dn,sn,rn.map(function(e){return e.title}).join("|")]),kn=null!==(ae=null!==(oe=null===(te=null==Le?void 0:Le.data)||void 0===te?void 0:te.barCharts)&&void 0!==oe?oe:null===(re=null==Le?void 0:Le.data)||void 0===re?void 0:re.barChartBuilder)&&void 0!==ae?ae:[],jn=null!==(ve=null!==(ue=null===(de=null==Le?void 0:Le.data)||void 0===de?void 0:de.pieCharts)&&void 0!==ue?ue:null===(se=null==Le?void 0:Le.data)||void 0===se?void 0:se.pieChartBuilder)&&void 0!==ve?ve:[],_n={display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(380px, 1fr))",gap:12,alignItems:"start"},wn=function(e,i){var n,l;return(null!==(n=e.displayOrder)&&void 0!==n?n:0)-(null!==(l=i.displayOrder)&&void 0!==l?l:0)},Dn=function(e,n){var l,t,o,r,a,d,u,s,v,c,h=y.limitChartData(y.toChartData(null===(l=null==Me?void 0:Me.barChart)||void 0===l?void 0:l[e.key],e.columnName),e);return i.jsx(g.default,{data:h,title:e.title,description:e.subtitle||void 0,icon:x.getKpiIcon(null!==(t=e.icon)&&void 0!==t?t:void 0),color:null!==(o=e.color)&&void 0!==o?o:void 0,shadeMode:null!==(r=e.shadeMode)&&void 0!==r?r:void 0,xAxisLabel:(null===(a=e.axis)||void 0===a?void 0:a.xAxisLabel)||void 0,yAxisLabel:(null===(d=e.axis)||void 0===d?void 0:d.yAxisLabel)||void 0,yAxis:{max:null!==(s=null===(u=e.axis)||void 0===u?void 0:u.maxValue)&&void 0!==s?s:void 0},legend:{show:"yes"===e.showLegends},config:{showValueLabels:"yes"===e.showValueLabels,orientation:null!==(v=e.orientation)&&void 0!==v?v:void 0,sortBy:null!==(c=e.sortBy)&&void 0!==c?c:void 0},valueFormatter:function(i){return y.formatChartValue(i,e.valueFormat)},style:{chartHeight:L(n,300),autoHeight:!n},loading:qe},e.key)},Fn=kn.length>0?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx("div",e.__assign({style:_n},{children:e.__spreadArray([],kn,!0).sort(wn).map(function(e){return Dn(e)})}))})):null,In=function(e,n){var l,t,o,r,a,d,u,s,v,c,h,g=y.limitChartData(y.toChartData(null===(l=null==Me?void 0:Me.pieChart)||void 0===l?void 0:l[e.key],e.columnName),e);return i.jsx(p.default,{data:g,title:e.title,description:e.subtitle||void 0,icon:x.getKpiIcon(null!==(t=e.icon)&&void 0!==t?t:void 0),color:null!==(o=e.color)&&void 0!==o?o:void 0,shadeMode:null!==(r=e.shadeMode)&&void 0!==r?r:void 0,config:{variant:null!==(a=e.variant)&&void 0!==a?a:void 0,sortBy:null!==(d=e.sortBy)&&void 0!==d?d:void 0},center:{show:"no"!==e.showCenterTotal,label:e.centerLabel||void 0},legend:{show:"no"!==(null===(u=e.legend)||void 0===u?void 0:u.showLegends),position:null!==(v=null===(s=e.legend)||void 0===s?void 0:s.position)&&void 0!==v?v:void 0,showValue:"no"!==(null===(c=e.legend)||void 0===c?void 0:c.showValue),showPercent:"no"!==(null===(h=e.legend)||void 0===h?void 0:h.showPercent)},valueFormatter:function(i){return y.formatChartValue(i,e.valueFormat)},style:{chartHeight:L(n,260)},loading:qe},e.key)},An=jn.length>0?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx("div",e.__assign({style:_n},{children:e.__spreadArray([],jn,!0).sort(wn).map(function(e){return In(e)})}))})):null,Tn={graphBuilder:en,kpiCards:gn,decisionAdvantage:Pi.length?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(w.default,{tabs:Pi,insightsConfig:Mi,onOpenFilters:Ui?Ge:void 0,activeFilterCount:Ti})})):null,barCharts:Fn,pieCharts:An,tableBuilder:fn},Sn=b.resolveSectionOrder(oi,ri,null===(ce=null==Le?void 0:Le.data)||void 0===ce?void 0:ce.sectionOrder,Object.keys(Tn)),Bn=b.isSectionHidden(ri,"dateFilters"),Ln=b.isSectionHidden(ri,"sidebarFilters");if(xi)return i.jsx(i.Fragment,{children:i.jsx(C.AlertsViewTrigger,{baseUrl:Se||"",authBaseUrl:ji||"",configId:Be,onClose:function(){return null==Ci?void 0:Ci(!1)},uiConfig:Le,accessToken:ki})});var Mn=i.jsx(i.Fragment,{children:i.jsxs("div",e.__assign({className:qi?"ins-dashboard":void 0,style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!Bn&&i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(t.default,{filterCount:Ti,initialStartDate:Oe,initialEndDate:Pe,onDateChange:Re,onRefresh:Ni,isRefreshLoading:qe,onFilterClick:Ge,presets:Ai,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:Oe,maxDate:new Date}},defaultPresets:null===(he=null==Le?void 0:Le.data)||void 0===he?void 0:he.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(pe=null===(ge=null==Le?void 0:Le.data)||void 0===ge?void 0:ge.dateFilters)||void 0===pe?void 0:pe.showLiveButton),showFilterButton:!Ln&&"yes"===(null===(be=null===(fe=null==Le?void 0:Le.data)||void 0===fe?void 0:fe.dateFilters)||void 0===be?void 0:be.showFilterButton),showFilterCount:!Ln&&"yes"===(null===(me=null===(ye=null==Le?void 0:Le.data)||void 0===ye?void 0:ye.dateFilters)||void 0===me?void 0:me.showFilterCount),liveDuration:null===(Ce=null===(xe=null==Le?void 0:Le.data)||void 0===xe?void 0:xe.dateFilters)||void 0===Ce?void 0:Ce.liveDurationMs,pollingEnabled:vi,selectedPreset:ci,handlePresetChange:hi,showAlertsBtn:"yes"===(null===(je=null===(ke=null==Le?void 0:Le.data)||void 0===ke?void 0:ke.dateFilters)||void 0===je?void 0:je.showAlertButton),onAlertsClick:mi})})),tn?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(c.default,{widgets:xn,config:Cn})})):Sn.map(function(e){return i.jsx(A.default.Fragment,{children:Tn[e]},e)}),!Ln&&i.jsx(r.default,{visible:He,onHide:Ne,onReset:ze,onApply:Je,fields:null!==(De=null===(we=null===(_e=null==Le?void 0:Le.data)||void 0===_e?void 0:_e.sidebarFilters)||void 0===we?void 0:we.map(function(e){var i,n,l,t,o=e.schemaFilterName,r="Single select"===e.type?"singleSelect":"Multi select"===e.type?"multiSelect":"Date Range"===e.type?"dateRange":"Date"===e.type?"date":"text",a=null!==(n=null===(i=e.options)||void 0===i?void 0:i.map(function(e){return{label:e,value:e}}))&&void 0!==n?n:[];return{id:o,label:e.label,hint:e.description,type:r,placeholder:e.placeholder,options:a,value:"multiSelect"===r?null!==(l=We[o])&&void 0!==l?l:[]:null!==(t=We[o])&&void 0!==t?t:"",onChange:function(e){return Ue(o,e)}}}))&&void 0!==De?De:[]})]}))});return qi?i.jsx(k.InsightsProvider,e.__assign({baseUrl:Se,configId:Be,accessToken:ki,startDate:Oe,endDate:Pe,workingDaysOnly:Di,filtersActive:Ti>0,insights:Mi,decisionAdvantage:null===(Fe=null==Le?void 0:Le.data)||void 0===Fe?void 0:Fe.decisionAdvantage,insightsDrill:Qe,insightsLabels:Xe,renderInsightsCell:$e,sidebarFilters:Ye,sidebarFilterConfig:null===(Ie=null==Le?void 0:Le.data)||void 0===Ie?void 0:Ie.sidebarFilters,tableBuilder:null===(Ae=null==Le?void 0:Le.data)||void 0===Ae?void 0:Ae.tableBuilder,approvedApiHosts:ei,actionHandlers:ii,cellRenderers:ni,tables:li,headlineKpiId:Wi,defaultWorkingDays:"workdays"===(null===(Te=null==Li?void 0:Li.dayFilter)||void 0===Te?void 0:Te.defaultView),reportTarget:Vi,onReportTargetChange:zi,refreshRevision:Hi},{children:Mn})):Mn}exports.ExecutiveDashboard=M,exports.default=M;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),n=require("react"),l=require("lucide-react"),t=require("./DashboardDateFilter/DashboardDateFilter.js"),o=require("./MetricCard/MetricCard.js"),r=require("./FiltersSidebar/FiltersSidebar.js"),a=require("./Graph/Graph.js"),d=require("./Graph/GraphEmptyState.js"),u=require("./DashboardDateFilter/datePreset.js"),s=require("./Table/TableCard.js"),v=require("./Table/TableGrid/TableGrid.js"),c=require("./DashboardGrid/DashboardGrid.js"),h=require("./DashboardGrid/kpiCollapse.js"),g=require("./DashboardGrid/buildDashboardWidgets.js"),p=require("./BarChart/BarChart.js"),f=require("./PieChart/PieChart.js"),b=require("./DataAccess/DataAccessScopeChip.js"),y=require("../utils/tableColumns.js"),m=require("../utils/sectionOrder.js"),x=require("../utils/chartCards.js"),C=require("../utils/index.js"),k=require("../utils/kpiIcon.js"),j=require("./Alerts/AlertsViewTrigger.js"),w=require("./Insights/InsightsContext.js"),_=require("./Insights/insightsFilters.js"),D=require("./Insights/L1Report.js"),F=require("./Insights/InsightTabs.js"),A=require("./Insights/insightsUtils.js"),I=require("../api/insightsApi.js");function S(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var T=S(n),L="control:kpiMore";function B(n){var t=n.expanded,o=n.hiddenCount,r=n.onToggle;return i.jsx("button",e.__assign({type:"button",className:"ins-kpi-more","aria-expanded":t,onClick:r},{children:t?i.jsxs(i.Fragment,{children:["View fewer KPIs ",i.jsx(l.ChevronUp,{"aria-hidden":"true"})]}):i.jsxs(i.Fragment,{children:[i.jsx(l.Plus,{"aria-hidden":"true"})," View more KPIs (",o,") ",i.jsx(l.ChevronDown,{"aria-hidden":"true"})]})}))}var M=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function q(e,i){return e?Math.max(80,Math.floor(e-96)):i}function R(S){var R,O,P,E,V,K,H,G,N,W,z,U,J,Y,Z,Q,X,$,ee,ie,ne,le,te,oe,re,ae,de,ue,se,ve,ce,he,ge,pe,fe,be,ye,me,xe,Ce,ke,je,we,_e,De,Fe,Ae,Ie,Se,Te,Le,Be=S.baseUrl,Me=S.configId,qe=S.uiConfig,Re=S.data,Oe=S.dataLoading,Pe=S.startDate,Ee=S.endDate,Ve=S.onDateChange,Ke=S.onRefresh,He=S.selectedKpis,Ge=S.onKpiChange,Ne=S.sidebarVisible,We=S.onSidebarShow,ze=S.onSidebarHide,Ue=S.filterValues,Je=S.onFilterChange,Ye=S.onFilterReset,Ze=S.onFilterApply,Qe=S.appliedFilters,Xe=S.graphEmptyState,$e=S.insightsDrill,ei=S.insightsLabels,ii=S.renderInsightsCell,ni=S.insightsApprovedApiHosts,li=S.insightsActionHandlers,ti=S.insightsCellRenderers,oi=S.tables,ri=S.tableLayout,ai=S.sectionOrder,di=S.hiddenSections,ui=S.tablePages,si=S.onTableExpand,vi=S.onTableLoadMore,ci=S.pollingEnabled,hi=void 0!==ci&&ci,gi=S.selectedPreset,pi=S.handlePresetChange,fi=S.metricCardConfig,bi=S.kpiCtaConfig,yi=S.tableCtaConfig,mi=S.activeThreshold,xi=S.onThresholdViewChange,Ci=S.onAlertsClick,ki=S.showAlerts,ji=S.onAlertClose,wi=S.accessToken,_i=S.authBaseUrl,Di=S.layout,Fi=S.workingDaysOnly,Ai=void 0!==Fi&&Fi,Ii=S.kpiCardsCollapse,Si=S.dataAccessScope,Ti=null!==(P=null===(O=null===(R=null==qe?void 0:qe.data)||void 0===R?void 0:R.dateFilters)||void 0===O?void 0:O.datepresets)&&void 0!==P?P:[],Li=n.useMemo(function(){return Ti.map(function(e){return u.DATE_PRESET_MAP[e]}).filter(Boolean)},[JSON.stringify(Ti)]),Bi=n.useMemo(function(){return C.getActiveFilterCount(Qe)},[Qe]),Mi=n.useMemo(function(){var e,i;return(null!==(i=null===(e=null==qe?void 0:qe.data)||void 0===e?void 0:e.tableBuilder)&&void 0!==i?i:[]).filter(function(e){return"drilldown"!==e.showIn})},[null===(E=null==qe?void 0:qe.data)||void 0===E?void 0:E.tableBuilder]),qi=n.useMemo(function(){var e=null==ri?void 0:ri.spans;if(e)return Mi.map(function(i,n){return Array.isArray(e)?e[n]:e[i.key]})},[null==ri?void 0:ri.spans,Mi]),Ri=null===(V=null==qe?void 0:qe.data)||void 0===V?void 0:V.graphBuilder,Oi=null===(K=null==qe?void 0:qe.data)||void 0===K?void 0:K.insights,Pi=A.isInsightsOn(Oi)&&Boolean(Me),Ei=Pi?A.summaryCardConfig(null===(H=null==qe?void 0:qe.data)||void 0===H?void 0:H.decisionAdvantage):null,Vi=Pi?A.insightTabItems(null===(G=null==qe?void 0:qe.data)||void 0===G?void 0:G.decisionAdvantage):[],Ki=n.useState(null),Hi=Ki[0],Gi=Ki[1],Ni=n.useState(0),Wi=Ni[0],zi=Ni[1],Ui=n.useCallback(function(){Ke(),zi(function(e){return e+1})},[Ke]),Ji=n.useMemo(function(){var e,i,n,l,t,o,r=null!==(e=null==Ri?void 0:Ri.tiers)&&void 0!==e?e:[],a=null!==(i=r.find(function(e){return 1===Number(null==e?void 0:e.displayOrder)}))&&void 0!==i?i:r[0],d=null!==(n=null==a?void 0:a.series)&&void 0!==n?n:[];return null!==(o=null===(t=null!==(l=d.find(function(e){return"primary"===(null==e?void 0:e.kpiRole)}))&&void 0!==l?l:d[0])||void 0===t?void 0:t.key)&&void 0!==o?o:null},[Ri]),Yi=!m.isSectionHidden(di,"sidebarFilters"),Zi=n.useCallback(function(e){return Gi(e)},[]),Qi=n.useMemo(function(){var e;return _.resolveInsightsSidebarFilters(Qe,null===(e=null==qe?void 0:qe.data)||void 0===e?void 0:e.sidebarFilters).filters},[Qe,null===(N=null==qe?void 0:qe.data)||void 0===N?void 0:N.sidebarFilters]),Xi=JSON.stringify(Qi),$i=n.useMemo(function(){var e,i;if(!Pi)return[];var n=new Set;return(null!==(e=null==Ri?void 0:Ri.tiers)&&void 0!==e?e:[]).forEach(function(e){var i;return(null!==(i=null==e?void 0:e.series)&&void 0!==i?i:[]).forEach(function(e){return(null==e?void 0:e.key)&&n.add(e.key)})}),(null!==(i=null==Oi?void 0:Oi.kpis)&&void 0!==i?i:[]).map(function(e){return null==e?void 0:e.kpiId}).filter(function(e){return Boolean(e)&&n.has(e)}).slice(0,10)},[Pi,Oi,Ri]),en=A.useInsightsFetch($i.length?function(e){return I.fetchInsightsSeries({baseUrl:Be,configId:null!=Me?Me:"",accessToken:wi},{startDate:Pe,endDate:Ee,workingDaysOnly:Ai,filters:Qi},{kpiIds:$i},e)}:null,[Be,Me,wi,Pe.getTime(),Ee.getTime(),Ai,Xi,$i.join(","),Wi]),nn=function(e,i){var n,l,t=null===(n=en.data)||void 0===n?void 0:n.series.find(function(i){return i.kpiId===e&&"root"===i.nodeKey});if(t){var o=new Map(i.map(function(e){return[String(e.x).slice(0,10),e.x]})),r=null===(l=null==Oi?void 0:Oi.kpis)||void 0===l?void 0:l.find(function(i){return i.kpiId===e}),a=(null==r?void 0:r.label)||e;return t.points.flatMap(function(i){var n,l=null===(n=i.meta)||void 0===n?void 0:n.marker,t=o.get(i.x);if(!l||void 0===t)return[];var d="".concat(a," · ").concat(A.shortDay(i.x));return[{x:t,color:A.sentimentColor(l.direction,"down"===(null==r?void 0:r.goodDirection)?"down":"up"),label:[l.criticality,A.movementLabel(l.movementType),l.headline].filter(Boolean).join(" · "),onClick:function(){return Zi(l.reportId?{reportId:l.reportId,title:d}:{nodeKey:"root",kpiId:e,dataDay:i.x,title:d})}}]})}},ln=function(n,t){var o=t?function(e,i){var n=e-112-18*i-12*(i-1),l=Array.from({length:i},function(e,n){return 0===n&&i>1?6:5}),t=l.reduce(function(e,i){return e+i},0);return l.map(function(e){return Math.max(80,Math.floor(n*e/t))})}(t,n.length):void 0;return i.jsx(a.default,{loading:Oe,emptyState:null!=Xe?Xe:i.jsx(d.default,{}),title:null==Ri?void 0:Ri.title,description:null==Ri?void 0:Ri.subtitle,icon:i.jsx(l.ChartLine,{size:18}),xAxis:{label:(null==Ri?void 0:Ri.axis.xAxisLabel)||"Date"},style:{chartHeight:o?o[0]:220},scrollable:hi,panes:n.map(function(n,t){return function(n,t,o){var r,a,d,u,s,v,c=He[n.key]||(null===(r=n.plotOptions[0])||void 0===r?void 0:r.key),h=Re.graph.tier.find(function(e){return e.key===n.key}),g=(null===(a=null==h?void 0:h.referenceOptions)||void 0===a?void 0:a[c])||{},p=(null===(d=null==h?void 0:h.plotbyoptions)||void 0===d?void 0:d[c])||{},f=(null==n?void 0:n.series)||[],b=Object.keys(p),y=n.plotOptions.find(function(e){return e.value===c});return{key:n.key,selector:{label:"Plot By",value:c,onChange:function(e){Ge(n.key,e)},options:n.plotOptions.map(function(e){return{label:e.label,value:e.value}}),triggerIcon:i.jsx(l.ChartLine,{size:16,color:0===t?"green":"purple"})},yAxis:{label:null==y?void 0:y.yAxisLabel,beginAtZero:"false"!==(null==c?void 0:c.yAxisBeginAtZero)},tooltip:{formatHeading:function(e){return"".concat(e)}},legend:{position:(null===(u=null==Ri?void 0:Ri.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(s=null==Ri?void 0:Ri.legend)||void 0===s?void 0:s.allowToggle),align:(null===(v=null==Ri?void 0:Ri.legend)||void 0===v?void 0:v.alignment)||"center"},height:null!=o?o:0===t?300:250,series:b.map(function(i,n){var l,t,o,r,a=(null===(t=null===(l=null==h?void 0:h.plotbyoptions)||void 0===l?void 0:l[c])||void 0===t?void 0:t[i])||[],d=M[n%M.length],u=f.find(function(e){return e.key===i}),s=null===(r=null===(o=null==h?void 0:h.thresholds)||void 0===o?void 0:o[c])||void 0===r?void 0:r[null==u?void 0:u.key];return e.__assign(e.__assign(e.__assign({key:i,label:(null==u?void 0:u.name)||i,data:a,area:"yes"===(null==u?void 0:u.areaFill),curve:(null==u?void 0:u.curveType)||"linear",color:(null==u?void 0:u.color)?"#".concat(String(u.color).replace(/^#+/,"")):d,dashed:"dashed"===(null==u?void 0:u.style),strokeWidth:parseInt(null==u?void 0:u.strokeWidth)||2,showPoints:"yes"===(null==u?void 0:u.showPoints),kpiRole:null==u?void 0:u.kpiRole,pointRadius:parseInt(null==u?void 0:u.pointRadius)||3,showInLegend:!0},null!=(null==s?void 0:s.value)&&{threshold:s.value}),null!=(null==s?void 0:s.unit)&&{thresholdUnit:s.unit}),{markers:nn(i,a),valueFormatter:function(e){return"".concat(e)}})}),reference:g}}(n,t,null==o?void 0:o[t])}),activeThreshold:mi,onThresholdViewChange:xi})},tn=Ei?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(D.default,{})})):i.jsx("div",e.__assign({style:{padding:"4px"}},{children:ln(null!==(W=null==Ri?void 0:Ri.tiers)&&void 0!==W?W:[])})),on=function(e){var n,l,t,r=null===(n=null==Re?void 0:Re.kpiCards)||void 0===n?void 0:n[e.title],a=C.isKpiValueObject(r)?C.getKpiValueColor(r.currentValue,r.baselineValue,e.indicatorLogic):void 0,d=C.isKpiValueObject(r)?C.getKpiDelta(r.currentValue,r.baselineValue,e.indicatorLogic):void 0,u=null!==(l=e.ctaKey)&&void 0!==l?l:e.key,s=u?null==bi?void 0:bi[u]:void 0;return i.jsx(o.default,{title:e.title,subtitle:e.subtitle,value:C.formatKpiValue(r,e.valueFormat),valueColor:a,delta:d&&{label:d.label,direction:d.direction,color:a},icon:k.getKpiIcon(e.icon),loading:Oe,showDelta:null===(t=null==fi?void 0:fi.showDelta)||void 0===t||t,cta:{ctaEnabled:Boolean(e.showActionButton),ctaText:e.actionButtonLabel,ctaOnClick:function(){return null==s?void 0:s(e)}}},e.title)},rn=null!=Di?Di:!1===(null===(U=null===(z=null==qe?void 0:qe.data)||void 0===z?void 0:z.components)||void 0===U?void 0:U.gridDesign)||null===(J=null==qe?void 0:qe.data)||void 0===J?void 0:J.dashboardLayout,an=!0===(null==rn?void 0:rn.enabled),dn=function(e){var i,n,l,t;if(an){var o=null!==(i=null==rn?void 0:rn.items)&&void 0!==i?i:{},r=null!==(l=null===(n=o[e.title])||void 0===n?void 0:n.order)&&void 0!==l?l:e.key?null===(t=o[e.key])||void 0===t?void 0:t.order:void 0;return"number"==typeof r?r:void 0}},un=e.__spreadArray([],null!==(Z=null===(Y=null==qe?void 0:qe.data)||void 0===Y?void 0:Y.kpiCards)&&void 0!==Z?Z:[],!0).map(function(e,i){return{card:e,index:i,order:dn(e)}}).sort(function(e,i){var n,l;return null!=e.order&&null!=i.order?e.order-i.order||e.index-i.index:null!=e.order?-1:null!=i.order?1:(null!==(n=e.card.displayOrder)&&void 0!==n?n:0)-(null!==(l=i.card.displayOrder)&&void 0!==l?l:0)||e.index-i.index}).map(function(e){return e.card}),sn=n.useState(!1),vn=sn[0],cn=sn[1],hn=n.useRef(null),gn=n.useState(4),pn=gn[0],fn=gn[1];n.useEffect(function(){var e=hn.current;if(!an&&e){var i=function(){return fn(h.fallbackKpiColumns(e.getBoundingClientRect().width))};if(i(),"undefined"==typeof ResizeObserver)return window.addEventListener("resize",i),function(){return window.removeEventListener("resize",i)};var n=new ResizeObserver(i);return n.observe(e),function(){return n.disconnect()}}},[an,null==qe?void 0:qe.data]);var bn=h.kpiInitialCount(null!=Ii?Ii:null===(Q=null==qe?void 0:qe.data)||void 0===Q?void 0:Q.kpiCardsCollapse,Pi,rn,un,pn),yn=!1!==(null===($=null===(X=null==qe?void 0:qe.data)||void 0===X?void 0:X.components)||void 0===$?void 0:$.kpiCards)&&null!=bn&&un.length>bn,mn=yn&&!vn?un.slice(0,bn):un,xn=yn?i.jsx(B,{expanded:vn,hiddenCount:un.length-bn,onToggle:function(){return cn(function(e){return!e})}}):null,Cn=i.jsxs("div",e.__assign({style:{padding:"4px",display:"flex",flexDirection:"column",gap:14}},{children:[i.jsx("div",e.__assign({ref:hn,className:"dashboard-kpi-row",style:{display:"grid",gap:h.KPI_GAP,gridTemplateColumns:"repeat(".concat(Math.max(1,Math.min(pn,mn.length)),", minmax(0, 1fr))")}},{children:mn.map(on)})),xn]})),kn=function(n){var l,t,o,r=null!==(t=null===(l=null==Re?void 0:Re.table)||void 0===l?void 0:l[n.key])&&void 0!==t?t:[],a=null==ui?void 0:ui[n.key],d=!!(null==a?void 0:a.loaded),u=d?a.rows:r,v=!d&&n.rowLimit&&n.rowLimit>0?r.slice(0,n.rowLimit):u,c=null==oi?void 0:oi[n.key],h=y.buildColumns(n,c),g=null==c?void 0:c.card,p=null==g?void 0:g.icon,f=k.getKpiIcon(n.icon),b=f&&T.default.isValidElement(f)?T.default.cloneElement(f,e.__assign(e.__assign({},null!=(null==p?void 0:p.size)?{size:p.size}:{}),(null==p?void 0:p.color)?{color:p.color}:{})):f,m=p?e.__assign(e.__assign(e.__assign({width:"auto",height:"auto"},p.color?{color:p.color}:{}),p.background?{background:p.background,padding:6,borderRadius:8}:{}),p.style):void 0,x=null!==(o=n.ctaKey)&&void 0!==o?o:n.key,C=x?null==yi?void 0:yi[x]:void 0;return i.jsx(s.default,{title:n.title,icon:b,styles:{root:null==g?void 0:g.root,header:null==g?void 0:g.header,title:null==g?void 0:g.title,icon:m},cta:{ctaEnabled:Boolean(n.showActionButton),ctaText:n.actionButtonLabel,ctaOnClick:function(){return null==C?void 0:C(n)}},onExpand:function(e){return null==si?void 0:si(n.key,e)},table:{rows:y.withRowIds(v),columns:h,loading:Oe,loadingMore:null==a?void 0:a.loading,hasMore:null==a?void 0:a.hasMore,onLoadMore:a?function(){return null==vi?void 0:vi(n.key)}:void 0,tableProps:null==c?void 0:c.tableProps}},n.key)},jn=Mi.length>0?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(v.default,e.__assign({itemSpans:qi,totalColumns:null!==(ee=null==ri?void 0:ri.totalColumns)&&void 0!==ee?ee:12,defaultSpan:null==ri?void 0:ri.defaultSpan,options:null!==(ie=null==ri?void 0:ri.options)&&void 0!==ie?ie:[1,2,3],defaultColumns:null==ri?void 0:ri.defaultColumns,columns:null==ri?void 0:ri.columns,onColumnsChange:null==ri?void 0:ri.onColumnsChange,showToggle:(null===(ne=null==ri?void 0:ri.showToggle)||void 0===ne||ne)&&Mi.length>1,toggleLabel:null==ri?void 0:ri.toggleLabel,minColumnWidth:null!==(le=null==ri?void 0:ri.minColumnWidth)&&void 0!==le?le:380,gap:null!==(te=null==ri?void 0:ri.gap)&&void 0!==te?te:12,equalHeights:null===(oe=null==ri?void 0:ri.equalHeights)||void 0===oe||oe},{children:Mi.map(function(e){return kn(e)})}))})):null,wn=n.useRef(null);wn.current={kpi:function(e){return on(e)},graph:function(e,i){return ln(e,i.height)},table:function(e){return kn(e)},barChart:function(e,i){return Bn(e,i.height)},pieChart:function(e,i){return qn(e,i.height)},decision:function(){return i.jsx(D.default,{})},insightTabs:function(e){return i.jsx(F.default,{tabs:e,insightsConfig:Oi,onOpenFilters:Yi?We:void 0,activeFilterCount:Bi})}};var _n=n.useRef(null);_n.current=xn;var Dn=null==rn?void 0:rn.extraWidgets,Fn=n.useMemo(function(){if(!an)return[];var e={kpi:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).kpi.apply(e,i)},graph:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).graph.apply(e,i)},table:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).table.apply(e,i)},barChart:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).barChart.apply(e,i)},pieChart:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).pieChart.apply(e,i)},decision:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).decision.apply(e,i)},insightTabs:function(){for(var e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return(e=wn.current).insightTabs.apply(e,i)}},i=g.buildDashboardWidgets({uiData:null==qe?void 0:qe.data,renderers:e,extraWidgets:Dn});if(!yn)return i;var n={key:L,title:"View more KPIs",type:"control",defaultRowSpan:"fit",render:function(){return _n.current}},l=-1;return i.forEach(function(e,i){"kpi"===e.type&&(l=i)}),i.splice(l+1,0,n),i},[an,null==qe?void 0:qe.data,Dn,yn]),An=n.useMemo(function(){var i;if(!an||!rn)return rn;var n=Number(rn.columns)||3,l=e.__assign({},null!==(i=rn.items)&&void 0!==i?i:{}),t=function(i,n){var t;l[i]=e.__assign(e.__assign({},null!==(t=l[i])&&void 0!==t?t:{}),n)};if(Ei&&(t(g.DECISION_WIDGET_KEY,{colSpan:n,defaultHeight:!0,newRow:!0,endRow:!0}),t(g.GRAPH_WIDGET_KEY,{hidden:!0})),yn){un.forEach(function(e,i){var n;!vn&&i>=bn&&t("kpi:".concat(null!==(n=e.key)&&void 0!==n?n:e.title),{hidden:!0})});var o=mn.map(dn).filter(function(e){return"number"==typeof e});t(L,e.__assign({colSpan:n,defaultHeight:!0,newRow:!0,endRow:!0},o.length?{order:Math.max.apply(Math,o)+.5}:{}))}return e.__assign(e.__assign({},rn),{items:l})},[an,rn,Ei,yn,vn,bn,un.map(function(e){return e.title}).join("|")]),In=null!==(ue=null!==(ae=null===(re=null==qe?void 0:qe.data)||void 0===re?void 0:re.barCharts)&&void 0!==ae?ae:null===(de=null==qe?void 0:qe.data)||void 0===de?void 0:de.barChartBuilder)&&void 0!==ue?ue:[],Sn=null!==(he=null!==(ve=null===(se=null==qe?void 0:qe.data)||void 0===se?void 0:se.pieCharts)&&void 0!==ve?ve:null===(ce=null==qe?void 0:qe.data)||void 0===ce?void 0:ce.pieChartBuilder)&&void 0!==he?he:[],Tn={display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(380px, 1fr))",gap:12,alignItems:"start"},Ln=function(e,i){var n,l;return(null!==(n=e.displayOrder)&&void 0!==n?n:0)-(null!==(l=i.displayOrder)&&void 0!==l?l:0)},Bn=function(e,n){var l,t,o,r,a,d,u,s,v,c,h=x.limitChartData(x.toChartData(null===(l=null==Re?void 0:Re.barChart)||void 0===l?void 0:l[e.key],e.columnName),e);return i.jsx(p.default,{data:h,title:e.title,description:e.subtitle||void 0,icon:k.getKpiIcon(null!==(t=e.icon)&&void 0!==t?t:void 0),color:null!==(o=e.color)&&void 0!==o?o:void 0,shadeMode:null!==(r=e.shadeMode)&&void 0!==r?r:void 0,xAxisLabel:(null===(a=e.axis)||void 0===a?void 0:a.xAxisLabel)||void 0,yAxisLabel:(null===(d=e.axis)||void 0===d?void 0:d.yAxisLabel)||void 0,yAxis:{max:null!==(s=null===(u=e.axis)||void 0===u?void 0:u.maxValue)&&void 0!==s?s:void 0},legend:{show:"yes"===e.showLegends},config:{showValueLabels:"yes"===e.showValueLabels,orientation:null!==(v=e.orientation)&&void 0!==v?v:void 0,sortBy:null!==(c=e.sortBy)&&void 0!==c?c:void 0},valueFormatter:function(i){return x.formatChartValue(i,e.valueFormat)},style:{chartHeight:q(n,300),autoHeight:!n},loading:Oe},e.key)},Mn=In.length>0?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx("div",e.__assign({style:Tn},{children:e.__spreadArray([],In,!0).sort(Ln).map(function(e){return Bn(e)})}))})):null,qn=function(e,n){var l,t,o,r,a,d,u,s,v,c,h,g=x.limitChartData(x.toChartData(null===(l=null==Re?void 0:Re.pieChart)||void 0===l?void 0:l[e.key],e.columnName),e);return i.jsx(f.default,{data:g,title:e.title,description:e.subtitle||void 0,icon:k.getKpiIcon(null!==(t=e.icon)&&void 0!==t?t:void 0),color:null!==(o=e.color)&&void 0!==o?o:void 0,shadeMode:null!==(r=e.shadeMode)&&void 0!==r?r:void 0,config:{variant:null!==(a=e.variant)&&void 0!==a?a:void 0,sortBy:null!==(d=e.sortBy)&&void 0!==d?d:void 0},center:{show:"no"!==e.showCenterTotal,label:e.centerLabel||void 0},legend:{show:"no"!==(null===(u=e.legend)||void 0===u?void 0:u.showLegends),position:null!==(v=null===(s=e.legend)||void 0===s?void 0:s.position)&&void 0!==v?v:void 0,showValue:"no"!==(null===(c=e.legend)||void 0===c?void 0:c.showValue),showPercent:"no"!==(null===(h=e.legend)||void 0===h?void 0:h.showPercent)},valueFormatter:function(i){return x.formatChartValue(i,e.valueFormat)},style:{chartHeight:q(n,260)},loading:Oe},e.key)},Rn=Sn.length>0?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx("div",e.__assign({style:Tn},{children:e.__spreadArray([],Sn,!0).sort(Ln).map(function(e){return qn(e)})}))})):null,On={graphBuilder:tn,kpiCards:Cn,decisionAdvantage:Vi.length?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(F.default,{tabs:Vi,insightsConfig:Oi,onOpenFilters:Yi?We:void 0,activeFilterCount:Bi})})):null,barCharts:Mn,pieCharts:Rn,tableBuilder:jn},Pn=m.resolveSectionOrder(ai,di,null===(ge=null==qe?void 0:qe.data)||void 0===ge?void 0:ge.sectionOrder,Object.keys(On)),En=m.isSectionHidden(di,"dateFilters"),Vn=m.isSectionHidden(di,"sidebarFilters");if(ki)return i.jsx(i.Fragment,{children:i.jsx(j.AlertsViewTrigger,{baseUrl:Be||"",authBaseUrl:_i||"",configId:Me,onClose:function(){return null==ji?void 0:ji(!1)},uiConfig:qe,accessToken:wi})});var Kn=i.jsx(i.Fragment,{children:i.jsxs("div",e.__assign({className:Pi?"ins-dashboard":void 0,style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!En&&i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(t.default,{filterCount:Bi,initialStartDate:Pe,initialEndDate:Ee,onDateChange:Ve,onRefresh:Ui,isRefreshLoading:Oe,onFilterClick:We,presets:Li,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:Pe,maxDate:new Date}},defaultPresets:null===(pe=null==qe?void 0:qe.data)||void 0===pe?void 0:pe.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(be=null===(fe=null==qe?void 0:qe.data)||void 0===fe?void 0:fe.dateFilters)||void 0===be?void 0:be.showLiveButton),showFilterButton:!Vn&&"yes"===(null===(me=null===(ye=null==qe?void 0:qe.data)||void 0===ye?void 0:ye.dateFilters)||void 0===me?void 0:me.showFilterButton),showFilterCount:!Vn&&"yes"===(null===(Ce=null===(xe=null==qe?void 0:qe.data)||void 0===xe?void 0:xe.dateFilters)||void 0===Ce?void 0:Ce.showFilterCount),liveDuration:null===(je=null===(ke=null==qe?void 0:qe.data)||void 0===ke?void 0:ke.dateFilters)||void 0===je?void 0:je.liveDurationMs,pollingEnabled:hi,selectedPreset:gi,handlePresetChange:pi,showAlertsBtn:"yes"===(null===(_e=null===(we=null==qe?void 0:qe.data)||void 0===we?void 0:we.dateFilters)||void 0===_e?void 0:_e.showAlertButton),onAlertsClick:Ci})})),!m.isSectionHidden(di,"dataAccessScope")&&b.restrictingGrants(Si).length>0&&i.jsx("div",e.__assign({style:{padding:"0 4px"}},{children:i.jsx(b.DataAccessScopeChip,{scope:Si})})),an?i.jsx("div",e.__assign({style:{padding:"4px"}},{children:i.jsx(c.default,{widgets:Fn,config:An})})):Pn.map(function(e){return i.jsx(T.default.Fragment,{children:On[e]},e)}),!Vn&&i.jsx(r.default,{visible:Ne,onHide:ze,onReset:Ye,onApply:Ze,fields:null!==(Ae=null===(Fe=null===(De=null==qe?void 0:qe.data)||void 0===De?void 0:De.sidebarFilters)||void 0===Fe?void 0:Fe.map(function(e){var i,n,l,t,o=e.schemaFilterName,r="Single select"===e.type?"singleSelect":"Multi select"===e.type?"multiSelect":"Date Range"===e.type?"dateRange":"Date"===e.type?"date":"text",a=null!==(n=null===(i=e.options)||void 0===i?void 0:i.map(function(e){return{label:e,value:e}}))&&void 0!==n?n:[];return{id:o,label:e.label,hint:e.description,type:r,placeholder:e.placeholder,options:a,fixed:!0===e.fixed,fixedValue:e.fixedValue,value:"multiSelect"===r?null!==(l=Ue[o])&&void 0!==l?l:[]:null!==(t=Ue[o])&&void 0!==t?t:"",onChange:function(e){return Je(o,e)}}}))&&void 0!==Ae?Ae:[]})]}))});return Pi?i.jsx(w.InsightsProvider,e.__assign({baseUrl:Be,configId:Me,accessToken:wi,startDate:Pe,endDate:Ee,workingDaysOnly:Ai,filtersActive:Bi>0,insights:Oi,decisionAdvantage:null===(Ie=null==qe?void 0:qe.data)||void 0===Ie?void 0:Ie.decisionAdvantage,insightsDrill:$e,insightsLabels:ei,renderInsightsCell:ii,sidebarFilters:Qe,sidebarFilterConfig:null===(Se=null==qe?void 0:qe.data)||void 0===Se?void 0:Se.sidebarFilters,tableBuilder:null===(Te=null==qe?void 0:qe.data)||void 0===Te?void 0:Te.tableBuilder,approvedApiHosts:ni,actionHandlers:li,cellRenderers:ti,tables:oi,headlineKpiId:Ji,defaultWorkingDays:"workdays"===(null===(Le=null==Ri?void 0:Ri.dayFilter)||void 0===Le?void 0:Le.defaultView),reportTarget:Hi,onReportTargetChange:Zi,refreshRevision:Wi},{children:Kn})):Kn}exports.ExecutiveDashboard=R,exports.default=R;
2
2
  //# sourceMappingURL=ExecutiveDashboard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),i=require("primereact/sidebar"),s=require("primereact/button");require("primereact/resources/themes/lara-light-indigo/theme.css"),require("primereact/resources/primereact.min.css"),require("primeicons/primeicons.css");var n=require("../DatePickers/DateRangeSelector.js"),a=require("../DropDowns/CustomMultiSelect.js"),t=require("../DatePickers/DateSelector.js"),o=require("./CustomTextInput.js"),r=require("../DropDowns/CustomSingleSelect.js");exports.default=function(d){var u=d.visible,c=d.onHide,v=d.fields,g=void 0===v?[]:v,p=d.onReset,h=d.onApply,m=d.title;return l.jsxs(i.Sidebar,e.__assign({visible:u,position:"right",onHide:c,dismissable:!1,showCloseIcon:!0,modal:!0,className:"log-filterSidebar",header:l.jsx("div",e.__assign({className:"log-filterTitle"},{children:null!=m?m:"Filter By"}))},{children:[l.jsx("div",e.__assign({className:"log-filterBody"},{children:null==g?void 0:g.map(function(i){var s,d,u;return l.jsxs("div",e.__assign({className:"log-filterBlock"},{children:[l.jsx("div",e.__assign({className:"log-filterLabel"},{children:i.label})),i.hint&&l.jsx("div",e.__assign({className:"log-filterHint"},{children:i.hint})),l.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:(null==i?void 0:i.loading)?l.jsx("div",e.__assign({className:"log-filterEmpty"},{children:"Loading..."})):l.jsxs(l.Fragment,{children:["text"===i.type&&l.jsx(o.default,{value:null==i?void 0:i.value,placeholder:(null==i?void 0:i.placeholder)||"Enter the value..",disabled:null==i?void 0:i.disabled,onChange:null==i?void 0:i.onChange}),"singleSelect"===i.type&&l.jsx(r.default,{value:null==i?void 0:i.value,options:null!==(s=null==i?void 0:i.options)&&void 0!==s?s:[],placeholder:null==i?void 0:i.placeholder,disabled:null==i?void 0:i.disabled,onChange:null==i?void 0:i.onChange}),"multiSelect"===i.type&&l.jsx(a.default,{options:null!==(d=null==i?void 0:i.options)&&void 0!==d?d:[],value:null!==(u=null==i?void 0:i.value)&&void 0!==u?u:[],onChange:null==i?void 0:i.onChange,selectAllLabel:null==i?void 0:i.selectAllLabel}),"date"===i.type&&l.jsx(t.default,{value:null==i?void 0:i.value,onChange:null==i?void 0:i.onChange,styles:{root:{padding:0},trigger:{height:"40px"}}}),"dateRange"===i.type&&l.jsx(n.default,{value:null==i?void 0:i.value,onChange:null==i?void 0:i.onChange,endIcon:!0})]})}))]}),i.id)})})),l.jsxs("div",e.__assign({className:"log-filterFooter"},{children:[l.jsx(s.Button,{label:"Reset Filter",className:"p-button-outlined log-btnReset",onClick:p}),l.jsx(s.Button,{label:"Apply Filter",className:"log-btnApply",onClick:h})]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),i=require("primereact/sidebar"),s=require("primereact/button");require("primereact/resources/themes/lara-light-indigo/theme.css"),require("primereact/resources/primereact.min.css"),require("primeicons/primeicons.css");var n=require("../DatePickers/DateRangeSelector.js"),a=require("../DropDowns/CustomMultiSelect.js"),r=require("../DatePickers/DateSelector.js"),o=require("./CustomTextInput.js"),t=require("../DropDowns/CustomSingleSelect.js");exports.default=function(d){var u=d.visible,c=d.onHide,v=d.fields,g=void 0===v?[]:v,p=d.onReset,h=d.onApply,m=d.title;return l.jsxs(i.Sidebar,e.__assign({visible:u,position:"right",onHide:c,dismissable:!1,showCloseIcon:!0,modal:!0,blockScroll:!0,className:"log-filterSidebar",header:l.jsx("div",e.__assign({className:"log-filterTitle"},{children:null!=m?m:"Filter By"}))},{children:[l.jsx("div",e.__assign({className:"log-filterBody"},{children:null==g?void 0:g.map(function(i){var s,d,u;return l.jsxs("div",e.__assign({className:"log-filterBlock"},{children:[l.jsx("div",e.__assign({className:"log-filterLabel"},{children:i.label})),i.hint&&l.jsx("div",e.__assign({className:"log-filterHint"},{children:i.hint})),l.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:(null==i?void 0:i.fixed)?l.jsxs(l.Fragment,{children:[l.jsxs("div",e.__assign({className:"log-filterFixed"},{children:[l.jsx("i",{className:"pi pi-lock","aria-hidden":"true"}),l.jsx("span",{children:i.fixedValue})]})),l.jsx("div",e.__assign({className:"log-filterFixedNote"},{children:"Set by your data access"}))]}):(null==i?void 0:i.loading)?l.jsx("div",e.__assign({className:"log-filterEmpty"},{children:"Loading..."})):l.jsxs(l.Fragment,{children:["text"===i.type&&l.jsx(o.default,{value:null==i?void 0:i.value,placeholder:(null==i?void 0:i.placeholder)||"Enter the value..",disabled:null==i?void 0:i.disabled,onChange:null==i?void 0:i.onChange}),"singleSelect"===i.type&&l.jsx(t.default,{value:null==i?void 0:i.value,options:null!==(s=null==i?void 0:i.options)&&void 0!==s?s:[],placeholder:null==i?void 0:i.placeholder,disabled:null==i?void 0:i.disabled,onChange:null==i?void 0:i.onChange}),"multiSelect"===i.type&&l.jsx(a.default,{options:null!==(d=null==i?void 0:i.options)&&void 0!==d?d:[],value:null!==(u=null==i?void 0:i.value)&&void 0!==u?u:[],onChange:null==i?void 0:i.onChange,selectAllLabel:null==i?void 0:i.selectAllLabel}),"date"===i.type&&l.jsx(r.default,{value:null==i?void 0:i.value,onChange:null==i?void 0:i.onChange,styles:{root:{padding:0},trigger:{height:"40px"}}}),"dateRange"===i.type&&l.jsx(n.default,{value:null==i?void 0:i.value,onChange:null==i?void 0:i.onChange,endIcon:!0})]})}))]}),i.id)})})),l.jsxs("div",e.__assign({className:"log-filterFooter"},{children:[l.jsx(s.Button,{label:"Reset Filter",className:"p-button-outlined log-btnReset",onClick:p}),l.jsx(s.Button,{label:"Apply Filter",className:"log-btnApply",onClick:h})]}))]}))};
2
2
  //# sourceMappingURL=FiltersSidebar.js.map
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ExecutiveDashboard/ExecutiveDashboardWrapper.js"),r=require("./ExecutiveDashboard/components/ExecutiveDashboard.js"),t=require("./ExecutiveDashboard/api/dashboardApi.js"),o=require("./ExecutiveDashboard/utils/sectionOrder.js"),a=require("./ExecutiveDashboard/components/DashboardGrid/DashboardGrid.js"),s=require("./ExecutiveDashboard/components/DashboardGrid/layout.js"),i=require("./ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js"),n=require("./ExecutiveDashboard/components/Graph/Graph.js"),d=require("./ExecutiveDashboard/components/Graph/LineChart.js"),p=require("./ExecutiveDashboard/components/Graph/PlotBySelector.js"),c=require("./ExecutiveDashboard/components/Graph/types.js"),l=require("./ExecutiveDashboard/components/ui/chart.js"),h=require("./ExecutiveDashboard/components/BarChart/BarChart.js"),u=require("./ExecutiveDashboard/components/BarChart/BarChartSkeleton.js"),C=require("./ExecutiveDashboard/components/BarChart/BarChartEmptyState.js"),D=require("./ExecutiveDashboard/components/BarChart/BarChartTooltip.js"),x=require("./ExecutiveDashboard/components/BarChart/utils.js"),R=require("./ExecutiveDashboard/components/BarChart/types.js"),b=require("./ExecutiveDashboard/components/PieChart/PieChart.js"),E=require("./ExecutiveDashboard/components/PieChart/PieChartSkeleton.js"),m=require("./ExecutiveDashboard/components/PieChart/PieChartEmptyState.js"),T=require("./ExecutiveDashboard/components/PieChart/PieChartTooltip.js"),S=require("./ExecutiveDashboard/components/PieChart/utils.js"),g=require("./ExecutiveDashboard/components/PieChart/types.js"),I=require("./ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js"),v=require("./ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js"),O=require("./ExecutiveDashboard/components/TopDriver/TopDriver.js"),_=require("./ExecutiveDashboard/components/Insights/InsightsContext.js"),f=require("./ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js"),j=require("./ExecutiveDashboard/components/Insights/InsightTabs.js"),q=require("./ExecutiveDashboard/components/Insights/L1Report.js"),A=require("./ExecutiveDashboard/components/Insights/DrillTable.js"),L=require("./ExecutiveDashboard/components/Insights/RowDetail.js"),P=require("./ExecutiveDashboard/components/Insights/AgReport.js"),F=require("./ExecutiveDashboard/api/insightsApi.js"),G=require("./ExecutiveDashboard/components/MetricCard/MetricCard.js"),H=require("./ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js"),y=require("./ExecutiveDashboard/components/Table/FTable.js"),N=require("./ExecutiveDashboard/components/Table/TableCard.js"),K=require("./ExecutiveDashboard/components/Table/TableGrid/TableGrid.js"),M=require("./ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.js"),U=require("./ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.js"),B=require("./ExecutiveDashboard/utils/chartCards.js"),W=require("./ExecutiveDashboard/utils/index.js"),w=require("./ExecutiveDashboard/components/DashboardDateFilter/datePreset.js"),V=require("./ExecutiveDashboard/components/DashboardCard/DashboardCard.js"),Y=require("./ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.js"),k=require("./ExecutiveDashboard/components/common/ConfirmationModal.js"),X=require("./ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.js"),J=require("./ExecutiveDashboard/components/TablePage/TablePage.js"),z=require("./HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js"),Q=require("./HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js"),Z=require("./HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js"),$=require("./HumanIntelligence/components/PatternDetails/PatternDetails.js"),ee=require("./HumanIntelligence/components/CitationContent/CitationContent.js"),re=require("./HumanIntelligence/components/Shared/ReusableTable.js"),te=require("./HumanIntelligence/components/LogFilters/LogFilters.js"),oe=require("./HumanIntelligence/components/LogFilters/LogFilterDropdown.js"),ae=require("./HumanIntelligence/components/LogTable/LogTable.js"),se=require("./HumanIntelligence/HumanChangesTableWrapper.js");require("./_virtual/_tslib.js"),require("react");var ie=require("./RecordDashboard/RecordDashboardWrapper.js"),ne=require("./RecordDashboard/RecordComponents/RecordDashboard.js"),de=require("./RecordDashboard/RecordApi/RecordDashboardApi.js"),pe=require("./RecordDashboard/RecordUtils/RecordSectionOrder.js"),ce=require("./RecordDashboard/RecordComponents/Graph/RecordGraph.js"),le=require("./RecordDashboard/RecordComponents/Graph/RecordLineChart.js"),he=require("./RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.js"),ue=require("./RecordDashboard/RecordComponents/Graph/types.js"),Ce=require("./RecordDashboard/RecordComponents/ui/RecordChart.js"),De=require("./RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.js"),xe=require("./RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.js"),Re=require("./RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.js"),be=require("./RecordDashboard/RecordComponents/Table/RecordFTable.js"),Ee=require("./RecordDashboard/RecordComponents/Table/RecordTableActionContext.js"),me=require("./RecordDashboard/RecordComponents/Table/RecordTableCard.js"),Te=require("./RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.js"),Se=require("./RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.js"),ge=require("./RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.js"),Ie=require("./RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js"),ve=require("./RecordDashboard/RecordComponents/TableHeader/TableHeader.js"),Oe=require("./RecordDashboard/RecordComponents/Table/Pagination/TablePagination.js"),_e=require("./RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.js"),fe=require("./RecordDashboard/RecordUtils/RecordTableColumns.js"),je=require("./RecordDashboard/RecordUtils/index.js"),qe=require("./RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.js"),Ae=require("./RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.js"),Le=require("./ExecutiveDashboard/components/Insights/insightsContextCore.js");exports.ExecutiveDashboardWrapper=e.ExecutiveDashboardWrapper,exports.ExecutiveDashboard_Container=e.ExecutiveDashboardWrapper,exports.ExecutiveDashboard=r.ExecutiveDashboard,exports.DashboardApiError=t.DashboardApiError,exports.fetchDashboardData=t.fetchDashboardData,exports.fetchTableData=t.fetchTableData,exports.fetchUIConfig=t.fetchUIConfig,exports.DASHBOARD_SECTION_KEYS=o.DASHBOARD_SECTION_KEYS,exports.PINNED_SECTION_KEYS=o.PINNED_SECTION_KEYS,exports.isSectionHidden=o.isSectionHidden,exports.resolveSectionOrder=o.resolveSectionOrder,exports.DashboardGrid=a.default,exports.DEFAULT_COLUMNS=s.DEFAULT_COLUMNS,exports.DEFAULT_GAP=s.DEFAULT_GAP,exports.DEFAULT_MIN_WIDTH=s.DEFAULT_MIN_WIDTH,exports.DEFAULT_ROW_HEIGHT=s.DEFAULT_ROW_HEIGHT,exports.MAX_COLUMNS=s.MAX_COLUMNS,exports.MAX_ROW_SPAN=s.MAX_ROW_SPAN,exports.buildWidgetIndex=s.buildWidgetIndex,exports.cellHeight=s.cellHeight,exports.packLayout=s.packLayout,exports.placeItems=s.placeItems,exports.resolveLayout=s.resolveLayout,exports.DECISION_WIDGET_KEY=i.DECISION_WIDGET_KEY,exports.GRAPH_WIDGET_KEY=i.GRAPH_WIDGET_KEY,exports.INSIGHT_TABS_WIDGET_KEY=i.INSIGHT_TABS_WIDGET_KEY,exports.buildDashboardWidgets=i.buildDashboardWidgets,exports.Graph=n.default,exports.LineChart=d.default,exports.PlotBySelector=p.default,exports.DEFAULT_COLORS=c.DEFAULT_COLORS,exports.colorForIndex=c.colorForIndex,exports.ChartContainer=l.ChartContainer,exports.ChartLegend=l.ChartLegend,exports.ChartLegendContent=l.ChartLegendContent,exports.ChartTooltip=l.ChartTooltip,exports.ChartTooltipContent=l.ChartTooltipContent,exports.useChart=l.useChart,exports.BarChart=h.default,exports.BarChartSkeleton=u.default,exports.BarChartEmptyState=C.default,exports.BarChartTooltip=D.default,exports.darken=x.darken,exports.parseColor=x.parseColor,exports.resolveBarColors=x.resolveBarColors,exports.sumValues=x.sumValues,exports.toBarChartData=x.toBarChartData,exports.withAlpha=x.withAlpha,exports.withIntensity=x.withIntensity,exports.wrapLabel=x.wrapLabel,exports.DEFAULT_BAR_COLOR=R.DEFAULT_BAR_COLOR,exports.PieChart=b.default,exports.PieChartSkeleton=E.default,exports.PieChartEmptyState=m.default,exports.PieChartTooltip=T.default,exports.groupTopSlices=S.groupTopSlices,exports.isPlottableSlice=S.isPlottableSlice,exports.percentOf=S.percentOf,exports.resolveSliceColors=S.resolveSliceColors,exports.sumSlices=S.sumSlices,exports.toPieChartData=S.toPieChartData,exports.DEFAULT_PIE_COLOR=g.DEFAULT_PIE_COLOR,exports.DashboardDateFilter=I.default,exports.RcaDecisionComponent=v.RcaDecisionComponent,exports.TopDriver=O.TopDriver,exports.InsightsProvider=_.InsightsProvider,exports.DecisionAdvantageCard=f.default,exports.InsightTabs=j.default,exports.L1Report=q.default,exports.L1ReportModal=q.L1ReportModal,exports.DrillTable=A.default,exports.RowDetail=L.default,exports.CorrelationSection=P.CorrelationSection,exports.TopDriversSection=P.TopDriversSection,exports.InsightsApiError=F.InsightsApiError,exports.decideObservation=F.decideObservation,exports.deleteReportComment=F.deleteReportComment,exports.fetchHierarchy=F.fetchHierarchy,exports.fetchInsightsCorrelation=F.fetchInsightsCorrelation,exports.fetchInsightsCorrelationTrend=F.fetchInsightsCorrelationTrend,exports.fetchInsightsDrivers=F.fetchInsightsDrivers,exports.fetchInsightsJob=F.fetchInsightsJob,exports.fetchInsightsReport=F.fetchInsightsReport,exports.fetchInsightsReports=F.fetchInsightsReports,exports.fetchInsightsSeries=F.fetchInsightsSeries,exports.fetchInsightsSummary=F.fetchInsightsSummary,exports.fetchLevelRows=F.fetchLevelRows,exports.fetchLevelSummary=F.fetchLevelSummary,exports.fetchNeedsAttention=F.fetchNeedsAttention,exports.fetchObservation=F.fetchObservation,exports.fetchObservations=F.fetchObservations,exports.fetchReportComments=F.fetchReportComments,exports.fetchRowDetail=F.fetchRowDetail,exports.fetchRowReport=F.fetchRowReport,exports.generateInsightsReport=F.generateInsightsReport,exports.postReportComment=F.postReportComment,exports.saveInsightsAction=F.saveInsightsAction,exports.MetricCard=G.default,exports.FiltersSidebar=H.default,exports.FTable=y.default,exports.TableCard=N.default,exports.TableGrid=K.default,exports.TableLayoutToggle=M.default,exports.useResponsiveColumns=U.useResponsiveColumns,exports.formatChartValue=B.formatChartValue,exports.limitChartData=B.limitChartData,exports.toChartData=B.toChartData,exports.KPI_SENTIMENT_COLORS=W.KPI_SENTIMENT_COLORS,exports.formatKpiValue=W.formatKpiValue,exports.getKpiDelta=W.getKpiDelta,exports.getKpiSentiment=W.getKpiSentiment,exports.getKpiValueColor=W.getKpiValueColor,exports.isKpiValueObject=W.isKpiValueObject,exports.DATE_PRESETS=w.DATE_PRESETS,exports.DATE_PRESET_MAP=w.DATE_PRESET_MAP,exports.DEFAULT_DATE_PRESETS=w.DEFAULT_DATE_PRESETS,exports.DashboardCard=V.DashboardCard,exports.ReportSidebar=Y.default,exports.ConfirmationModal=k.default,exports.CreateSubscriptionModal=X.default,exports.TablePage=J.default,exports.HumanChangesSummary=z.HumanChangesSummary,exports.HumanIntelligenceCard=Q.HumanIntelligenceCard,exports.CognitiveDecisioning=Z.CognitiveDecisioning,exports.PatternDetails=$.PatternDetails,exports.CitationContent=ee.CitationContent,exports.ReusableTable=re.ReusableTable,exports.LogFilters=te.default,exports.LogFilterDropdown=oe.default,exports.LogTable=ae.default,exports.HumanChangesTableWrapper=se.default,exports.RecordDashboardWrapper=ie.RecordDashboardWrapper,exports.RecordDashboard_Container=ie.RecordDashboardWrapper,exports.RecordDashboard=ne.RecordDashboard,exports.RECODashboardApiError=de.RECODashboardApiError,exports.RecordFetchDashboardData=de.RecordFetchDashboardData,exports.RecordFetchTableData=de.RecordFetchTableData,exports.RecordFetchUIConfig=de.RecordFetchUIConfig,exports.RECOIsSectionHidden=pe.RECOIsSectionHidden,exports.RECORD_DASHBOARD_SECTION_KEYS=pe.RECORD_DASHBOARD_SECTION_KEYS,exports.RECORD_PINNED_SECTION_KEYS=pe.RECORD_PINNED_SECTION_KEYS,exports.RECOResolveSectionOrder=pe.RECOResolveSectionOrder,exports.RecordGraph=ce.default,exports.RecordLineChart=le.default,exports.RecordPlotBySelector=he.default,exports.RECOColorForIndex=ue.RECOColorForIndex,exports.RECODEFAULT_COLORS=ue.RECODEFAULT_COLORS,exports.RECOChartLegend=Ce.RECOChartLegend,exports.RECOChartLegendContent=Ce.RECOChartLegendContent,exports.RECOChartTooltip=Ce.RECOChartTooltip,exports.RECOChartTooltipContent=Ce.RECOChartTooltipContent,exports.RecordChartContainer=Ce.RecordChartContainer,exports.useRecordChart=Ce.useRecordChart,exports.RecordDashboardDateFilter=De.default,exports.RecordMetricCard=xe.default,exports.RecordFiltersSidebar=Re.default,exports.RecordSidebarFilter=Re.default,exports.RecordFTable=be.default,exports.useRecordTableActions=Ee.useRecordTableActions,exports.RecordTableCard=me.default,exports.RecordTableGrid=Te.default,exports.RecordTableLayoutToggle=Se.default,exports.useResponsiveRecordColumns=ge.useRecordResponsiveColumns,exports.RecordAnalyticsChart=Ie.default,exports.RecordTableHeader=ve.default,exports.RecordTablePagination=Oe.default,exports.RecordDashboardStats=_e.default,exports.RECORenderDynamicCell=fe.RECORenderDynamicCell,exports.RECOFormatKpiValue=je.RECOFormatKpiValue,exports.RECOGetKpiDelta=je.RECOGetKpiDelta,exports.RECOGetKpiSentiment=je.RECOGetKpiSentiment,exports.RECOGetKpiValueColor=je.RECOGetKpiValueColor,exports.RECOIsKpiValueObject=je.RECOIsKpiValueObject,exports.RECO_SENTIMENT_COLORS=je.RECO_SENTIMENT_COLORS,exports.RECO_DATE_PRESETS=qe.RECO_DATE_PRESETS,exports.RECO_DATE_PRESET_MAP=qe.RECO_DATE_PRESET_MAP,exports.RECO_DEFAULT_DATE_PRESETS=qe.RECO_DEFAULT_DATE_PRESETS,exports.RecordDashboardCard=Ae.RecordDashboardCard,exports.useInsights=Le.useInsights;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ExecutiveDashboard/ExecutiveDashboardWrapper.js"),r=require("./ExecutiveDashboard/components/ExecutiveDashboard.js"),t=require("./ExecutiveDashboard/api/dashboardApi.js"),o=require("./ExecutiveDashboard/components/DataAccess/DataAccessMessage.js"),a=require("./ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js"),s=require("./ExecutiveDashboard/utils/sectionOrder.js"),i=require("./ExecutiveDashboard/components/DashboardGrid/DashboardGrid.js"),n=require("./ExecutiveDashboard/components/DashboardGrid/layout.js"),p=require("./ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js"),d=require("./ExecutiveDashboard/components/Graph/Graph.js"),c=require("./ExecutiveDashboard/components/Graph/LineChart.js"),h=require("./ExecutiveDashboard/components/Graph/PlotBySelector.js"),l=require("./ExecutiveDashboard/components/Graph/types.js"),u=require("./ExecutiveDashboard/components/ui/chart.js"),C=require("./ExecutiveDashboard/components/BarChart/BarChart.js"),D=require("./ExecutiveDashboard/components/BarChart/BarChartSkeleton.js"),x=require("./ExecutiveDashboard/components/BarChart/BarChartEmptyState.js"),R=require("./ExecutiveDashboard/components/BarChart/BarChartTooltip.js"),b=require("./ExecutiveDashboard/components/BarChart/utils.js"),E=require("./ExecutiveDashboard/components/BarChart/types.js"),m=require("./ExecutiveDashboard/components/PieChart/PieChart.js"),T=require("./ExecutiveDashboard/components/PieChart/PieChartSkeleton.js"),S=require("./ExecutiveDashboard/components/PieChart/PieChartEmptyState.js"),g=require("./ExecutiveDashboard/components/PieChart/PieChartTooltip.js"),v=require("./ExecutiveDashboard/components/PieChart/utils.js"),I=require("./ExecutiveDashboard/components/PieChart/types.js"),O=require("./ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js"),_=require("./ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js"),f=require("./ExecutiveDashboard/components/TopDriver/TopDriver.js"),j=require("./ExecutiveDashboard/components/Insights/InsightsContext.js"),A=require("./ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js"),q=require("./ExecutiveDashboard/components/Insights/InsightTabs.js"),L=require("./ExecutiveDashboard/components/Insights/L1Report.js"),P=require("./ExecutiveDashboard/components/Insights/DrillTable.js"),F=require("./ExecutiveDashboard/components/Insights/RowDetail.js"),G=require("./ExecutiveDashboard/components/Insights/AgReport.js"),H=require("./ExecutiveDashboard/api/insightsApi.js"),y=require("./ExecutiveDashboard/components/MetricCard/MetricCard.js"),N=require("./ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js"),K=require("./ExecutiveDashboard/components/Table/FTable.js"),M=require("./ExecutiveDashboard/components/Table/TableCard.js"),U=require("./ExecutiveDashboard/components/Table/TableGrid/TableGrid.js"),B=require("./ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.js"),W=require("./ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.js"),w=require("./ExecutiveDashboard/utils/chartCards.js"),V=require("./ExecutiveDashboard/utils/index.js"),Y=require("./ExecutiveDashboard/components/DashboardDateFilter/datePreset.js"),k=require("./ExecutiveDashboard/components/DashboardCard/DashboardCard.js"),X=require("./ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.js"),J=require("./ExecutiveDashboard/components/common/ConfirmationModal.js"),z=require("./ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.js"),Q=require("./ExecutiveDashboard/components/TablePage/TablePage.js"),Z=require("./HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js"),$=require("./HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js"),ee=require("./HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js"),re=require("./HumanIntelligence/components/PatternDetails/PatternDetails.js"),te=require("./HumanIntelligence/components/CitationContent/CitationContent.js"),oe=require("./HumanIntelligence/components/Shared/ReusableTable.js"),ae=require("./HumanIntelligence/components/LogFilters/LogFilters.js"),se=require("./HumanIntelligence/components/LogFilters/LogFilterDropdown.js"),ie=require("./HumanIntelligence/components/LogTable/LogTable.js"),ne=require("./HumanIntelligence/HumanChangesTableWrapper.js");require("./_virtual/_tslib.js"),require("react");var pe=require("./RecordDashboard/RecordDashboardWrapper.js"),de=require("./RecordDashboard/RecordComponents/RecordDashboard.js"),ce=require("./RecordDashboard/RecordApi/RecordDashboardApi.js"),he=require("./RecordDashboard/RecordUtils/RecordSectionOrder.js"),le=require("./RecordDashboard/RecordComponents/Graph/RecordGraph.js"),ue=require("./RecordDashboard/RecordComponents/Graph/RecordLineChart.js"),Ce=require("./RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.js"),De=require("./RecordDashboard/RecordComponents/Graph/types.js"),xe=require("./RecordDashboard/RecordComponents/ui/RecordChart.js"),Re=require("./RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.js"),be=require("./RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.js"),Ee=require("./RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.js"),me=require("./RecordDashboard/RecordComponents/Table/RecordFTable.js"),Te=require("./RecordDashboard/RecordComponents/Table/RecordTableActionContext.js"),Se=require("./RecordDashboard/RecordComponents/Table/RecordTableCard.js"),ge=require("./RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.js"),ve=require("./RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.js"),Ie=require("./RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.js"),Oe=require("./RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js"),_e=require("./RecordDashboard/RecordComponents/TableHeader/TableHeader.js"),fe=require("./RecordDashboard/RecordComponents/Table/Pagination/TablePagination.js"),je=require("./RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.js"),Ae=require("./RecordDashboard/RecordUtils/RecordTableColumns.js"),qe=require("./RecordDashboard/RecordUtils/index.js"),Le=require("./RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.js"),Pe=require("./RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.js"),Fe=require("./ExecutiveDashboard/components/Insights/insightsContextCore.js");exports.ExecutiveDashboardWrapper=e.ExecutiveDashboardWrapper,exports.ExecutiveDashboard_Container=e.ExecutiveDashboardWrapper,exports.ExecutiveDashboard=r.ExecutiveDashboard,exports.DashboardApiError=t.DashboardApiError,exports.fetchDashboardData=t.fetchDashboardData,exports.fetchDataAccessScope=t.fetchDataAccessScope,exports.fetchTableData=t.fetchTableData,exports.fetchUIConfig=t.fetchUIConfig,exports.DataAccessMessage=o.DataAccessMessage,exports.dataAccessProblem=o.dataAccessProblem,exports.DataAccessScopeChip=a.DataAccessScopeChip,exports.restrictingGrants=a.restrictingGrants,exports.DASHBOARD_SECTION_KEYS=s.DASHBOARD_SECTION_KEYS,exports.PINNED_SECTION_KEYS=s.PINNED_SECTION_KEYS,exports.isSectionHidden=s.isSectionHidden,exports.resolveSectionOrder=s.resolveSectionOrder,exports.DashboardGrid=i.default,exports.DEFAULT_COLUMNS=n.DEFAULT_COLUMNS,exports.DEFAULT_GAP=n.DEFAULT_GAP,exports.DEFAULT_MIN_WIDTH=n.DEFAULT_MIN_WIDTH,exports.DEFAULT_ROW_HEIGHT=n.DEFAULT_ROW_HEIGHT,exports.MAX_COLUMNS=n.MAX_COLUMNS,exports.MAX_ROW_SPAN=n.MAX_ROW_SPAN,exports.buildWidgetIndex=n.buildWidgetIndex,exports.cellHeight=n.cellHeight,exports.packLayout=n.packLayout,exports.placeItems=n.placeItems,exports.resolveLayout=n.resolveLayout,exports.DECISION_WIDGET_KEY=p.DECISION_WIDGET_KEY,exports.GRAPH_WIDGET_KEY=p.GRAPH_WIDGET_KEY,exports.INSIGHT_TABS_WIDGET_KEY=p.INSIGHT_TABS_WIDGET_KEY,exports.buildDashboardWidgets=p.buildDashboardWidgets,exports.Graph=d.default,exports.LineChart=c.default,exports.PlotBySelector=h.default,exports.DEFAULT_COLORS=l.DEFAULT_COLORS,exports.colorForIndex=l.colorForIndex,exports.ChartContainer=u.ChartContainer,exports.ChartLegend=u.ChartLegend,exports.ChartLegendContent=u.ChartLegendContent,exports.ChartTooltip=u.ChartTooltip,exports.ChartTooltipContent=u.ChartTooltipContent,exports.useChart=u.useChart,exports.BarChart=C.default,exports.BarChartSkeleton=D.default,exports.BarChartEmptyState=x.default,exports.BarChartTooltip=R.default,exports.darken=b.darken,exports.parseColor=b.parseColor,exports.resolveBarColors=b.resolveBarColors,exports.sumValues=b.sumValues,exports.toBarChartData=b.toBarChartData,exports.withAlpha=b.withAlpha,exports.withIntensity=b.withIntensity,exports.wrapLabel=b.wrapLabel,exports.DEFAULT_BAR_COLOR=E.DEFAULT_BAR_COLOR,exports.PieChart=m.default,exports.PieChartSkeleton=T.default,exports.PieChartEmptyState=S.default,exports.PieChartTooltip=g.default,exports.groupTopSlices=v.groupTopSlices,exports.isPlottableSlice=v.isPlottableSlice,exports.percentOf=v.percentOf,exports.resolveSliceColors=v.resolveSliceColors,exports.sumSlices=v.sumSlices,exports.toPieChartData=v.toPieChartData,exports.DEFAULT_PIE_COLOR=I.DEFAULT_PIE_COLOR,exports.DashboardDateFilter=O.default,exports.RcaDecisionComponent=_.RcaDecisionComponent,exports.TopDriver=f.TopDriver,exports.InsightsProvider=j.InsightsProvider,exports.DecisionAdvantageCard=A.default,exports.InsightTabs=q.default,exports.L1Report=L.default,exports.L1ReportModal=L.L1ReportModal,exports.DrillTable=P.default,exports.RowDetail=F.default,exports.CorrelationSection=G.CorrelationSection,exports.TopDriversSection=G.TopDriversSection,exports.InsightsApiError=H.InsightsApiError,exports.decideObservation=H.decideObservation,exports.deleteReportComment=H.deleteReportComment,exports.fetchHierarchy=H.fetchHierarchy,exports.fetchInsightsCorrelation=H.fetchInsightsCorrelation,exports.fetchInsightsCorrelationTrend=H.fetchInsightsCorrelationTrend,exports.fetchInsightsDrivers=H.fetchInsightsDrivers,exports.fetchInsightsJob=H.fetchInsightsJob,exports.fetchInsightsReport=H.fetchInsightsReport,exports.fetchInsightsReports=H.fetchInsightsReports,exports.fetchInsightsSeries=H.fetchInsightsSeries,exports.fetchInsightsSummary=H.fetchInsightsSummary,exports.fetchLevelRows=H.fetchLevelRows,exports.fetchLevelSummary=H.fetchLevelSummary,exports.fetchNeedsAttention=H.fetchNeedsAttention,exports.fetchObservation=H.fetchObservation,exports.fetchObservations=H.fetchObservations,exports.fetchReportComments=H.fetchReportComments,exports.fetchRowDetail=H.fetchRowDetail,exports.fetchRowReport=H.fetchRowReport,exports.generateInsightsReport=H.generateInsightsReport,exports.postReportComment=H.postReportComment,exports.saveInsightsAction=H.saveInsightsAction,exports.MetricCard=y.default,exports.FiltersSidebar=N.default,exports.FTable=K.default,exports.TableCard=M.default,exports.TableGrid=U.default,exports.TableLayoutToggle=B.default,exports.useResponsiveColumns=W.useResponsiveColumns,exports.formatChartValue=w.formatChartValue,exports.limitChartData=w.limitChartData,exports.toChartData=w.toChartData,exports.KPI_SENTIMENT_COLORS=V.KPI_SENTIMENT_COLORS,exports.formatKpiValue=V.formatKpiValue,exports.getKpiDelta=V.getKpiDelta,exports.getKpiSentiment=V.getKpiSentiment,exports.getKpiValueColor=V.getKpiValueColor,exports.isKpiValueObject=V.isKpiValueObject,exports.DATE_PRESETS=Y.DATE_PRESETS,exports.DATE_PRESET_MAP=Y.DATE_PRESET_MAP,exports.DEFAULT_DATE_PRESETS=Y.DEFAULT_DATE_PRESETS,exports.DashboardCard=k.DashboardCard,exports.ReportSidebar=X.default,exports.ConfirmationModal=J.default,exports.CreateSubscriptionModal=z.default,exports.TablePage=Q.default,exports.HumanChangesSummary=Z.HumanChangesSummary,exports.HumanIntelligenceCard=$.HumanIntelligenceCard,exports.CognitiveDecisioning=ee.CognitiveDecisioning,exports.PatternDetails=re.PatternDetails,exports.CitationContent=te.CitationContent,exports.ReusableTable=oe.ReusableTable,exports.LogFilters=ae.default,exports.LogFilterDropdown=se.default,exports.LogTable=ie.default,exports.HumanChangesTableWrapper=ne.default,exports.RecordDashboardWrapper=pe.RecordDashboardWrapper,exports.RecordDashboard_Container=pe.RecordDashboardWrapper,exports.RecordDashboard=de.RecordDashboard,exports.RECODashboardApiError=ce.RECODashboardApiError,exports.RecordFetchDashboardData=ce.RecordFetchDashboardData,exports.RecordFetchTableData=ce.RecordFetchTableData,exports.RecordFetchUIConfig=ce.RecordFetchUIConfig,exports.RECOIsSectionHidden=he.RECOIsSectionHidden,exports.RECORD_DASHBOARD_SECTION_KEYS=he.RECORD_DASHBOARD_SECTION_KEYS,exports.RECORD_PINNED_SECTION_KEYS=he.RECORD_PINNED_SECTION_KEYS,exports.RECOResolveSectionOrder=he.RECOResolveSectionOrder,exports.RecordGraph=le.default,exports.RecordLineChart=ue.default,exports.RecordPlotBySelector=Ce.default,exports.RECOColorForIndex=De.RECOColorForIndex,exports.RECODEFAULT_COLORS=De.RECODEFAULT_COLORS,exports.RECOChartLegend=xe.RECOChartLegend,exports.RECOChartLegendContent=xe.RECOChartLegendContent,exports.RECOChartTooltip=xe.RECOChartTooltip,exports.RECOChartTooltipContent=xe.RECOChartTooltipContent,exports.RecordChartContainer=xe.RecordChartContainer,exports.useRecordChart=xe.useRecordChart,exports.RecordDashboardDateFilter=Re.default,exports.RecordMetricCard=be.default,exports.RecordFiltersSidebar=Ee.default,exports.RecordSidebarFilter=Ee.default,exports.RecordFTable=me.default,exports.useRecordTableActions=Te.useRecordTableActions,exports.RecordTableCard=Se.default,exports.RecordTableGrid=ge.default,exports.RecordTableLayoutToggle=ve.default,exports.useResponsiveRecordColumns=Ie.useRecordResponsiveColumns,exports.RecordAnalyticsChart=Oe.default,exports.RecordTableHeader=_e.default,exports.RecordTablePagination=fe.default,exports.RecordDashboardStats=je.default,exports.RECORenderDynamicCell=Ae.RECORenderDynamicCell,exports.RECOFormatKpiValue=qe.RECOFormatKpiValue,exports.RECOGetKpiDelta=qe.RECOGetKpiDelta,exports.RECOGetKpiSentiment=qe.RECOGetKpiSentiment,exports.RECOGetKpiValueColor=qe.RECOGetKpiValueColor,exports.RECOIsKpiValueObject=qe.RECOIsKpiValueObject,exports.RECO_SENTIMENT_COLORS=qe.RECO_SENTIMENT_COLORS,exports.RECO_DATE_PRESETS=Le.RECO_DATE_PRESETS,exports.RECO_DATE_PRESET_MAP=Le.RECO_DATE_PRESET_MAP,exports.RECO_DEFAULT_DATE_PRESETS=Le.RECO_DEFAULT_DATE_PRESETS,exports.RecordDashboardCard=Pe.RecordDashboardCard,exports.useInsights=Fe.useInsights;
2
2
  //# sourceMappingURL=index.js.map