@genesislcap/design-system-configurator 15.66.0 → 15.68.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.
@@ -401,9 +401,9 @@
401
401
  }
402
402
 
403
403
  .grid-pro-columns-select-all.indeterminate:not([disabled]):hover::part(indeterminate-indicator),
404
- .grid-pro-columns-select-all[aria-checked='mixed']:not([disabled]):hover::part(
405
- indeterminate-indicator
406
- ) {
404
+ .grid-pro-columns-select-all[aria-checked='mixed']:not(
405
+ [disabled]
406
+ ):hover::part(indeterminate-indicator) {
407
407
  background: var(--neutral-fill-input-rest, #fff);
408
408
  }
409
409
 
@@ -9244,4 +9244,4 @@
9244
9244
  ${new i.CSSVarsTokenMapper(a)}
9245
9245
  }
9246
9246
  `;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=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 w={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))})}getRowAlertPreferences(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{}})}saveRowAlertPreferences(e,a){return(0,t.sH)(this,void 0,void 0,function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))})}}(0,t.Cg)([o.N],i.prototype,"session",void 0)},53397(e,a,r){r.d(a,{l:()=>i});var t=r(38370),o=r(11749);const i=t.DI.createInterface(e=>e.singleton(o.H))},52540(e,a,r){r.d(a,{k:()=>t});class t{init(e){this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-label-value-panel"),this.element.setAttribute("role","status"),this.currentParams=e,this.updateDisplay()}updateParams(e){this.currentParams=Object.assign(Object.assign({},this.currentParams),e),this.updateDisplay()}updateDisplay(){this.element&&(this.currentParams.hide?this.element.style.display="none":(this.element.style.display="",this.element.setAttribute("aria-label",`${this.currentParams.label}: ${this.currentParams.value}`),this.labelElement||(this.labelElement=document.createElement("span"),this.labelElement.setAttribute("data-test-id","grid-label-value-label"),this.labelElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.labelElement)),this.labelElement.innerHTML=`${this.currentParams.label}:&nbsp; `,this.valueElement||(this.valueElement=document.createElement("span"),this.valueElement.classList.add("ag-status-name-value-value"),this.valueElement.setAttribute("data-test-id","grid-label-value-value"),this.valueElement.setAttribute("aria-hidden","true"),this.element.appendChild(this.valueElement)),this.valueElement.innerHTML=this.currentParams.value))}getGui(){return this.element}destroy(){}}},49104(e,a,r){r.d(a,{s:()=>n});var t=r(55823),o=r(68424),i=r(63486);class n{constructor(){this.buttonLabel="Load More",this.isLoading=!1}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:()=>n});var t=r(55823),o=r(68424),i=r(63486);class n{constructor(){this.isReloading=!1}init(e){this.params=e,this.element=document.createElement("div"),this.element.classList.add("ag-status-panel","ag-reload-panel"),this.element.setAttribute("data-test-id","grid-reload-panel"),this.element.setAttribute("role","region"),this.element.setAttribute("aria-label","Reload data controls"),this.element.style.display="flex",this.element.style.alignItems="center",this.element.style.justifyContent="center",this.element.style.paddingLeft="var(--ag-grid-size)",this.element.style.height="var(--ag-status-bar-height)",this.designSystemPrefix=(0,o.JH)(this.element,"zero"),this.createRefreshIcon(),this.createProgressRing(),this.element.appendChild(this.refreshIcon),this.element.appendChild(this.progressRing),this.progressRing.style.display="none"}createProgressRing(){this.progressRing=document.createElement(`${this.designSystemPrefix}-progress-ring`),this.progressRing.setAttribute("data-test-id","grid-reload-progress"),this.progressRing.setAttribute("aria-label","Reloading data"),this.progressRing.style.width="20px",this.progressRing.style.height="20px",this.progressRing.style.margin="4px",this.progressRing.style.display="none"}createRefreshIcon(){var e,a,r,o;if("zero"===this.designSystemPrefix||"rapid"===this.designSystemPrefix){this.refreshIcon=document.createElement(`${this.designSystemPrefix}-icon`);const r=(null===(e=this.params)||void 0===e?void 0:e.icon)||"refresh";this.refreshIcon.setAttribute("name",r),this.refreshIcon.setAttribute("aria-label",(null===(a=this.params)||void 0===a?void 0:a.tooltip)||"Reload grid data")}else this.refreshIcon=document.createElement("div"),this.refreshIcon.textContent="↻",this.refreshIcon.setAttribute("aria-label",(null===(r=this.params)||void 0===r?void 0:r.tooltip)||"Reload grid data");this.refreshIcon.setAttribute("data-test-id","grid-reload-button"),this.refreshIcon.setAttribute("role","button"),this.refreshIcon.setAttribute("tabindex","0"),this.refreshIcon.style.cursor="pointer",this.refreshIcon.style.width="28px",this.refreshIcon.style.height="28px",this.refreshIcon.style.display="flex",this.refreshIcon.style.alignItems="center",this.refreshIcon.style.justifyContent="center",this.refreshIcon.style.fontSize="20px",(null===(o=this.params)||void 0===o?void 0:o.tooltip)&&this.refreshIcon.setAttribute("title",this.params.tooltip),this.mouseoverHandler=()=>{this.isReloading||(this.refreshIcon.style.opacity="0.7")},this.refreshIcon.addEventListener("mouseover",this.mouseoverHandler),this.mouseoutHandler=()=>{this.isReloading||(this.refreshIcon.style.opacity="1")},this.refreshIcon.addEventListener("mouseout",this.mouseoutHandler),this.clickHandler=()=>(0,t.sH)(this,void 0,void 0,function*(){if(!this.isReloading)try{this.showReloading(!0),yield(0,i.c)(500),this.params.onReload&&this.params.onReload(),this.showReloading(!1)}catch(e){this.showReloading(!1)}}),this.refreshIcon.addEventListener("click",this.clickHandler),this.refreshIcon.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.clickHandler(new MouseEvent("click")))})}showReloading(e){this.isReloading=e,e?(this.refreshIcon.style.display="none",this.progressRing.style.display="inline-block"):(this.refreshIcon.style.display="inline-flex",this.progressRing.style.display="none")}updateParams(e){var a,r;const t=this.params;this.params=Object.assign(Object.assign({},this.params),e),(null==t?void 0:t.tooltip)!==(null===(a=this.params)||void 0===a?void 0:a.tooltip)&&((null===(r=this.params)||void 0===r?void 0:r.tooltip)?(this.refreshIcon.setAttribute("title",this.params.tooltip),this.refreshIcon.setAttribute("aria-label",this.params.tooltip)):(this.refreshIcon.removeAttribute("title"),this.refreshIcon.setAttribute("aria-label","Reload grid data")))}getGui(){return this.element}destroy(){this.refreshIcon&&(this.refreshIcon.removeEventListener("mouseover",this.mouseoverHandler),this.refreshIcon.removeEventListener("mouseout",this.mouseoutHandler),this.refreshIcon.removeEventListener("click",this.clickHandler))}}},71964(e,a,r){r.d(a,{i:()=>t});class t{init(e){this.api=e.api,this.element=document.createElement("div"),this.element.classList.add("ag-status-name-value","ag-status-panel"),this.element.setAttribute("data-test-id","grid-row-count-panel"),this.element.setAttribute("role","status");const a=document.createElement("span");a.setAttribute("data-test-id","grid-row-count-label"),a.setAttribute("aria-hidden","true"),a.innerHTML="Rows:&nbsp;",this.rowCountDisplay=document.createElement("span"),this.rowCountDisplay.classList.add("ag-status-name-value-value"),this.rowCountDisplay.setAttribute("data-test-id","grid-row-count-value"),this.rowCountDisplay.setAttribute("aria-hidden","true"),this.element.appendChild(a),this.element.appendChild(this.rowCountDisplay),this.updateDisplay(),this.modelUpdatedHandler=()=>{this.updateDisplay()},this.api.addEventListener("modelUpdated",this.modelUpdatedHandler),this.api.addEventListener("rowDataUpdated",this.modelUpdatedHandler)}updateDisplay(){var e,a,r;if(!this.api||!this.rowCountDisplay)return;const t=this.api,o=null!==(r=null===(a=(e=this.api).getDisplayedRowCount)||void 0===a?void 0:a.call(e))&&void 0!==r?r:0,i=void 0!==t.paginationIsLastPageFound&&!t.paginationIsLastPageFound()&&o>0,n=i?o-1+"+":o.toString();this.rowCountDisplay.textContent=n;const l=i?`Row count: ${o} or more rows`:`Row count: ${o} rows`;this.element.setAttribute("aria-label",l)}getGui(){return this.element}destroy(){var e,a;this.api&&this.modelUpdatedHandler&&!(null===(a=(e=this.api).isDestroyed)||void 0===a?void 0:a.call(e))&&(this.api.removeEventListener("modelUpdated",this.modelUpdatedHandler),this.api.removeEventListener("rowDataUpdated",this.modelUpdatedHandler)),this.api=null,this.modelUpdatedHandler=null}}},73203(e,a,r){r.d(a,{y:()=>t});class t{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}},23201(e,a,r){function t(e){return{colId:e.field||e.colId||"",hide:e.hide||!1,width:e.width||null,pinned:e.pinned||null,sort:e.sort||null,sortIndex:e.sortIndex||null,aggFunc:e.aggFunc||null,rowGroup:e.rowGroup||!1,rowGroupIndex:e.rowGroupIndex||null,pivot:e.pivot||!1,pivotIndex:e.pivotIndex||null,flex:e.flex||null}}r.d(a,{n7:()=>i,pr:()=>t,rG:()=>n,yS:()=>l});const o=Object.keys(t({}));function i(e){return Array.isArray(e)?e.map(e=>{const a={},r=a;for(const a of o){const t=e[a];void 0!==t&&(r[a]=t)}return a}):[]}function n(e){return e.map(t)}function l(e,a){const r=i(a),t={},o=[],n="field",l="colId",g=e=>Array.isArray(e.children),s=e=>{var a;return null!==(a=e[n])&&void 0!==a?a:e[l]},d=new Map;r.forEach(e=>{null!=e[l]&&d.set(e[l],e)});const c=e=>{if(g(e))return Object.assign(Object.assign({},e),{children:e.children.map(c)});const a=s(e),r=null!=a?d.get(a):void 0;return r?Object.assign(Object.assign({},e),r):Object.assign({},e)};return r.forEach(a=>{const r=a[l];if(null==r)return;const i=e.find(e=>!g(e)&&(e[n]===r||null!=e[l]&&e[l]===r));if(i){const e=s(i),r=Object.assign(Object.assign({},i),a);null!=e&&(t[e]=r),o.push(r)}}),e.forEach(e=>{if(g(e))return void o.push(c(e));const a=s(e);if(null==a||!t.hasOwnProperty(a)){const r=Object.assign({},e);null!=a&&(t[a]=r),o.push(r)}}),o}},68858(e,a,r){r.d(a,{P:()=>t});const t=e=>e?"string"==typeof e?e:Array.isArray(e)?e.map(t).join(", "):"object"==typeof e?"message"in e&&"string"==typeof e.message?e.message:"TEXT"in e&&"string"==typeof e.TEXT?e.TEXT:JSON.stringify(e):String(e):""},1510(e,a,r){r.d(a,{v:()=>t});const t=(0,r(66506).createLogger)("grid-pro")},49874(e,a,r){function t(e){const a=[];for(const[r]of e)r&&a.push(r);return a}function o(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}r.d(a,{P:()=>o,i:()=>t})},50103(e,a,r){r.d(a,{w:()=>t});const t=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase()},21409(e,a,r){r.d(a,{S:()=>o,a:()=>i});var t=r(55823);const o=e=>{var a,r,o,n,l,g,s,d,c,p;return p=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),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,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",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,n=new WeakMap,l=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,n,!1,"f"),(0,t.GG)(this,l,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,l,"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 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)},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")}}]);
9247
- //# sourceMappingURL=947.c7b799b23b905a298a3ce97d6f5e783d.js.map
9247
+ //# sourceMappingURL=947.4e3e73555c70a7904fef3eeca00f20bc.js.map
@@ -798,10 +798,8 @@
798
798
 
799
799
  .multiselect-checkbox::part(control) {
800
800
  min-width: calc(
801
- (
802
- (var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2 +
803
- var(--design-unit)
804
- ) *
801
+ ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2 +
802
+ var(--design-unit)) *
805
803
  1px
806
804
  );
807
805
  }
@@ -1898,10 +1896,7 @@
1898
1896
 
1899
1897
  .processing-overlay {
1900
1898
  position: absolute;
1901
- top: 0;
1902
- left: 0;
1903
- right: 0;
1904
- bottom: 0;
1899
+ inset: 0;
1905
1900
  background-color: rgba(0 0 0 / 20%);
1906
1901
  display: flex;
1907
1902
  flex-direction: column;
@@ -2052,8 +2047,6 @@
2052
2047
  place-content: center;
2053
2048
  align-items: center;
2054
2049
  flex-direction: column;
2055
- align-content: center;
2056
- justify-content: center;
2057
2050
  margin: calc(var(--design-unit) * 1px);
2058
2051
  padding: calc(var(--design-unit) * 1px);
2059
2052
  border: 1px solid transparent;
@@ -2080,8 +2073,7 @@
2080
2073
  .flex-row {
2081
2074
  display: flex;
2082
2075
  flex-direction: row;
2083
- align-content: center;
2084
- justify-content: space-between;
2076
+ place-content: center space-between;
2085
2077
  align-items: center;
2086
2078
  }
2087
2079
 
@@ -2185,8 +2177,7 @@
2185
2177
  grid-template-columns: repeat(3, 1fr);
2186
2178
  grid-auto-rows: minmax(64px, auto);
2187
2179
  gap: calc(var(--design-unit) * 1px);
2188
- align-items: end;
2189
- justify-items: stretch;
2180
+ place-items: end stretch;
2190
2181
  }
2191
2182
 
2192
2183
  .toggle {
@@ -2789,7 +2780,8 @@
2789
2780
  `,jr=(e,t)=>(0,a.menuTemplate)(e,t);class Yr extends r.Menu{}const Wr=void 0,qr={},Kr=Yr.compose(Object.assign({baseName:"menu",template:jr,styles:Gr,shadowOptions:Wr},qr)),Xr=(e,t)=>l.css`
2790
2781
  ${(0,r.menuItemStyles)(e,t)}
2791
2782
 
2792
- :host, :host(.indent-0[aria-haspopup='menu']) {
2783
+ :host,
2784
+ :host(.indent-0[aria-haspopup='menu']) {
2793
2785
  align-content: center;
2794
2786
  min-height: calc(var(--design-unit) * 8px);
2795
2787
  }
@@ -3158,16 +3150,16 @@
3158
3150
  ${ul()}
3159
3151
  `,pl=void 0,ml={};class gl extends a.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.resizable=!1,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=zt.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.handleResizeStart=e=>{this.resizable&&this.multiselectDropdown&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY,this.startWidth=this.multiselectDropdown.offsetWidth,this.startHeight=this.multiselectDropdown.offsetHeight,this.multiselectDropdown.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))},this.handleResizeMove=e=>{if(!this.isResizing||!this.multiselectDropdown)return;e.preventDefault();const t=e.clientX-this.startX,i=e.clientY-this.startY,o=Math.max(250,this.startWidth+t),n=Math.max(100,this.startHeight+i);this.multiselectDropdown&&(this.multiselectDropdown.style.width=`${o}px`,this.multiselectDropdown.style.maxHeight=`${n}px`)},this.handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.multiselectDropdown&&(this.multiselectDropdown.classList.remove("is-resizing"),this.multiselectDropdown.style.setProperty("--custom-max-height",this.multiselectDropdown.style.maxHeight),this.multiselectDropdown.style.removeProperty("max-height"))}}debounceChanged(e,t){this.debouncedInputHandler=ii()(this.asyncSetFilter,t)}openChanged(e,t){var i,o,n,s;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.arrowIcon)||void 0===i||i.classList.add("flipped"),null===(o=this.multiselectDropdown)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(s=this.multiselectDropdown)||void 0===s||s.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===zt.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd)}defaultItemRenderer(e,t){return l.html`
3160
3152
  ${"string"==typeof e?l.html`
3161
- <span part="option-label">${()=>t.getItemLabel(e)}</span>
3162
- `:l.html`
3163
- <span
3164
- data-option-label-text=${()=>e.optionLabelText}
3165
- style=${()=>e.labelStyle}
3166
- part="option-label"
3167
- >
3168
- ${()=>t.getItemLabel(e)}
3169
- </span>
3170
- `}
3153
+ <span part="option-label">${()=>t.getItemLabel(e)}</span>
3154
+ `:l.html`
3155
+ <span
3156
+ data-option-label-text=${()=>e.optionLabelText}
3157
+ style=${()=>e.labelStyle}
3158
+ part="option-label"
3159
+ >
3160
+ ${()=>t.getItemLabel(e)}
3161
+ </span>
3162
+ `}
3171
3163
  `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map(e=>this.optionValueGetter(e))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<ll&&o>n?zt.ABOVE:zt.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===zt.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===zt.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find(e=>this.optionValueGetter(e)===this.selectedOptions[0]);e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}get areAllOptionsSelected(){const e=this.getEnabledOptionsCount();return e>0&&this.selectedOptions.length===e}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some(i=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(i)===JSON.stringify(t)}catch(e){return i===t}return i===t})}selectCheckboxOne(e){const t=this.optionValueGetter(e),i=this.selectedOptions.includes(t);this.selectedOptions=i?this.selectedOptions.filter(e=>e!==t):[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}checkboxKeyDown(e,t){return" "===t.key&&(t.preventDefault(),this.selectCheckboxOne(e)),!0}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter(e=>!this.isOptionDisabled(e)).map(e=>this.optionValueGetter(e)),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.open||(this.open=!0),this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter(t=>{var i,o;const n="string"==typeof t?t:null!==(i=this.optionLabelGetter(t))&&void 0!==i?i:this.optionValueGetter(t);return(null!==(o=null==n?void 0:n.toLowerCase())&&void 0!==o?o:"")===e})}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter(t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const i=t.label.toLowerCase(),o="object"==typeof t.value?(n=t.value,Object.values(n).some(t=>t.toLowerCase().includes(e))):String(t.value).toLowerCase().includes(e);var n;return i.includes(e)||o})}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){this.slottedDatasource.length>0?fi(this.slottedDatasource[0],this.filterSearchValue):(this.loading=!1,ot.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality."))}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Escape":if(this.open){this.open=!1;break}break;case"ArrowUp":case"ArrowDown":if(!this.open){this.open=!0;break}break;default:return!0}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:i=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),i&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:i})}}(0,C.Cg)([l.attr],gl.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],gl.prototype,"autoPosition",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"all",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"allSelected",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"search",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"disabled",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"creatable",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"async",void 0),(0,C.Cg)([l.attr],gl.prototype,"debounce",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gl.prototype,"resizable",void 0),(0,C.Cg)([l.attr],gl.prototype,"tabindex",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"filter-by-contains"})],gl.prototype,"filterByContains",void 0),(0,C.Cg)([l.observable],gl.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],gl.prototype,"slottedDatasource",void 0),(0,C.Cg)([l.observable],gl.prototype,"valueFormatter",void 0),(0,C.Cg)([l.observable],gl.prototype,"loading",void 0),(0,C.Cg)([l.observable],gl.prototype,"filterSearchValue",void 0),(0,C.Cg)([l.observable],gl.prototype,"open",void 0),(0,C.Cg)([l.observable],gl.prototype,"options",void 0),(0,C.Cg)([l.observable],gl.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],gl.prototype,"filteredAvailableOptions",void 0),(0,C.Cg)([l.observable],gl.prototype,"scrollContainer",void 0),(0,C.Cg)([l.attr],gl.prototype,"position",void 0),(0,C.Cg)([l.observable],gl.prototype,"onAllSelectedCallback",void 0),(0,C.Cg)([l.observable],gl.prototype,"itemRenderer",void 0),(0,C.Cg)([l.volatile],gl.prototype,"getDisplayValue",null),(0,C.Cg)([l.volatile],gl.prototype,"getPlaceholder",null),(0,C.Cg)([l.volatile],gl.prototype,"isAllOptionsDisabled",null),(0,C.Cg)([l.volatile],gl.prototype,"areAllOptionsSelected",null),(0,C.Cg)([l.volatile],gl.prototype,"showCreatable",null),(0,C.Cg)([l.observable],gl.prototype,"optionsHeaderSlottedNodes",void 0);const vl=gl.compose(Object.assign({baseName:"multiselect",template:hl,styles:dl,shadowOptions:pl},ml)),fl={k:1e3,m:1e6,b:1e9},bl=/^(.*?)([kmb])$/i;class yl{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),i=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((e,t)=>[e,t]));this._group=new RegExp(`[${t.find(e=>"group"===e.type).value}]`,"g"),this._decimal=new RegExp(`[${t.find(e=>"decimal"===e.type).value}]`),this._separator=new RegExp(`[$${t.find(e=>"decimal"===e.type).value}](?:0*$|[^0]0+$)`),this._numeral=new RegExp(`[${i.join("")}]`,"g"),this._index=e=>o.get(e)}parse(e){const t=e.trim().match(bl),i=t?fl[t[2].toLowerCase()]:1;return(e=(t?t[1]:e).trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e*i:NaN}hasSeparator(e){return this._separator.test(e)}}var wl=i(6526);function Cl(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){var e;const t=null===(e=this.ariaDescribedby)||void 0===e?void 0:e.trim(),i=[];if(t&&i.push(...t.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){const e=this.id||"control";this.prefix&&i.push(`${e}-prefix`),this.suffix&&i.push(`${e}-suffix`)}const o=new Set,n=[];for(const e of i)o.has(e)||(o.add(e),n.push(e));return n.join(" ")||void 0}}return(0,C.Cg)([l.attr],t.prototype,"prefix",void 0),(0,C.Cg)([l.attr],t.prototype,"suffix",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-affix-from-screen-reader",mode:"boolean"})],t.prototype,"hideAffixFromScreenReader",void 0),t}const xl=l.css`
