@genesislcap/design-system-configurator 14.427.0 → 14.428.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.
- package/dist/106.106.873be83ea1662e3411a7.js +2 -0
- package/dist/{106.045b15677dc628bb6723746d03d4e4a5.js.map → 106.bd1ba43798c514478c765df2b0d505fd.js.map} +1 -1
- package/dist/{151.151.3a73020fcd54290212fb.js → 151.151.e71373c44ec540d2832b.js} +1 -1
- package/dist/{163.163.3c8c774024c0ace2023c.js → 163.163.a94a2be3697c7238ed7d.js} +1 -1
- package/dist/{182.182.f613b53c2583c18a862d.js → 182.182.abf8934d7a7aade75332.js} +3 -3
- package/dist/{210.210.38a437851eafab38113a.js → 210.210.a09201f35069dfc36bde.js} +2 -2
- package/dist/{3.3.32a559ea0ddf814313d0.js → 3.3.e55110961049fd78ae0d.js} +2 -2
- package/dist/{445.445.a60d68d6ddaf64154040.js → 445.445.80e79c0be34be0593629.js} +2 -2
- package/dist/{627.627.42f51bbaaa7a00dea39e.js → 627.627.23efb2008a124a336c56.js} +7 -7
- package/dist/627.9d3243203f0cc229aab314a84c14b038.js.map +1 -0
- package/dist/{72.72.6783be16024d80b1a1e3.js → 72.72.8b87d2a32012cdbf13db.js} +2 -2
- package/dist/{72.49c400624bd7ec5a251fa2882f16a4bc.js.map → 72.7d14f34f9845376625ca29332528219a.js.map} +1 -1
- package/dist/{designSystemConfigurator.b2f249228842a2438de0cd0399a65a6d.js.map → designSystemConfigurator.dcdeca6ed84a630c137d8a9912f7940c.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.e75a5623a4bf7f8e1a111f98f29c8f69.js.map → main.23e6e7bcf1c2827b68cf54110393ebc0.js.map} +1 -1
- package/dist/main.7e26675e18a68e23a5c3.js +2 -0
- package/dist/npm.jsonforms.283.154bc31fc60a0e7e38e5.js +2 -0
- package/dist/{npm.jsonforms.7e8eec0d982d8328c230880c2353d56a.js.map → npm.jsonforms.c3af23f4a259671bc86b40c50d1e8425.js.map} +1 -1
- package/dist/{npm.lodash.23.a5bdd23ca23b6cb64d3c.js → npm.lodash.23.ee8ccf6f4e94f6e26b60.js} +2 -2
- package/dist/{npm.lodash.c04538fa93419173d3281af04512a0c0.js.map → npm.lodash.d9d73ac66f5ee664382ecfc2dc8ce831.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/106.106.3f0bb43efd34b905efcb.js +0 -2
- package/dist/627.2646fad0f89529d7a50c80d87b6b249b.js.map +0 -1
- package/dist/main.7f473d9cda596b2b5778.js +0 -2
- package/dist/npm.jsonforms.283.8e1f09499c5ccfbc4f76.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:()=>f,uA:()=>b});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:()=>f,uA:()=>b});var t,o,i=r(75697),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 b;!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"}(b||(b={}));const f={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,b,f,y,z;const x=this.api,C=(null!==(o=null!==(a=null===(e=x.paginationGetCurrentPage)||void 0===e?void 0:e.call(x))&&void 0!==a?a:null===(t=null===(r=x.paginationProxy)||void 0===r?void 0:r.getCurrentPage)||void 0===t?void 0:t.call(r))&&void 0!==o?o:0)+1,k=null!==(s=null!==(n=null===(i=x.paginationGetTotalPages)||void 0===i?void 0:i.call(x))&&void 0!==n?n:null===(g=null===(l=x.paginationProxy)||void 0===l?void 0:l.getTotalPages)||void 0===g?void 0:g.call(l))&&void 0!==s?s:1,S=null!==(c=null===(d=x.paginationGetPageSize)||void 0===d?void 0:d.call(x))&&void 0!==c?c:null===(u=null===(p=x.paginationProxy)||void 0===p?void 0:p.getPageSize)||void 0===u?void 0:u.call(p),A=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===(f=(b=this.api).getModel)||void 0===f?void 0:f.call(b))||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)*S+1,M=Math.min(C*S,A),T=D?"more":A.toString();this.paginationSummaryPanel.textContent=`${A>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(44809).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(44809).createLogger)("foundation-utils")}}]);
|
|
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 b;!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"}(b||(b={}));const f={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,b,f,y,z;const x=this.api,C=(null!==(o=null!==(a=null===(e=x.paginationGetCurrentPage)||void 0===e?void 0:e.call(x))&&void 0!==a?a:null===(t=null===(r=x.paginationProxy)||void 0===r?void 0:r.getCurrentPage)||void 0===t?void 0:t.call(r))&&void 0!==o?o:0)+1,k=null!==(s=null!==(n=null===(i=x.paginationGetTotalPages)||void 0===i?void 0:i.call(x))&&void 0!==n?n:null===(g=null===(l=x.paginationProxy)||void 0===l?void 0:l.getTotalPages)||void 0===g?void 0:g.call(l))&&void 0!==s?s:1,S=null!==(c=null===(d=x.paginationGetPageSize)||void 0===d?void 0:d.call(x))&&void 0!==c?c:null===(u=null===(p=x.paginationProxy)||void 0===p?void 0:p.getPageSize)||void 0===u?void 0:u.call(p),A=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===(f=(b=this.api).getModel)||void 0===f?void 0:f.call(b))||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)*S+1,M=Math.min(C*S,A),T=D?"more":A.toString();this.paginationSummaryPanel.textContent=`${A>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(89437).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(89437).createLogger)("foundation-utils")}}]);
|
|
8660
8660
|
//# sourceMappingURL=445.4f622152dd9b3a994a68782fd9458c82.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[627],{31274(e,t,a){a.d(t,{u:()=>r});var o=a(60416);const r=(e,t,a)=>{(0,o.u_)(e);const r=t.split("-")[0],i=document.createElement(`${r}-dialog`),n=a?(e=>{let t=e.querySelector("#dialog-container");return t||(t=document.createElement("div"),t.setAttribute("id","dialog-container"),t.style.position="relative",e.appendChild(t)),t})(a):(0,o.jE)("dialog-container",t);n.appendChild(i),i.notification=e,i.show()}},60416(e,t,a){a.d(t,{cL:()=>u,jE:()=>p,uP:()=>d,u_:()=>c});var o=a(
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[627],{31274(e,t,a){a.d(t,{u:()=>r});var o=a(60416);const r=(e,t,a)=>{(0,o.u_)(e);const r=t.split("-")[0],i=document.createElement(`${r}-dialog`),n=a?(e=>{let t=e.querySelector("#dialog-container");return t||(t=document.createElement("div"),t.setAttribute("id","dialog-container"),t.style.position="relative",e.appendChild(t)),t})(a):(0,o.jE)("dialog-container",t);n.appendChild(i),i.notification=e,i.show()}},60416(e,t,a){a.d(t,{cL:()=>u,jE:()=>p,uP:()=>d,u_:()=>c});var o=a(89437),r=a(52945),i=a(68424);const n=(0,o.createLogger)("foundation-notifications");let s=null;const l=new Map,d=e=>{var t,a;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(a=null==e?void 0:e.body)&&void 0!==a?a:"Something went wrong"}`},c=e=>{var t,a;n.log({message:d(e),level:(t=e,(null==t?void 0:t.logLevel)||(null===(a=null==t?void 0:t.config)||void 0===a?void 0:a.logLevel)||o.LogLevel.Debug)})},p=(e,t)=>{let a=document.querySelector(`#${e}`);if(!a)if(l.has(e))a=l.get(e);else{const t=(0,r.fI)(document).find(t=>t.id===e);t&&(a=t,l.set(e,t))}if(!a){a=document.createElement("div"),a.setAttribute("id",e),a.style.zIndex="9999";const{element:t,prefix:o}=(0,i.DW)(document.body,"rapid");if(t)t.appendChild(a),s=t;else if(s)s.appendChild(a);else{const e=document.createElement(`${o}-design-system-provider`);e.appendChild(a),document.body.appendChild(e),s=e}}return a},u=e=>{for(var t,a;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(o)return o.style.position="relative",o;e=null===(a=null==e?void 0:e.getRootNode())||void 0===a?void 0:a.host}return g()},g=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e}},70997(e,t,a){function o(e,t,a){const o=e=>"function"==typeof e?e:()=>e,r=o(t),i=o(a);return(t,a)=>e(t,a)?r(t,a):i(t,a)}a.d(t,{q:()=>o})},80273(e,t,a){a.d(t,{Du:()=>l,IT:()=>n,WP:()=>r,f4:()=>s,zz:()=>i});var o=a(52945);const r=(e,t)=>{(0,o.O5)(e,t)};var i,n;!function(e){e.Italic="italic",e.Normal="normal"}(i||(i={})),function(e){e[e.Thin=100]="Thin",e[e.Light=300]="Light",e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold",e[e.Black=900]="Black"}(n||(n={}));const s=(e,t=i.Normal,a=n.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${a};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}},95627(e,t,a){a.r(t),a.d(t,{ColorPalette:()=>Yd,ColorToken:()=>Qd,ColorTokens:()=>ec,DesignSystemEditor:()=>Dd,DesignSystemExport:()=>Vd,DesignSystemPreview:()=>xc,EventName:()=>xd,PreviewApp:()=>sc,PreviewComponents:()=>Hd,PreviewForm:()=>mc,PreviewGrid:()=>fc,TypographyTokens:()=>oc,defaultBodyFont:()=>Ad,fontFamilies:()=>Cd});var o={};a.r(o),a.d(o,{accentFillActive:()=>g.accentFillActive,accentFillActiveDelta:()=>g.accentFillActiveDelta,accentFillFocus:()=>g.accentFillFocus,accentFillFocusDelta:()=>g.accentFillFocusDelta,accentFillHover:()=>g.accentFillHover,accentFillHoverDelta:()=>g.accentFillHoverDelta,accentFillRest:()=>g.accentFillRest,accentFillRestDelta:()=>g.accentFillRestDelta,accentForegroundActive:()=>g.accentForegroundActive,accentForegroundActiveDelta:()=>g.accentForegroundActiveDelta,accentForegroundFocus:()=>g.accentForegroundFocus,accentForegroundFocusDelta:()=>g.accentForegroundFocusDelta,accentForegroundHover:()=>g.accentForegroundHover,accentForegroundHoverDelta:()=>g.accentForegroundHoverDelta,accentForegroundRest:()=>g.accentForegroundRest,accentForegroundRestDelta:()=>g.accentForegroundRestDelta,accentPalette:()=>g.accentPalette,baseHeightMultiplier:()=>g.baseHeightMultiplier,baseLayerLuminance:()=>g.baseLayerLuminance,bodyFont:()=>g.bodyFont,buyColor:()=>wa,controlCornerRadius:()=>g.controlCornerRadius,defaultBuyColor:()=>xa,defaultErrorColor:()=>pa,defaultInfoColor:()=>Ma,defaultSellColor:()=>Ca,defaultSeriousNotifyColor:()=>Fa,defaultSuccessColor:()=>ma,defaultWarningColor:()=>va,density:()=>g.density,designUnit:()=>g.designUnit,direction:()=>g.direction,disabledOpacity:()=>g.disabledOpacity,errorColor:()=>ua,fillColor:()=>g.fillColor,focusStrokeInner:()=>g.focusStrokeInner,focusStrokeOuter:()=>g.focusStrokeOuter,focusStrokeWidth:()=>g.focusStrokeWidth,foregroundOnAccentActive:()=>g.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>g.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>g.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>g.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>g.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>g.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>g.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>g.foregroundOnAccentRestLarge,infoColor:()=>Ra,neutralFillActive:()=>g.neutralFillActive,neutralFillActiveDelta:()=>g.neutralFillActiveDelta,neutralFillFocus:()=>g.neutralFillFocus,neutralFillFocusDelta:()=>g.neutralFillFocusDelta,neutralFillHover:()=>g.neutralFillHover,neutralFillHoverDelta:()=>g.neutralFillHoverDelta,neutralFillInputActive:()=>g.neutralFillInputActive,neutralFillInputActiveDelta:()=>g.neutralFillInputActiveDelta,neutralFillInputFocus:()=>g.neutralFillInputFocus,neutralFillInputFocusDelta:()=>g.neutralFillInputFocusDelta,neutralFillInputHover:()=>g.neutralFillInputHover,neutralFillInputHoverDelta:()=>g.neutralFillInputHoverDelta,neutralFillInputRest:()=>g.neutralFillInputRest,neutralFillInputRestDelta:()=>g.neutralFillInputRestDelta,neutralFillLayerRest:()=>g.neutralFillLayerRest,neutralFillLayerRestDelta:()=>g.neutralFillLayerRestDelta,neutralFillRest:()=>g.neutralFillRest,neutralFillRestDelta:()=>g.neutralFillRestDelta,neutralFillStealthActive:()=>g.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>g.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>g.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>g.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>g.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>g.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>g.neutralFillStealthRest,neutralFillStealthRestDelta:()=>g.neutralFillStealthRestDelta,neutralFillStrongActive:()=>g.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>g.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>g.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>g.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>g.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>g.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>g.neutralFillStrongRest,neutralFillStrongRestDelta:()=>g.neutralFillStrongRestDelta,neutralForegroundHint:()=>g.neutralForegroundHint,neutralForegroundRest:()=>g.neutralForegroundRest,neutralLayer1:()=>g.neutralLayer1,neutralLayer2:()=>g.neutralLayer2,neutralLayer3:()=>g.neutralLayer3,neutralLayer4:()=>g.neutralLayer4,neutralLayerCardContainer:()=>g.neutralLayerCardContainer,neutralLayerFloating:()=>g.neutralLayerFloating,neutralPalette:()=>g.neutralPalette,neutralStrokeActive:()=>g.neutralStrokeActive,neutralStrokeActiveDelta:()=>g.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>g.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>g.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>g.neutralStrokeFocus,neutralStrokeFocusDelta:()=>g.neutralStrokeFocusDelta,neutralStrokeHover:()=>g.neutralStrokeHover,neutralStrokeHoverDelta:()=>g.neutralStrokeHoverDelta,neutralStrokeRest:()=>g.neutralStrokeRest,neutralStrokeRestDelta:()=>g.neutralStrokeRestDelta,sellColor:()=>Aa,seriousNotifyColor:()=>za,strokeWidth:()=>g.strokeWidth,successColor:()=>ha,typeRampBaseFontSize:()=>g.typeRampBaseFontSize,typeRampBaseLineHeight:()=>g.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>g.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>g.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>g.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>g.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>g.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>g.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>g.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>g.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>g.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>g.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>g.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>g.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>g.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>g.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>g.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>g.typeRampPlus6LineHeight,warningColor:()=>fa});var r={};a.r(r),a.d(r,{accentPaletteValue:()=>Oa,baseHeightMultiplierValue:()=>Na,baseLayerLuminanceValue:()=>Da,bodyFontValue:()=>qa,controlCornerRadiusValue:()=>Pa,densityValue:()=>ja,designTokens:()=>Za,designUnitValue:()=>Ba,directionValue:()=>Ta,neutralPaletteValue:()=>La,strokeWidthValue:()=>Ea,typeRampBaseFontSizeValue:()=>Ya,typeRampBaseLineHeightValue:()=>Ja});var i=a(55823),n=a(26347),s=a(21409),l=a(83453),d=a.n(l),c=a(60496),p=a(33681),u=a(38370),g=a(54634),m=a(85090);const h=(e="zero")=>`\n ${e}-combobox::part(listbox) {\n max-height: 500%;\n overflow-y: scroll;\n }\n`,b=p.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${g.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
background: ${m.A.Canvas};
|
|
104
104
|
border-color: ${m.A.CanvasText};
|
|
105
105
|
}
|
|
106
|
-
`));var v=a(20633),f=a(40729);const y={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var x=a(
|
|
106
|
+
`));var v=a(20633),f=a(40729);const y={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var x=a(89437);const w=(0,x.createLogger)("foundation-form"),S=p.html`
|
|
107
107
|
<template>
|
|
108
108
|
${(0,p.when)(e=>!1,p.html`
|
|
109
109
|
<rapid-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
/>
|
|
121
121
|
`)}
|
|
122
122
|
</template>
|
|
123
|
-
`,C=(e,t,a)=>{var o,r,i,n;return null!==(n=null===(i=null===(r=null===(o=null==a?void 0:a.options)||void 0===o?void 0:o.i18n)||void 0===r?void 0:r.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,t,a)=>{var o;return"pattern"===(null==e?void 0:e.keyword)?null!==(o=y[e.params.pattern])&&void 0!==o?o:"Invalid pattern.":(0,c.mXY)(e,t,a)})(e,t,a)};let A=class extends p.FASTElement{constructor(){super(...arguments),this.ajv=(0,c.grE)({useDefaults:!0,$data:!0}),this.rowSubmitStatuses=new Map,this.bulkInsert=!1,this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,c.kkC)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors,additionalErrors:this.jsonforms.core.additionalErrors})},this.validate=e=>{var t,a,o;const r=null===(a=null===(t=this.jsonforms)||void 0===t?void 0:t.core)||void 0===a?void 0:a.data,i=[],n=e=>{var t,a,o,s,l;const d=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.validateFn;if("function"==typeof d){const t=null===(o=null===(a=null==e?void 0:e.scope)||void 0===a?void 0:a.split("/"))||void 0===o?void 0:o.pop(),n=null==e?void 0:e.label;let l=null!==(s=d(r,t,n))&&void 0!==s?s:[];Array.isArray(l)||(l=[l]),i.push(...l)}(null==e?void 0:e.elements)&&e.elements.forEach(e=>{n(e)}),(null===(l=null==e?void 0:e.options)||void 0===l?void 0:l.childElements)&&e.options.childElements.forEach(e=>{n(e)})};return null===(o=null==e?void 0:e.elements)||void 0===o||o.forEach(e=>{n(e)}),i}}prefixChanged(){this.schemaChanged()}schemaChanged(){var e,t,a,o;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:c.wyb.uiSchema(this.schema),this.uischema||w.debug("UI schema not provided. Auto generated schema:",this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,c.kkC)(e,c.En0.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:this.validate(this.uichemaToUse)}))})(),config:(0,c.tWo)(void 0,c.En0.setConfig(this.config)),i18n:(0,c.Fxm)(this.i18n,c.En0.updateI18n(null===(t=this.i18n)||void 0===t?void 0:t.locale,null===(a=this.i18n)||void 0===a?void 0:a.translate,(null===(o=this.i18n)||void 0===o?void 0:o.translateError)||C)),renderers:this.renderers,readonly:this.readonly,rowSubmitStatuses:this.rowSubmitStatuses,bulkInsert:this.bulkInsert};const r=this.validate(this.uichemaToUse);this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors,additionalErrors:r})}uischemaChanged(){this.schemaChanged()}dataChanged(){this.schemaChanged()}renderersChanged(){this.schemaChanged()}validationModeChanged(){this.schemaChanged()}ajvChanged(){this.schemaChanged()}readonlyChanged(){this.schemaChanged()}configChanged(){this.schemaChanged()}rowSubmitStatusesChanged(){this.jsonforms&&(this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{rowSubmitStatuses:this.rowSubmitStatuses}))}bulkInsertChanged(){this.jsonforms&&(this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{bulkInsert:this.bulkInsert}))}get props(){var e;if(!this.schema&&!this.uischema)return;const t=null!==(e=this.uischema)&&void 0!==e?e:c.wyb.uiSchema(this.schema);return{uischema:Object.assign(Object.assign({},t),{elements:t.elements.map(e=>"#/properties/TIMESTAMP"===e.scope?Object.assign(Object.assign({},e),{options:{hidden:!0}}):e)}),schema:this.schema,path:"",enabled:!0,visible:!0}}copyUISchemaToClipboard(){return(0,i.sH)(this,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(JSON.stringify(this.uichemaToUse)),w.debug("Autogenerated UI schema copied to clipboard")}catch(e){w.error("Failed to copy autogenerated UI schema: ",e)}})}};(0,i.Cg)([(0,p.attr)({mode:"boolean"})],A.prototype,"submitted",void 0),(0,i.Cg)([p.observable],A.prototype,"prefix",void 0),(0,i.Cg)([p.observable],A.prototype,"jsonforms",void 0),(0,i.Cg)([p.observable],A.prototype,"i18n",void 0),(0,i.Cg)([p.observable],A.prototype,"uichemaToUse",void 0),(0,i.Cg)([p.observable],A.prototype,"schema",void 0),(0,i.Cg)([p.observable],A.prototype,"uischema",void 0),(0,i.Cg)([p.observable],A.prototype,"data",void 0),(0,i.Cg)([p.observable],A.prototype,"renderers",void 0),(0,i.Cg)([p.observable],A.prototype,"validationMode",void 0),(0,i.Cg)([p.observable],A.prototype,"ajv",void 0),(0,i.Cg)([(0,p.attr)({mode:"boolean"})],A.prototype,"readonly",void 0),(0,i.Cg)([p.observable],A.prototype,"config",void 0),(0,i.Cg)([p.observable],A.prototype,"rowSubmitStatuses",void 0),(0,i.Cg)([p.observable],A.prototype,"bulkInsert",void 0),A=(0,i.Cg)([(0,p.customElement)({name:"json-forms",template:S,styles:p.css`
|
|
123
|
+
`,C=(e,t,a)=>{var o,r,i,n;return null!==(n=null===(i=null===(r=null===(o=null==a?void 0:a.options)||void 0===o?void 0:o.i18n)||void 0===r?void 0:r.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,t,a)=>{var o;return"pattern"===(null==e?void 0:e.keyword)?null!==(o=y[e.params.pattern])&&void 0!==o?o:"Invalid pattern.":(0,c.mXY)(e,t,a)})(e,t,a)};let A=class extends p.FASTElement{constructor(){super(...arguments),this.ajv=(0,c.grE)({useDefaults:!0,$data:!0}),this.rowSubmitStatuses=new Map,this.bulkInsert=!1,this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,c.kkC)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors,additionalErrors:this.jsonforms.core.additionalErrors,path:e.path})},this.validate=e=>{var t,a,o;const r=null===(a=null===(t=this.jsonforms)||void 0===t?void 0:t.core)||void 0===a?void 0:a.data,i=[],n=e=>{var t,a,o,s,l;const d=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.validateFn;if("function"==typeof d){const t=null===(o=null===(a=null==e?void 0:e.scope)||void 0===a?void 0:a.split("/"))||void 0===o?void 0:o.pop(),n=null==e?void 0:e.label;let l=null!==(s=d(r,t,n))&&void 0!==s?s:[];Array.isArray(l)||(l=[l]),i.push(...l)}(null==e?void 0:e.elements)&&e.elements.forEach(e=>{n(e)}),(null===(l=null==e?void 0:e.options)||void 0===l?void 0:l.childElements)&&e.options.childElements.forEach(e=>{n(e)})};return null===(o=null==e?void 0:e.elements)||void 0===o||o.forEach(e=>{n(e)}),i}}prefixChanged(){this.schemaChanged()}schemaChanged(){var e,t,a,o;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:c.wyb.uiSchema(this.schema),this.uischema||w.debug("UI schema not provided. Auto generated schema:",this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,c.kkC)(e,c.En0.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:this.validate(this.uichemaToUse)}))})(),config:(0,c.tWo)(void 0,c.En0.setConfig(this.config)),i18n:(0,c.Fxm)(this.i18n,c.En0.updateI18n(null===(t=this.i18n)||void 0===t?void 0:t.locale,null===(a=this.i18n)||void 0===a?void 0:a.translate,(null===(o=this.i18n)||void 0===o?void 0:o.translateError)||C)),renderers:this.renderers,readonly:this.readonly,rowSubmitStatuses:this.rowSubmitStatuses,bulkInsert:this.bulkInsert};const r=this.validate(this.uichemaToUse);this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors,additionalErrors:r})}uischemaChanged(){this.schemaChanged()}dataChanged(){this.schemaChanged()}renderersChanged(){this.schemaChanged()}validationModeChanged(){this.schemaChanged()}ajvChanged(){this.schemaChanged()}readonlyChanged(){this.schemaChanged()}configChanged(){this.schemaChanged()}rowSubmitStatusesChanged(){this.jsonforms&&(this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{rowSubmitStatuses:this.rowSubmitStatuses}))}bulkInsertChanged(){this.jsonforms&&(this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{bulkInsert:this.bulkInsert}))}get props(){var e;if(!this.schema&&!this.uischema)return;const t=null!==(e=this.uischema)&&void 0!==e?e:c.wyb.uiSchema(this.schema);return{uischema:Object.assign(Object.assign({},t),{elements:t.elements.map(e=>"#/properties/TIMESTAMP"===e.scope?Object.assign(Object.assign({},e),{options:{hidden:!0}}):e)}),schema:this.schema,path:"",enabled:!0,visible:!0}}copyUISchemaToClipboard(){return(0,i.sH)(this,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(JSON.stringify(this.uichemaToUse)),w.debug("Autogenerated UI schema copied to clipboard")}catch(e){w.error("Failed to copy autogenerated UI schema: ",e)}})}};(0,i.Cg)([(0,p.attr)({mode:"boolean"})],A.prototype,"submitted",void 0),(0,i.Cg)([p.observable],A.prototype,"prefix",void 0),(0,i.Cg)([p.observable],A.prototype,"jsonforms",void 0),(0,i.Cg)([p.observable],A.prototype,"i18n",void 0),(0,i.Cg)([p.observable],A.prototype,"uichemaToUse",void 0),(0,i.Cg)([p.observable],A.prototype,"schema",void 0),(0,i.Cg)([p.observable],A.prototype,"uischema",void 0),(0,i.Cg)([p.observable],A.prototype,"data",void 0),(0,i.Cg)([p.observable],A.prototype,"renderers",void 0),(0,i.Cg)([p.observable],A.prototype,"validationMode",void 0),(0,i.Cg)([p.observable],A.prototype,"ajv",void 0),(0,i.Cg)([(0,p.attr)({mode:"boolean"})],A.prototype,"readonly",void 0),(0,i.Cg)([p.observable],A.prototype,"config",void 0),(0,i.Cg)([p.observable],A.prototype,"rowSubmitStatuses",void 0),(0,i.Cg)([p.observable],A.prototype,"bulkInsert",void 0),A=(0,i.Cg)([(0,p.customElement)({name:"json-forms",template:S,styles:p.css`
|
|
124
124
|
.clipboard-button {
|
|
125
125
|
display: flex;
|
|
126
126
|
}
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
</control-wrapper>
|
|
855
855
|
</template>
|
|
856
856
|
`)(e.prefix)}
|
|
857
|
-
`,tester:(0,c.Hc7)(3,X),mapper:c.kOB};var $=a(
|
|
857
|
+
`,tester:(0,c.Hc7)(3,X),mapper:c.kOB};var $=a(75697);const _=e=>t=>{if(!t||!(0,c.c0N)(t))return!1;const a=t.options;return!(!a||!a[e])},ee=(0,c.Uo6)((0,c.or)(_("allOptionsResourceName"),_("data")),(0,c.or)(_("delimiter"),(0,c.f4S)(e=>(0,c.dfR)(e,"array")),(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>(0,c.dfR)(e,"array")))));$.MultiselectDatasource;const te={renderer:p.html`
|
|
858
858
|
${e=>((e="zero")=>p.html`
|
|
859
859
|
<template>
|
|
860
860
|
<control-wrapper
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
</control-wrapper>
|
|
1207
1207
|
</template>
|
|
1208
1208
|
`)(e.prefix)}
|
|
1209
|
-
`,tester:(0,c.Hc7)(5,_("columnDefinitions")),mapper:c.kOB},Ne=e=>(0,c.dfR)(e,"number")||(0,c.dfR)(e,"integer"),Pe=e=>e.genesisType===re.DOUBLE||e.genesisType===re.INT||e.genesisType===re.SHORT||e.genesisType===re.LONG||e.genesisType===re.BIGDECIMAL,je=(0,c.f4S)(Pe),Be=(0,c.or)((0,c.f4S)(e=>Ne(e)||e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>Ne(e))),je,(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>Pe(e)))),He={maximumFractionDigits:3,minimumFractionDigits:0},Ge={renderer:p.html`
|
|
1209
|
+
`,tester:(0,c.Hc7)(5,_("columnDefinitions")),mapper:c.kOB},Ne=e=>(0,c.dfR)(e,"number")||(0,c.dfR)(e,"integer"),Pe=e=>e.genesisType===re.DOUBLE||e.genesisType===re.INT||e.genesisType===re.SHORT||e.genesisType===re.LONG||e.genesisType===re.BIGDECIMAL,je=(0,c.f4S)(Pe),Be=(0,c.or)((0,c.f4S)(e=>Ne(e)||e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>Ne(e))),je,(0,c.f4S)(e=>e.hasOwnProperty("oneOf")&&e.oneOf.some(e=>Pe(e))),_("useNumberControl")),He={maximumFractionDigits:3,minimumFractionDigits:0},Ge={renderer:p.html`
|
|
1210
1210
|
${e=>((e="zero")=>p.html`
|
|
1211
1211
|
<template>
|
|
1212
1212
|
<control-wrapper
|
|
@@ -4048,7 +4048,7 @@
|
|
|
4048
4048
|
${sd}
|
|
4049
4049
|
${dd}
|
|
4050
4050
|
${pd}
|
|
4051
|
-
`;const gd=(0,a(82128).U)("zero"),md="ag-theme-genesis-rapid-dark",hd="ag-theme-genesis-rapid-light";class bd extends Xl.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=g.baseLayerLuminance.getValueFor(e.target);this.theme=t===g.StandardLuminance.DarkMode?md:hd},this.theme="light"===localStorage.getItem("luminance")?hd:md}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=g.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;g.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===md)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,o,r,i;const n=Object.assign({},e);n.components=Object.assign({[Kl.IX.action]:Dl,[Kl.IX.actionsMenu]:Nl,[Kl.IX.boolean]:Bl,[Kl.IX.editable]:zl,[Kl.IX.icon]:Rl,[Kl.IX.statusPill]:Zl,[Kl.IX.select]:ql,[Kl.IX.selectEditor]:fl,[Kl.IX.numberEditor]:wl,[Kl.IX.multiselectEditor]:hl,[Kl.IX.dateEditor]:ul,[Kl.IX.stringEditor]:Al},null!==(t=e.components)&&void 0!==t?t:{});(this.theme===nd||this.theme===ld||this.theme===cd)&&(this.headerHeight=null!==(o=null!==(a=n.headerHeight)&&void 0!==a?a:od())&&void 0!==o?o:32,this.rowHeight=null!==(i=null!==(r=n.rowHeight)&&void 0!==r?r:od())&&void 0!==i?i:32),super.gridOptions=n}}(0,i.Cg)([p.observable],bd.prototype,"provider",void 0);const vd=Xl.LU,fd=Xl.Z$,yd={zeroIconRenderer:Il,zeroAgEditableRenderer:Ol,zeroAgActionRenderer:Tl,zeroAgActionsMenuRenderer:Pl,zeroAgBooleanRenderer:Hl,zeroAgTextRenderer:Vl,zeroAgSelectRenderer:Yl,zeroStatusPillRenderer:Ql,zeroAgDateEditor:gl,zeroAgMultiselectEditor:bl,zeroAgSelectEditor:yl,zeroAgNumberEditor:Sl,zeroAgStringEditor:kl,zeroGridPro:bd.compose(Object.assign({baseName:"grid-pro",template:gd,styles:ud,shadowOptions:vd},fd)),register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var xd,wd=a(
|
|
4051
|
+
`;const gd=(0,a(82128).U)("zero"),md="ag-theme-genesis-rapid-dark",hd="ag-theme-genesis-rapid-light";class bd extends Xl.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=g.baseLayerLuminance.getValueFor(e.target);this.theme=t===g.StandardLuminance.DarkMode?md:hd},this.theme="light"===localStorage.getItem("luminance")?hd:md}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=g.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;g.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===md)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,o,r,i;const n=Object.assign({},e);n.components=Object.assign({[Kl.IX.action]:Dl,[Kl.IX.actionsMenu]:Nl,[Kl.IX.boolean]:Bl,[Kl.IX.editable]:zl,[Kl.IX.icon]:Rl,[Kl.IX.statusPill]:Zl,[Kl.IX.select]:ql,[Kl.IX.selectEditor]:fl,[Kl.IX.numberEditor]:wl,[Kl.IX.multiselectEditor]:hl,[Kl.IX.dateEditor]:ul,[Kl.IX.stringEditor]:Al},null!==(t=e.components)&&void 0!==t?t:{});(this.theme===nd||this.theme===ld||this.theme===cd)&&(this.headerHeight=null!==(o=null!==(a=n.headerHeight)&&void 0!==a?a:od())&&void 0!==o?o:32,this.rowHeight=null!==(i=null!==(r=n.rowHeight)&&void 0!==r?r:od())&&void 0!==i?i:32),super.gridOptions=n}}(0,i.Cg)([p.observable],bd.prototype,"provider",void 0);const vd=Xl.LU,fd=Xl.Z$,yd={zeroIconRenderer:Il,zeroAgEditableRenderer:Ol,zeroAgActionRenderer:Tl,zeroAgActionsMenuRenderer:Pl,zeroAgBooleanRenderer:Hl,zeroAgTextRenderer:Vl,zeroAgSelectRenderer:Yl,zeroStatusPillRenderer:Ql,zeroAgDateEditor:gl,zeroAgMultiselectEditor:bl,zeroAgSelectEditor:yl,zeroAgNumberEditor:Sl,zeroAgStringEditor:kl,zeroGridPro:bd.compose(Object.assign({baseName:"grid-pro",template:gd,styles:ud,shadowOptions:vd},fd)),register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var xd,wd=a(35267),Sd=a(79505);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(xd||(xd={}));const Cd={Roboto:Va,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Ad=Cd["Segoe UI"],kd=p.css`
|
|
4052
4052
|
${(0,u.display)("block")} :host {
|
|
4053
4053
|
width: 100%;
|
|
4054
4054
|
display: inline-flex;
|
|
@@ -5498,4 +5498,4 @@
|
|
|
5498
5498
|
</rapid-tabs>
|
|
5499
5499
|
</template>
|
|
5500
5500
|
`;let xc=class extends p.FASTElement{};xc=(0,i.Cg)([(0,p.customElement)({name:"design-system-preview",template:yc,styles:rc})],xc),((e,t="zero")=>(0,$.provideDesignSystem)(e,t,r,o))().register(cl,yd),(0,wd.provideDesignSystem)().register(wd.baseComponents,Sd.rapidGridComponents,aa)}}]);
|
|
5501
|
-
//# sourceMappingURL=627.
|
|
5501
|
+
//# sourceMappingURL=627.9d3243203f0cc229aab314a84c14b038.js.map
|