@genesislcap/design-system-configurator 14.418.1 → 14.418.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{106.e54ea82b95389be07c4cf6df257df179.js.map → 106.045b15677dc628bb6723746d03d4e4a5.js.map} +1 -1
- package/dist/106.106.2b9c9fd665f12f69c276.js +2 -0
- package/dist/151.151.f5b46941766f3dd0423f.js +2 -0
- package/dist/{151.68605fb2475becdbde3e7b42592f70ae.js.map → 151.bf0f55a4e61c4d3cd4b3bf6c54d42de0.js.map} +1 -1
- package/dist/{163.163.166100ac948f0bf1c69f.js → 163.163.0e9c8688707dcc82905b.js} +2 -2
- package/dist/{163.8afd5b9ff89bb016989bc0946d1bdf25.js.map → 163.92cb9d095330c48d075bcb20e3d93d55.js.map} +1 -1
- package/dist/{182.182.eb024a292bf4375468c1.js → 182.182.bb98c3da5c5149613107.js} +4 -4
- package/dist/{182.e9e329a216086e248a1cadf9ea69b3ac.js.map → 182.a8198c05e2a0d31a6cfce0e2f48fc765.js.map} +1 -1
- package/dist/{3.681d290bbde07662731a9ba5dd362744.js.map → 3.2fe93de19497cd15e868ef024dd8c9d6.js.map} +1 -1
- package/dist/{3.3.051cc336479e3b36e3fc.js → 3.3.85b23b458df4a685eb78.js} +3 -3
- package/dist/{404.404.105e02d09a818b846d95.js → 404.404.0fe8e4cd7d1284bcb969.js} +3 -3
- package/dist/404.eaec1a88e83a0a0d6fee7be80d420319.js.map +1 -0
- package/dist/{445.445.0e33d899cd51167a52a1.js → 445.445.2a13e83178b44e9b97c1.js} +3 -3
- package/dist/{445.2e06e4b638f2e030bad049332661effd.js.map → 445.b12fa5f7e0dde66ba22d93a24a7c160d.js.map} +1 -1
- package/dist/{627.627.c64d08123a0f69743542.js → 627.627.7c604e0b2e9c754f330c.js} +5 -5
- package/dist/{627.e87a1f2bc1438cb2b62efe1508391b0a.js.map → 627.ae04f3e74ba9a6ff554b0dc603563e49.js.map} +1 -1
- package/dist/{72.72.2914c6ec277e164c5460.js → 72.72.01cf1c3e8c8ee5544e0d.js} +2 -2
- package/dist/{72.3027c7a9ce2aca8c7e34630d9937c7a9.js.map → 72.7d14f34f9845376625ca29332528219a.js.map} +1 -1
- package/dist/{designSystemConfigurator.c5c8689f1881df9423473b4191d03bf0.js.map → designSystemConfigurator.e3de3cb95e3b252cc056dcc6dc3a760f.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.7d88f0ea3f4ae3fbfde50fc423c35d54.js.map → main.69eaa9efa18c33016db0a21b1b4ec066.js.map} +1 -1
- package/dist/main.f4ac2ae3f9152f6f2d6f.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/106.106.c6e4f9faca1a5b5fb548.js +0 -2
- package/dist/151.151.c577e9ef8286d2363ba2.js +0 -2
- package/dist/404.1c600127aca03578157fd6e07730cb6c.js.map +0 -1
- package/dist/main.84124b9400bebd7383b8.js +0 -2
|
@@ -8652,9 +8652,9 @@
|
|
|
8652
8652
|
</span>
|
|
8653
8653
|
${a=>a.customErrorHandlerTemplate?a.customErrorHandlerTemplate(e,a.gridErrorItems.filter(({type:e})=>"datasource"===e)):(0,o.P)(e,a.gridErrorItems.filter(({type:e})=>"datasource"===e))}
|
|
8654
8654
|
</template>
|
|
8655
|
-
`,n=i()},55365(e,a,r){r.d(a,{A7:()=>h,IX:()=>c,Kb:()=>d,W3:()=>t,YO:()=>m,b7:()=>s,eL:()=>g,h1:()=>v,k7:()=>p,lz:()=>w,mJ:()=>o,mr:()=>u,o2:()=>b,uA:()=>f});var t,o,i=r(
|
|
8655
|
+
`,n=i()},55365(e,a,r){r.d(a,{A7:()=>h,IX:()=>c,Kb:()=>d,W3:()=>t,YO:()=>m,b7:()=>s,eL:()=>g,h1:()=>v,k7:()=>p,lz:()=>w,mJ:()=>o,mr:()=>u,o2:()=>b,uA:()=>f});var t,o,i=r(63107),n=r(33681),l=r(38370);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(t||(t={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(o||(o={}));const g=e=>`${e}-token-map`,s=e=>`${e}-fonts`,d=(e,a)=>n.css`
|
|
8656
8656
|
.${g(e)} {
|
|
8657
8657
|
${new i.CSSVarsTokenMapper(a)}
|
|
8658
8658
|
}
|
|
8659
|
-
`;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={},w=l.DI.createInterface(e=>e.instance(m));var f;!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"}(f||(f={}));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}: `,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,w,f,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,A=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),S=null!==(v=null===(h=x.paginationGetRowCount)||void 0===h?void 0:h.call(x))&&void 0!==v?v:null===(w=null===(m=x.paginationProxy)||void 0===m?void 0:m.getMasterRowCount)||void 0===w?void 0:w.call(m),D="serverSide"===(null===(z=null===(y=null===(b=(f=this.api).getModel)||void 0===b?void 0:b.call(f))||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=D?"more":k.toString(),D?(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)*A+1,M=Math.min(C*A,S),T=D?"more":S.toString();this.paginationSummaryPanel.textContent=`${S>0?R:0} to ${M} of ${T}`;const E=1===C,N=!D&&C>=k;this.updateButtonState(this.firstPageButton,E),this.updateButtonState(this.prevPageButton,E),this.updateButtonState(this.nextPageButton,N),this.updateButtonState(this.lastPageButton,D||N),D?(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: ",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}}function o(e){return e.map(t)}function i(e,a){const r={},t=[],o="field",i="colId";return a.forEach(a=>{const n=e.find(e=>e[o]===a[i]||e[i]&&e[i]===a[i]);if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}}),e.forEach(e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}}),t}r.d(a,{pr:()=>t,rG:()=>o,yS:()=>i})},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(5054).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(5054).createLogger)("foundation-utils")}}]);
|
|
8660
|
-
//# sourceMappingURL=445.
|
|
8659
|
+
`;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={},w=l.DI.createInterface(e=>e.instance(m));var f;!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"}(f||(f={}));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}: `,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,w,f,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,A=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),S=null!==(v=null===(h=x.paginationGetRowCount)||void 0===h?void 0:h.call(x))&&void 0!==v?v:null===(w=null===(m=x.paginationProxy)||void 0===m?void 0:m.getMasterRowCount)||void 0===w?void 0:w.call(m),D="serverSide"===(null===(z=null===(y=null===(b=(f=this.api).getModel)||void 0===b?void 0:b.call(f))||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=D?"more":k.toString(),D?(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)*A+1,M=Math.min(C*A,S),T=D?"more":S.toString();this.paginationSummaryPanel.textContent=`${S>0?R:0} to ${M} of ${T}`;const E=1===C,N=!D&&C>=k;this.updateButtonState(this.firstPageButton,E),this.updateButtonState(this.prevPageButton,E),this.updateButtonState(this.nextPageButton,N),this.updateButtonState(this.lastPageButton,D||N),D?(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: ",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}}function o(e){return e.map(t)}function i(e,a){const r={},t=[],o="field",i="colId";return a.forEach(a=>{const n=e.find(e=>e[o]===a[i]||e[i]&&e[i]===a[i]);if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}}),e.forEach(e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}}),t}r.d(a,{pr:()=>t,rG:()=>o,yS:()=>i})},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(35311).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(35311).createLogger)("foundation-utils")}}]);
|
|
8660
|
+
//# sourceMappingURL=445.b12fa5f7e0dde66ba22d93a24a7c160d.js.map
|