@genesislcap/design-system-configurator 14.485.0 → 14.486.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,6 +81,7 @@
81
81
  }
82
82
  .action-renderer {
83
83
  align-self: center;
84
+ color: var(--accent-foreground-rest);
84
85
  display: flex;
85
86
  height: calc(
86
87
  (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
@@ -8657,4 +8658,4 @@
8657
8658
  ${new i.CSSVarsTokenMapper(a)}
8658
8659
  }
8659
8660
  `;var c,p;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.editable="editable",e.icon="icon",e.text="text",e.select="select",e.statusPill="statusPill",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.stringEditor="stringEditor",e.multiselectEditor="multiselectEditor"}(c||(c={})),function(e){e.labelValue="labelValue",e.pagination="pagination",e.loadMore="loadMore",e.reload="reload",e.rowCount="rowCount"}(p||(p={}));const u="onGridReady",h="__editedColumn",v="__errorColumn",m={},f=l.DI.createInterface(e=>e.instance(m));var w;!function(e){e.camelCase="camelCase",e.capitalCase="capitalCase",e.dotCase="dotCase",e.headerCase="headerCase",e.noCase="noCase",e.paramCase="paramCase",e.pascalCase="pascalCase",e.pathCase="pathCase",e.sentenceCase="sentenceCase",e.snakeCase="snakeCase"}(w||(w={}));const b={rows:!0,maxRows:!1,aggregation:!0,loadMore:{tooltip:"Load more rows from server"},reload:{tooltip:"Reload the datasource."}}},11749(e,a,r){r.d(a,{H:()=>i});var t=r(55823),o=r(98316);class i{getColumnState(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return[]})}saveColumnState(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))})}deleteColumnState(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");delete a[e],this.session.setLocalStorageItem("gridOptions",JSON.stringify(a))})}getFilterModel(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return{}})}saveFilterModel(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))})}}(0,t.Cg)([o.N],i.prototype,"session",void 0)},53397(e,a,r){r.d(a,{l:()=>i});var t=r(38370),o=r(11749);const i=t.DI.createInterface(e=>e.singleton(o.H))},52540(e,a,r){r.d(a,{k:()=>t});class t{init(e){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=e,this.updateDisplay()}updateParams(e){this.currentParams=Object.assign(Object.assign({},this.currentParams),e),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}:&nbsp; `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},49104(e,a,r){r.d(a,{s:()=>n});var t=r(55823),o=r(68424),i=r(63486);class n{constructor(){this.buttonLabel="Load More",this.isLoading=!1,this.isLeftAligned=!1}init(e){var a,r,t;for(this.params=e,this.gridApi=e.api,this.element=document.createElement("div"),this.element.classList.add("ag-status-panel","ag-load-more-panel"),this.element.setAttribute("data-test-id","grid-load-more-panel"),this.element.setAttribute("role","region"),this.element.setAttribute("aria-label","Load more data controls"),this.element.style.display="flex",this.element.style.alignItems="center",this.isLeftAligned=(null===(t=null===(r=null===(a=this.gridApi)||void 0===a?void 0:a.gridOptionsService)||void 0===r?void 0:r.gridOptions)||void 0===t?void 0:t.pagination)||!1,this.element.style.justifyContent=this.isLeftAligned?"flex-start":"flex-end",this.element.style.paddingLeft="var(--ag-grid-size)",this.element.style.paddingRight="var(--ag-grid-size)",this.element.style.height="var(--ag-status-bar-height)",this.designSystemPrefix=(0,o.JH)(this.element,"zero"),this.createProgressRing(),this.createLoadMoreButton(),this.updateButtonVisibility();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.isLeftAligned?(this.element.appendChild(this.loadMoreButton),this.element.appendChild(this.progressRing)):(this.element.appendChild(this.progressRing),this.element.appendChild(this.loadMoreButton))}createProgressRing(){this.progressRing=document.createElement(`${this.designSystemPrefix}-progress-ring`),this.progressRing.setAttribute("data-test-id","grid-load-more-progress"),this.progressRing.setAttribute("aria-label","Loading more data"),this.progressRing.style.width="20px",this.progressRing.style.height="20px",this.progressRing.style.margin=this.isLeftAligned?"0 0 0 8px":"0 8px 0 0",this.progressRing.style.display="none"}createLoadMoreButton(){var e,a;this.loadMoreButton=document.createElement(`${this.designSystemPrefix}-button`),this.loadMoreButton.setAttribute("data-test-id","grid-load-more-button");const r=(null===(e=this.params)||void 0===e?void 0:e.appearance)||"outline";this.loadMoreButton.setAttribute("appearance",r),this.loadMoreButton.textContent=this.buttonLabel,this.loadMoreButton.style.margin="2px 8px",this.loadMoreButton.style.minWidth="120px",this.loadMoreButton.style.textAlign="center",this.loadMoreButton.style.height="24px",this.loadMoreButton.style.lineHeight="20px",(null===(a=this.params)||void 0===a?void 0:a.tooltip)&&(this.loadMoreButton.setAttribute("title",this.params.tooltip),this.loadMoreButton.setAttribute("aria-describedby","grid-load-more-tooltip")),this.updateAriaLabel(),this.loadMoreButton.setAttribute("role","button"),this.clickHandler=()=>(0,t.sH)(this,void 0,void 0,function*(){if(!this.isLoading)try{this.showLoading(!0),yield(0,i.c)(500),this.params.onLoadMore&&this.params.onLoadMore()}catch(e){this.showLoading(!1)}}),this.loadMoreButton.addEventListener("click",this.clickHandler)}updateAriaLabel(){var e,a;let r;r=(null===(e=this.params)||void 0===e?void 0:e.tooltip)?this.params.tooltip:this.isLoading?"Loading more data":(null===(a=this.params)||void 0===a?void 0:a.moreRows)?"Load more rows from server":"No more rows available",this.loadMoreButton.setAttribute("aria-label",r)}showLoading(e){var a;this.isLoading=e,e?(this.progressRing.style.display="inline-block",this.loadMoreButton.setAttribute("disabled","true"),this.loadMoreButton.textContent="Loading..."):(this.progressRing.style.display="none",(null===(a=this.params)||void 0===a?void 0:a.moreRows)?(this.loadMoreButton.textContent="Load More",this.loadMoreButton.removeAttribute("disabled")):(this.loadMoreButton.textContent="No More Rows",this.loadMoreButton.setAttribute("disabled","true"))),this.updateAriaLabel()}updateButtonVisibility(){this.params&&!this.isLoading&&(this.progressRing.style.display="none",this.params.moreRows?(this.loadMoreButton.style.display="inline-flex",this.loadMoreButton.textContent="Load More",this.loadMoreButton.removeAttribute("disabled")):(this.loadMoreButton.style.display="inline-flex",this.loadMoreButton.textContent="No More Rows",this.loadMoreButton.setAttribute("disabled","true")),this.updateAriaLabel())}updateParams(e){var a,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),e),(null==t?void 0:t.tooltip)!==(null===(a=this.params)||void 0===a?void 0:a.tooltip)&&(null===(r=this.params)||void 0===r?void 0:r.tooltip)&&this.loadMoreButton.setAttribute("title",this.params.tooltip),this.isLoading&&this.showLoading(!1),this.updateButtonVisibility()}getGui(){return this.element}destroy(){this.loadMoreButton&&this.clickHandler&&this.loadMoreButton.removeEventListener("click",this.clickHandler)}}},19060(e,a,r){r.d(a,{h:()=>t});class t{init(e){this.api=e.api,this.element=document.createElement("div"),this.element.className="ag-status-panel",this.element.setAttribute("data-test-id","grid-pagination-panel"),this.element.setAttribute("role","navigation"),this.element.setAttribute("aria-label","Pagination controls"),this.element.style.display="flex",this.element.style.alignItems="center",this.element.style.justifyContent="flex-end",this.element.style.height="var(--ag-status-bar-height)",this.createPaginationPanel(),this.updateDisplay(),this.paginationChangedHandler=()=>{this.updateDisplay()},this.api.addEventListener("paginationChanged",this.paginationChangedHandler)}getGui(){return this.element}createPaginationPanel(){this.paginationPanel=document.createElement("div"),this.paginationPanel.className="ag-paging-panel ag-unselectable",this.paginationPanel.setAttribute("id","ag-pagination-clone"),this.paginationPanel.setAttribute("data-test-id","grid-pagination-controls"),this.paginationSummaryPanel=document.createElement("span"),this.paginationSummaryPanel.className="ag-paging-row-summary-panel",this.paginationSummaryPanel.setAttribute("role","status"),this.paginationSummaryPanel.setAttribute("data-test-id","grid-pagination-summary"),this.paginationSummaryPanel.setAttribute("aria-label","Row count summary"),this.firstPageButton=this.createPaginationButton("btFirst","ag-paging-button ag-disabled","First Page",!0),this.firstPageButton.setAttribute("data-test-id","grid-pagination-first"),this.prevPageButton=this.createPaginationButton("btPrevious","ag-paging-button ag-disabled","Previous Page",!0),this.prevPageButton.setAttribute("data-test-id","grid-pagination-previous"),this.descriptionPanel=document.createElement("span"),this.descriptionPanel.className="ag-paging-description",this.descriptionPanel.setAttribute("role","status"),this.descriptionPanel.setAttribute("data-test-id","grid-pagination-description"),this.descriptionPanel.setAttribute("aria-label","Current page information"),this.pageStartDisplay=document.createElement("span"),this.pageStartDisplay.className="ag-paging-number",this.pageStartDisplay.setAttribute("id","ag-pagination-clone-start-page"),this.pageStartDisplay.setAttribute("data-test-id","grid-pagination-page-label"),this.pageStartDisplay.textContent="Page",this.pageNumberDisplay=document.createElement("span"),this.pageNumberDisplay.className="ag-paging-number",this.pageNumberDisplay.setAttribute("id","ag-pagination-clone-start-page-number"),this.pageNumberDisplay.setAttribute("ref","lbCurrent"),this.pageNumberDisplay.setAttribute("data-test-id","grid-pagination-current-page"),this.pageNumberDisplay.setAttribute("aria-label","Current page number"),this.pageNumberDisplay.textContent="1",this.pageOfDisplay=document.createElement("span"),this.pageOfDisplay.className="ag-paging-number",this.pageOfDisplay.setAttribute("id","ag-pagination-clone-of-page"),this.pageOfDisplay.setAttribute("data-test-id","grid-pagination-of-label"),this.pageOfDisplay.textContent="of",this.pageNumberTotalDisplay=document.createElement("span"),this.pageNumberTotalDisplay.className="ag-paging-number",this.pageNumberTotalDisplay.setAttribute("id","ag-pagination-clone-of-page-number"),this.pageNumberTotalDisplay.setAttribute("ref","lbTotal"),this.pageNumberTotalDisplay.setAttribute("data-test-id","grid-pagination-total-pages"),this.pageNumberTotalDisplay.setAttribute("aria-label","Total number of pages"),this.pageNumberTotalDisplay.textContent="1",this.nextPageButton=this.createPaginationButton("btNext","ag-paging-button","Next Page",!1),this.nextPageButton.setAttribute("data-test-id","grid-pagination-next"),this.lastPageButton=this.createPaginationButton("btLast","ag-paging-button","Last Page",!1),this.lastPageButton.setAttribute("data-test-id","grid-pagination-last"),this.descriptionPanel.appendChild(this.pageStartDisplay),this.descriptionPanel.appendChild(document.createTextNode(" ")),this.descriptionPanel.appendChild(this.pageNumberDisplay),this.descriptionPanel.appendChild(document.createTextNode(" ")),this.descriptionPanel.appendChild(this.pageOfDisplay),this.descriptionPanel.appendChild(document.createTextNode(" ")),this.descriptionPanel.appendChild(this.pageNumberTotalDisplay),this.paginationPanel.appendChild(this.paginationSummaryPanel),this.paginationPanel.appendChild(this.firstPageButton),this.paginationPanel.appendChild(this.prevPageButton),this.paginationPanel.appendChild(this.descriptionPanel),this.paginationPanel.appendChild(this.nextPageButton),this.paginationPanel.appendChild(this.lastPageButton),this.element.appendChild(this.paginationPanel),this.addPaginationEventListeners()}addPaginationEventListeners(){this.firstPageButton.addEventListener("click",()=>this.goToPage("first")),this.prevPageButton.addEventListener("click",()=>this.goToPage("previous")),this.nextPageButton.addEventListener("click",()=>this.goToPage("next")),this.lastPageButton.addEventListener("click",()=>this.goToPage("last")),this.firstPageButton.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.goToPage("first"))}),this.prevPageButton.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.goToPage("previous"))}),this.nextPageButton.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.goToPage("next"))}),this.lastPageButton.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.goToPage("last"))})}createPaginationButton(e,a,r,t){const o=document.createElement("div");o.setAttribute("ref",e),o.className=a,o.setAttribute("role","button"),o.setAttribute("aria-label",r),o.setAttribute("tabindex",t?"-1":"0"),t&&o.setAttribute("aria-disabled","true");const i=document.createElement("span");return i.className=`ag-icon ag-icon-${e.substring(2).toLowerCase()}`,i.setAttribute("unselectable","on"),i.setAttribute("role","presentation"),o.appendChild(i),o}goToPage(e){var a;const r=this.api,[t,o]={first:["paginationGoToFirstPage","goToFirstPage"],previous:["paginationGoToPreviousPage","goToPreviousPage"],next:["paginationGoToNextPage","goToNextPage"],last:["paginationGoToLastPage","goToLastPage"]}[e];"function"==typeof r[t]?r[t]():"function"==typeof(null===(a=r.paginationProxy)||void 0===a?void 0:a[o])&&r.paginationProxy[o]()}updateDisplay(){var e,a,r,t,o,i,n,l,g,s,d,c,p,u,h,v,m,f,w,b,y,z;const x=this.api,C=(null!==(o=null!==(a=null===(e=x.paginationGetCurrentPage)||void 0===e?void 0:e.call(x))&&void 0!==a?a:null===(t=null===(r=x.paginationProxy)||void 0===r?void 0:r.getCurrentPage)||void 0===t?void 0:t.call(r))&&void 0!==o?o:0)+1,k=null!==(s=null!==(n=null===(i=x.paginationGetTotalPages)||void 0===i?void 0:i.call(x))&&void 0!==n?n:null===(g=null===(l=x.paginationProxy)||void 0===l?void 0:l.getTotalPages)||void 0===g?void 0:g.call(l))&&void 0!==s?s:1,S=null!==(c=null===(d=x.paginationGetPageSize)||void 0===d?void 0:d.call(x))&&void 0!==c?c:null===(u=null===(p=x.paginationProxy)||void 0===p?void 0:p.getPageSize)||void 0===u?void 0:u.call(p),D=null!==(v=null===(h=x.paginationGetRowCount)||void 0===h?void 0:h.call(x))&&void 0!==v?v:null===(f=null===(m=x.paginationProxy)||void 0===m?void 0:m.getMasterRowCount)||void 0===f?void 0:f.call(m),A="serverSide"===(null===(z=null===(y=null===(b=(w=this.api).getModel)||void 0===b?void 0:b.call(w))||void 0===y?void 0:y.getType)||void 0===z?void 0:z.call(y))&&x.paginationIsLastPageFound&&!x.paginationIsLastPageFound();this.pageNumberDisplay.textContent=C.toString(),this.pageNumberTotalDisplay.textContent=A?"more":k.toString(),A?(this.pageNumberTotalDisplay.setAttribute("aria-label","More pages available"),this.paginationSummaryPanel.setAttribute("aria-label","Row count summary with more data available")):(this.pageNumberTotalDisplay.setAttribute("aria-label","Total number of pages"),this.paginationSummaryPanel.setAttribute("aria-label","Row count summary"));const R=(C-1)*S+1,M=Math.min(C*S,D),E=A?"more":D.toString();this.paginationSummaryPanel.textContent=`${D>0?R:0} to ${M} of ${E}`;const T=1===C,O=!A&&C>=k;this.updateButtonState(this.firstPageButton,T),this.updateButtonState(this.prevPageButton,T),this.updateButtonState(this.nextPageButton,O),this.updateButtonState(this.lastPageButton,A||O),A?(this.lastPageButton.setAttribute("aria-label","Last page unavailable - total number of pages unknown"),this.lastPageButton.setAttribute("title","Cannot jump to last page when total is unknown")):(this.lastPageButton.setAttribute("aria-label","Last Page"),this.lastPageButton.removeAttribute("title"))}updateButtonState(e,a){a?(e.classList.add("ag-disabled"),e.setAttribute("aria-disabled","true"),e.setAttribute("tabindex","-1")):(e.classList.remove("ag-disabled"),e.setAttribute("aria-disabled","false"),e.setAttribute("tabindex","0"))}destroy(){this.api&&this.paginationChangedHandler&&this.api.removeEventListener("paginationChanged",this.paginationChangedHandler),this.api=null,this.paginationChangedHandler=null}}},88863(e,a,r){r.d(a,{W:()=>n});var t=r(55823),o=r(68424),i=r(63486);class n{constructor(){this.isReloading=!1}init(e){this.params=e,this.element=document.createElement("div"),this.element.classList.add("ag-status-panel","ag-reload-panel"),this.element.setAttribute("data-test-id","grid-reload-panel"),this.element.setAttribute("role","region"),this.element.setAttribute("aria-label","Reload data controls"),this.element.style.display="flex",this.element.style.alignItems="center",this.element.style.justifyContent="center",this.element.style.paddingLeft="var(--ag-grid-size)",this.element.style.height="var(--ag-status-bar-height)",this.designSystemPrefix=(0,o.JH)(this.element,"zero"),this.createRefreshIcon(),this.createProgressRing(),this.element.appendChild(this.refreshIcon),this.element.appendChild(this.progressRing),this.progressRing.style.display="none"}createProgressRing(){this.progressRing=document.createElement(`${this.designSystemPrefix}-progress-ring`),this.progressRing.setAttribute("data-test-id","grid-reload-progress"),this.progressRing.setAttribute("aria-label","Reloading data"),this.progressRing.style.width="20px",this.progressRing.style.height="20px",this.progressRing.style.margin="4px",this.progressRing.style.display="none"}createRefreshIcon(){var e,a,r,o;if("zero"===this.designSystemPrefix||"rapid"===this.designSystemPrefix){this.refreshIcon=document.createElement(`${this.designSystemPrefix}-icon`);const r=(null===(e=this.params)||void 0===e?void 0:e.icon)||"refresh";this.refreshIcon.setAttribute("name",r),this.refreshIcon.setAttribute("aria-label",(null===(a=this.params)||void 0===a?void 0:a.tooltip)||"Reload grid data")}else this.refreshIcon=document.createElement("div"),this.refreshIcon.textContent="↻",this.refreshIcon.setAttribute("aria-label",(null===(r=this.params)||void 0===r?void 0:r.tooltip)||"Reload grid data");this.refreshIcon.setAttribute("data-test-id","grid-reload-button"),this.refreshIcon.setAttribute("role","button"),this.refreshIcon.setAttribute("tabindex","0"),this.refreshIcon.style.cursor="pointer",this.refreshIcon.style.width="28px",this.refreshIcon.style.height="28px",this.refreshIcon.style.display="flex",this.refreshIcon.style.alignItems="center",this.refreshIcon.style.justifyContent="center",this.refreshIcon.style.fontSize="20px",(null===(o=this.params)||void 0===o?void 0:o.tooltip)&&this.refreshIcon.setAttribute("title",this.params.tooltip),this.mouseoverHandler=()=>{this.isReloading||(this.refreshIcon.style.opacity="0.7")},this.refreshIcon.addEventListener("mouseover",this.mouseoverHandler),this.mouseoutHandler=()=>{this.isReloading||(this.refreshIcon.style.opacity="1")},this.refreshIcon.addEventListener("mouseout",this.mouseoutHandler),this.clickHandler=()=>(0,t.sH)(this,void 0,void 0,function*(){if(!this.isReloading)try{this.showReloading(!0),yield(0,i.c)(500),this.params.onReload&&this.params.onReload(),this.showReloading(!1)}catch(e){this.showReloading(!1)}}),this.refreshIcon.addEventListener("click",this.clickHandler),this.refreshIcon.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.clickHandler(new MouseEvent("click")))})}showReloading(e){this.isReloading=e,e?(this.refreshIcon.style.display="none",this.progressRing.style.display="inline-block"):(this.refreshIcon.style.display="inline-flex",this.progressRing.style.display="none")}updateParams(e){var a,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),e),(null==t?void 0:t.tooltip)!==(null===(a=this.params)||void 0===a?void 0:a.tooltip)&&((null===(r=this.params)||void 0===r?void 0:r.tooltip)?(this.refreshIcon.setAttribute("title",this.params.tooltip),this.refreshIcon.setAttribute("aria-label",this.params.tooltip)):(this.refreshIcon.removeAttribute("title"),this.refreshIcon.setAttribute("aria-label","Reload grid data")))}getGui(){return this.element}destroy(){this.refreshIcon&&(this.refreshIcon.removeEventListener("mouseover",this.mouseoverHandler),this.refreshIcon.removeEventListener("mouseout",this.mouseoutHandler),this.refreshIcon.removeEventListener("click",this.clickHandler))}}},71964(e,a,r){r.d(a,{i:()=>t});class t{init(e){this.api=e.api,this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-row-count-panel"),this.element.setAttribute("role","status");const a=document.createElement("span");a.setAttribute("data-test-id","grid-row-count-label"),a.setAttribute("aria-hidden","true"),a.innerHTML="Rows:&nbsp;",this.rowCountDisplay=document.createElement("span"),this.rowCountDisplay.classList.add("ag-status-name-value-value"),this.rowCountDisplay.setAttribute("data-test-id","grid-row-count-value"),this.rowCountDisplay.setAttribute("aria-hidden","true"),this.element.appendChild(a),this.element.appendChild(this.rowCountDisplay),this.updateDisplay(),this.modelUpdatedHandler=()=>{this.updateDisplay()},this.api.addEventListener("modelUpdated",this.modelUpdatedHandler),this.api.addEventListener("rowDataUpdated",this.modelUpdatedHandler)}updateDisplay(){var e,a,r;if(!this.api||!this.rowCountDisplay)return;const t=this.api,o=null!==(r=null===(a=(e=this.api).getDisplayedRowCount)||void 0===a?void 0:a.call(e))&&void 0!==r?r:0,i=void 0!==t.paginationIsLastPageFound&&!t.paginationIsLastPageFound()&&o>0,n=i?o-1+"+":o.toString();this.rowCountDisplay.textContent=n;const l=i?`Row count: ${o} or more rows`:`Row count: ${o} rows`;this.element.setAttribute("aria-label",l)}getGui(){return this.element}destroy(){this.api&&this.modelUpdatedHandler&&(this.api.removeEventListener("modelUpdated",this.modelUpdatedHandler),this.api.removeEventListener("rowDataUpdated",this.modelUpdatedHandler)),this.api=null,this.modelUpdatedHandler=null}}},73203(e,a,r){r.d(a,{y:()=>t});class t{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}},23201(e,a,r){function t(e){return{colId:e.field||e.colId||"",hide:e.hide||!1,width:e.width||null,pinned:e.pinned||null,sort:e.sort||null,sortIndex:e.sortIndex||null,aggFunc:e.aggFunc||null,rowGroup:e.rowGroup||!1,rowGroupIndex:e.rowGroupIndex||null,pivot:e.pivot||!1,pivotIndex:e.pivotIndex||null,flex:e.flex||null}}r.d(a,{n7:()=>i,pr:()=>t,rG:()=>n,yS:()=>l});const o=Object.keys(t({}));function i(e){return Array.isArray(e)?e.map(e=>{const a={},r=a;for(const a of o){const t=e[a];void 0!==t&&(r[a]=t)}return a}):[]}function n(e){return e.map(t)}function l(e,a){const r=i(a),t={},o=[],n="field",l="colId",g=e=>Array.isArray(e.children),s=e=>{var a;return null!==(a=e[n])&&void 0!==a?a:e[l]},d=new Map;r.forEach(e=>{null!=e[l]&&d.set(e[l],e)});const c=e=>{if(g(e))return Object.assign(Object.assign({},e),{children:e.children.map(c)});const a=s(e),r=null!=a?d.get(a):void 0;return r?Object.assign(Object.assign({},e),r):Object.assign({},e)};return r.forEach(a=>{const r=a[l];if(null==r)return;const i=e.find(e=>!g(e)&&(e[n]===r||null!=e[l]&&e[l]===r));if(i){const e=s(i),r=Object.assign(Object.assign({},i),a);null!=e&&(t[e]=r),o.push(r)}}),e.forEach(e=>{if(g(e))return void o.push(c(e));const a=s(e);if(null==a||!t.hasOwnProperty(a)){const r=Object.assign({},e);null!=a&&(t[a]=r),o.push(r)}}),o}},68858(e,a,r){r.d(a,{P:()=>t});const t=e=>e?"string"==typeof e?e:Array.isArray(e)?e.map(t).join(", "):"object"==typeof e?"message"in e&&"string"==typeof e.message?e.message:"TEXT"in e&&"string"==typeof e.TEXT?e.TEXT:JSON.stringify(e):String(e):""},1510(e,a,r){r.d(a,{v:()=>t});const t=(0,r(66506).createLogger)("grid-pro")},49874(e,a,r){function t(e){const a=[];for(const[r]of e)r&&a.push(r);return a}function o(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}r.d(a,{P:()=>o,i:()=>t})},50103(e,a,r){r.d(a,{w:()=>t});const t=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},21409(e,a,r){r.d(a,{S:()=>o,a:()=>i});var t=r(55823);const o=e=>{var a,r,o,n,l,g,s,d,c;return c=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),o.set(this,""),n.set(this,!1),l.set(this,void 0),g.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach(e=>{a.appendChild(e.cloneNode(!0))}),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach(a=>e.setAttribute(a,this.getAttribute(a))),e}get shouldRunDisconnect(){return!!(0,t.gn)(this,g,"f")||("dom"===(0,t.gn)(this,r,"f")._key||"foundation-layout-cache"!==(0,t.gn)(this,r,"f")._key&&!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",s).call(this,"disconnect")))}get shouldRunConnect(){if((0,t.gn)(this,g,"f"))return!0;if("dom"===(0,t.gn)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,t.gn)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,t.gn)(this,n,"f")&&((0,t.GG)(this,n,!0,"f"),e="connect"),!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",s).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,t.gn)(this,r,"f")._key&&(0,t.GG)(this,r,(0,t.gn)(this,a,"m",d).call(this,this),"f")}},r=new WeakMap,o=new WeakMap,n=new WeakMap,l=new WeakMap,g=new WeakMap,a=new WeakSet,s=function(e){var a,i;if("foundation-layout"!==(0,t.gn)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const n=(0,t.gn)(this,o,"f")!==(0,t.gn)(this,r,"f").lifecycleUpdateToken;let s=!1;return"connect"===e?(0,t.GG)(this,o,null!==(a=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(s=n,(0,t.GG)(this,l,setTimeout(()=>{(0,t.GG)(this,g,s,"f"),(0,t.gn)(this,g,"f")&&this.disconnectedCallback()},1e4),"f")):"reconnect"===e&&(s=n,(0,t.GG)(this,o,null!==(i=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==i?i:"","f"),clearTimeout((0,t.gn)(this,l,"f"))),s},d=function e(r){var o;if(!0===r.getRootNode()[i])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(o=r.getRootNode())||void 0===o?void 0:o.host))return{_key:"dom"};const n=r.getRootNode().host;if("FoundationLayoutMain"===n.class){const e=n;return e._key="foundation-layout",e}return(0,t.gn)(this,a,"m",e).call(this,n)},c},i=Symbol("layout-cache-document")},63486(e,a,r){r.d(a,{c:()=>t});const t=e=>new Promise(a=>{setTimeout(a,e)})},52945(e,a,r){r.d(a,{O5:()=>o,fI:()=>i});var t=r(28745);const o=(e,a)=>{var r;let o=document.getElementById(a);if(o)return void t.v.debug(`\n An element with the id of '${a}' already exists and likely has the css rules applied.\n `);const i=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=a,i.appendChild(o);if((e.match(/}/g)||[]).length>1)return o.textContent=e,()=>{o&&i.removeChild(o)};{const a=o.sheet.insertRule(e);return()=>{o&&(o.sheet.deleteRule(a),i.removeChild(o))}}};function i(e){const a=[],r=new Set;return function e(t){const o=Array.from(t.querySelectorAll("*"));a.push(...o),o.forEach(a=>{a.shadowRoot&&!r.has(a.shadowRoot)&&(r.add(a.shadowRoot),e(a.shadowRoot))})}(e),a}},28745(e,a,r){r.d(a,{v:()=>t});const t=(0,r(66506).createLogger)("foundation-utils")}}]);
8660
- //# sourceMappingURL=445.17c1cb4602a12769552af49434d16245.js.map
8661
+ //# sourceMappingURL=445.409a4d2bd2392ed05f387b67d3dad9e2.js.map