3172
3164
  .label-hidden {
3173
3165
  margin: 0;
@@ -4862,8 +4854,7 @@
4862
4854
 
4863
4855
  .section-content {
4864
4856
  flex: 1;
4865
- overflow-y: auto;
4866
- overflow-x: hidden;
4857
+ overflow: hidden auto;
4867
4858
  padding: calc(var(--design-unit) * 4px);
4868
4859
  background-color: var(--neutral-layer-1);
4869
4860
  min-height: 0;
@@ -5037,7 +5028,9 @@
5037
5028
  `;class lh extends r.Radio{}const dh=void 0,ch={},uh=lh.compose(Object.assign({baseName:"segmented-item",template:rh,styles:ah,shadowOptions:dh},ch)),hh=(e,t)=>l.css`
5038
5029
  ${(0,r.selectStyles)(e,t)}
5039
5030
 
5040
- :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible),
5031
+ :host(:not([size]):not([multiple]):not([open]):focus-visible),
5032
+ :host([multiple]:focus-visible),
5033
+ :host([size]:focus-visible),
5041
5034
  .control:focus-visible {
5042
5035
  box-shadow: none;
5043
5036
  outline: none;
@@ -5509,15 +5502,12 @@
5509
5502
  ${(0,r.switchStyles)(e,t)}
5510
5503
  .checked-indicator {
5511
5504
  transform: scale(1.3);
5505
+ border-radius: calc(var(--control-corner-radius) * 2px);
5512
5506
  }
5513
5507
 
5514
5508
  .switch {
5515
5509
  border-radius: calc(var(--control-corner-radius) * 3px);
5516
5510
  }
5517
-
5518
- .checked-indicator {
5519
- border-radius: calc(var(--control-corner-radius) * 2px);
5520
- }
5521
5511
  `,bp=(e,t)=>(0,a.switchTemplate)(e,t);class yp extends r.Switch{}const wp=void 0,Cp={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},xp=yp.compose(Object.assign({baseName:"switch",template:bp,styles:fp,shadowOptions:wp},Cp)),$p="--alert-flash-t",Sp="--alert-flash-duration",Ep="alert-flash-clock";let Op=!1;function Tp(){var e;if(!Op&&"undefined"!=typeof document){Op=!0;try{CSS.registerProperty({name:$p,syntax:"<number>",inherits:!0,initialValue:"0"});const t=new CSSStyleSheet;t.replaceSync(`\n @keyframes ${Ep} {\n 0%, 100% { ${$p}: 0; }\n 50% { ${$p}: 1; }\n }\n\n :root {\n animation: ${Ep} var(${Sp}, 1s) ease-in-out\n infinite;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :root {\n animation: none;\n }\n }\n `),document.adoptedStyleSheets=[...null!==(e=document.adoptedStyleSheets)&&void 0!==e?e:[],t]}catch(e){}}}const kp=(e,t)=>l.css`
5522
5512
  ${(0,r.tabStyles)(e,t)}
5523
5513
 
@@ -5540,8 +5530,7 @@
5540
5530
  }
5541
5531
 
5542
5532
  :host([scrollable]) [part='tablist'] {
5543
- overflow-x: auto;
5544
- overflow-y: hidden;
5533
+ overflow: auto hidden;
5545
5534
  white-space: nowrap;
5546
5535
  }
5547
5536
 
@@ -6729,4 +6718,4 @@ class="margin"
6729
6718
  height: 70px;
6730
6719
  }
