@genesislcap/design-system-configurator 14.180.7 → 14.181.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/{279.279.590da95620c96932421e.js → 279.279.77f076e4a47c9b0998f5.js} +1 -1
- package/dist/{325.325.7a4d6b48bc4f1890bb20.js → 325.325.befce00d5457fc3630c9.js} +520 -520
- package/dist/325.7a15a64fa45e2b97194662a93cb6899d.js.map +1 -0
- package/dist/{531.531.4b908ff05468bf1d3c7a.js → 531.531.3256301bccc700dd254c.js} +4 -3
- package/dist/531.a7a73d903338535c7edf11f73269cb1c.js.map +1 -0
- package/dist/{548.548.258c15e0500d38898135.js → 548.548.8b5f30508e88a3d46bc1.js} +1 -1
- package/dist/{653.653.4a492278ff2e3746192f.js → 653.653.4314ba091d2634862546.js} +1 -1
- package/dist/{842.842.f72730747baf03a7a6e2.js → 842.842.d3587ab7ae6b1d3a03fa.js} +1 -1
- package/dist/{designSystemConfigurator.63da891110f82213815d36eb57f8935e.js.map → designSystemConfigurator.89c3af1de3f2ae103f4ec3293406836d.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.f8838304334d83aa9e305e399fea0a75.js.map → main.25190b7c80504a827a64ca77561f4812.js.map} +1 -1
- package/dist/{main.190d8de974c6ef4d8117.js → main.340356d220fa39b90382.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/325.f06573f4df543c1f620004730927e9e0.js.map +0 -1
- package/dist/531.a3f84d8b369476aa41a6cf117214292e.js.map +0 -1
|
@@ -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(65112);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -2824,6 +2824,7 @@
|
|
|
2824
2824
|
|
|
2825
2825
|
<${e}-search-bar-combobox
|
|
2826
2826
|
${(0,r.ref)("combobox")}
|
|
2827
|
+
position="${e=>e.position}"
|
|
2827
2828
|
placeholder=${e=>e.placeholder}
|
|
2828
2829
|
disabled=${e=>e.disabled}
|
|
2829
2830
|
autocomplete="none"
|
|
@@ -2893,7 +2894,7 @@
|
|
|
2893
2894
|
</${e}-tooltip>
|
|
2894
2895
|
`,ll=r.html`
|
|
2895
2896
|
${e=>rl(F(e))}
|
|
2896
|
-
`,dl=10,cl=3,ul=1,pl=(e,t)=>(new ft).withExpression((new $t).withField(e).withValue(t).withSerialiser(wt).build()).build();class hl extends n.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=cl,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i;const a=t.value,n=this.searchTerm.trim();e.push({field:a,term:n,label:(null===(o=this.options.find((e=>e.field===a)))||void 0===o?void 0:o.label(n))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===a)))||void 0===i?void 0:i.createCriteria})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),r.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),dl)}))}pasteHandler(e){var t;this.loading=!0;const o=e.clipboardData.getData("text/plain"),i=this.normalizeDelimiter(o),a=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),n=this.addOrReplaceSelectedText(this.combobox.value,a,i);(null==n?void 0:n.length)>=this.minlength&&(this.combobox.value=n,this.searchTerm=n,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some((o=>o.term===e&&o.field===t))}unselectOption(e){this.selectedOptions=this.selectedOptions.filter((t=>t!==e)),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1}))}filterSelectedOptions(e){this.filteredOptions=this.options.filter((t=>!this.selectedOptions.find((o=>o.field===t.field&&o.term.trim()===e.trim()))))}}(0,x.__decorate)([r.observable],hl.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],hl.prototype,"options",void 0),(0,x.__decorate)([r.observable],hl.prototype,"searchTerm",void 0),(0,x.__decorate)([r.attr],hl.prototype,"appearance",void 0),(0,x.__decorate)([r.attr],hl.prototype,"minlength",void 0),(0,x.__decorate)([r.attr],hl.prototype,"placeholder",void 0),(0,x.__decorate)([r.attr],hl.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],hl.prototype,"loading",void 0),(0,x.__decorate)([r.observable],hl.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],hl.prototype,"filteredOptions",void 0);const ml=void 0,vl={},gl=hl.compose(Object.assign({baseName:"search-bar",template:ll,styles:al,shadowOptions:ml},vl)),fl=(e,t)=>r.css`
|
|
2897
|
+
`,dl=10,cl=3,ul=1,pl=(e,t)=>(new ft).withExpression((new $t).withField(e).withValue(t).withSerialiser(wt).build()).build();class hl extends n.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=cl,this.position=ze.BELOW,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i;const a=t.value,n=this.searchTerm.trim();e.push({field:a,term:n,label:(null===(o=this.options.find((e=>e.field===a)))||void 0===o?void 0:o.label(n))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===a)))||void 0===i?void 0:i.createCriteria})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),r.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),dl)}))}pasteHandler(e){var t;this.loading=!0;const o=e.clipboardData.getData("text/plain"),i=this.normalizeDelimiter(o),a=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),n=this.addOrReplaceSelectedText(this.combobox.value,a,i);(null==n?void 0:n.length)>=this.minlength&&(this.combobox.value=n,this.searchTerm=n,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some((o=>o.term===e&&o.field===t))}unselectOption(e){this.selectedOptions=this.selectedOptions.filter((t=>t!==e)),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1}))}filterSelectedOptions(e){this.filteredOptions=this.options.filter((t=>!this.selectedOptions.find((o=>o.field===t.field&&o.term.trim()===e.trim()))))}}(0,x.__decorate)([r.observable],hl.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],hl.prototype,"options",void 0),(0,x.__decorate)([r.observable],hl.prototype,"searchTerm",void 0),(0,x.__decorate)([r.attr],hl.prototype,"appearance",void 0),(0,x.__decorate)([r.attr],hl.prototype,"minlength",void 0),(0,x.__decorate)([r.attr],hl.prototype,"position",void 0),(0,x.__decorate)([r.attr],hl.prototype,"placeholder",void 0),(0,x.__decorate)([r.attr],hl.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],hl.prototype,"loading",void 0),(0,x.__decorate)([r.observable],hl.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],hl.prototype,"filteredOptions",void 0);const ml=void 0,vl={},gl=hl.compose(Object.assign({baseName:"search-bar",template:ll,styles:al,shadowOptions:ml},vl)),fl=(e,t)=>r.css`
|
|
2897
2898
|
${_t(e,t)}
|
|
2898
2899
|
.control {
|
|
2899
2900
|
width: auto;
|
|
@@ -3748,4 +3749,4 @@
|
|
|
3748
3749
|
<slot></slot>
|
|
3749
3750
|
</template>
|
|
3750
3751
|
`;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)}}]);
|
|
3751
|
-
//# sourceMappingURL=531.
|
|
3752
|
+
//# sourceMappingURL=531.a7a73d903338535c7edf11f73269cb1c.js.map
|