@genesislcap/design-system-configurator 14.109.0 → 14.110.0
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/{582.582.9b43e3bb47023b4f827e.js → 153.153.4ab465b2e744423b6704.js} +492 -451
- package/dist/153.287b6f44b2d5c1aa955426d7e8be1abe.js.map +1 -0
- package/dist/{269.269.3994b2fc0a8ff06c1448.js → 269.269.ba51dbbf07a26ab7b4aa.js} +2 -2
- package/dist/{269.e149999f0194897c728d9db32393150b.js.map → 269.7a20416c239baf1583bc46e78dfa5f54.js.map} +1 -1
- package/dist/{300.300.0c070751ae10da710b08.js → 300.300.aa116afb3d5115fd1ddb.js} +2 -2
- package/dist/{303.303.d83664545cb251b098e6.js → 303.303.59ccc0f62592795ba770.js} +19 -5
- package/dist/303.b30d1c2195239ba89631944440640593.js.map +1 -0
- package/dist/{153.153.bee77dddd8cea3bb1520.js → 345.345.86166a569ad94efbcf95.js} +3 -3
- package/dist/{153.ed4de14c0d63c04b9410a297fd64327f.js.map → 345.525359ca7b26f3e0b9bb5dd75045e860.js.map} +1 -1
- package/dist/{371.371.8ac33217ffcdb910e7e7.js → 371.371.c6a9c70e6d82c81e5673.js} +1 -1
- package/dist/{755.755.308b4a2fd73de3a4d955.js → 755.755.635c81477262cd689457.js} +1 -1
- package/dist/{8.8.9548d8994b480654aa13.js → 8.8.c7d61ffbf85a9787e60c.js} +1 -1
- package/dist/{designSystemConfigurator.2740771c97f1b4c860633596a30ae0ce.js.map → designSystemConfigurator.b968e6dc52e6d288f98c44bb3b8ffebb.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.48e65cca19922df7497a.js → main.110a0e4277e5534a76cf.js} +2 -2
- package/dist/{main.7e0897fd0c43a6509ee1fb6d448870fb.js.map → main.6d519dbc1bc0c380d7f77e6234a7be83.js.map} +1 -1
- package/dist/npm.jsonforms.832.241277fc24201a4e44f1.js +2 -0
- package/dist/npm.jsonforms.cca0ef5b7d2652be78928586f2dcf86d.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/303.56cc215ec5c9a04c3433b2ae95c38d3f.js.map +0 -1
- package/dist/582.e7d6c5a91d044bfd7c78deb4eb5d3c47.js.map +0 -1
- package/dist/npm.jsonforms.832.7dc033c60394e81cf472.js +0 -2
- package/dist/npm.jsonforms.b2dfda40b80d9c01865b340d7955d679.js.map +0 -1
- /package/dist/{153.153.bee77dddd8cea3bb1520.js.LICENSE.txt → 300.300.aa116afb3d5115fd1ddb.js.LICENSE.txt} +0 -0
- /package/dist/{300.300.0c070751ae10da710b08.js.LICENSE.txt → 345.345.86166a569ad94efbcf95.js.LICENSE.txt} +0 -0
|
@@ -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:z,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(
|
|
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(12906);const ae=(0,ie.createLogger)("foundation-ui"),ne=l.css`
|
|
174
174
|
@keyframes delete-animate {
|
|
175
175
|
from {
|
|
176
176
|
height: 100px;
|
|
@@ -2193,9 +2193,9 @@
|
|
|
2193
2193
|
.stepper-tab {
|
|
2194
2194
|
display: flex;
|
|
2195
2195
|
flex-direction: column;
|
|
2196
|
-
width:
|
|
2196
|
+
width: 100%;
|
|
2197
2197
|
height: 100%;
|
|
2198
|
-
max-width:
|
|
2198
|
+
max-width: 280px;
|
|
2199
2199
|
border-radius: 0;
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
@@ -2207,6 +2207,7 @@
|
|
|
2207
2207
|
|
|
2208
2208
|
.stepper-panel-container {
|
|
2209
2209
|
height: 100%;
|
|
2210
|
+
padding: 15px;
|
|
2210
2211
|
}
|
|
2211
2212
|
|
|
2212
2213
|
.stepper-tab-menu {
|
|
@@ -2234,6 +2235,7 @@
|
|
|
2234
2235
|
display: flex;
|
|
2235
2236
|
flex-direction: column;
|
|
2236
2237
|
width: 100%;
|
|
2238
|
+
min-width: 370px;
|
|
2237
2239
|
border-radius: 0;
|
|
2238
2240
|
}
|
|
2239
2241
|
|
|
@@ -2277,11 +2279,23 @@
|
|
|
2277
2279
|
</${e}-card>
|
|
2278
2280
|
`,tr=l.html`
|
|
2279
2281
|
${e=>er(C(e))}
|
|
2280
|
-
`;class or extends n.FoundationElement{constructor(){super(...arguments),this.progressValue=0,this.activeTabIndex=0,this.completedIds=new Map,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("aria-controls",a),e.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=e,this.activeid=i)}}))},this.getCompletedTabs=()=>{this.tabs.forEach(((e,t)=>{const o=this.tabIds[t],i=e.isCompleted();this.completedIds.set(o,i)}));let e=0;for(const t of this.completedIds.values())!0===t&&(e+=1);this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex])}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ta.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ta.EL)()}`}))}}(0,w.__decorate)([l.attr],or.prototype,"activeid",void 0),(0,w.__decorate)([l.observable],or.prototype,"tabs",void 0),(0,w.__decorate)([l.observable],or.prototype,"tabpanels",void 0),(0,w.__decorate)([l.observable],or.prototype,"validation",void 0),(0,w.__decorate)([l.observable],or.prototype,"progressValue",void 0),(0,w.__decorate)([l.observable],or.prototype,"activeTabIndex",void 0),(0,w.__decorate)([l.volatile],or.prototype,"disabledPreviousStep",null),(0,w.__decorate)([l.volatile],or.prototype,"isLastStep",null),(0,w.__decorate)([l.volatile],or.prototype,"islastStepValid",null);const ir=void 0,ar={},nr=or.compose(Object.assign({baseName:"stepper",template:tr,styles:Jl,shadowOptions:ir},ar)),sr=(e,t)=>l.css`
|
|
2282
|
+
`;class or extends n.FoundationElement{constructor(){super(...arguments),this.progressValue=0,this.activeTabIndex=0,this.completedIds=new Map,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("aria-controls",a),e.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=e,this.activeid=i)}}))},this.getCompletedTabs=()=>{this.tabs.forEach(((e,t)=>{const o=this.tabIds[t],i=e.isCompleted();this.completedIds.set(o,i)}));let e=0;for(const t of this.completedIds.values())!0===t&&(e+=1);this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){if(this.$emit("next-step"),this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("validation-success"))}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ta.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ta.EL)()}`}))}}(0,w.__decorate)([l.attr],or.prototype,"activeid",void 0),(0,w.__decorate)([l.observable],or.prototype,"tabs",void 0),(0,w.__decorate)([l.observable],or.prototype,"tabpanels",void 0),(0,w.__decorate)([l.observable],or.prototype,"validation",void 0),(0,w.__decorate)([l.observable],or.prototype,"progressValue",void 0),(0,w.__decorate)([l.observable],or.prototype,"activeTabIndex",void 0),(0,w.__decorate)([l.volatile],or.prototype,"disabledPreviousStep",null),(0,w.__decorate)([l.volatile],or.prototype,"isLastStep",null),(0,w.__decorate)([l.volatile],or.prototype,"islastStepValid",null);const ir=void 0,ar={},nr=or.compose(Object.assign({baseName:"stepper",template:tr,styles:Jl,shadowOptions:ir},ar)),sr=(e,t)=>l.css`
|
|
2283
|
+
.tree-item {
|
|
2284
|
+
cursor: default;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2281
2287
|
.tree-item::part(content-region) {
|
|
2282
2288
|
margin-inline-start: 0;
|
|
2283
2289
|
}
|
|
2284
2290
|
|
|
2291
|
+
.tree-item[selected]::part(positioning-region):hover {
|
|
2292
|
+
background: var(--neutral-fill-rest);
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
.tree-item::part(positioning-region):hover {
|
|
2296
|
+
background: var(--neutral-fill-stealth-rest);
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2285
2299
|
foundation-icon {
|
|
2286
2300
|
margin-right: 5px;
|
|
2287
2301
|
}
|
|
@@ -2597,4 +2611,4 @@
|
|
|
2597
2611
|
<slot></slot>
|
|
2598
2612
|
</template>
|
|
2599
2613
|
`;var zd;!function(e){e.NOTIFICATION_EVENT="notification-event"}(zd||(zd={}));const Ud=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"}`},Yd=(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},Wd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},qd=(0,ie.createLogger)("foundation-notifications"),Xd={alert:e=>{alert(Ud(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=Yd("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`);Yd("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Yd("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 Wd()})(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}},Kd=(e,t,o)=>{var i,a;qd.log({message:Ud(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=>{Xd[i]&&Xd[i](e,t,o)}))};class Zd{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 Qd{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 Jd={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,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(zd.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Kd(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})))),Kd((new Zd).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Qd).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],ec.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],ec.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],ec.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],ec.prototype,"toastButtons",void 0),(0,w.__decorate)([et.Yh],ec.prototype,"datasource",void 0);const tc=ec.compose({baseName:"notification-listener",template:Gd,shadowOptions:Jd}),oc=(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 ic(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 ac=o(1279);let nc=class extends(ac.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};nc=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],nc);const sc=()=>jd().register(Pd)}}]);
|
|
2600
|
-
//# sourceMappingURL=303.
|
|
2614
|
+
//# sourceMappingURL=303.b30d1c2195239ba89631944440640593.js.map
|