6731
6720
  `;class Df extends a.FoundationElement{constructor(){super(...arguments),this.hideProgress=!1,this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=a.TabsOrientation.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,n=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),l.DOM.setBooleanAttribute(e,"selected",i),e.setAttribute("orientation",this.orientation),s&&e.setAttribute("aria-controls",s),e.setAttribute("tab-position",String(t+1)),l.DOM.setBooleanAttribute(e,"isLast",o),l.DOM.setBooleanAttribute(e,"hideStepNumber",!0===this.hideStepNumber),e.setAttribute("tabindex",i?"0":"-1"),l.DOM.setBooleanAttribute(e,"showCursorPointer",t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps),i&&(this.activetab=e,this.activeid=n)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return ot.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(ot.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,ya.NF)()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,ya.NF)()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}(0,C.Cg)([(0,l.attr)({attribute:"hide-submit-button",mode:"boolean"})],Df.prototype,"hideSubmitButton",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-progress",mode:"boolean"})],Df.prototype,"hideProgress",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-step-number",mode:"boolean"})],Df.prototype,"hideStepNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],Df.prototype,"allowBackwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-forward-jumps",mode:"boolean"})],Df.prototype,"allowForwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-all-buttons",mode:"boolean"})],Df.prototype,"hideAllButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-tabs",mode:"boolean"})],Df.prototype,"hideTabs",void 0),(0,C.Cg)([(0,l.attr)({attribute:"indicator-only",mode:"boolean"})],Df.prototype,"indicatorOnly",void 0),(0,C.Cg)([l.attr],Df.prototype,"orientation",void 0),(0,C.Cg)([l.attr],Df.prototype,"activeid",void 0),(0,C.Cg)([l.observable],Df.prototype,"tabs",void 0),(0,C.Cg)([l.observable],Df.prototype,"tabpanels",void 0),(0,C.Cg)([l.observable],Df.prototype,"validation",void 0),(0,C.Cg)([l.observable],Df.prototype,"progressValue",void 0),(0,C.Cg)([l.observable],Df.prototype,"activeTabIndex",void 0),(0,C.Cg)([l.volatile],Df.prototype,"disabledPreviousStep",null),(0,C.Cg)([l.volatile],Df.prototype,"isLastStep",null),(0,C.Cg)([l.volatile],Df.prototype,"islastStepValid",null);const If=void 0,Rf={},Af=Df.compose(Object.assign({baseName:"stepper",template:Tf,styles:kf,shadowOptions:If},Rf)),Lf=["text-field","text-area","combobox"],Nf=["input","textarea","select",'[contenteditable="true"]','[contenteditable=""]','[role="textbox"]','[role="searchbox"]','[role="combobox"]'],Ff=e=>Lf.map(t=>`${e}-${t}`),Mf={rapid:Ff("rapid"),zero:Ff("zero")};function _f(e,t=[]){const i=e.flatMap(e=>{var t;return null!==(t=Mf[e])&&void 0!==t?t:[]}),o=t.filter(Boolean);return Array.from(new Set([...Nf,...i,...o])).join(",")}const Hf=()=>Sd().register(Qm)},70997(e,t,i){"use strict";function o(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),s=o(i);return(t,i)=>e(t,i)?n(t,i):s(t,i)}i.d(t,{q:()=>o})},80273(e,t,i){"use strict";i.d(t,{Du:()=>l,IT:()=>a,WP:()=>n,f4:()=>r,zz:()=>s});var o=i(52945);const n=(e,t)=>{(0,o.O5)(e,t)};var s,a;!function(e){e.Italic="italic",e.Normal="normal"}(s||(s={})),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"}(a||(a={}));const r=(e,t=s.Normal,i=a.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${i};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
6732
- //# sourceMappingURL=966.6fd02a6bbcaf47eb6801edfcc36e2cd6.js.map
6721
+ //# sourceMappingURL=966.abc0bff1607b36c1fdc85faa5eb4cd2d.js.map