@genesislcap/design-system-configurator 14.162.2-alpha-bb01329.0 → 14.162.2

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.
@@ -2943,18 +2943,8 @@
2943
2943
  ${(0,s.tabStyles)(e,t)}
2944
2944
  `,cd=(e,t)=>(0,n.tabTemplate)(e,t);class ud extends s.Tab{}const pd=void 0,hd={},md=ud.compose(Object.assign({baseName:"tab",template:cd,styles:dd,shadowOptions:pd},hd)),vd=(e,t)=>r.css`
2945
2945
  ${(0,s.tabPanelStyles)(e,t)}
2946
-
2947
- :host {
2948
- height: 100%;
2949
- padding: 0;
2950
- }
2951
2946
  `,gd=(e,t)=>(0,n.tabPanelTemplate)(e,t);class fd extends s.TabPanel{}const bd=void 0,yd={},xd=fd.compose(Object.assign({baseName:"tab-panel",template:gd,styles:vd,shadowOptions:bd},yd)),wd=(e,t)=>r.css`
2952
2947
  ${(0,s.tabsStyles)(e,t)}
2953
-
2954
- :host {
2955
- height: 100%;
2956
- width: 100%;
2957
- }
2958
2948
  `,$d=(e,t)=>(0,n.tabsTemplate)(e,t);class Sd extends s.Tabs{}const Fd=void 0,_d={},Cd=Sd.compose(Object.assign({baseName:"tabs",template:$d,styles:wd,shadowOptions:Fd},_d)),Od=(e,t)=>r.css`
2959
2949
  ${(0,s.textAreaStyles)(e,t)}
2960
2950
  :host .control {
@@ -3212,4 +3202,4 @@
3212
3202
  <slot></slot>
3213
3203
  </template>
3214
3204
  `;var Tc;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Tc||(Tc={}));const Lc={mode:"open",delegatesFocus:!0};class Ec 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*(){e.connectedCallback.call(this),this.addEventListener(Tc.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),$a(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,lt.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((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)),xa(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],Ec.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],Ec.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],Ec.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],Ec.prototype,"toastButtons",void 0),(0,x.__decorate)([ct.Yh],Ec.prototype,"datasource",void 0);const Ac=Ec.compose({baseName:"notification-listener",template:Dc,shadowOptions:Lc}),Ic=(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 Rc(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 Mc=e=>!e.navId||"header"===e.navId,Nc=10;function Pc(e,t=Mc,o=Nc){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 Hc,Bc=o(50961);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(Hc||(Hc={}));class zc{constructor(e){this.analytics=(0,Bc.ZP)(e)}trackEvent(e,t){ca.k.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const jc=n.DI.createInterface((e=>e.singleton(zc)));var Vc=o(37002),Gc=o(68228),Yc=o(15878);let Uc=class extends(Vc.F0.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Uc=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Uc);class Wc extends Gc.R{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...this.definitions,...e],super.map(...e)}}(0,x.__decorate)([r.observable],Wc.prototype,"definitions",void 0);class qc extends Yc.A{constructor(){super(...arguments),this.routes=new Wc(this)}getNavItems(e=Mc){return Pc(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(Hc.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],qc.prototype,"container",void 0),(0,x.__decorate)([jc],qc.prototype,"analytics",void 0);const Zc=()=>Cc().register(Fc)}}]);
3215
- //# sourceMappingURL=300.acc602c23ca9444fdd51e5983259ae31.js.map
3205
+ //# sourceMappingURL=300.893b6fb8e333d058f738147584db7c99.js.map