@genesislcap/design-system-configurator 14.303.3 → 14.304.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.
@@ -8558,9 +8558,9 @@
8558
8558
  </span>
8559
8559
  ${e=>(0,o.P)(a,e.gridErrorItems.filter((({type:a})=>"datasource"===a)))}
8560
8560
  </template>
8561
- `,g=i()},55365:(a,e,r)=>{r.d(e,{A7:()=>h,IX:()=>c,Kb:()=>s,W3:()=>t,YO:()=>m,b7:()=>d,eL:()=>l,h1:()=>v,k7:()=>p,lz:()=>w,mJ:()=>o,mr:()=>u,o2:()=>f,uA:()=>b});var t,o,i=r(49531),g=r(33681),n=r(84674);!function(a){a.foregroundColor="--ag-foreground-color",a.dataColor="--ag-data-color",a.secondaryForegroundColor="--ag-secondary-foreground-color",a.headerForegroundColor="--ag-header-foreground-color",a.disabledForegroundColor="--ag-disabled-foreground-color",a.backgroundColor="--ag-background-color",a.headerBackgroundColor="--ag-header-background-color",a.subheaderBackgroundColor="--ag-subheader-background-color",a.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",a.controlPanelBackgroundColor="--ag-control-panel-background-color",a.selectedRowBackgroundColor="--ag-selected-row-background-color",a.oddRowBackgroundColor="--ag-odd-row-background-color",a.rowHoverColor="--ag-row-hover-color",a.rangeSelectionBorderColor="--ag-range-selection-border-color",a.rangeSelectionBackgroundColor="--ag-range-selection-background-color",a.selectedTabUnderlineColor="--ag-selected-tab-underline-color",a.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",a.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",a.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",a.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",a.chipBackgroundColor="--ag-chip-background-color",a.borderColor="--ag-border-color",a.secondaryBorderColor="--ag-secondary-border-color",a.rowBorderColor="--ag-row-border-color",a.headerColumnSeparatorColor="--ag-header-column-separator-color",a.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",a.inputBorderColor="--ag-input-border-color",a.inputDisabledBorderColor="--ag-input-disabled-border-color",a.inputDisabledBackgroundColor="--ag-input-disabled-background-color",a.checkboxBackgroundColor="--ag-checkbox-background-color",a.checkboxCheckedColor="--ag-checkbox-checked-color",a.checkboxUncheckedColor="--ag-checkbox-unchecked-color",a.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",a.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",a.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",a.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",a.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",a.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",a.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",a.minichartSelectedChartColor="--ag-minichart-selected-chart-color",a.minichartSelectedPageColor="--ag-minichart-selected-page-color",a.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",a.inputFocusBoxShadow="--ag-input-focus-box-shadow",a.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(a){a.alpine="ag-theme-alpine",a.alpineDark="ag-theme-alpine-dark",a.balham="ag-theme-balham",a.balhamDark="ag-theme-balham-dark",a.material="ag-theme-material"}(o||(o={}));const l=a=>`${a}-token-map`,d=a=>`${a}-fonts`,s=(a,e)=>g.css`
8561
+ `,g=i()},55365:(a,e,r)=>{r.d(e,{A7:()=>h,IX:()=>c,Kb:()=>s,W3:()=>t,YO:()=>m,b7:()=>d,eL:()=>l,h1:()=>v,k7:()=>p,lz:()=>w,mJ:()=>o,mr:()=>u,o2:()=>f,uA:()=>b});var t,o,i=r(66674),g=r(33681),n=r(84674);!function(a){a.foregroundColor="--ag-foreground-color",a.dataColor="--ag-data-color",a.secondaryForegroundColor="--ag-secondary-foreground-color",a.headerForegroundColor="--ag-header-foreground-color",a.disabledForegroundColor="--ag-disabled-foreground-color",a.backgroundColor="--ag-background-color",a.headerBackgroundColor="--ag-header-background-color",a.subheaderBackgroundColor="--ag-subheader-background-color",a.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",a.controlPanelBackgroundColor="--ag-control-panel-background-color",a.selectedRowBackgroundColor="--ag-selected-row-background-color",a.oddRowBackgroundColor="--ag-odd-row-background-color",a.rowHoverColor="--ag-row-hover-color",a.rangeSelectionBorderColor="--ag-range-selection-border-color",a.rangeSelectionBackgroundColor="--ag-range-selection-background-color",a.selectedTabUnderlineColor="--ag-selected-tab-underline-color",a.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",a.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",a.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",a.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",a.chipBackgroundColor="--ag-chip-background-color",a.borderColor="--ag-border-color",a.secondaryBorderColor="--ag-secondary-border-color",a.rowBorderColor="--ag-row-border-color",a.headerColumnSeparatorColor="--ag-header-column-separator-color",a.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",a.inputBorderColor="--ag-input-border-color",a.inputDisabledBorderColor="--ag-input-disabled-border-color",a.inputDisabledBackgroundColor="--ag-input-disabled-background-color",a.checkboxBackgroundColor="--ag-checkbox-background-color",a.checkboxCheckedColor="--ag-checkbox-checked-color",a.checkboxUncheckedColor="--ag-checkbox-unchecked-color",a.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",a.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",a.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",a.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",a.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",a.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",a.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",a.minichartSelectedChartColor="--ag-minichart-selected-chart-color",a.minichartSelectedPageColor="--ag-minichart-selected-page-color",a.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",a.inputFocusBoxShadow="--ag-input-focus-box-shadow",a.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(a){a.alpine="ag-theme-alpine",a.alpineDark="ag-theme-alpine-dark",a.balham="ag-theme-balham",a.balhamDark="ag-theme-balham-dark",a.material="ag-theme-material"}(o||(o={}));const l=a=>`${a}-token-map`,d=a=>`${a}-fonts`,s=(a,e)=>g.css`
8562
8562
  .${l(a)} {
8563
8563
  ${new i.CSSVarsTokenMapper(e)}
8564
8564
  }
