@genesislcap/design-system-configurator 14.173.3 → 14.174.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/{132.132.fbd92b0c23ca11c47165.js → 132.132.e6c8bb0fc539673e3216.js} +5 -5
- package/dist/132.63569027ccd3ad97d0370cb57a8b559a.js.map +1 -0
- package/dist/{279.279.6968238956c30d8eea1b.js → 279.279.00c70227b58ed46ed39d.js} +1 -1
- package/dist/531.37bfc9608f4807851aa2e8d9ac5012e3.js.map +1 -0
- package/dist/{531.531.02a0bff0e021196605b6.js → 531.531.9c3f04be38aacf7fc919.js} +12 -10
- package/dist/{548.548.2211091ea10755032205.js → 548.548.40cb0cee25cef04d85d9.js} +2 -2
- package/dist/{548.1302eba0ac52ed9874e55977e489e1e8.js.map → 548.f67e6a5522e2599ebf40ecbcc26dbe94.js.map} +1 -1
- package/dist/{653.653.5e898e0533ef22df1038.js → 653.653.e223ee4de3170982a0d7.js} +1 -1
- package/dist/{842.842.d15ba35f367461c06190.js → 842.842.48d5362b5a68a1eed977.js} +1 -1
- package/dist/{designSystemConfigurator.b30ec89c8aec4bd2399e97080e6e0e54.js.map → designSystemConfigurator.1cdde3fb6bc5b422df6a5c325c2d5943.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/main.5b8e7642347db85f1e7f.js +2 -0
- package/dist/{main.c16229912621882a516e146618c9d941.js.map → main.be126d91ff0c15f56b3813ebd7857c77.js.map} +1 -1
- package/dist/{npm.jsonforms.7b2decaa3b67871c304a81991ed655bc.js.map → npm.jsonforms.148622b96aebf469b153fd66b5d66e36.js.map} +1 -1
- package/dist/npm.jsonforms.283.21d5d779a2700eeffdde.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/132.a16876630298af573da3486153e667b2.js.map +0 -1
- package/dist/531.11830418079820cc87052accf477bbd4.js.map +0 -1
- package/dist/main.1da9c300f9a9e5873d84.js +0 -2
- package/dist/npm.jsonforms.283.517815cff18e3c561760.js +0 -2
|
@@ -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(65498);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
${Ue()}
|
|
496
496
|
`,We=void 0,qe={};class Ke extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=ze.BELOW}openChanged(e,t){var o,i;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ze.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce(((e,t)=>{const o=t.type||"Other";return e[o]?e[o].options.push(t):e[o]={type:o,options:[t]},e}),{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const o=t.getBoundingClientRect(),i=this.getBoundingClientRect(),a=o.top+o.height/2;e=i.top<a?ze.BELOW:ze.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,a=o-t.bottom;e=a<t.height&&i>a?ze.ABOVE:ze.BELOW}}e===ze.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ze.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}setFilter(){const e=this.options.filter((e=>{var t;const o=e.description,i=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==o?void 0:o.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||i.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0}));this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){C(e,this)&&(this.open=!1)}}(0,x.__decorate)([r.attr],Ke.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],Ke.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ke.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ke.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"open",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"options",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"position",void 0),(0,x.__decorate)([r.volatile],Ke.prototype,"getPlaceholder",null);const Xe=Ke.compose(Object.assign({baseName:"categorized-multiselect",template:Ye,styles:Ve,shadowOptions:We},qe)),Ze=(e,t)=>r.css`
|
|
497
497
|
${(0,s.checkboxStyles)(e,t)}
|
|
498
|
-
`,Qe=(e,t)=>(0,n.checkboxTemplate)(e,t);class Je extends s.Checkbox{}const et=void 0,tt={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},ot=Je.compose(Object.assign({baseName:"checkbox",template:Qe,styles:Ze,shadowOptions:et},tt));var it=o(39087),at=o(62051),nt=o.n(at),st=o(96730),rt=o(21281),lt=o(34193),dt=o(61503),ct=o(60949),ut=o(97156);class pt extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=it.OD.MAX_ROWS_250,this.maxView=it.OD.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new ut.t(new Map)}criteriaChanged(e,t){const o=e!==(0,st.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===rt.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,lt.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,st.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}}(0,x.__decorate)([dt.dm],pt.prototype,"connect",void 0),(0,x.__decorate)([ct.yW],pt.prototype,"datasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"withGridInit",void 0),(0,x.__decorate)([r.attr],pt.prototype,"criteria",void 0),(0,x.__decorate)([r.observable],pt.prototype,"data",void 0),(0,x.__decorate)([r.attr],pt.prototype,"fields",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"isSnapshot",void 0),(0,x.__decorate)([r.attr],pt.prototype,"maxRows",void 0),(0,x.__decorate)([r.attr],pt.prototype,"maxView",void 0),(0,x.__decorate)([r.attr],pt.prototype,"orderBy",void 0),(0,x.__decorate)([r.attr],pt.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"reverse",void 0),(0,x.__decorate)([r.attr],pt.prototype,"rowId",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],pt.prototype,"withTimestampFormatting",void 0);const ht=(0,ie.createLogger)("foundation-criteria");var mt;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(mt||(mt={}));class vt{constructor(e){this.$$operator=e}static And(){return new vt(mt.AND)}static Or(){return new vt(mt.OR)}static Not(){return new vt(mt.NOT)}static GreaterThan(){return new vt(mt.GT)}static GreaterThanOrEqual(){return new vt(mt.GE)}static LessThan(){return new vt(mt.LT)}static LessThanOrEqual(){return new vt(mt.LE)}static NotEqual(){return new vt(mt.NE)}static Equal(){return new vt(mt.EQ)}get operator(){return this.$$operator}}const gt="default";class ft{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,vt.And()),this.Or=(e,t={})=>this.withExpression(e,t,vt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,vt.Not())}withExpression(e,t={},o=vt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=gt)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof vt;return t&&ht.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(r=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,gt)}}else s(e,gt);else s(e,"string"==typeof e?gt:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof vt){if(o[t-1]instanceof vt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof vt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const bt=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},yt=e=>t=>`${t.field} ${e} ${bt(t)}`,xt=e=>yt(mt.EQ)(e),wt=e=>`Expr.containsIgnoreCase(${e.field}, ${bt(e)})`;class $t{constructor(e){this.serialiser=xt,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function St(e,t){var o;const i=new ft;i.withExpression((new $t).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(wt).build()),e.criteria=i.build()}function Ct(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var Ft;let kt=Ft=class extends pt{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.initalSelectedValueInitialized=!1,this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t,o;return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${k(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.label===e.target.value));this.select.$emit("value-change",o)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===it.vt.DATASERVER&&St(this,this.initialSelectedValue),e===it.vt.REQUEST_SERVER&&Ct(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Ft||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(o.length>0){this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)})),!this.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";r.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}else{const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],kt.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],kt.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],kt.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],kt.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],kt.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],kt.prototype,"initialSelectedValue",void 0),kt=Ft=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],kt);const _t=(e,t)=>r.css`
|
|
498
|
+
`,Qe=(e,t)=>(0,n.checkboxTemplate)(e,t);class Je extends s.Checkbox{}const et=void 0,tt={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},ot=Je.compose(Object.assign({baseName:"checkbox",template:Qe,styles:Ze,shadowOptions:et},tt));var it=o(39087),at=o(62051),nt=o.n(at),st=o(96730),rt=o(21281),lt=o(34193),dt=o(61503),ct=o(60949),ut=o(97156);class pt extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=it.OD.MAX_ROWS_250,this.maxView=it.OD.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new ut.t(new Map)}criteriaChanged(e,t){const o=e!==(0,st.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===rt.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,lt.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,st.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}}(0,x.__decorate)([dt.dm],pt.prototype,"connect",void 0),(0,x.__decorate)([ct.yW],pt.prototype,"datasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"withGridInit",void 0),(0,x.__decorate)([r.attr],pt.prototype,"criteria",void 0),(0,x.__decorate)([r.observable],pt.prototype,"data",void 0),(0,x.__decorate)([r.attr],pt.prototype,"fields",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"isSnapshot",void 0),(0,x.__decorate)([r.attr],pt.prototype,"maxRows",void 0),(0,x.__decorate)([r.attr],pt.prototype,"maxView",void 0),(0,x.__decorate)([r.attr],pt.prototype,"orderBy",void 0),(0,x.__decorate)([r.attr],pt.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],pt.prototype,"reverse",void 0),(0,x.__decorate)([r.attr],pt.prototype,"rowId",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],pt.prototype,"withTimestampFormatting",void 0);const ht=(0,ie.createLogger)("foundation-criteria");var mt;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(mt||(mt={}));class vt{constructor(e){this.$$operator=e}static And(){return new vt(mt.AND)}static Or(){return new vt(mt.OR)}static Not(){return new vt(mt.NOT)}static GreaterThan(){return new vt(mt.GT)}static GreaterThanOrEqual(){return new vt(mt.GE)}static LessThan(){return new vt(mt.LT)}static LessThanOrEqual(){return new vt(mt.LE)}static NotEqual(){return new vt(mt.NE)}static Equal(){return new vt(mt.EQ)}get operator(){return this.$$operator}}const gt="default";class ft{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,vt.And()),this.Or=(e,t={})=>this.withExpression(e,t,vt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,vt.Not())}withExpression(e,t={},o=vt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=gt)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof vt;return t&&ht.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(r=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,gt)}}else s(e,gt);else s(e,"string"==typeof e?gt:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof vt){if(o[t-1]instanceof vt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof vt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const bt=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},yt=e=>t=>`${t.field} ${e} ${bt(t)}`,xt=e=>yt(mt.EQ)(e),wt=e=>`Expr.containsIgnoreCase(${e.field}, ${bt(e)})`;class $t{constructor(e){this.serialiser=xt,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function St(e,t){var o;const i=new ft;i.withExpression((new $t).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(wt).build()),e.criteria=i.build()}function Ct(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var Ft;let kt=Ft=class extends pt{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.initalSelectedValueInitialized=!1,this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t,o;return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${k(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>String(t.label)===e.target.value));this.select.$emit("value-change",o)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===it.vt.DATASERVER&&St(this,this.initialSelectedValue),e===it.vt.REQUEST_SERVER&&Ct(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Ft||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(o.length>0){this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)})),!this.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";r.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}else{const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],kt.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],kt.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],kt.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],kt.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],kt.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],kt.prototype,"initialSelectedValue",void 0),kt=Ft=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],kt);const _t=(e,t)=>r.css`
|
|
499
499
|
.combo-box-indicator {
|
|
500
500
|
transition-property: transform;
|
|
501
501
|
transition-duration: 0.2s;
|
|
@@ -1961,7 +1961,7 @@
|
|
|
1961
1961
|
height: max-content;
|
|
1962
1962
|
overflow-y: hidden;
|
|
1963
1963
|
margin-top: 5px;
|
|
1964
|
-
border: 1px solid
|
|
1964
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);
|
|
1965
1965
|
border-radius: 4px;
|
|
1966
1966
|
background: var(--neutral-fill-input-rest);
|
|
1967
1967
|
width: 100%;
|
|
@@ -1982,7 +1982,7 @@
|
|
|
1982
1982
|
flex-direction: column;
|
|
1983
1983
|
overflow-y: scroll;
|
|
1984
1984
|
scrollbar-width: thin;
|
|
1985
|
-
scrollbar-color:
|
|
1985
|
+
scrollbar-color: var(--neutral-layer-2) var(--neutral-layer-4);
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
1988
|
.checkbox-container zero-checkbox {
|
|
@@ -2003,15 +2003,15 @@
|
|
|
2003
2003
|
}
|
|
2004
2004
|
|
|
2005
2005
|
::-webkit-scrollbar-track {
|
|
2006
|
-
background:
|
|
2006
|
+
background: var(--neutral-layer-4);
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
2009
2009
|
::-webkit-scrollbar-thumb {
|
|
2010
2010
|
width: 8px;
|
|
2011
2011
|
border-radius: 10px;
|
|
2012
2012
|
box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);
|
|
2013
|
-
background-color:
|
|
2014
|
-
border: 3px solid
|
|
2013
|
+
background-color: var(--neutral-layer-2);
|
|
2014
|
+
border: 3px solid var(--neutral-layer-4);
|
|
2015
2015
|
}
|
|
2016
2016
|
|
|
2017
2017
|
.visible {
|
|
@@ -2021,14 +2021,14 @@
|
|
|
2021
2021
|
|
|
2022
2022
|
::slotted(foundation-checkbox),
|
|
2023
2023
|
foundation-checkbox {
|
|
2024
|
-
border-bottom: 1px solid
|
|
2024
|
+
border-bottom: 1px solid var(--neutral-layer-4);
|
|
2025
2025
|
padding: 5px 0 5px 5px;
|
|
2026
2026
|
margin: 0;
|
|
2027
2027
|
}
|
|
2028
2028
|
|
|
2029
2029
|
::slotted(foundation-checkbox:hover),
|
|
2030
2030
|
foundation-checkbox:hover {
|
|
2031
|
-
background-color:
|
|
2031
|
+
background-color: var(--neutral-layer-3);
|
|
2032
2032
|
cursor: pointer;
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
@@ -2104,6 +2104,7 @@
|
|
|
2104
2104
|
`)}
|
|
2105
2105
|
${(0,r.when)((e=>e.all),r.html`
|
|
2106
2106
|
<${e}-checkbox
|
|
2107
|
+
part="checkbox"
|
|
2107
2108
|
@click=${e=>e.selectCheckboxAll()}
|
|
2108
2109
|
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
2109
2110
|
?current-checked="${e=>e.isAllSelected}"
|
|
@@ -2114,6 +2115,7 @@
|
|
|
2114
2115
|
`)}
|
|
2115
2116
|
${(0,r.repeat)((e=>e.filteredAvailableOptions),r.html`
|
|
2116
2117
|
<${e}-checkbox
|
|
2118
|
+
part="checkbox"
|
|
2117
2119
|
@click=${(e,t)=>t.parent.selectCheckboxOne(e)}
|
|
2118
2120
|
@change=${(e,t)=>t.parent.changeHandler(t.event)}
|
|
2119
2121
|
?current-checked="${(e,t)=>t.parent.isOptionSelected(e)}"
|
|
@@ -3746,4 +3748,4 @@
|
|
|
3746
3748
|
<slot></slot>
|
|
3747
3749
|
</template>
|
|
3748
3750
|
`;var du;!function(e){e.NOTIFICATION_EVENT="notification-event"}(du||(du={}));const cu={mode:"open",delegatesFocus:!0};class uu 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(du.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Fa(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=>{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],uu.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],uu.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],uu.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],uu.prototype,"toastButtons",void 0),(0,x.__decorate)([ct.yW],uu.prototype,"datasource",void 0);const pu=uu.compose({baseName:"notification-listener",template:lu,shadowOptions:cu}),hu=(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 mu(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 vu=e=>!e.navId||"header"===e.navId,gu=10;function fu(e,t=vu,o=gu){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 bu,yu=o(63734);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(bu||(bu={}));class xu{constructor(e){this.analytics=(0,yu.Ay)(e)}trackEvent(e,t){pa.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const wu=n.DI.createInterface((e=>e.singleton(xu)));var $u=o(3479),Su=o(80751),Cu=o(98647);let Fu=class extends($u.Ix.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Fu=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Fu);class ku extends Su.s{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...e,...this.definitions],super.map(...e)}}(0,x.__decorate)([r.observable],ku.prototype,"definitions",void 0);class _u extends Cu.Y{constructor(){super(...arguments),this.routes=new ku(this)}getNavItems(e=vu){return fu(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(bu.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],_u.prototype,"container",void 0),(0,x.__decorate)([wu],_u.prototype,"analytics",void 0);const Ou=()=>$r().register(nu)}}]);
|
|
3749
|
-
//# sourceMappingURL=531.
|
|
3751
|
+
//# sourceMappingURL=531.37bfc9608f4807851aa2e8d9ac5012e3.js.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<design-system-preview></design-system-preview>
|
|
4
4
|
<design-system-export slot="export" tokensPath="${e=>e.tokensPath}"></design-system-export>
|
|
5
5
|
</design-system-editor>
|
|
6
|
-
`;var s=n(68871),a=n(
|
|
6
|
+
`;var s=n(68871),a=n(7222),i=n(36960),c=n(44405);a.DesignSystemPreview,a.DesignSystemEditor,a.DesignSystemExport;const d=(0,n(65498).createLogger)("design-system-configurator");var u=n(97478),p=n.n(u),l=n(27135),f=n.n(l),m=n(61301),h=n.n(m),v=n(49222),g=n.n(v),y=n(6626),A=n.n(y),b=n(88279),C=n.n(b),_=n(62860),E={};E.styleTagTransform=C(),E.setAttributes=g(),E.insert=h().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=A();p()(_.A,E);_.A&&_.A.locals&&_.A.locals;const S=o.css`
|
|
7
7
|
:host {
|
|
8
8
|
display: flex;
|
|
9
9
|
height: 100%;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
}
|
|
12
12
|
`,w="design-system-configurator";let x=class extends o.FASTElement{constructor(){super(...arguments),this.ready=!1}connectedCallback(){super.connectedCallback(),fetch("/api/tokens").then((e=>e.ok&&e.json())).then((e=>{e.design_tokens&&(this.tokensPath=!0,this.$emit(a.EventName.APPLY_CUSTOM_DESIGN,e))})).catch((e=>{console.error("Error fetching path:",e)})),d.debug(`${w} is now connected to the DOM`),this.loadRemotes()}loadRemotes(){return(0,s.__awaiter)(this,void 0,void 0,(function*(){yield(0,s.__awaiter)(void 0,void 0,void 0,(function*(){(0,i.provideDesignSystem)().register(i.baseComponents),(0,c.provideFASTDesignSystem)().register(c.allComponents)}));this.ready=!0}))}};(0,s.__decorate)([o.observable],x.prototype,"ready",void 0),(0,s.__decorate)([o.attr],x.prototype,"tokensPath",void 0),x=(0,s.__decorate)([(0,o.customElement)({name:w,template:r,styles:S})],x)}}]);
|
|
13
|
-
//# sourceMappingURL=548.
|
|
13
|
+
//# sourceMappingURL=548.f67e6a5522e2599ebf40ecbcc26dbe94.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"548.548.xxxxxxxxxxxxxxxxxxxx.js","mappings":"sNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,mFAAoF,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,iCAAiC,MAAQ,GAAG,SAAW,qDAAqD,eAAiB,CAAC,oFAAoF,WAAa,MAEvX,S,YCDAD,EAAOE,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA4EX,OAzEAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GAoB5B,OAnBIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAEvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAEnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAE5EC,GAAWN,EAAuBK,GAC9BE,IACFD,GAAW,KAETD,EAAK,KACPC,GAAW,KAETD,EAAK,KACPC,GAAW,KAENA,CACT,IAAGI,KAAK,GACV,EAGAT,EAAKU,EAAI,SAAWC,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,iBAAZJ,IACTA,EAAU,CAAC,CAAC,KAAMA,OAASK,KAE7B,IAAIC,EAAyB,CAAC,EAC9B,GAAIJ,EACF,IAAK,IAAIK,EAAI,E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C,GAAS,E,SAAAC,cAAa,8B,sICU/BjE,EAAU,CAAC,EAEfA,EAAQgD,kBAAoB,IAC5BhD,EAAQ0C,cAAgB,IAElB1C,EAAQ0B,OAAS,SAAc,KAAM,QAE3C1B,EAAQe,OAAS,IACjBf,EAAQ+C,mBAAqB,IAEhB,IAAI,IAAS/C,GAKJ,KAAW,IAAQkE,QAAS,IAAQA,OAAnD,MCxBMC,EAAa,EAAA5D,GAAI;;;;;;ECKxB,EAAO,6BACb,IAAI6D,EAAkB,cAA8B,EAAAC,YAChD,WAAAC,GACIC,SAASC,WACTxG,KAAKyG,OAAQ,CACjB,CACA,iBAAAC,GACIH,MAAMG,oBACNC,MAAM,eACDC,MAAMC,GAAaA,EAASC,IAAMD,EAASE,SAC3CH,MAAMnF,IACHA,EAAKuF,gBACLhH,KAAK4F,YAAa,EAClB5F,KAAKiH,MAAM,EAAAC,UAAUC,oBAAqB1F,GAC9C,IAEC2F,OAAOC,IACRC,QAAQD,MAAM,uBAAwBA,EAAM,IAEhDrB,EAAOuB,MAAM,GAAG,iCAChBvH,KAAKwH,aACT,CACA,WAAAA,GACI,OAAO,IAAAC,WAAUzH,UAAM,OAAQ,GAAQ,kBJvBd,IAAAyH,gBAAU,OAAQ,OAAQ,GAAQ,aAC/D,IAAAC,uBAAsBC,SAAS,EAAAC,iBAC/B,IAAAC,2BAA0BF,SAAS,EAAAG,cACvC,IIsBY9H,KAAKyG,OAAQ,CACjB,GACJ,IAEJ,IAAAsB,YAAW,CACP,EAAAC,YACD5B,EAAgB6B,UAAW,aAAS,IACvC,IAAAF,YAAW,CACP,EAAAG,MACD9B,EAAgB6B,UAAW,kBAAc,GAC5C7B,GAAkB,IAAA2B,YAAW,EACzB,IAAAI,eAAc,CACVC,KAAI,EACJC,SAAQ,EACRC,OAAM,KAEXlC,E","sources":["webpack://@genesislcap/design-system-configurator/./src/main/main.css","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/api.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@genesislcap/design-system-configurator/./src/main/main.template.ts","webpack://@genesislcap/design-system-configurator/./src/components/components.ts","webpack://@genesislcap/design-system-configurator/./src/utils/logger.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.css?e432","webpack://@genesislcap/design-system-configurator/./src/main/main.styles.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/main/main.css\"],\"names\":[],\"mappings\":\"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX\",\"sourcesContent\":[\"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","import { html } from '@microsoft/fast-element';\nexport const MainTemplate = html `\n <design-system-editor custom-design-mode=\"${(x) => x.tokensPath}\">\n <design-system-preview></design-system-preview>\n <design-system-export slot=\"export\" tokensPath=\"${(x) => x.tokensPath}\"></design-system-export>\n </design-system-editor>\n`;\n","import { __awaiter } from \"tslib\";\nimport { provideDesignSystem, baseComponents } from '@genesislcap/alpha-design-system';\nimport { DesignSystemPreview, DesignSystemExport, DesignSystemEditor, } from '@genesislcap/documentation-components';\nimport { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';\nDesignSystemPreview;\nDesignSystemEditor;\nDesignSystemExport;\nexport const loadRemotes = () => __awaiter(void 0, void 0, void 0, function* () {\n provideDesignSystem().register(baseComponents);\n provideFASTDesignSystem().register(allComponents);\n});\n","import { createLogger } from '@genesislcap/foundation-logger';\nexport const logger = createLogger('design-system-configurator');\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./main.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./main.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { css } from '@microsoft/fast-element';\nimport './main.css';\nexport const MainStyles = css `\n :host {\n display: flex;\n height: 100%;\n overflow: hidden;\n }\n`;\n","import { __awaiter, __decorate } from \"tslib\";\nimport { EventName } from '@genesislcap/documentation-components';\nimport { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';\nimport * as Components from '../components';\nimport { logger } from '../utils';\nimport { MainStyles as styles } from './main.styles';\nimport { MainTemplate as template } from './main.template';\nconst name = 'design-system-configurator';\nlet MainApplication = class MainApplication extends FASTElement {\n constructor() {\n super(...arguments);\n this.ready = false;\n }\n connectedCallback() {\n super.connectedCallback();\n fetch(`/api/tokens`)\n .then((response) => response.ok && response.json())\n .then((data) => {\n if (data.design_tokens) {\n this.tokensPath = true;\n this.$emit(EventName.APPLY_CUSTOM_DESIGN, data);\n }\n })\n .catch((error) => {\n console.error('Error fetching path:', error);\n });\n logger.debug(`${name} is now connected to the DOM`);\n this.loadRemotes();\n }\n loadRemotes() {\n return __awaiter(this, void 0, void 0, function* () {\n const remotes = yield Components.loadRemotes();\n this.ready = true;\n });\n }\n};\n__decorate([\n observable\n], MainApplication.prototype, \"ready\", void 0);\n__decorate([\n attr\n], MainApplication.prototype, \"tokensPath\", void 0);\nMainApplication = __decorate([\n customElement({\n name,\n template,\n styles,\n })\n], MainApplication);\nexport { MainApplication };\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","MainTemplate","html","x","tokensPath","DesignSystemPreview","DesignSystemEditor","DesignSystemExport","logger","createLogger","locals","MainStyles","MainApplication","FASTElement","constructor","super","arguments","ready","connectedCallback","fetch","then","response","ok","json","design_tokens","$emit","EventName","APPLY_CUSTOM_DESIGN","catch","error","console","debug","loadRemotes","__awaiter","provideDesignSystem","register","baseComponents","provideFASTDesignSystem","allComponents","__decorate","observable","prototype","attr","customElement","name","template","styles"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"548.548.xxxxxxxxxxxxxxxxxxxx.js","mappings":"sNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,mFAAoF,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,iCAAiC,MAAQ,GAAG,SAAW,qDAAqD,eAAiB,CAAC,oFAAoF,WAAa,MAEvX,S,YCDAD,EAAOE,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA4EX,OAzEAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GAoB5B,OAnBIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAEvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAEnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAE5EC,GAAWN,EAAuBK,GAC9BE,IACFD,GAAW,KAETD,EAAK,KACPC,GAAW,KAETD,EAAK,KACPC,GAAW,KAENA,CACT,IAAGI,KAAK,GACV,EAGAT,EAAKU,EAAI,SAAWC,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,iBAAZJ,IACTA,EAAU,CAAC,CAAC,KAAMA,OAASK,KAE7B,IAAIC,EAAyB,CAAC,EAC9B,GAAIJ,EACF,IAAK,IAAIK,EAAI,EAAGA,EAAIhB,KAAKM,OAAQU,IAAK,CACpC,IAAIrB,EAAKK,KAAKgB,GAAG,GACP,MAANrB,IACFoB,EAAuBpB,IAAM,EAEjC,CAEF,IAAK,IAAIsB,EAAK,EAAGA,EAAKR,EAAQH,OAAQW,IA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+C,mBAAqB,IAEhB,IAAI,IAAS/C,GAKJ,KAAW,IAAQkE,QAAS,IAAQA,OAAnD,MCxBMC,EAAa,EAAA5D,GAAI;;;;;;ECKxB,EAAO,6BACb,IAAI6D,EAAkB,cAA8B,EAAAC,YAChD,WAAAC,GACIC,SAASC,WACTxG,KAAKyG,OAAQ,CACjB,CACA,iBAAAC,GACIH,MAAMG,oBACNC,MAAM,eACDC,MAAMC,GAAaA,EAASC,IAAMD,EAASE,SAC3CH,MAAMnF,IACHA,EAAKuF,gBACLhH,KAAK4F,YAAa,EAClB5F,KAAKiH,MAAM,EAAAC,UAAUC,oBAAqB1F,GAC9C,IAEC2F,OAAOC,IACRC,QAAQD,MAAM,uBAAwBA,EAAM,IAEhDrB,EAAOuB,MAAM,GAAG,iCAChBvH,KAAKwH,aACT,CACA,WAAAA,GACI,OAAO,IAAAC,WAAUzH,UAAM,OAAQ,GAAQ,kBJvBd,IAAAyH,gBAAU,OAAQ,OAAQ,GAAQ,aAC/D,IAAAC,uBAAsBC,SAAS,EAAAC,iBAC/B,IAAAC,2BAA0BF,SAAS,EAAAG,cACvC,IIsBY9H,KAAKyG,OAAQ,CACjB,GACJ,IAEJ,IAAAsB,YAAW,CACP,EAAAC,YACD5B,EAAgB6B,UAAW,aAAS,IACvC,IAAAF,YAAW,CACP,EAAAG,MACD9B,EAAgB6B,UAAW,kBAAc,GAC5C7B,GAAkB,IAAA2B,YAAW,EACzB,IAAAI,eAAc,CACVC,KAAI,EACJC,SAAQ,EACRC,OAAM,KAEXlC,E","sources":["webpack://@genesislcap/design-system-configurator/./src/main/main.css","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/api.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@genesislcap/design-system-configurator/./src/main/main.template.ts","webpack://@genesislcap/design-system-configurator/./src/components/components.ts","webpack://@genesislcap/design-system-configurator/./src/utils/logger.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.css?e432","webpack://@genesislcap/design-system-configurator/./src/main/main.styles.ts","webpack://@genesislcap/design-system-configurator/./src/main/main.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/main/main.css\"],\"names\":[],\"mappings\":\"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX\",\"sourcesContent\":[\"html,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","import { html } from '@microsoft/fast-element';\nexport const MainTemplate = html `\n <design-system-editor custom-design-mode=\"${(x) => x.tokensPath}\">\n <design-system-preview></design-system-preview>\n <design-system-export slot=\"export\" tokensPath=\"${(x) => x.tokensPath}\"></design-system-export>\n </design-system-editor>\n`;\n","import { __awaiter } from \"tslib\";\nimport { provideDesignSystem, baseComponents } from '@genesislcap/alpha-design-system';\nimport { DesignSystemPreview, DesignSystemExport, DesignSystemEditor, } from '@genesislcap/documentation-components';\nimport { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';\nDesignSystemPreview;\nDesignSystemEditor;\nDesignSystemExport;\nexport const loadRemotes = () => __awaiter(void 0, void 0, void 0, function* () {\n provideDesignSystem().register(baseComponents);\n provideFASTDesignSystem().register(allComponents);\n});\n","import { createLogger } from '@genesislcap/foundation-logger';\nexport const logger = createLogger('design-system-configurator');\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./main.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./main.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { css } from '@microsoft/fast-element';\nimport './main.css';\nexport const MainStyles = css `\n :host {\n display: flex;\n height: 100%;\n overflow: hidden;\n }\n`;\n","import { __awaiter, __decorate } from \"tslib\";\nimport { EventName } from '@genesislcap/documentation-components';\nimport { attr, customElement, FASTElement, observable } from '@microsoft/fast-element';\nimport * as Components from '../components';\nimport { logger } from '../utils';\nimport { MainStyles as styles } from './main.styles';\nimport { MainTemplate as template } from './main.template';\nconst name = 'design-system-configurator';\nlet MainApplication = class MainApplication extends FASTElement {\n constructor() {\n super(...arguments);\n this.ready = false;\n }\n connectedCallback() {\n super.connectedCallback();\n fetch(`/api/tokens`)\n .then((response) => response.ok && response.json())\n .then((data) => {\n if (data.design_tokens) {\n this.tokensPath = true;\n this.$emit(EventName.APPLY_CUSTOM_DESIGN, data);\n }\n })\n .catch((error) => {\n console.error('Error fetching path:', error);\n });\n logger.debug(`${name} is now connected to the DOM`);\n this.loadRemotes();\n }\n loadRemotes() {\n return __awaiter(this, void 0, void 0, function* () {\n const remotes = yield Components.loadRemotes();\n this.ready = true;\n });\n }\n};\n__decorate([\n observable\n], MainApplication.prototype, \"ready\", void 0);\n__decorate([\n attr\n], MainApplication.prototype, \"tokensPath\", void 0);\nMainApplication = __decorate([\n customElement({\n name,\n template,\n styles,\n })\n], MainApplication);\nexport { MainApplication };\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","MainTemplate","html","x","tokensPath","DesignSystemPreview","DesignSystemEditor","DesignSystemExport","logger","createLogger","locals","MainStyles","MainApplication","FASTElement","constructor","super","arguments","ready","connectedCallback","fetch","then","response","ok","json","design_tokens","$emit","EventName","APPLY_CUSTOM_DESIGN","catch","error","console","debug","loadRemotes","__awaiter","provideDesignSystem","register","baseComponents","provideFASTDesignSystem","allComponents","__decorate","observable","prototype","attr","customElement","name","template","styles"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[653,792],{653:(e,s,n)=>{Promise.all([n.e(418),n.e(405),n.e(
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[653,792],{653:(e,s,n)=>{Promise.all([n.e(418),n.e(405),n.e(117),n.e(960),n.e(548)]).then(n.bind(n,96548))}}]);
|
|
2
2
|
//# sourceMappingURL=653.cd79d6d50e9f0dfe8ed96f08357afbae.js.map
|