@genesislcap/design-system-configurator 15.3.3 → 15.3.4

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.
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[445],{49255(e,a,r){r.d(a,{S8:()=>c,kI:()=>p,m6:()=>u,vr:()=>h});var t=r(55823),o=r(33681),i=r(38370),l=r(94343),n=r.n(l),g=r(41492),s=r.n(g),d=r(55365);n().extend(s());class c extends i.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[d.A7]}}(0,t.Cg)([o.observable],c.prototype,"value",void 0),(0,t.Cg)([o.observable],c.prototype,"actualWidth",void 0);const p=o.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[445],{49255(e,a,r){r.d(a,{S8:()=>c,kI:()=>p,m6:()=>u,vr:()=>h});var t=r(55823),o=r(33681),i=r(38370),l=r(94343),n=r.n(l),g=r(41492),s=r.n(g),d=r(55365);n().extend(s());class c extends i.FoundationElement{init(e){e&&(this.setAttribute("tabindex","-1"),this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[d.A7]}}(0,t.Cg)([o.observable],c.prototype,"value",void 0),(0,t.Cg)([o.observable],c.prototype,"actualWidth",void 0);const p=o.css`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -10,7 +10,7 @@
10
10
  @input=${(e,a)=>e.changeHandler(a.event)}
11
11
  style="width: ${e=>e.actualWidth}px"
12
12
  ></${e}-text-field>
13
- `,h=c.compose({baseName:"date-editor",styles:p,template:u()})},56182(e,a,r){r.d(a,{$b:()=>g,UH:()=>d,pZ:()=>n,tB:()=>s});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then(e=>{this.selectedOptions=e}),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"selectedOptions",void 0);const g=o.css``,s=(e="foundation")=>o.html`
13
+ `,h=c.compose({baseName:"date-editor",styles:p,template:u()})},56182(e,a,r){r.d(a,{$b:()=>g,UH:()=>d,pZ:()=>n,tB:()=>s});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.setAttribute("tabindex","-1"),this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then(e=>{this.selectedOptions=e}),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"selectedOptions",void 0);const g=o.css``,s=(e="foundation")=>o.html`
14
14
  <${e}-multiselect
15
15
  style="width: 100%"
16
16
  ?async=${e=>e.params.async}
@@ -24,7 +24,7 @@
24
24
  :datasourceConfig=${e=>e.params.datasourceOptions}
25
25
  ></multiselect-datasource>
26
26
  </${e}-multiselect>
27
- `,d=n.compose({baseName:"multiselect-editor",styles:g,template:s()})},48072(e,a,r){r.d(a,{CY:()=>d,Fv:()=>g,Z0:()=>n,r1:()=>s});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a,this.params.onChange&&this.params.onChange(this.value,this.params)}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"value",void 0),(0,t.Cg)([o.observable],n.prototype,"actualWidth",void 0);const g=o.css`
27
+ `,d=n.compose({baseName:"multiselect-editor",styles:g,template:s()})},48072(e,a,r){r.d(a,{CY:()=>d,Fv:()=>g,Z0:()=>n,r1:()=>s});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.setAttribute("tabindex","-1"),this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a,this.params.onChange&&this.params.onChange(this.value,this.params)}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"value",void 0),(0,t.Cg)([o.observable],n.prototype,"actualWidth",void 0);const g=o.css`
28
28
  :host {
29
29
  display: flex;
30
30
  }
@@ -40,7 +40,7 @@
40
40
  hideStep
41
41
  style="width: ${e=>e.actualWidth}px"
42
42
  ></${e}-number-field>
43
- `,d=n.compose({baseName:"number-editor",styles:g,template:s()})},48075(e,a,r){r.d(a,{RU:()=>d,Uo:()=>g,_Q:()=>n,iY:()=>s});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"value",void 0),(0,t.Cg)([o.observable],n.prototype,"actualWidth",void 0);const g=o.css``,s=(e="foundation")=>o.html`
43
+ `,d=n.compose({baseName:"number-editor",styles:g,template:s()})},48075(e,a,r){r.d(a,{RU:()=>d,Uo:()=>g,_Q:()=>n,iY:()=>s});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.setAttribute("tabindex","-1"),this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"value",void 0),(0,t.Cg)([o.observable],n.prototype,"actualWidth",void 0);const g=o.css``,s=(e="foundation")=>o.html`
44
44
  <${e}-combobox
45
45
  style="width: ${e=>e.actualWidth}px"
46
46
  ${(0,o.ref)("combobox")}
@@ -59,7 +59,7 @@
59
59
  :initialSelectedValue=${e=>e.params.value}
60
60
  ></options-datasource>
61
61
  </${e}-combobox>
62
- `,d=n.compose({baseName:"select-editor",styles:g,template:s()})},43352(e,a,r){r.d(a,{P_:()=>g,XJ:()=>n,bZ:()=>s,cb:()=>d});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"value",void 0),(0,t.Cg)([o.observable],n.prototype,"actualWidth",void 0);const g=o.css`
62
+ `,d=n.compose({baseName:"select-editor",styles:g,template:s()})},43352(e,a,r){r.d(a,{P_:()=>g,XJ:()=>n,bZ:()=>s,cb:()=>d});var t=r(55823),o=r(33681),i=r(38370),l=r(55365);class n extends i.FoundationElement{init(e){e&&(this.setAttribute("tabindex","-1"),this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[l.A7]}}(0,t.Cg)([o.observable],n.prototype,"params",void 0),(0,t.Cg)([o.observable],n.prototype,"value",void 0),(0,t.Cg)([o.observable],n.prototype,"actualWidth",void 0);const g=o.css`
63
63
  :host {
64
64
  display: flex;
65
65
  }
@@ -8669,4 +8669,4 @@
8669
8669
  ${new i.CSSVarsTokenMapper(a)}
8670
8670
  }
8671
8671
  `;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.loadMore="loadMore",e.reload="reload",e.rowCount="rowCount"}(p||(p={}));const u="onGridReady",h="__editedColumn",v="__errorColumn",m={},f=n.DI.createInterface(e=>e.instance(m));var w;!function(e){e.camelCase="camelCase",e.capitalCase="capitalCase",e.dotCase="dotCase",e.headerCase="headerCase",e.noCase="noCase",e.paramCase="paramCase",e.pascalCase="pascalCase",e.pathCase="pathCase",e.sentenceCase="sentenceCase",e.snakeCase="snakeCase"}(w||(w={}));const b={rows:!0,maxRows:!1,aggregation:!0,loadMore:{tooltip:"Load more rows from server"},reload:{tooltip:"Reload the datasource."}}},11749(e,a,r){r.d(a,{H:()=>i});var t=r(55823),o=r(98316);class i{getColumnState(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return[]})}saveColumnState(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))})}deleteColumnState(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");delete a[e],this.session.setLocalStorageItem("gridOptions",JSON.stringify(a))})}getFilterModel(e){return(0,t.sH)(this,void 0,void 0,function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return{}})}saveFilterModel(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))})}}(0,t.Cg)([o.N],i.prototype,"session",void 0)},53397(e,a,r){r.d(a,{l:()=>i});var t=r(38370),o=r(11749);const i=t.DI.createInterface(e=>e.singleton(o.H))},52540(e,a,r){r.d(a,{k:()=>t});class t{init(e){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=e,this.updateDisplay()}updateParams(e){this.currentParams=Object.assign(Object.assign({},this.currentParams),e),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}:&nbsp; `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},49104(e,a,r){r.d(a,{s:()=>l});var t=r(55823),o=r(68424),i=r(63486);class l{constructor(){this.buttonLabel="Load More",this.isLoading=!1}init(e){for(this.params=e,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.element.style.justifyContent="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.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="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)}}},88863(e,a,r){r.d(a,{W:()=>l});var t=r(55823),o=r(68424),i=r(63486);class l{constructor(){this.isReloading=!1}init(e){this.params=e,this.element=document.createElement("div"),this.element.classList.add("ag-status-panel","ag-reload-panel"),this.element.setAttribute("data-test-id","grid-reload-panel"),this.element.setAttribute("role","region"),this.element.setAttribute("aria-label","Reload data controls"),this.element.style.display="flex",this.element.style.alignItems="center",this.element.style.justifyContent="center",this.element.style.paddingLeft="var(--ag-grid-size)",this.element.style.height="var(--ag-status-bar-height)",this.designSystemPrefix=(0,o.JH)(this.element,"zero"),this.createRefreshIcon(),this.createProgressRing(),this.element.appendChild(this.refreshIcon),this.element.appendChild(this.progressRing),this.progressRing.style.display="none"}createProgressRing(){this.progressRing=document.createElement(`${this.designSystemPrefix}-progress-ring`),this.progressRing.setAttribute("data-test-id","grid-reload-progress"),this.progressRing.setAttribute("aria-label","Reloading data"),this.progressRing.style.width="20px",this.progressRing.style.height="20px",this.progressRing.style.margin="4px",this.progressRing.style.display="none"}createRefreshIcon(){var e,a,r,o;if("zero"===this.designSystemPrefix||"rapid"===this.designSystemPrefix){this.refreshIcon=document.createElement(`${this.designSystemPrefix}-icon`);const r=(null===(e=this.params)||void 0===e?void 0:e.icon)||"refresh";this.refreshIcon.setAttribute("name",r),this.refreshIcon.setAttribute("aria-label",(null===(a=this.params)||void 0===a?void 0:a.tooltip)||"Reload grid data")}else this.refreshIcon=document.createElement("div"),this.refreshIcon.textContent="↻",this.refreshIcon.setAttribute("aria-label",(null===(r=this.params)||void 0===r?void 0:r.tooltip)||"Reload grid data");this.refreshIcon.setAttribute("data-test-id","grid-reload-button"),this.refreshIcon.setAttribute("role","button"),this.refreshIcon.setAttribute("tabindex","0"),this.refreshIcon.style.cursor="pointer",this.refreshIcon.style.width="28px",this.refreshIcon.style.height="28px",this.refreshIcon.style.display="flex",this.refreshIcon.style.alignItems="center",this.refreshIcon.style.justifyContent="center",this.refreshIcon.style.fontSize="20px",(null===(o=this.params)||void 0===o?void 0:o.tooltip)&&this.refreshIcon.setAttribute("title",this.params.tooltip),this.mouseoverHandler=()=>{this.isReloading||(this.refreshIcon.style.opacity="0.7")},this.refreshIcon.addEventListener("mouseover",this.mouseoverHandler),this.mouseoutHandler=()=>{this.isReloading||(this.refreshIcon.style.opacity="1")},this.refreshIcon.addEventListener("mouseout",this.mouseoutHandler),this.clickHandler=()=>(0,t.sH)(this,void 0,void 0,function*(){if(!this.isReloading)try{this.showReloading(!0),yield(0,i.c)(500),this.params.onReload&&this.params.onReload(),this.showReloading(!1)}catch(e){this.showReloading(!1)}}),this.refreshIcon.addEventListener("click",this.clickHandler),this.refreshIcon.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.clickHandler(new MouseEvent("click")))})}showReloading(e){this.isReloading=e,e?(this.refreshIcon.style.display="none",this.progressRing.style.display="inline-block"):(this.refreshIcon.style.display="inline-flex",this.progressRing.style.display="none")}updateParams(e){var a,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),e),(null==t?void 0:t.tooltip)!==(null===(a=this.params)||void 0===a?void 0:a.tooltip)&&((null===(r=this.params)||void 0===r?void 0:r.tooltip)?(this.refreshIcon.setAttribute("title",this.params.tooltip),this.refreshIcon.setAttribute("aria-label",this.params.tooltip)):(this.refreshIcon.removeAttribute("title"),this.refreshIcon.setAttribute("aria-label","Reload grid data")))}getGui(){return this.element}destroy(){this.refreshIcon&&(this.refreshIcon.removeEventListener("mouseover",this.mouseoverHandler),this.refreshIcon.removeEventListener("mouseout",this.mouseoutHandler),this.refreshIcon.removeEventListener("click",this.clickHandler))}}},71964(e,a,r){r.d(a,{i:()=>t});class t{init(e){this.api=e.api,this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-row-count-panel"),this.element.setAttribute("role","status");const a=document.createElement("span");a.setAttribute("data-test-id","grid-row-count-label"),a.setAttribute("aria-hidden","true"),a.innerHTML="Rows:&nbsp;",this.rowCountDisplay=document.createElement("span"),this.rowCountDisplay.classList.add("ag-status-name-value-value"),this.rowCountDisplay.setAttribute("data-test-id","grid-row-count-value"),this.rowCountDisplay.setAttribute("aria-hidden","true"),this.element.appendChild(a),this.element.appendChild(this.rowCountDisplay),this.updateDisplay(),this.modelUpdatedHandler=()=>{this.updateDisplay()},this.api.addEventListener("modelUpdated",this.modelUpdatedHandler),this.api.addEventListener("rowDataUpdated",this.modelUpdatedHandler)}updateDisplay(){var e,a,r;if(!this.api||!this.rowCountDisplay)return;const t=this.api,o=null!==(r=null===(a=(e=this.api).getDisplayedRowCount)||void 0===a?void 0:a.call(e))&&void 0!==r?r:0,i=void 0!==t.paginationIsLastPageFound&&!t.paginationIsLastPageFound()&&o>0,l=i?o-1+"+":o.toString();this.rowCountDisplay.textContent=l;const n=i?`Row count: ${o} or more rows`:`Row count: ${o} rows`;this.element.setAttribute("aria-label",n)}getGui(){return this.element}destroy(){this.api&&this.modelUpdatedHandler&&(this.api.removeEventListener("modelUpdated",this.modelUpdatedHandler),this.api.removeEventListener("rowDataUpdated",this.modelUpdatedHandler)),this.api=null,this.modelUpdatedHandler=null}}},73203(e,a,r){r.d(a,{y:()=>t});class t{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}},23201(e,a,r){function t(e){return{colId:e.field||e.colId||"",hide:e.hide||!1,width:e.width||null,pinned:e.pinned||null,sort:e.sort||null,sortIndex:e.sortIndex||null,aggFunc:e.aggFunc||null,rowGroup:e.rowGroup||!1,rowGroupIndex:e.rowGroupIndex||null,pivot:e.pivot||!1,pivotIndex:e.pivotIndex||null,flex:e.flex||null}}r.d(a,{n7:()=>i,pr:()=>t,rG:()=>l,yS:()=>n});const o=Object.keys(t({}));function i(e){return Array.isArray(e)?e.map(e=>{const a={},r=a;for(const a of o){const t=e[a];void 0!==t&&(r[a]=t)}return a}):[]}function l(e){return e.map(t)}function n(e,a){const r=i(a),t={},o=[],l="field",n="colId",g=e=>Array.isArray(e.children),s=e=>{var a;return null!==(a=e[l])&&void 0!==a?a:e[n]},d=new Map;r.forEach(e=>{null!=e[n]&&d.set(e[n],e)});const c=e=>{if(g(e))return Object.assign(Object.assign({},e),{children:e.children.map(c)});const a=s(e),r=null!=a?d.get(a):void 0;return r?Object.assign(Object.assign({},e),r):Object.assign({},e)};return r.forEach(a=>{const r=a[n];if(null==r)return;const i=e.find(e=>!g(e)&&(e[l]===r||null!=e[n]&&e[n]===r));if(i){const e=s(i),r=Object.assign(Object.assign({},i),a);null!=e&&(t[e]=r),o.push(r)}}),e.forEach(e=>{if(g(e))return void o.push(c(e));const a=s(e);if(null==a||!t.hasOwnProperty(a)){const r=Object.assign({},e);null!=a&&(t[a]=r),o.push(r)}}),o}},68858(e,a,r){r.d(a,{P:()=>t});const t=e=>e?"string"==typeof e?e:Array.isArray(e)?e.map(t).join(", "):"object"==typeof e?"message"in e&&"string"==typeof e.message?e.message:"TEXT"in e&&"string"==typeof e.TEXT?e.TEXT:JSON.stringify(e):String(e):""},1510(e,a,r){r.d(a,{v:()=>t});const t=(0,r(66506).createLogger)("grid-pro")},49874(e,a,r){function t(e){const a=[];for(const[r]of e)r&&a.push(r);return a}function o(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}r.d(a,{P:()=>o,i:()=>t})},50103(e,a,r){r.d(a,{w:()=>t});const t=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},21409(e,a,r){r.d(a,{S:()=>o,a:()=>i});var t=r(55823);const o=e=>{var a,r,o,l,n,g,s,d,c,p;return p=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),o.set(this,""),l.set(this,!1),n.set(this,void 0),g.set(this,!1),s.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",d).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,l,"f")&&((0,t.GG)(this,l,!0,"f"),e="connect"),!((0,t.gn)(this,r,"f").dragging||!(0,t.gn)(this,r,"f").hasFirstLoaded||(0,t.gn)(this,a,"m",d).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",c).call(this,this),"f")}},r=new WeakMap,o=new WeakMap,l=new WeakMap,n=new WeakMap,g=new WeakMap,s=new WeakMap,a=new WeakSet,d=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 d=(0,t.gn)(this,o,"f")!==(0,t.gn)(this,r,"f").lifecycleUpdateToken;let c=!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?(c=d,c?((0,t.GG)(this,s,!1,"f"),setTimeout(()=>{(0,t.GG)(this,s,!0,"f")},0)):(0,t.GG)(this,l,!1,"f"),(0,t.GG)(this,n,setTimeout(()=>{(0,t.GG)(this,g,c,"f"),(0,t.gn)(this,g,"f")&&this.disconnectedCallback()},1e4),"f")):"reconnect"===e&&(c=d&&!(0,t.gn)(this,s,"f"),(0,t.GG)(this,o,null!==(i=(0,t.gn)(this,r,"f").lifecycleUpdateToken)&&void 0!==i?i:"","f"),clearTimeout((0,t.gn)(this,n,"f"))),c},c=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 l=r.getRootNode().host;if("FoundationLayoutMain"===l.class){const e=l;return e._key="foundation-layout",e}return(0,t.gn)(this,a,"m",e).call(this,l)},p},i=Symbol("layout-cache-document")},63486(e,a,r){r.d(a,{c:()=>t});const t=e=>new Promise(a=>{setTimeout(a,e)})},52945(e,a,r){r.d(a,{O5:()=>o,fI:()=>i});var t=r(28745);const o=(e,a)=>{var r;let o=document.getElementById(a);if(o)return void t.v.debug(`\n An element with the id of '${a}' already exists and likely has the css rules applied.\n `);const i=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];o=document.createElement("style"),o.id=a,i.appendChild(o);if((e.match(/}/g)||[]).length>1)return o.textContent=e,()=>{o&&i.removeChild(o)};{const a=o.sheet.insertRule(e);return()=>{o&&(o.sheet.deleteRule(a),i.removeChild(o))}}};function i(e){const a=[],r=new Set;return function e(t){const o=Array.from(t.querySelectorAll("*"));a.push(...o),o.forEach(a=>{a.shadowRoot&&!r.has(a.shadowRoot)&&(r.add(a.shadowRoot),e(a.shadowRoot))})}(e),a}},28745(e,a,r){r.d(a,{v:()=>t});const t=(0,r(66506).createLogger)("foundation-utils")}}]);
8672
- //# sourceMappingURL=445.8baf2cb842734fe26d48820c292de91e.js.map
8672
+ //# sourceMappingURL=445.b4acf0225006e9d74243a1662f0cf113.js.map