@genesislcap/design-system-configurator 14.114.1 → 14.114.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.
Files changed (22) hide show
  1. package/dist/{153.153.8a972d0d9cc447735e6d.js → 153.153.5f00dc2203322896c82d.js} +3 -3
  2. package/dist/{153.a2e687cd102186b8552ec63704bb6a04.js.map → 153.261c1c1dea5e40abe2af5f86122b29ae.js.map} +1 -1
  3. package/dist/{200.200.c78e50ea954eac2351e4.js → 200.200.36ac56ab5cf06a07f642.js} +2 -2
  4. package/dist/{200.1154f62d1d6dabb8e7666899e9523f1f.js.map → 200.eae26e578da8554b6dc7a2d9aa9725cd.js.map} +1 -1
  5. package/dist/{251.251.d1d0ea194eb675630411.js → 251.251.07b7f8256ed9d57937f0.js} +2 -2
  6. package/dist/251.b73d94b659c76918da51eb8dcd836584.js.map +1 -0
  7. package/dist/{269.269.7d4949ccc8f79e36805a.js → 269.269.9caa50e63da939f67f6d.js} +1 -1
  8. package/dist/755.755.b54fd158159c919e33fd.js +2 -0
  9. package/dist/{755.95b57e053a91273e8b6ebf724254e133.js.map → 755.9a7aecd6f809d3501c72cb59e24e35af.js.map} +1 -1
  10. package/dist/{8.aab7d3cc543301610182da8470a00c42.js.map → 8.5394062b4834c8f5d05d079dfd31f253.js.map} +1 -1
  11. package/dist/{8.8.758f55586f61ab69f8b3.js → 8.8.bbdd3d52204245efdbe1.js} +2 -2
  12. package/dist/designSystemConfigurator.87184aa9a529b653613e19ffcaad487d.js.map +1 -0
  13. package/dist/index.html +1 -1
  14. package/dist/main.32fc61550d5d6475a851e113bed0726d.js.map +1 -0
  15. package/dist/main.b879b2d436fd9d666134.js +2 -0
  16. package/dist/remoteEntry.js +2 -2
  17. package/package.json +7 -7
  18. package/dist/251.5b74461c5675e7461a9ae00e492c17d5.js.map +0 -1
  19. package/dist/755.755.a2a4568b213b4c691a27.js +0 -2
  20. package/dist/designSystemConfigurator.41ed8c4b5560e9562d3a7fe3e4f608cd.js.map +0 -1
  21. package/dist/main.0a6922372c859aba44f073ee6b5f5cd5.js.map +0 -1
  22. package/dist/main.27f5bc69c9aa39357cb2.js +0 -2
@@ -170,7 +170,7 @@
170
170
  `)}
171
171
  `;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},X={media:Y},K=W.compose(Object.assign({baseName:"avatar",template:U,styles:G,shadowOptions:q},X)),Z=(e,t)=>l.css`
172
172
  ${(0,s.badgeStyles)(e,t)}
173
- `,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(8920);const ae=(0,ie.createLogger)("foundation-ui"),ne=l.css`
173
+ `,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(55614);const ae=(0,ie.createLogger)("foundation-ui"),ne=l.css`
174
174
  @keyframes delete-animate {
175
175
  from {
176
176
  height: 100px;
@@ -2693,4 +2693,4 @@
2693
2693
  <slot></slot>
2694
2694
  </template>
2695
2695
  `;var Ud;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Ud||(Ud={}));const Yd=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"}`},Wd=(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},qd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Xd=(0,ie.createLogger)("foundation-notifications"),Kd={alert:e=>{alert(Yd(e))},toast:(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m,v,g,f,b,y;const w=t.split("-")[0],x=Wd("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const $=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const F=document.createElement("div");F.setAttribute("slot","content"),F.textContent=(null==e?void 0:e.body)||"";const _=document.createElement("div");let C;_.setAttribute("slot","date"),_.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===r?void 0:r.buttons)||void 0===d?void 0:d.length)&&(C=document.createElement("div"),C.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:$})})),t.appearance&&o.setAttribute("appearance",t.appearance),C.appendChild(o)}))),$.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&$.setAttribute("auto-close",`${null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose}`),(null===(f=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===f?void 0:f.closeTimeout)&&$.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),$.appendChild(S),$.appendChild(F),$.appendChild(_),C&&$.appendChild(C),x.appendChild($)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Wd("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Wd("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;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 qd()})(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}},Zd=(e,t,o)=>{var i,a;Xd.log({message:Yd(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ie.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Kd[i]&&Kd[i](e,t,o)}))};class Qd{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in ie.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Jd{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const ec={mode:"open",delegatesFocus:!0};class tc 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,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(Ud.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Zd(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,Qe.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{var t;const{HEADER:o,MESSAGE:i,NOTIFY_SEVERITY:a}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:t})=>!t||t({details:e})))),Zd((new Qd).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Jd).withDetails(e).withType(null==a?void 0:a.toLowerCase()).withButtons(l).withAutoClose(null!==(t=!!s)&&void 0!==t?t:!!this.closeTimeout).withCloseTimeout(null!=s?s:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}))}}(0,w.__decorate)([l.observable],tc.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],tc.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],tc.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],tc.prototype,"toastButtons",void 0),(0,w.__decorate)([et.Yh],tc.prototype,"datasource",void 0);const oc=tc.compose({baseName:"notification-listener",template:Gd,shadowOptions:ec}),ic=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return l.FASTElement.define(class extends e{},i(o))};function ac(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var nc=o(1279);let sc=class extends(nc.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};sc=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],sc);const lc=()=>Bd().register(Hd)}}]);
2696
- //# sourceMappingURL=251.5b74461c5675e7461a9ae00e492c17d5.js.map
2696
+ //# sourceMappingURL=251.b73d94b659c76918da51eb8dcd836584.js.map