@genesislcap/design-system-configurator 14.180.2 → 14.180.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.
- package/dist/{279.279.49fe24454758bae879d3.js → 279.279.4eeb085d2563cebeeeac.js} +1 -1
- package/dist/{325.325.d30ca5937919ffd54493.js → 325.325.693a3598fe87b69c559c.js} +42 -42
- package/dist/325.a137ae51dfd78bf4f32eb3496ed94430.js.map +1 -0
- package/dist/{531.531.08444536b471c4fcea18.js → 531.531.c5ffcdbd59e98b85d043.js} +6 -6
- package/dist/531.cf29933b06d372e33d897c821f9eeec6.js.map +1 -0
- package/dist/{548.548.c048eae0bc01312059ac.js → 548.548.d597c16a05d9989fbe52.js} +2 -2
- package/dist/{548.600f622fd3a984b2475c3d2e83edb9d6.js.map → 548.f67e6a5522e2599ebf40ecbcc26dbe94.js.map} +1 -1
- package/dist/{653.653.37ef2a887c78e28173c6.js → 653.653.a826f4ac012becf1b85b.js} +1 -1
- package/dist/{842.842.e677545ccb6051c45d4b.js → 842.842.5dd7ca2cd9cdc15a5cbb.js} +2 -2
- package/dist/{842.32b109887bf964ad2acde1266a56f315.js.map → 842.f2000b8757455e4d929587891aea9dea.js.map} +1 -1
- package/dist/{designSystemConfigurator.f8f0fabb0422b46ae95cd80287deae9a.js.map → designSystemConfigurator.911a52867a8a2196238729e49f893e20.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.b6ac270d56bdfa495183f293dd123b5f.js.map → main.4fc050444df5cb11883deed2e53f5b74.js.map} +1 -1
- package/dist/main.dfee56d7dfe8d648f78a.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/325.be9a2226c12c6eb3947ddfcbc4ca5d34.js.map +0 -1
- package/dist/531.5114ed144defc405d7e2c58b8e5965df.js.map +0 -1
- package/dist/main.d7baa86373304b2e5133.js +0 -2
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
`)}
|
|
173
173
|
`;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},K={media:Y},X=W.compose(Object.assign({baseName:"avatar",template:U,styles:G,shadowOptions:q},K)),Z=(e,t)=>r.css`
|
|
174
174
|
${(0,s.badgeStyles)(e,t)}
|
|
175
|
-
`,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:Z,shadowOptions:ee},te));var ie=o(
|
|
175
|
+
`,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:Z,shadowOptions:ee},te));var ie=o(20959);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -1216,7 +1216,7 @@
|
|
|
1216
1216
|
</template>
|
|
1217
1217
|
`,ga=r.html`
|
|
1218
1218
|
${e=>va(F(e))}
|
|
1219
|
-
`,fa=(0,ie.createLogger)("foundation-notifications"),ba=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},ya=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ie.LogLevel.Debug},xa=e=>{fa.log({message:ba(e),level:ya(e)})},wa=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},$a=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Sa=(e,t,o)=>{var i,a,n,s,r,l,d,c,u,p,h,m,v,g,f,b,y,x;xa(e);const w=t.split("-")[0],$=null!=o?o:wa("notify-container",t);if($)switch($.style.position="fixed",null===(a=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===a?void 0:a.position){case"top-left":$.style.top="0",$.style.left="0";break;case"bottom-left":$.style.bottom="0",$.style.left="0";break;case"bottom-right":$.style.bottom="0",$.style.right="0";break;default:$.style.top="0",$.style.right="0"}const S=document.createElement(`${w}-toast`),C=document.createElement("div");C.setAttribute("slot","top"),C.textContent=e.title;const k=document.createElement("div");k.setAttribute("slot","content"),k.textContent=(null==e?void 0:e.body)||"";const F=document.createElement("div");let _;F.setAttribute("slot","date"),F.textContent=(null===(n=null==e?void 0:e.createdAt)||void 0===n?void 0:n.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.length)&&(_=document.createElement("div"),_.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:S})})),t.appearance&&o.setAttribute("appearance",t.appearance),_.appendChild(o)}))),S.setAttribute("notify",(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===p?void 0:p.type)||""),(null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===m?void 0:m.autoClose)&&S.setAttribute("auto-close",`${null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.autoClose}`),(null===(b=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===b?void 0:b.closeTimeout)&&S.setAttribute("close-timeout",`${null===(x=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===x?void 0:x.closeTimeout}`),S.appendChild(C),S.appendChild(k),S.appendChild(F),_&&S.appendChild(_),$.appendChild(S)},Ca={alert:e=>{xa(e),alert(ba(e))},toast:Sa,dialog:(e,t)=>{xa(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);wa("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{xa(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`)
|
|
1219
|
+
`,fa=(0,ie.createLogger)("foundation-notifications"),ba=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},ya=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ie.LogLevel.Debug},xa=e=>{fa.log({message:ba(e),level:ya(e)})},wa=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},$a=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Sa=(e,t,o)=>{var i,a,n,s,r,l,d,c,u,p,h,m,v,g,f,b,y,x;xa(e);const w=t.split("-")[0],$=null!=o?o:wa("notify-container",t);if($)switch($.style.position="fixed",null===(a=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===a?void 0:a.position){case"top-left":$.style.top="0",$.style.left="0";break;case"bottom-left":$.style.bottom="0",$.style.left="0";break;case"bottom-right":$.style.bottom="0",$.style.right="0";break;default:$.style.top="0",$.style.right="0"}const S=document.createElement(`${w}-toast`),C=document.createElement("div");C.setAttribute("slot","top"),C.textContent=e.title;const k=document.createElement("div");k.setAttribute("slot","content"),k.textContent=(null==e?void 0:e.body)||"";const F=document.createElement("div");let _;F.setAttribute("slot","date"),F.textContent=(null===(n=null==e?void 0:e.createdAt)||void 0===n?void 0:n.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.length)&&(_=document.createElement("div"),_.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:S})})),t.appearance&&o.setAttribute("appearance",t.appearance),_.appendChild(o)}))),S.setAttribute("notify",(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===p?void 0:p.type)||""),(null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===m?void 0:m.autoClose)&&S.setAttribute("auto-close",`${null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.autoClose}`),(null===(b=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===b?void 0:b.closeTimeout)&&S.setAttribute("close-timeout",`${null===(x=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===x?void 0:x.closeTimeout}`),S.appendChild(C),S.appendChild(k),S.appendChild(F),_&&S.appendChild(_),$.appendChild(S)},Ca={alert:e=>{xa(e),alert(ba(e))},toast:Sa,dialog:(e,t)=>{xa(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);wa("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{xa(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`),a=wa("snack-container",t);a&&(a.style.position="fixed",a.style.bottom="0",a.style.left="0"),a.appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;xa(e);const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return $a()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},ka=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Ca[i]&&Ca[i](e,t,o)}))},Fa=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},_a=(e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))},Oa=(e,t,o,i="GET",a,n)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:n,headers:s}).then((e=>(0,x.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&ka({title:null==o?void 0:o.MESSAGE_TYPE,body:null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},"zero"),ae.error(o||"An error occurred while downloading the file.")}})))).then((e=>{if(e){const o=window.URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.click(),i.remove(),a&&ka({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},"zero"),ae.info("File downloaded successfully")}})).catch((e=>{ae.error(e)}))},Da=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Ta=["text/plain","text/csv"],La=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf"],Ea=r.html`
|
|
1220
1220
|
${(0,r.when)((e=>e.rowData),r.html`
|
|
1221
1221
|
${e=>"DATETIME"===e.columnDefinition.type?(0,ha.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
1222
1222
|
`)}
|
|
@@ -3113,7 +3113,7 @@
|
|
|
3113
3113
|
--snackbar-min-width: 356px;
|
|
3114
3114
|
--snackbar-min-height: 55px;
|
|
3115
3115
|
--snackbar-max-width: 496px;
|
|
3116
|
-
--snackbar-max-height:
|
|
3116
|
+
--snackbar-max-height: auto;
|
|
3117
3117
|
--snackbar-animation-name: append-from-left-animate;
|
|
3118
3118
|
--snackbar-animation-delete-name: delete-from-left-animate;
|
|
3119
3119
|
}
|
|
@@ -3130,7 +3130,7 @@
|
|
|
3130
3130
|
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);
|
|
3131
3131
|
box-sizing: border-box;
|
|
3132
3132
|
display: flex;
|
|
3133
|
-
position:
|
|
3133
|
+
position: relative;
|
|
3134
3134
|
bottom: 5px;
|
|
3135
3135
|
flex-direction: row;
|
|
3136
3136
|
padding: 2px 16px;
|
|
@@ -3191,7 +3191,7 @@
|
|
|
3191
3191
|
</div>
|
|
3192
3192
|
`,hd=r.html`
|
|
3193
3193
|
${e=>pd(F(e))}
|
|
3194
|
-
`,md={mode:"open",delegatesFocus:!0};class vd extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=dd,this.autoClose=!
|
|
3194
|
+
`,md={mode:"open",delegatesFocus:!0};class vd extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=dd,this.autoClose=!0,this.type=rd,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout((()=>{this.handleDissmis(!0)}),this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(cd.DISMISS,this.dismissEventListener)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:rd}notificationChanged(e,t){var o,i,a,n,s,r,l,d,c;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:rd,this.autoClose=null===(r=null===(s=null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:dd}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(cd.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(cd.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,x.__decorate)([r.observable],vd.prototype,"error",void 0),(0,x.__decorate)([r.observable],vd.prototype,"notification",void 0),(0,x.__decorate)([r.observable],vd.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"identifier"})],vd.prototype,"identifier",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],vd.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],vd.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],vd.prototype,"type",void 0);const gd=vd.compose({baseName:"snackbar",styles:ud,template:hd,shadowOptions:md}),fd=(e,t)=>r.css`
|
|
3195
3195
|
${Kn()}
|
|
3196
3196
|
|
|
3197
3197
|
.fa-stack {
|
|
@@ -3744,4 +3744,4 @@
|
|
|
3744
3744
|
<slot></slot>
|
|
3745
3745
|
</template>
|
|
3746
3746
|
`;var pu;!function(e){e.NOTIFICATION_EVENT="notification-event"}(pu||(pu={}));const hu={mode:"open",delegatesFocus:!0};class mu extends n.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(e.connectedCallback.call(this),this.addEventListener(pu.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),ka(e.detail,this.tagName,this.notificationListener)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,lt.d)(e))}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{this.showNotificationToast(e)}))}showNotificationToast(e){const{HEADER:t,MESSAGE:o,NOTIFY_SEVERITY:i}=e,a=e.CREATED_AT?new Date(e.CREATED_AT):void 0,n=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter((({condition:t})=>!t||t({details:e}))));((e,t,o)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let i={title:e.title,body:e.body},a={};e.createdAt&&(i=Object.assign({createdAt:e.createdAt},i)),e.logLevel in ie.LogLevel&&(i=Object.assign({logLevel:e.logLevel},i)),e.toast&&(a=Object.assign({toast:e.toast},a),i=Object.assign({config:a},i)),Sa(i,t,o)})({title:t,body:o,createdAt:a,toast:{details:e,type:null==i?void 0:i.toLowerCase(),buttons:s,autoClose:void 0!==n?!!n:!!this.closeTimeout,closeTimeout:null!=n?n:this.closeTimeout}},this.tagName)}}(0,x.__decorate)([r.observable],mu.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],mu.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],mu.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],mu.prototype,"toastButtons",void 0),(0,x.__decorate)([ct.yW],mu.prototype,"datasource",void 0);const vu=mu.compose({baseName:"notification-listener",template:uu,shadowOptions:hu}),gu=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return r.FASTElement.define(class extends e{},i(o))};function fu(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=r.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}const bu=e=>!e.navId||"header"===e.navId,yu=10;function xu(e,t=bu,o=yu){const i=[];return e.filter((e=>e.navItems&&e.navItems.some(t))).forEach(((e,a)=>{e.navItems.filter(t).map(((t,i)=>{var n,s,r,l;const d=null!==(n=t.placementIndex)&&void 0!==n?n:a*o+i;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})})).forEach((e=>i.push(e)))})),i.sort(((e,t)=>e.placementIndex-t.placementIndex))}var wu,$u=o(63734);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(wu||(wu={}));class Su{constructor(e){this.analytics=(0,$u.Ay)(e)}trackEvent(e,t){pa.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Cu=n.DI.createInterface((e=>e.singleton(Su)));var ku=o(3479),Fu=o(80751),_u=o(98647);let Ou=class extends(ku.Ix.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Ou=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Ou);class Du extends Fu.s{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...e,...this.definitions],super.map(...e)}}(0,x.__decorate)([r.observable],Du.prototype,"definitions",void 0);class Tu extends _u.Y{constructor(){super(...arguments),this.routes=new Du(this)}getNavItems(e=bu){return xu(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(wu.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],Tu.prototype,"container",void 0),(0,x.__decorate)([Cu],Tu.prototype,"analytics",void 0),(0,x.__decorate)([Qs.KJ],Tu.prototype,"user",void 0);const Lu=()=>kr().register(lu)}}]);
|
|
3747
|
-
//# sourceMappingURL=531.
|
|
3747
|
+
//# sourceMappingURL=531.cf29933b06d372e33d897c821f9eeec6.js.map
|