@genesislcap/design-system-configurator 14.180.2 → 14.180.3
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.ee8f8343115522dd2f54.js} +1 -1
- package/dist/{325.325.d30ca5937919ffd54493.js → 325.325.ebc594d110358e93aab7.js} +4 -4
- package/dist/{325.be9a2226c12c6eb3947ddfcbc4ca5d34.js.map → 325.bdf07b58e8565339f4cbcbe3002b6c00.js.map} +1 -1
- package/dist/{531.531.08444536b471c4fcea18.js → 531.531.8afdf1071064ea607fab.js} +2 -2
- package/dist/531.6f50de08a9e5667192d3ffe3402e58f6.js.map +1 -0
- package/dist/{548.600f622fd3a984b2475c3d2e83edb9d6.js.map → 548.1302eba0ac52ed9874e55977e489e1e8.js.map} +1 -1
- package/dist/{548.548.c048eae0bc01312059ac.js → 548.548.0f3048eca2640d920fbd.js} +2 -2
- package/dist/653.653.900c362cd31a2772db92.js +2 -0
- package/dist/{653.cd79d6d50e9f0dfe8ed96f08357afbae.js.map → 653.cda2755851515fbf4ce54a3f75f7351b.js.map} +1 -1
- package/dist/{842.842.e677545ccb6051c45d4b.js → 842.842.a3f45802706580a22a41.js} +2 -2
- package/dist/{842.32b109887bf964ad2acde1266a56f315.js.map → 842.f2000b8757455e4d929587891aea9dea.js.map} +1 -1
- package/dist/{designSystemConfigurator.f8f0fabb0422b46ae95cd80287deae9a.js.map → designSystemConfigurator.51c414599bca827118d067a633ce57a6.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.b6ac270d56bdfa495183f293dd123b5f.js.map → main.83bc515b5fab8424034f913e185a4ba4.js.map} +1 -1
- package/dist/main.ec715dfc3509c35a2f5b.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/531.5114ed144defc405d7e2c58b8e5965df.js.map +0 -1
- package/dist/653.653.37ef2a887c78e28173c6.js +0 -2
- 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(82030);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -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.6f50de08a9e5667192d3ffe3402e58f6.js.map
|