@genesislcap/design-system-configurator 14.180.5 → 14.180.7

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.
@@ -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(94964);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
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(24258);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
176
176
  @keyframes delete-animate {
177
177
  from {
178
178
  height: 100px;
@@ -3122,6 +3122,7 @@
3122
3122
  animation: var(--snackbar-animation-name) 0.3s linear;
3123
3123
  max-width: var(--snackbar-max-width);
3124
3124
  min-width: var(--snackbar-min-width);
3125
+ min-height: var(--snackbar-min-height);
3125
3126
  max-height: var(--snackbar-max-height);
3126
3127
  background-color: var(--fill-color);
3127
3128
  border-radius: calc(var(--control-corner-radius) * 1px);
@@ -3158,6 +3159,7 @@
3158
3159
  flex: 2;
3159
3160
  font-size: 12px;
3160
3161
  overflow: hidden;
3162
+ overflow-wrap: anywhere;
3161
3163
  }
3162
3164
 
3163
3165
  .action {
@@ -3175,9 +3177,10 @@
3175
3177
  ${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
3176
3178
  </slot>
3177
3179
  </div>
3178
- <div part="action" class="action">
3179
- <slot name="action">
3180
- ${(0,r.repeat)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions)}),r.html`
3180
+ ${(0,r.when)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions.length)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions.length)}),r.html`
3181
+ <div part="action" class="action">
3182
+ <slot name="action">
3183
+ ${(0,r.repeat)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions)}),r.html`
3181
3184
  <${e}-button
3182
3185
  slot="action"
3183
3186
  appearance="lightweight"
@@ -3186,8 +3189,9 @@
3186
3189
  ${e=>e.label}
3187
3190
  </${e}-button>
3188
3191
  `)}
3189
- </slot>
3190
- </div>
3192
+ </slot>
3193
+ </div>
3194
+ `)}
3191
3195
  </div>
3192
3196
  `,hd=r.html`
3193
3197
  ${e=>pd(F(e))}
@@ -3744,4 +3748,4 @@
3744
3748
  <slot></slot>
3745
3749
  </template>
3746
3750
  `;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.cf29933b06d372e33d897c821f9eeec6.js.map
3751
+ //# sourceMappingURL=531.a3f84d8b369476aa41a6cf117214292e.js.map