8565
- `;var c,p;!function(a){a.action="action",a.actionsMenu="actionsMenu",a.boolean="boolean",a.editable="editable",a.text="text",a.select="select",a.statusPill="statusPill",a.dateEditor="dateEditor",a.selectEditor="selectEditor",a.numberEditor="numberEditor",a.stringEditor="stringEditor",a.multiselectEditor="multiselectEditor"}(c||(c={})),function(a){a.labelValue="labelValue",a.pagination="pagination",a.loadMore="loadMore",a.reload="reload"}(p||(p={}));const u="onGridReady",h="__editedColumn",v="__errorColumn",m={},w=n.DI.createInterface((a=>a.instance(m)));var b;!function(a){a.camelCase="camelCase",a.capitalCase="capitalCase",a.dotCase="dotCase",a.headerCase="headerCase",a.noCase="noCase",a.paramCase="paramCase",a.pascalCase="pascalCase",a.pathCase="pathCase",a.sentenceCase="sentenceCase",a.snakeCase="snakeCase"}(b||(b={}));const f={rows:!0,maxRows:!1,aggregation:!0,loadMore:{tooltip:"Load more rows from server"},reload:{tooltip:"Reload the datasource."}}},11749:(a,e,r)=>{r.d(e,{H:()=>i});var t=r(55823),o=r(98316);class i{getColumnState(a){return(0,t.sH)(this,void 0,void 0,(function*(){const e=this.session.getLocalStorageItem("gridOptions");if(e){const r=JSON.parse(e);if(a in r)return JSON.parse(r[a])}return[]}))}saveColumnState(a,e){return(0,t.sH)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[a]=JSON.stringify(e),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}getFilterModel(a){return(0,t.sH)(this,void 0,void 0,(function*(){const e=this.session.getLocalStorageItem("gridOptions");if(e){const r=JSON.parse(e);if(a in r)return JSON.parse(r[a])}return{}}))}saveFilterModel(a,e){return(0,t.sH)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[a]=JSON.stringify(e),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}}(0,t.Cg)([o.N],i.prototype,"session",void 0)},53397:(a,e,r)=>{r.d(e,{l:()=>i});var t=r(84674),o=r(11749);const i=t.DI.createInterface((a=>a.singleton(o.H)))},52540:(a,e,r)=>{r.d(e,{k:()=>t});class t{init(a){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");const e=a;e.hide&&(this.element.style.display="none"),this.element.setAttribute("aria-label",`${e.label}: ${e.value}`);const r=document.createElement("span");r.setAttribute("data-test-id","grid-label-value-label"),r.setAttribute("aria-hidden","true"),r.innerHTML=`${e.label}:&nbsp; `;const t=document.createElement("span");t.classList.add("ag-status-name-value-value"),t.setAttribute("data-test-id","grid-label-value-value"),t.setAttribute("aria-hidden","true"),t.innerHTML=e.value,this.element.appendChild(r),this.element.appendChild(t)}getGui(){return this.element}destroy(){}}},49104:(a,e,r)=>{r.d(e,{s:()=>g});var t=r(55823),o=r(68424),i=r(63486);class g{constructor(){this.buttonLabel="Load More",this.isLoading=!1,this.isLeftAligned=!1}init(a){var e,r,t;for(this.params=a,this.gridApi=a.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===(e=this.gridApi)||void 0===e?void 0:e.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.J)(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 a,e;this.loadMoreButton=document.createElement(`${this.designSystemPrefix}-button`),this.loadMoreButton.setAttribute("data-test-id","grid-load-more-button");const r=(null===(a=this.params)||void 0===a?void 0:a.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===(e=this.params)||void 0===e?void 0:e.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(a){this.showLoading(!1)}})),this.loadMoreButton.addEventListener("click",this.clickHandler)}updateAriaLabel(){var a,e;let r;r=(null===(a=this.params)||void 0===a?void 0:a.tooltip)?this.params.tooltip:this.isLoading?"Loading more data":(null===(e=this.params)||void 0===e?void 0:e.moreRows)?"Load more rows from server":"No more rows available",this.loadMoreButton.setAttribute("aria-label",r)}showLoading(a){var e;this.isLoading=a,a?(this.progressRing.style.display="inline-block",this.loadMoreButton.setAttribute("disabled","true"),this.loadMoreButton.textContent="Loading..."):(this.progressRing.style.display="none",(null===(e=this.params)||void 0===e?void 0:e.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(a){var e,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),a),(null==t?void 0:t.tooltip)!==(null===(e=this.params)||void 0===e?void 0:e.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:(a,e,r)=>{r.d(e,{h:()=>t});class t{init(a){this.api=a.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",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("first"))})),this.prevPageButton.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("previous"))})),this.nextPageButton.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("next"))})),this.lastPageButton.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("last"))}))}createPaginationButton(a,e,r,t){const o=document.createElement("div");o.setAttribute("ref",a),o.className=e,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-${a.substring(2).toLowerCase()}`,i.setAttribute("unselectable","on"),i.setAttribute("role","presentation"),o.appendChild(i),o}goToPage(a){switch(a){case"first":this.api.paginationGoToFirstPage();break;case"previous":this.api.paginationGoToPreviousPage();break;case"next":this.api.paginationGoToNextPage();break;case"last":this.api.paginationGoToLastPage()}}updateDisplay(){const a=this.api.paginationGetCurrentPage()+1,e=this.api.paginationGetTotalPages()||1,r=this.api.paginationGetPageSize(),t=this.api.paginationGetRowCount();this.pageNumberDisplay.textContent=a.toString(),this.pageNumberTotalDisplay.textContent=e.toString();const o=(a-1)*r+1,i=Math.min(a*r,t);this.paginationSummaryPanel.textContent=`${t>0?o:0} to ${i} of ${t}`;const g=1===a,n=a>=e;this.updateButtonState(this.firstPageButton,g),this.updateButtonState(this.prevPageButton,g),this.updateButtonState(this.nextPageButton,n),this.updateButtonState(this.lastPageButton,n)}updateButtonState(a,e){e?(a.classList.add("ag-disabled"),a.setAttribute("aria-disabled","true"),a.setAttribute("tabindex","-1")):(a.classList.remove("ag-disabled"),a.setAttribute("aria-disabled","false"),a.setAttribute("tabindex","0"))}destroy(){this.api&&this.paginationChangedHandler&&this.api.removeEventListener("paginationChanged",this.paginationChangedHandler),this.api=null,this.paginationChangedHandler=null}}},88863:(a,e,r)=>{r.d(e,{W:()=>g});var t=r(55823),o=r(68424),i=r(63486);class g{constructor(){this.isReloading=!1}init(a){this.params=a,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.J)(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 a,e,r,o;if("zero"===this.designSystemPrefix||"rapid"===this.designSystemPrefix){this.refreshIcon=document.createElement(`${this.designSystemPrefix}-icon`);const r=(null===(a=this.params)||void 0===a?void 0:a.icon)||"refresh";this.refreshIcon.setAttribute("name",r),this.refreshIcon.setAttribute("aria-label",(null===(e=this.params)||void 0===e?void 0:e.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(a){this.showReloading(!1)}})),this.refreshIcon.addEventListener("click",this.clickHandler),this.refreshIcon.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.clickHandler(new MouseEvent("click")))}))}showReloading(a){this.isReloading=a,a?(this.refreshIcon.style.display="none",this.progressRing.style.display="inline-block"):(this.refreshIcon.style.display="inline-flex",this.progressRing.style.display="none")}updateParams(a){var e,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),a),(null==t?void 0:t.tooltip)!==(null===(e=this.params)||void 0===e?void 0:e.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))}}},73203:(a,e,r)=>{r.d(e,{y:()=>t});class t{init(a){const e=this.eGui=document.createElement("div"),r=a.value;e.classList.add("custom-tooltip"),e.style["background-color"]="#f14376",e.style.border="1px inside",e.style["border-color"]="#2e3339",e.style["border-radius"]="4px",e.style.padding="5px",e.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",e.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}},23201:(a,e,r)=>{function t(a,e){const r={},t=[],o="field",i="colId";return e.forEach((e=>{const g=a.find((a=>a[o]===e[i]||a[i]&&a[i]===e[i]));if(g){const a=Object.assign(Object.assign({},g),e);r[g[o]]=a,t.push(a)}})),a.forEach((a=>{if(!r.hasOwnProperty(a[o])){const e=Object.assign({},a);r[a[o]]=e,t.push(e)}})),t}r.d(e,{y:()=>t})},1510:(a,e,r)=>{r.d(e,{v:()=>o});var t=r(50995);const o=(0,t.createLogger)("grid-pro")},49874:(a,e,r)=>{function t(a){const e=[];for(const[r]of a)r&&e.push(r);return e}function o(a){const e=[];function r(a){for(const r of a)null!==r&&e.push(r)}for(const[e,t]of a)null!==e&&null!==t&&r(t);return e}r.d(e,{P:()=>o,i:()=>t})},50103:(a,e,r)=>{r.d(e,{w:()=>t});const t=a=>a.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},21409:(a,e,r)=>{r.d(e,{S:()=>o});var t=r(55823);const o=a=>{var e,r,o,g,n,l,d,s,c;return c=class extends a{constructor(...a){super(a),e.add(this),r.set(this,{_key:"dom"}),o.set(this,""),g.set(this,!1),n.set(this,void 0),l.set(this,!1)}cloneNode(a){const e=this.deepClone();return a&&Array.from(this.childNodes).forEach((a=>{e.appendChild(a.cloneNode(!0))})),e}deepClone(){const a=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((e=>a.setAttribute(e,this.getAttribute(e)))),a}get shouldRunDisconnect(){return!!(0,t.gn)(this,l,"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,e,"m",d).call(this,"disconnect")))}get shouldRunConnect(){if((0,t.gn)(this,l,"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 a="reconnect";return!1===(0,t.gn)(this,g,"f")&&((0,t.GG)(this,g,!0,"f"),a="connect"),!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,e,"m",d).call(this,a))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,t.gn)(this,r,"f")._key&&(0,t.GG)(this,r,(0,t.gn)(this,e,"m",s).call(this,this),"f")}},r=new WeakMap,o=new WeakMap,g=new WeakMap,n=new WeakMap,l=new WeakMap,e=new WeakSet,d=function(a){var e,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 g=(0,t.gn)(this,o,"f")!==(0,t.gn)(this,r,"f").lifecycleUpdateToken;let d=!1;return"connect"===a?(0,t.GG)(this,o,null!==(e=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==e?e:"","f"):"disconnect"===a?(d=g,(0,t.GG)(this,n,setTimeout((()=>{(0,t.GG)(this,l,d,"f"),(0,t.gn)(this,l,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===a&&(d=g,(0,t.GG)(this,o,null!==(i=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==i?i:"","f"),clearTimeout((0,t.gn)(this,n,"f"))),d},s=function a(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 g=r.getRootNode().host;if("FoundationLayoutMain"===g.class){const a=g;return a._key="foundation-layout",a}return(0,t.gn)(this,e,"m",a).call(this,g)},c},i=Symbol("layout-cache-document")},21530:(a,e,r)=>{r.d(e,{O:()=>o});var t=r(28745);const o=(a,e)=>{var r;let o=document.getElementById(e);if(o)return void t.v.debug(`\n An element with the id of '${e}' 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=e,i.appendChild(o);if((a.match(/}/g)||[]).length>1)return o.textContent=a,()=>{o&&i.removeChild(o)};{const e=o.sheet.insertRule(a);return()=>{o&&(o.sheet.deleteRule(e),i.removeChild(o))}}}},63486:(a,e,r)=>{r.d(e,{c:()=>t});const t=a=>new Promise((e=>{setTimeout(e,a)}))},28745:(a,e,r)=>{r.d(e,{v:()=>o});var t=r(50995);const o=(0,t.createLogger)("foundation-utils")}}]);
8565
+ `;var c,p;!function(a){a.action="action",a.actionsMenu="actionsMenu",a.boolean="boolean",a.editable="editable",a.text="text",a.select="select",a.statusPill="statusPill",a.dateEditor="dateEditor",a.selectEditor="selectEditor",a.numberEditor="numberEditor",a.stringEditor="stringEditor",a.multiselectEditor="multiselectEditor"}(c||(c={})),function(a){a.labelValue="labelValue",a.pagination="pagination",a.loadMore="loadMore",a.reload="reload"}(p||(p={}));const u="onGridReady",h="__editedColumn",v="__errorColumn",m={},w=n.DI.createInterface((a=>a.instance(m)));var b;!function(a){a.camelCase="camelCase",a.capitalCase="capitalCase",a.dotCase="dotCase",a.headerCase="headerCase",a.noCase="noCase",a.paramCase="paramCase",a.pascalCase="pascalCase",a.pathCase="pathCase",a.sentenceCase="sentenceCase",a.snakeCase="snakeCase"}(b||(b={}));const f={rows:!0,maxRows:!1,aggregation:!0,loadMore:{tooltip:"Load more rows from server"},reload:{tooltip:"Reload the datasource."}}},11749:(a,e,r)=>{r.d(e,{H:()=>i});var t=r(55823),o=r(98316);class i{getColumnState(a){return(0,t.sH)(this,void 0,void 0,(function*(){const e=this.session.getLocalStorageItem("gridOptions");if(e){const r=JSON.parse(e);if(a in r)return JSON.parse(r[a])}return[]}))}saveColumnState(a,e){return(0,t.sH)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[a]=JSON.stringify(e),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}getFilterModel(a){return(0,t.sH)(this,void 0,void 0,(function*(){const e=this.session.getLocalStorageItem("gridOptions");if(e){const r=JSON.parse(e);if(a in r)return JSON.parse(r[a])}return{}}))}saveFilterModel(a,e){return(0,t.sH)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[a]=JSON.stringify(e),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}}(0,t.Cg)([o.N],i.prototype,"session",void 0)},53397:(a,e,r)=>{r.d(e,{l:()=>i});var t=r(84674),o=r(11749);const i=t.DI.createInterface((a=>a.singleton(o.H)))},52540:(a,e,r)=>{r.d(e,{k:()=>t});class t{init(a){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");const e=a;e.hide&&(this.element.style.display="none"),this.element.setAttribute("aria-label",`${e.label}: ${e.value}`);const r=document.createElement("span");r.setAttribute("data-test-id","grid-label-value-label"),r.setAttribute("aria-hidden","true"),r.innerHTML=`${e.label}:&nbsp; `;const t=document.createElement("span");t.classList.add("ag-status-name-value-value"),t.setAttribute("data-test-id","grid-label-value-value"),t.setAttribute("aria-hidden","true"),t.innerHTML=e.value,this.element.appendChild(r),this.element.appendChild(t)}getGui(){return this.element}destroy(){}}},49104:(a,e,r)=>{r.d(e,{s:()=>g});var t=r(55823),o=r(68424),i=r(63486);class g{constructor(){this.buttonLabel="Load More",this.isLoading=!1,this.isLeftAligned=!1}init(a){var e,r,t;for(this.params=a,this.gridApi=a.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===(e=this.gridApi)||void 0===e?void 0:e.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.J)(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 a,e;this.loadMoreButton=document.createElement(`${this.designSystemPrefix}-button`),this.loadMoreButton.setAttribute("data-test-id","grid-load-more-button");const r=(null===(a=this.params)||void 0===a?void 0:a.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===(e=this.params)||void 0===e?void 0:e.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(a){this.showLoading(!1)}})),this.loadMoreButton.addEventListener("click",this.clickHandler)}updateAriaLabel(){var a,e;let r;r=(null===(a=this.params)||void 0===a?void 0:a.tooltip)?this.params.tooltip:this.isLoading?"Loading more data":(null===(e=this.params)||void 0===e?void 0:e.moreRows)?"Load more rows from server":"No more rows available",this.loadMoreButton.setAttribute("aria-label",r)}showLoading(a){var e;this.isLoading=a,a?(this.progressRing.style.display="inline-block",this.loadMoreButton.setAttribute("disabled","true"),this.loadMoreButton.textContent="Loading..."):(this.progressRing.style.display="none",(null===(e=this.params)||void 0===e?void 0:e.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(a){var e,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),a),(null==t?void 0:t.tooltip)!==(null===(e=this.params)||void 0===e?void 0:e.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:(a,e,r)=>{r.d(e,{h:()=>t});class t{init(a){this.api=a.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",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("first"))})),this.prevPageButton.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("previous"))})),this.nextPageButton.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("next"))})),this.lastPageButton.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.goToPage("last"))}))}createPaginationButton(a,e,r,t){const o=document.createElement("div");o.setAttribute("ref",a),o.className=e,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-${a.substring(2).toLowerCase()}`,i.setAttribute("unselectable","on"),i.setAttribute("role","presentation"),o.appendChild(i),o}goToPage(a){switch(a){case"first":this.api.paginationGoToFirstPage();break;case"previous":this.api.paginationGoToPreviousPage();break;case"next":this.api.paginationGoToNextPage();break;case"last":this.api.paginationGoToLastPage()}}updateDisplay(){const a=this.api.paginationGetCurrentPage()+1,e=this.api.paginationGetTotalPages()||1,r=this.api.paginationGetPageSize(),t=this.api.paginationGetRowCount();this.pageNumberDisplay.textContent=a.toString(),this.pageNumberTotalDisplay.textContent=e.toString();const o=(a-1)*r+1,i=Math.min(a*r,t);this.paginationSummaryPanel.textContent=`${t>0?o:0} to ${i} of ${t}`;const g=1===a,n=a>=e;this.updateButtonState(this.firstPageButton,g),this.updateButtonState(this.prevPageButton,g),this.updateButtonState(this.nextPageButton,n),this.updateButtonState(this.lastPageButton,n)}updateButtonState(a,e){e?(a.classList.add("ag-disabled"),a.setAttribute("aria-disabled","true"),a.setAttribute("tabindex","-1")):(a.classList.remove("ag-disabled"),a.setAttribute("aria-disabled","false"),a.setAttribute("tabindex","0"))}destroy(){this.api&&this.paginationChangedHandler&&this.api.removeEventListener("paginationChanged",this.paginationChangedHandler),this.api=null,this.paginationChangedHandler=null}}},88863:(a,e,r)=>{r.d(e,{W:()=>g});var t=r(55823),o=r(68424),i=r(63486);class g{constructor(){this.isReloading=!1}init(a){this.params=a,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.J)(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 a,e,r,o;if("zero"===this.designSystemPrefix||"rapid"===this.designSystemPrefix){this.refreshIcon=document.createElement(`${this.designSystemPrefix}-icon`);const r=(null===(a=this.params)||void 0===a?void 0:a.icon)||"refresh";this.refreshIcon.setAttribute("name",r),this.refreshIcon.setAttribute("aria-label",(null===(e=this.params)||void 0===e?void 0:e.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(a){this.showReloading(!1)}})),this.refreshIcon.addEventListener("click",this.clickHandler),this.refreshIcon.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),this.clickHandler(new MouseEvent("click")))}))}showReloading(a){this.isReloading=a,a?(this.refreshIcon.style.display="none",this.progressRing.style.display="inline-block"):(this.refreshIcon.style.display="inline-flex",this.progressRing.style.display="none")}updateParams(a){var e,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),a),(null==t?void 0:t.tooltip)!==(null===(e=this.params)||void 0===e?void 0:e.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))}}},73203:(a,e,r)=>{r.d(e,{y:()=>t});class t{init(a){const e=this.eGui=document.createElement("div"),r=a.value;e.classList.add("custom-tooltip"),e.style["background-color"]="#f14376",e.style.border="1px inside",e.style["border-color"]="#2e3339",e.style["border-radius"]="4px",e.style.padding="5px",e.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",e.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}},23201:(a,e,r)=>{function t(a,e){const r={},t=[],o="field",i="colId";return e.forEach((e=>{const g=a.find((a=>a[o]===e[i]||a[i]&&a[i]===e[i]));if(g){const a=Object.assign(Object.assign({},g),e);r[g[o]]=a,t.push(a)}})),a.forEach((a=>{if(!r.hasOwnProperty(a[o])){const e=Object.assign({},a);r[a[o]]=e,t.push(e)}})),t}r.d(e,{y:()=>t})},1510:(a,e,r)=>{r.d(e,{v:()=>o});var t=r(10146);const o=(0,t.createLogger)("grid-pro")},49874:(a,e,r)=>{function t(a){const e=[];for(const[r]of a)r&&e.push(r);return e}function o(a){const e=[];function r(a){for(const r of a)null!==r&&e.push(r)}for(const[e,t]of a)null!==e&&null!==t&&r(t);return e}r.d(e,{P:()=>o,i:()=>t})},50103:(a,e,r)=>{r.d(e,{w:()=>t});const t=a=>a.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},21409:(a,e,r)=>{r.d(e,{S:()=>o});var t=r(55823);const o=a=>{var e,r,o,g,n,l,d,s,c;return c=class extends a{constructor(...a){super(a),e.add(this),r.set(this,{_key:"dom"}),o.set(this,""),g.set(this,!1),n.set(this,void 0),l.set(this,!1)}cloneNode(a){const e=this.deepClone();return a&&Array.from(this.childNodes).forEach((a=>{e.appendChild(a.cloneNode(!0))})),e}deepClone(){const a=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((e=>a.setAttribute(e,this.getAttribute(e)))),a}get shouldRunDisconnect(){return!!(0,t.gn)(this,l,"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,e,"m",d).call(this,"disconnect")))}get shouldRunConnect(){if((0,t.gn)(this,l,"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 a="reconnect";return!1===(0,t.gn)(this,g,"f")&&((0,t.GG)(this,g,!0,"f"),a="connect"),!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,e,"m",d).call(this,a))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,t.gn)(this,r,"f")._key&&(0,t.GG)(this,r,(0,t.gn)(this,e,"m",s).call(this,this),"f")}},r=new WeakMap,o=new WeakMap,g=new WeakMap,n=new WeakMap,l=new WeakMap,e=new WeakSet,d=function(a){var e,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 g=(0,t.gn)(this,o,"f")!==(0,t.gn)(this,r,"f").lifecycleUpdateToken;let d=!1;return"connect"===a?(0,t.GG)(this,o,null!==(e=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==e?e:"","f"):"disconnect"===a?(d=g,(0,t.GG)(this,n,setTimeout((()=>{(0,t.GG)(this,l,d,"f"),(0,t.gn)(this,l,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===a&&(d=g,(0,t.GG)(this,o,null!==(i=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==i?i:"","f"),clearTimeout((0,t.gn)(this,n,"f"))),d},s=function a(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 g=r.getRootNode().host;if("FoundationLayoutMain"===g.class){const a=g;return a._key="foundation-layout",a}return(0,t.gn)(this,e,"m",a).call(this,g)},c},i=Symbol("layout-cache-document")},21530:(a,e,r)=>{r.d(e,{O:()=>o});var t=r(28745);const o=(a,e)=>{var r;let o=document.getElementById(e);if(o)return void t.v.debug(`\n An element with the id of '${e}' 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=e,i.appendChild(o);if((a.match(/}/g)||[]).length>1)return o.textContent=a,()=>{o&&i.removeChild(o)};{const e=o.sheet.insertRule(a);return()=>{o&&(o.sheet.deleteRule(e),i.removeChild(o))}}}},63486:(a,e,r)=>{r.d(e,{c:()=>t});const t=a=>new Promise((e=>{setTimeout(e,a)}))},28745:(a,e,r)=>{r.d(e,{v:()=>o});var t=r(10146);const o=(0,t.createLogger)("foundation-utils")}}]);
8566
8566
  //# sourceMappingURL=445.17ba2e4456a0a3ca26429dc0698faf69.js.map