@momentum-design/components 0.0.24 → 0.0.26
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/browser/index.js +56 -56
- package/dist/browser/index.js.map +4 -4
- package/dist/components/iconprovider/iconprovider.stories.utils.d.ts +12 -0
- package/dist/components/iconprovider/iconprovider.stories.utils.js +24 -0
- package/dist/components/themeprovider/themeprovider.stories.utils.d.ts +12 -0
- package/dist/components/themeprovider/themeprovider.stories.utils.js +20 -0
- package/dist/custom-elements.json +18 -12
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -4
- package/dist/react/avatar/index.d.ts +11 -0
- package/dist/react/avatar/index.js +23 -0
- package/dist/react/badge/index.d.ts +11 -0
- package/dist/react/badge/index.js +23 -0
- package/dist/react/icon/index.d.ts +25 -0
- package/dist/react/icon/index.js +37 -0
- package/dist/react/iconprovider/index.d.ts +14 -0
- package/dist/react/iconprovider/index.js +26 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +18 -0
- package/dist/react/text/index.d.ts +15 -0
- package/dist/react/text/index.js +27 -0
- package/dist/react/themeprovider/index.d.ts +14 -0
- package/dist/react/themeprovider/index.js +26 -0
- package/dist/utils/mixins/DisabledMixin.d.ts +7 -0
- package/dist/utils/mixins/DisabledMixin.js +20 -0
- package/dist/utils/mixins/TabIndexMixin.d.ts +7 -0
- package/dist/utils/mixins/TabIndexMixin.js +20 -0
- package/package.json +6 -3
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var
|
2
|
-
\f\r]`,
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Xt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,Et=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),f=Et(1),bs=Et(2),Es=Et(3),A=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Yt=new WeakMap,w=P.createTreeWalker(P,129);function Zt(o,t){if(!bt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Fe=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=q;for(let h=0;h<e;h++){let a=o[h],m,g,p=-1,b=0;for(;b<a.length&&(n.lastIndex=b,g=n.exec(a),g!==null);)b=n.lastIndex,n===q?g[1]==="!--"?n=Wt:g[1]!==void 0?n=Gt:g[2]!==void 0?(Jt.test(g[2])&&(r=RegExp("</"+g[2],"g")),n=N):g[3]!==void 0&&(n=N):n===N?g[0]===">"?(n=r??q,p=-1):g[1]===void 0?p=-2:(p=n.lastIndex-g[2].length,m=g[1],n=g[3]===void 0?N:g[3]==='"'?Xt:Bt):n===Xt||n===Bt?n=N:n===Wt||n===Gt?n=q:(n=N,r=void 0);let _=n===N&&o[h+1].startsWith("/>")?" ":"";i+=n===q?a+ze:p>=0?(s.push(m),a.slice(0,p)+Kt+a.slice(p)+$+_):a+$+(p===-2?h:_)}return[Zt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},V=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,h=t.length-1,a=this.parts,[m,g]=Fe(t,e);if(this.el=o.createElement(m,s),w.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(r=w.nextNode())!==null&&a.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(let p of r.getAttributeNames())if(p.endsWith(Kt)){let b=g[n++],_=r.getAttribute(p).split($),X=/([.?@])?(.*)/.exec(b);a.push({type:1,index:i,name:X[2],strings:_,ctor:X[1]==="."?ft:X[1]==="?"?gt:X[1]==="@"?yt:U}),r.removeAttribute(p)}else p.startsWith($)&&(a.push({type:6,index:i}),r.removeAttribute(p));if(Jt.test(r.tagName)){let p=r.textContent.split($),b=p.length-1;if(b>0){r.textContent=tt?tt.emptyScript:"";for(let _=0;_<b;_++)r.append(p[_],F()),w.nextNode(),a.push({type:2,index:++i});r.append(p[b],F())}}}else if(r.nodeType===8)if(r.data===Qt)a.push({type:2,index:i});else{let p=-1;for(;(p=r.data.indexOf($,p+1))!==-1;)a.push({type:7,index:i}),p+=$.length-1}i++}}static createElement(t,e){let s=P.createElement("template");return s.innerHTML=t,s}};function M(o,t,e=o,s){if(t===A)return t;let r=s!==void 0?e.o?.[s]:e.l,i=j(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e.o??=[])[s]=r:e.l=r),r!==void 0&&(t=M(o,r._$AS(o,t.values),r,s)),t}var ut=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,r=(t?.creationScope??P).importNode(e,!0);w.currentNode=r;let i=w.nextNode(),n=0,h=0,a=s[0];for(;a!==void 0;){if(n===a.index){let m;a.type===2?m=new W(i,i.nextSibling,this,t):a.type===1?m=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(m=new xt(i,this,t)),this._$AV.push(m),a=s[++h]}n!==a?.index&&(i=w.nextNode(),n++)}return w.currentNode=P,r}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},W=class o{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this.v=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),j(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):qe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=V.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new ut(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Yt.get(t.strings);return e===void 0&&Yt.set(t.strings,e=new V(t)),e}k(t){bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(F()),this.O(F()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,r){let i=this.strings,n=!1;if(i===void 0)t=M(this,t,e,0),n=!j(t)||t!==this._$AH&&t!==A,n&&(this._$AH=t);else{let h=t,a,m;for(t=i[0],a=0;a<i.length-1;a++)m=M(this,h[s+a],e,a),m===A&&(m=this._$AH[a]),n||=!j(m)||m!==this._$AH[a],m===d?t=d:t!==d&&(t+=(m??"")+i[a+1]),this._$AH[a]=m}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ft=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},gt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},yt=class extends U{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??d)===A)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}};var je=vt.litHtmlPolyfillSupport;je?.(V,W),(vt.litHtmlVersions??=[]).push("3.2.0");var te=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new W(t.insertBefore(F(),i),i,void 0,e??{})}return r._$AI(o),r};var S=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=te(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return A}};S._$litElement$=!0,S.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:S});var Ve=globalThis.litElementPolyfillSupport;Ve?.({LitElement:S});(globalThis.litElementVersions??=[]).push("4.1.0");var At=class extends S{static register(t){customElements.get(t)||customElements.define(t,this)}},ee=At;var y=ee;var T=class extends Event{constructor(t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=s??!1}};var L=class{constructor(t,e,s,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,n)),this.unsubscribe=n},this.host=t,e.context!==void 0){let i=e;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=e,this.callback=s,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new T(this.context,this.t,this.subscribe))}};var et=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}};var _t=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},O=class extends et{constructor(t,e,s){super(e.context!==void 0?e.initialValue:s),this.onContextRequest=r=>{let i=r.composedPath()[0];r.context===this.context&&i!==this.host&&(r.stopPropagation(),this.addCallback(r.callback,i,r.subscribe))},this.onProviderRequest=r=>{let i=r.composedPath()[0];if(r.context!==this.context||i===this.host)return;let n=new Set;for(let[h,{consumerHost:a}]of this.subscriptions)n.has(h)||(n.add(h),a.dispatchEvent(new T(this.context,h,!0)));r.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new _t(this.context))}};var We=u`
|
1
|
+
"use strict";(()=>{var De=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var c=(r,t,e,s)=>{for(var o=s>1?void 0:s?ze(t,e):t,n=r.length-1,i;n>=0;n--)(i=r[n])&&(o=(s?i(t,e,o):i(o))||o);return s&&o&&De(t,e,o),o};var J=globalThis,Z=J.ShadowRoot&&(J.ShadyCSS===void 0||J.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ft=Symbol(),jt=new WeakMap,D=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ft)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=jt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&jt.set(e,t))}return t}toString(){return this.cssText}},Vt=r=>new D(typeof r=="string"?r:r+"",void 0,ft),f=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((s,o,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1],r[0]);return new D(e,r,ft)},gt=(r,t)=>{if(Z)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),o=J.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},tt=Z?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Vt(e)})(r):r;var{is:qe,defineProperty:Fe,getOwnPropertyDescriptor:je,getOwnPropertyNames:Ve,getOwnPropertySymbols:We,getPrototypeOf:Ge}=Object,S=globalThis,Wt=S.trustedTypes,Be=Wt?Wt.emptyScript:"",yt=S.reactiveElementPolyfillSupport,z=(r,t)=>r,q={toAttribute(r,t){switch(t){case Boolean:r=r?Be:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},et=(r,t)=>!qe(r,t),Gt={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:et},Bt,Xt;(Bt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Xt=S.litPropertyMetadata)!=null||(S.litPropertyMetadata=new WeakMap);var E=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Gt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&Fe(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){var i;let{get:o,set:n}=(i=je(this.prototype,t))!=null?i:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let a=o==null?void 0:o.call(this);n.call(this,l),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Gt}static _$Ei(){if(this.hasOwnProperty(z("elementProperties")))return;let t=Ge(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(z("properties"))){let e=this.properties,s=[...Ve(e),...We(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(tt(o))}else t!==void 0&&e.push(tt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return gt(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var o;return(o=s.hostConnected)==null?void 0:o.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var n;let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let i=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:q).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){var n;let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=s.getPropertyOptions(o),l=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:q;this._$Em=o,this[o]=l.fromAttribute(e,i.type),this._$Em=null}}requestUpdate(t,e,s){var o;if(t!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(t)),!((o=s.hasChanged)!=null?o:et)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){var o;this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,l]of this._$Ep)this[i]=l;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,l]of n)l.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],l)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var o;return(o=s.hostUpdated)==null?void 0:o.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Yt;E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[z("elementProperties")]=new Map,E[z("finalized")]=new Map,yt==null||yt({ReactiveElement:E}),((Yt=S.reactiveElementVersions)!=null?Yt:S.reactiveElementVersions=[]).push("2.0.4");var Xe={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:et},Ye=(r=Xe,t,e)=>{let{kind:s,metadata:o}=e,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(e.name,r),s==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,r)},init(l){return l!==void 0&&this.P(i,void 0,r),l}}}if(s==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,r)}}throw Error("Unsupported decorator location: "+s)};function h(r){return(t,e)=>typeof e=="object"?Ye(r,t,e):((s,o,n)=>{let i=o.hasOwnProperty(n);return o.constructor.createProperty(n,i?{...s,wrapped:!0}:s),i?Object.getOwnPropertyDescriptor(o,n):void 0})(r,t,e)}function xt(r){return h({...r,state:!0,attribute:!1})}var Ke={PREFIX:"mdc",SEPARATOR:"-"},Qe={NAMESPACE:Ke},vt=Qe;var Je=r=>[vt.NAMESPACE.PREFIX,r].join(vt.NAMESPACE.SEPARATOR),y={constructTagName:Je};var Ze="mds-theme-stable",ts="-",es=r=>[Ze,r].join(ts),ss={getFullQualifiedTheme:es},bt=ss;var ot=y.constructTagName("themeprovider"),Kt={DARK_WEBEX:"darkWebex",LIGHT_WEBEX:"lightWebex"},Qt=Object.values(Kt).map(r=>bt.getFullQualifiedTheme(r)),Et={THEME:bt.getFullQualifiedTheme(Kt.DARK_WEBEX)};var j=globalThis,rt=j.trustedTypes,Jt=rt?rt.createPolicy("lit-html",{createHTML:r=>r}):void 0,ie="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,ne="?"+T,os=`<${ne}>`,M=document,V=()=>M.createComment(""),W=r=>r===null||typeof r!="object"&&typeof r!="function",wt=Array.isArray,rs=r=>wt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",At=`[
|
2
|
+
\f\r]`,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zt=/-->/g,te=/>/g,P=RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,se=/"/g,ae=/^(?:script|style|textarea|title)$/i,Pt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),g=Pt(1),no=Pt(2),ao=Pt(3),A=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),oe=new WeakMap,R=M.createTreeWalker(M,129);function le(r,t){if(!wt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jt!==void 0?Jt.createHTML(t):t}var is=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=F;for(let l=0;l<e;l++){let a=r[l],m,d,p=-1,b=0;for(;b<a.length&&(i.lastIndex=b,d=i.exec(a),d!==null);)b=i.lastIndex,i===F?d[1]==="!--"?i=Zt:d[1]!==void 0?i=te:d[2]!==void 0?(ae.test(d[2])&&(o=RegExp("</"+d[2],"g")),i=P):d[3]!==void 0&&(i=P):i===P?d[0]===">"?(i=o!=null?o:F,p=-1):d[1]===void 0?p=-2:(p=i.lastIndex-d[2].length,m=d[1],i=d[3]===void 0?P:d[3]==='"'?se:ee):i===se||i===ee?i=P:i===Zt||i===te?i=F:(i=P,o=void 0);let $=i===P&&r[l+1].startsWith("/>")?" ":"";n+=i===F?a+os:p>=0?(s.push(m),a.slice(0,p)+ie+a.slice(p)+T+$):a+T+(p===-2?l:$)}return[le(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},G=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,l=t.length-1,a=this.parts,[m,d]=is(t,e);if(this.el=r.createElement(m,s),R.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=R.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(ie)){let b=d[i++],$=o.getAttribute(p).split(T),Q=/([.?@])?(.*)/.exec(b);a.push({type:1,index:n,name:Q[2],strings:$,ctor:Q[1]==="."?St:Q[1]==="?"?Tt:Q[1]==="@"?Ct:L}),o.removeAttribute(p)}else p.startsWith(T)&&(a.push({type:6,index:n}),o.removeAttribute(p));if(ae.test(o.tagName)){let p=o.textContent.split(T),b=p.length-1;if(b>0){o.textContent=rt?rt.emptyScript:"";for(let $=0;$<b;$++)o.append(p[$],V()),R.nextNode(),a.push({type:2,index:++n});o.append(p[b],V())}}}else if(o.nodeType===8)if(o.data===ne)a.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(T,p+1))!==-1;)a.push({type:7,index:n}),p+=T.length-1}n++}}static createElement(t,e){let s=M.createElement("template");return s.innerHTML=t,s}};function U(r,t,e=r,s){var i,l,a;if(t===A)return t;let o=s!==void 0?(i=e.o)==null?void 0:i[s]:e.l,n=W(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,s)),s!==void 0?((a=e.o)!=null?a:e.o=[])[s]=o:e.l=o),o!==void 0&&(t=U(r,o._$AS(r,t.values),o,s)),t}var $t=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:s}=this._$AD,o=((m=t==null?void 0:t.creationScope)!=null?m:M).importNode(e,!0);R.currentNode=o;let n=R.nextNode(),i=0,l=0,a=s[0];for(;a!==void 0;){if(i===a.index){let d;a.type===2?d=new B(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Nt(n,this,t)),this._$AV.push(d),a=s[++l]}i!==(a==null?void 0:a.index)&&(n=R.nextNode(),i++)}return R.currentNode=M,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},B=class r{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,s,o){var n;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this.v=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),W(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):rs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&W(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=G.createElement(le(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{let i=new $t(o,this),l=i.u(this.options);i.p(e),this.T(l),this._$AH=i}}_$AC(t){let e=oe.get(t.strings);return e===void 0&&oe.set(t.strings,e=new G(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new r(this.O(V()),this.O(V()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(t,e=this,s,o){let n=this.strings,i=!1;if(n===void 0)t=U(this,t,e,0),i=!W(t)||t!==this._$AH&&t!==A,i&&(this._$AH=t);else{let l=t,a,m;for(t=n[0],a=0;a<n.length-1;a++)m=U(this,l[s+a],e,a),m===A&&(m=this._$AH[a]),i||(i=!W(m)||m!==this._$AH[a]),m===u?t=u:t!==u&&(t+=(m!=null?m:"")+n[a+1]),this._$AH[a]=m}i&&!o&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},St=class extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},Tt=class extends L{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},Ct=class extends L{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=U(this,t,e,0))!=null?i:u)===A)return;let s=this._$AH,o=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==u&&(s===u||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,t):this._$AH.handleEvent(t)}},Nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}};var _t=j.litHtmlPolyfillSupport,re;_t==null||_t(G,B),((re=j.litHtmlVersions)!=null?re:j.litHtmlVersions=[]).push("3.2.0");var ce=(r,t,e)=>{var n,i;let s=(n=e==null?void 0:e.renderBefore)!=null?n:t,o=s._$litPart$;if(o===void 0){let l=(i=e==null?void 0:e.renderBefore)!=null?i:null;s._$litPart$=o=new B(t.insertBefore(V(),l),l,void 0,e!=null?e:{})}return o._$AI(r),o};var C=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,s;let t=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=ce(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return A}},he;C._$litElement$=!0,C.finalized=!0,(he=globalThis.litElementHydrateSupport)==null||he.call(globalThis,{LitElement:C});var Rt=globalThis.litElementPolyfillSupport;Rt==null||Rt({LitElement:C});var pe;((pe=globalThis.litElementVersions)!=null?pe:globalThis.litElementVersions=[]).push("4.1.0");var Mt=class extends C{static register(t){customElements.get(t)||customElements.define(t,this)}},de=Mt;var x=de;var N=class extends Event{constructor(t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=s!=null?s:!1}};var O=class{constructor(t,e,s,o){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,l)=>{this.unsubscribe&&(this.unsubscribe!==l&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,l)),this.unsubscribe=l},this.host=t,e.context!==void 0){let i=e;this.context=i.context,this.callback=i.callback,this.subscribe=(n=i.subscribe)!=null?n:!1}else this.context=e,this.callback=s,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new N(this.context,this.t,this.subscribe))}};var it=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var Ut=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},H=class extends it{constructor(t,e,s){var o,n;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=i=>{let l=i.composedPath()[0];i.context===this.context&&l!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,l,i.subscribe))},this.onProviderRequest=i=>{let l=i.composedPath()[0];if(i.context!==this.context||l===this.host)return;let a=new Set;for(let[m,{consumerHost:d}]of this.subscriptions)a.has(m)||(a.add(m),d.dispatchEvent(new N(this.context,m,!0)));i.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(o=this.host).addController)==null||n.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ut(this.context))}};var ns=f`
|
4
4
|
:host {
|
5
5
|
border: 0;
|
6
6
|
display: block;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
padding: 0;
|
10
10
|
width: 100%;
|
11
11
|
}
|
12
|
-
`,
|
12
|
+
`,ue=ns;var nt=class extends x{constructor({context:t,initialValue:e}){super(),this.context=new H(this,{context:t,initialValue:e})}render(){return this.updateContext(),g`<slot></slot>`}};nt.styles=ue;var fe=nt;var X=fe;var at=class{constructor(t){this.theme=t}};at.context=ot;var lt=at;var as=f`
|
13
13
|
:host {
|
14
14
|
--mdc-themeprovider-font-family: "Momentum";
|
15
15
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
@@ -17,7 +17,7 @@
|
|
17
17
|
font-family: var(--mdc-themeprovider-font-family);
|
18
18
|
color: var(--mdc-themeprovider-color-default);
|
19
19
|
}
|
20
|
-
`,
|
20
|
+
`,ge=as;var k=class extends X{constructor(){super({context:lt.context,initialValue:new lt(Et.THEME)});this.themes=Qt.join(" ");this.theme=Et.THEME}static get Context(){return lt.context}updated(e){super.updated(e),e.has("theme")&&this.updateActiveThemeClass()}updateContext(){let e=!1;this.context.value.theme!==this.theme&&(this.context.value.theme=this.theme,e=!0),e&&this.context.updateObservers()}updateActiveThemeClass(){this.classList.remove(...this.themes.split(" ")),this.classList.add(this.theme)}};k.styles=ge,c([h({type:String})],k.prototype,"themes",2),c([h({type:String})],k.prototype,"theme",2);var Lt=k;Lt.register(ot);var ls=Lt;var ct=f`
|
21
21
|
:host {
|
22
22
|
align-items: center;
|
23
23
|
display: flex;
|
@@ -25,13 +25,13 @@
|
|
25
25
|
justify-content: center;
|
26
26
|
width: fit-content;
|
27
27
|
}
|
28
|
-
`;var
|
28
|
+
`;var cs=[ct,f`
|
29
29
|
svg {
|
30
30
|
height: 100%;
|
31
31
|
width: 100%;
|
32
32
|
fill: currentColor;
|
33
33
|
}
|
34
|
-
`],
|
34
|
+
`],ye=cs;var hs=r=>{let{host:t,context:e,subscribe:s}=r;return new O(t,{context:e,subscribe:s!=null?s:!0})},ps={consume:hs},xe=ps;var ht=y.constructTagName("iconprovider"),ve=["svg"],Ot={FILE_EXTENSION:"svg",LENGTH_UNIT:"em"};var pt=class{};pt.context=ht;var dt=pt;var I=class extends X{constructor(){super({context:dt.context,initialValue:new dt});this.fileExtension=Ot.FILE_EXTENSION;this.lengthUnit=Ot.LENGTH_UNIT}static get Context(){return dt.context}updateValuesInContext(){this.fileExtension&&ve.includes(this.fileExtension)&&(this.context.value.fileExtension=this.fileExtension),this.context.value.url=this.url,this.context.value.lengthUnit=this.lengthUnit}updateContext(){let e=!1;(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit)&&(this.updateValuesInContext(),e=!0),e&&this.context.updateObservers()}};c([h({type:String})],I.prototype,"url",2),c([h({type:String,attribute:"file-extension",reflect:!0})],I.prototype,"fileExtension",2),c([h({type:String,attribute:"length-unit",reflect:!0})],I.prototype,"lengthUnit",2);var Y=I;var be=async(r,t,e)=>fetch(`${r}/${t}.${e}`).then(s=>{if(!s.ok)throw new Error("There was a problem while fetching the icon!");return s.text()}).then(s=>new DOMParser().parseFromString(s,"text/html").body.children[0]);var Ee=y.constructTagName("icon"),Ht={NAME:void 0,SCALE:1};var v=class extends x{constructor(){super(...arguments);this.name=Ht.NAME;this.scale=Ht.SCALE;this.role=null;this.ariaLabel=null;this.iconProviderContext=xe.consume({host:this,context:Y.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:s}=this.iconProviderContext.value;if(s&&e&&this.name){let o=await be(s,this.name,e);this.iconData=o,this.setRoleOnIcon(),this.setAriaLabelOnIcon()}}}updateSize(){if(this.scale&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.scale}${this.lengthUnit||this.lengthUnitFromContext}`;this.style.width=e,this.style.height=e}}setRoleOnIcon(){var e,s;this.role?(e=this.iconData)==null||e.setAttribute("role",this.role):(s=this.iconData)==null||s.removeAttribute("role")}setAriaLabelOnIcon(){var e,s;this.ariaLabel?(e=this.iconData)==null||e.setAttribute("aria-label",this.ariaLabel):(s=this.iconData)==null||s.removeAttribute("aria-label")}updated(e){var s,o;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{console.error(n)}),e.has("role")&&this.setRoleOnIcon(),e.has("ariaLabel")&&this.setAriaLabelOnIcon(),(e.has("scale")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize())}render(){return g` ${this.iconData} `}};v.styles=ye,c([xt()],v.prototype,"iconData",2),c([xt()],v.prototype,"lengthUnitFromContext",2),c([h({type:String,reflect:!0})],v.prototype,"name",2),c([h({type:Number})],v.prototype,"scale",2),c([h({type:String,attribute:"length-unit"})],v.prototype,"lengthUnit",2),c([h({type:String})],v.prototype,"role",2),c([h({type:String,attribute:"aria-label"})],v.prototype,"ariaLabel",2);var kt=v;kt.register(Ee);var ds=kt;Y.register(ht);var ms=Y;var It=r=>r!=null?r:u;var us=f`
|
35
35
|
:host {
|
36
36
|
display: flex;
|
37
37
|
justify-content: center;
|
@@ -46,12 +46,12 @@
|
|
46
46
|
width: inherit;
|
47
47
|
object-fit: cover;
|
48
48
|
}
|
49
|
-
`,
|
49
|
+
`,Ae=us;var _e=y.constructTagName("avatar"),$e="rem",Dt={TYPE:"photo",SCALE:1.5};var w=class extends x{constructor(){super(...arguments);this.type=Dt.TYPE;this.scale=Dt.SCALE}updateSize(){if(this.scale){let e=`${this.scale}${$e}`;this.style.width=e,this.style.height=e}}updated(e){super.updated(e),e.has("scale")&&this.updateSize()}photoTemplate(){return g`
|
50
50
|
<img
|
51
|
-
src="${
|
52
|
-
alt="${
|
51
|
+
src="${It(this.src)}"
|
52
|
+
alt="${It(this.alt)}"
|
53
53
|
/>
|
54
|
-
`}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=
|
54
|
+
`}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=g``,g`${e}`}};w.styles=Ae,c([h({type:String,reflect:!0})],w.prototype,"type",2),c([h({type:String})],w.prototype,"alt",2),c([h({type:String})],w.prototype,"src",2),c([h({type:Number})],w.prototype,"scale",2);var zt=w;zt.register(_e);var fs=zt;var Se={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=r=>(...t)=>({_$litDirective$:r,values:t}),mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this.t=t,this._$AM=e,this.i=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Ce="important",gs=" !"+Ce,Ne=Te(class extends mt{constructor(r){var t;if(super(r),r.type!==Se.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let s=r[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let o=t[s];if(o!=null){this.ft.add(s);let n=typeof o=="string"&&o.endsWith(gs);s.includes("-")||n?e.setProperty(s,n?o.slice(0,-11):o,n?Ce:""):e[s]=o}}return A}});var we=y.constructTagName("badge"),Pe="warning-badge-filled",ut={TYPE:"regular",SCALE:1,LENGTH_UNIT:"rem"};var ys=[ct,f`
|
55
55
|
:host {
|
56
56
|
--mdc-badge-icon-background-color: var(--mds-color-theme-background-accent-normal);
|
57
57
|
}
|
@@ -68,9 +68,9 @@
|
|
68
68
|
height: 80%;
|
69
69
|
width: 80%;
|
70
70
|
}
|
71
|
-
`],
|
71
|
+
`],Re=ys;var _=class extends x{constructor(){super(...arguments);this.type=ut.TYPE;this.scale=ut.SCALE;this.lengthUnit=ut.LENGTH_UNIT}updateSize(){}updated(e){super.updated(e),(e.has("scale")||e.has("lengthUnit"))&&this.updateSize()}iconTemplate(){return g`<div class="mdc-badge-icon-container">
|
72
72
|
<mdc-icon name="${this.iconName}" scale="100" length-unit="%"></mdc-icon>
|
73
|
-
</div>`}textTemplate(){return
|
73
|
+
</div>`}textTemplate(){return g`${this.text}`}warningTemplate(){return g` <mdc-icon name="${Pe}" class="mdc-badge-warning"></mdc-icon> `}render(){let e,s=`${this.scale}${this.lengthUnit}`,o={width:s,height:s};switch(this.type){case"regular":e=g``;break;case"icon":e=this.iconTemplate();break;case"text":e=this.textTemplate(),o={height:o.height};break;case"warning":e=this.warningTemplate();break;default:e=g``;break}return g`<div class="mdc-badge-container" style=${Ne(o)}>${e}</div>`}};_.styles=Re,c([h({type:String,reflect:!0})],_.prototype,"type",2),c([h({type:Number})],_.prototype,"scale",2),c([h({type:String,attribute:"length-unit"})],_.prototype,"lengthUnit",2),c([h({type:String,attribute:"icon-name"})],_.prototype,"iconName",2),c([h({type:String})],_.prototype,"text",2);var qt=_;qt.register(we);var xs=qt;var Me=f`
|
74
74
|
:host([type="heading-1"]) {
|
75
75
|
font-size: 7.5rem;
|
76
76
|
font-style: normal;
|
@@ -164,174 +164,174 @@
|
|
164
164
|
line-height: 150%; /* 1.5rem */
|
165
165
|
letter-spacing: 0.02rem;
|
166
166
|
}
|
167
|
-
`;var
|
167
|
+
`;var vs=[f`
|
168
168
|
:host {
|
169
169
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
170
170
|
|
171
171
|
display: block;
|
172
172
|
font-family: var(--mdc-text-font-family);
|
173
173
|
}
|
174
|
-
`,
|
174
|
+
`,Me],Ue=vs;var Le=r=>{let t=r.split("-");return{firstPart:t[0],secondPart:t[1]}},Oe=r=>{let{firstPart:t,secondPart:e}=Le(r);return t==="heading"&&+e>0&&+e<7},He=r=>r?Oe(r)?"heading":"paragraph":null,ke=r=>{if(r&&Oe(r)){let{secondPart:t}=Le(r);return t}return null};var K=class extends x{handleTypeChanged(){this.role=He(this.type),this.ariaLevel=ke(this.type)}updated(t){super.updated(t),t.has("type")&&this.handleTypeChanged()}render(){return g`<slot></slot>`}};K.styles=Ue,c([h({attribute:"type",reflect:!0,type:String})],K.prototype,"type",2);var Ft=K;var Ie=y.constructTagName("text");Ft.register(Ie);var bs=Ft;})();
|
175
175
|
/*! Bundled license information:
|
176
176
|
|
177
|
-
@lit/reactive-element/
|
177
|
+
@lit/reactive-element/decorators/custom-element.js:
|
178
178
|
(**
|
179
179
|
* @license
|
180
|
-
* Copyright
|
180
|
+
* Copyright 2017 Google LLC
|
181
181
|
* SPDX-License-Identifier: BSD-3-Clause
|
182
182
|
*)
|
183
183
|
|
184
|
-
@lit/reactive-element/
|
184
|
+
@lit/reactive-element/css-tag.js:
|
185
185
|
(**
|
186
186
|
* @license
|
187
|
-
* Copyright
|
187
|
+
* Copyright 2019 Google LLC
|
188
188
|
* SPDX-License-Identifier: BSD-3-Clause
|
189
189
|
*)
|
190
190
|
|
191
|
-
lit-
|
191
|
+
@lit/reactive-element/reactive-element.js:
|
192
192
|
(**
|
193
193
|
* @license
|
194
194
|
* Copyright 2017 Google LLC
|
195
195
|
* SPDX-License-Identifier: BSD-3-Clause
|
196
196
|
*)
|
197
197
|
|
198
|
-
lit-element/
|
198
|
+
@lit/reactive-element/decorators/property.js:
|
199
199
|
(**
|
200
200
|
* @license
|
201
201
|
* Copyright 2017 Google LLC
|
202
202
|
* SPDX-License-Identifier: BSD-3-Clause
|
203
203
|
*)
|
204
204
|
|
205
|
-
lit-
|
205
|
+
@lit/reactive-element/decorators/state.js:
|
206
206
|
(**
|
207
207
|
* @license
|
208
|
-
* Copyright
|
208
|
+
* Copyright 2017 Google LLC
|
209
209
|
* SPDX-License-Identifier: BSD-3-Clause
|
210
210
|
*)
|
211
211
|
|
212
|
-
@lit/
|
212
|
+
@lit/reactive-element/decorators/event-options.js:
|
213
213
|
(**
|
214
214
|
* @license
|
215
|
-
* Copyright
|
215
|
+
* Copyright 2017 Google LLC
|
216
216
|
* SPDX-License-Identifier: BSD-3-Clause
|
217
217
|
*)
|
218
218
|
|
219
|
-
@lit/
|
219
|
+
@lit/reactive-element/decorators/base.js:
|
220
220
|
(**
|
221
221
|
* @license
|
222
|
-
* Copyright
|
222
|
+
* Copyright 2017 Google LLC
|
223
223
|
* SPDX-License-Identifier: BSD-3-Clause
|
224
224
|
*)
|
225
225
|
|
226
|
-
@lit/
|
226
|
+
@lit/reactive-element/decorators/query.js:
|
227
227
|
(**
|
228
228
|
* @license
|
229
|
-
* Copyright
|
229
|
+
* Copyright 2017 Google LLC
|
230
230
|
* SPDX-License-Identifier: BSD-3-Clause
|
231
231
|
*)
|
232
232
|
|
233
|
-
@lit/
|
233
|
+
@lit/reactive-element/decorators/query-all.js:
|
234
234
|
(**
|
235
235
|
* @license
|
236
|
-
* Copyright
|
236
|
+
* Copyright 2017 Google LLC
|
237
237
|
* SPDX-License-Identifier: BSD-3-Clause
|
238
238
|
*)
|
239
239
|
|
240
|
-
@lit/
|
240
|
+
@lit/reactive-element/decorators/query-async.js:
|
241
241
|
(**
|
242
242
|
* @license
|
243
|
-
* Copyright
|
243
|
+
* Copyright 2017 Google LLC
|
244
244
|
* SPDX-License-Identifier: BSD-3-Clause
|
245
245
|
*)
|
246
246
|
|
247
|
-
@lit/
|
247
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
248
248
|
(**
|
249
249
|
* @license
|
250
250
|
* Copyright 2021 Google LLC
|
251
251
|
* SPDX-License-Identifier: BSD-3-Clause
|
252
252
|
*)
|
253
253
|
|
254
|
-
@lit/
|
254
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
255
255
|
(**
|
256
256
|
* @license
|
257
257
|
* Copyright 2017 Google LLC
|
258
258
|
* SPDX-License-Identifier: BSD-3-Clause
|
259
259
|
*)
|
260
260
|
|
261
|
-
|
261
|
+
lit-html/lit-html.js:
|
262
262
|
(**
|
263
263
|
* @license
|
264
|
-
* Copyright
|
264
|
+
* Copyright 2017 Google LLC
|
265
265
|
* SPDX-License-Identifier: BSD-3-Clause
|
266
266
|
*)
|
267
267
|
|
268
|
-
|
268
|
+
lit-element/lit-element.js:
|
269
269
|
(**
|
270
270
|
* @license
|
271
271
|
* Copyright 2017 Google LLC
|
272
272
|
* SPDX-License-Identifier: BSD-3-Clause
|
273
273
|
*)
|
274
274
|
|
275
|
-
|
275
|
+
lit-html/is-server.js:
|
276
276
|
(**
|
277
277
|
* @license
|
278
|
-
* Copyright
|
278
|
+
* Copyright 2022 Google LLC
|
279
279
|
* SPDX-License-Identifier: BSD-3-Clause
|
280
280
|
*)
|
281
281
|
|
282
|
-
@lit/
|
282
|
+
@lit/context/lib/context-request-event.js:
|
283
283
|
(**
|
284
284
|
* @license
|
285
|
-
* Copyright
|
285
|
+
* Copyright 2021 Google LLC
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
287
287
|
*)
|
288
288
|
|
289
|
-
@lit/
|
289
|
+
@lit/context/lib/create-context.js:
|
290
290
|
(**
|
291
291
|
* @license
|
292
|
-
* Copyright
|
292
|
+
* Copyright 2021 Google LLC
|
293
293
|
* SPDX-License-Identifier: BSD-3-Clause
|
294
294
|
*)
|
295
295
|
|
296
|
-
@lit/
|
296
|
+
@lit/context/lib/controllers/context-consumer.js:
|
297
297
|
(**
|
298
298
|
* @license
|
299
|
-
* Copyright
|
299
|
+
* Copyright 2021 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*)
|
302
302
|
|
303
|
-
@lit/
|
303
|
+
@lit/context/lib/value-notifier.js:
|
304
304
|
(**
|
305
305
|
* @license
|
306
|
-
* Copyright
|
306
|
+
* Copyright 2021 Google LLC
|
307
307
|
* SPDX-License-Identifier: BSD-3-Clause
|
308
308
|
*)
|
309
309
|
|
310
|
-
@lit/
|
310
|
+
@lit/context/lib/controllers/context-provider.js:
|
311
311
|
(**
|
312
312
|
* @license
|
313
|
-
* Copyright
|
313
|
+
* Copyright 2021 Google LLC
|
314
314
|
* SPDX-License-Identifier: BSD-3-Clause
|
315
315
|
*)
|
316
316
|
|
317
|
-
@lit/
|
317
|
+
@lit/context/lib/context-root.js:
|
318
318
|
(**
|
319
319
|
* @license
|
320
|
-
* Copyright
|
320
|
+
* Copyright 2021 Google LLC
|
321
321
|
* SPDX-License-Identifier: BSD-3-Clause
|
322
322
|
*)
|
323
323
|
|
324
|
-
@lit/
|
324
|
+
@lit/context/lib/decorators/provide.js:
|
325
325
|
(**
|
326
326
|
* @license
|
327
|
-
* Copyright
|
327
|
+
* Copyright 2017 Google LLC
|
328
328
|
* SPDX-License-Identifier: BSD-3-Clause
|
329
329
|
*)
|
330
330
|
|
331
|
-
@lit/
|
331
|
+
@lit/context/lib/decorators/consume.js:
|
332
332
|
(**
|
333
333
|
* @license
|
334
|
-
* Copyright
|
334
|
+
* Copyright 2022 Google LLC
|
335
335
|
* SPDX-License-Identifier: BSD-3-Clause
|
336
336
|
*)
|
337
337
|
|