@fluid-topics/ft-chip 0.3.8 → 0.3.11
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/build/ft-chip.light.js +54 -54
- package/build/ft-chip.min.js +46 -46
- package/package.json +6 -6
package/build/ft-chip.light.js
CHANGED
|
@@ -110,13 +110,13 @@ var x;y.elementDefinitions={},y.styles=e.css`
|
|
|
110
110
|
opacity: ${p.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,s([o.property({type:Boolean})],y.prototype,"primary",void 0),s([o.property({type:Boolean})],y.prototype,"secondary",void 0),s([o.property({type:Boolean})],y.prototype,"unbounded",void 0),s([o.property({type:Boolean})],y.prototype,"activated",void 0),s([o.property({type:Boolean})],y.prototype,"selected",void 0),s([o.property({type:Boolean})],y.prototype,"disabled",void 0),s([o.state()],y.prototype,"hovered",void 0),s([o.state()],y.prototype,"focused",void 0),s([o.state()],y.prototype,"pressed",void 0),s([o.state()],y.prototype,"rippling",void 0),s([o.state()],y.prototype,"rippleSize",void 0),s([o.state()],y.prototype,"originX",void 0),s([o.state()],y.prototype,"originY",void 0),s([o.query(".ft-ripple")],y.prototype,"ripple",void 0),s([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const u=globalThis.trustedTypes,v=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,b="?"+m,$=`<${b}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,j=/>/g,
|
|
113
|
+
`,s([o.property({type:Boolean})],y.prototype,"primary",void 0),s([o.property({type:Boolean})],y.prototype,"secondary",void 0),s([o.property({type:Boolean})],y.prototype,"unbounded",void 0),s([o.property({type:Boolean})],y.prototype,"activated",void 0),s([o.property({type:Boolean})],y.prototype,"selected",void 0),s([o.property({type:Boolean})],y.prototype,"disabled",void 0),s([o.state()],y.prototype,"hovered",void 0),s([o.state()],y.prototype,"focused",void 0),s([o.state()],y.prototype,"pressed",void 0),s([o.state()],y.prototype,"rippling",void 0),s([o.state()],y.prototype,"rippleSize",void 0),s([o.state()],y.prototype,"originX",void 0),s([o.state()],y.prototype,"originY",void 0),s([o.query(".ft-ripple")],y.prototype,"ripple",void 0),s([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const u=globalThis.trustedTypes,v=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,b="?"+m,$=`<${b}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,j=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,E=/"/g,A=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),T=new WeakMap,M=w.createTreeWalker(w,129,null,!1),F=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=C;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(s.lastIndex=h,p=s.exec(e),null!==p);)h=s.lastIndex,s===C?"!--"===p[1]?s=N:void 0!==p[1]?s=j:void 0!==p[2]?(A.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=I):void 0!==p[3]&&(s=I):s===I?">"===p[0]?(s=null!=n?n:C,a=-1):void 0===p[1]?a=-2:(a=s.lastIndex-p[2].length,l=p[1],s=void 0===p[3]?I:'"'===p[3]?E:O):s===E||s===O?s=I:s===N||s===j?s=C:(s=I,n=void 0);const f=s===I&&t[i+1].startsWith("/>")?" ":"";r+=s===C?e+$:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+m+f):e+m+(-2===a?(o.push(void 0),i):f)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(l):l,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[p,a]=F(t,i);if(this.el=Z.createElement(p,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(m)){const e=a[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(m),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?R:"?"===i[1]?H:"@"===i[1]?L:D})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(A.test(o.tagName)){const t=o.textContent.split(m),i=t.length-1;if(i>0){o.textContent=u?u.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),M.nextNode(),l.push({type:2,index:++n});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===b)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)l.push({type:7,index:n}),t+=m.length-1}n++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var n,r,s,l;if(i===B)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const a=z(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Cl)&&void 0!==s?s:l._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=W(t,p._$AS(t,i.values),p,o)),i}class K{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:w).importNode(e,!0);M.currentNode=n;let r=M.nextNode(),s=0,l=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new P(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new q(r,this,t)),this.v.push(i),p=o[++l]}s!==(null==p?void 0:p.index)&&(r=M.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class P{constructor(t,i,e,o){var n;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=W(this,t,i),z(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==B&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>S(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==U&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new K(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new Z(t)),i}S(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new P(this.j(k()),this.j(k()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class D{constructor(t,i,e,o,n){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=W(this,t,i,0),r=!z(t)||t!==this._$AH&&t!==B,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=W(this,o[e+s],i,s),l===B&&(l=this._$AH[s]),r||(r=!z(l)||l!==this._$AH[s]),l===U?t=U:t!==U&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.P(t)}P(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends D{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===U?void 0:t}}const G=u?u.emptyScript:"";class H extends D{constructor(){super(...arguments),this.type=4}P(t){t&&t!==U?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class L extends D{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:U)===B)return;const o=this._$AH,n=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==U&&(o===U||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const X=window.litHtmlPolyfillSupport;null==X||X(Z,P),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2020 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
118
|
*/
|
|
119
|
-
const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t._$litStatic$},Q=t=>({_$litStatic$:t,r:Y}),V=new Map,tt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],l=[];let p,a=0,h=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(r=e[a],n=J(r));)p+=n+i[++a],h=!0;l.push(r),s.push(p),a++}if(a===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=V.get(t))&&(s.raw=s,V.set(t,i=s)),e=l}return t(i,...e)})(_);var it,et=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(it||(it={}));const ot=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),at=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),
|
|
119
|
+
const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t._$litStatic$},Q=t=>({_$litStatic$:t,r:Y}),V=new Map,tt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],l=[];let p,a=0,h=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(r=e[a],n=J(r));)p+=n+i[++a],h=!0;l.push(r),s.push(p),a++}if(a===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=V.get(t))&&(s.raw=s,V.set(t,i=s)),e=l}return t(i,...e)})(_);var it,et=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(it||(it={}));const ot=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),at=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",rt.lineHeight,"1.5"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Tt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",rt.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit")},Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",rt.lineHeight,"1.33"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"1.6"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",rt.lineHeight,"1.6"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),ei=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),oi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),ni=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),ri=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",rt.lineHeight,"1.15"),si=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase"),li=e.css`
|
|
120
120
|
.ft-typography--title {
|
|
121
121
|
font-family: ${st};
|
|
122
122
|
font-size: ${lt};
|
|
@@ -150,26 +150,26 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
150
150
|
font-weight: ${Ct};
|
|
151
151
|
letter-spacing: ${Nt};
|
|
152
152
|
line-height: ${jt};
|
|
153
|
-
text-transform: ${
|
|
153
|
+
text-transform: ${It};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
`,fi=e.css`
|
|
157
157
|
.ft-typography--body1 {
|
|
158
|
-
font-family: ${
|
|
158
|
+
font-family: ${Ot};
|
|
159
159
|
font-size: ${Et};
|
|
160
160
|
font-weight: ${At};
|
|
161
161
|
letter-spacing: ${_t};
|
|
162
162
|
line-height: ${Bt};
|
|
163
|
-
text-transform: ${
|
|
163
|
+
text-transform: ${Ut};
|
|
164
164
|
}
|
|
165
165
|
`,ci=e.css`
|
|
166
166
|
.ft-typography--body2 {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
167
|
+
font-family: ${Tt.fontFamily};
|
|
168
|
+
font-size: ${Tt.fontSize};
|
|
169
|
+
font-weight: ${Tt.fontWeight};
|
|
170
|
+
letter-spacing: ${Tt.letterSpacing};
|
|
171
|
+
line-height: ${Tt.lineHeight};
|
|
172
|
+
text-transform: ${Tt.textTransform};
|
|
173
173
|
}
|
|
174
174
|
`,di=e.css`
|
|
175
175
|
.ft-typography--caption {
|
|
@@ -218,49 +218,49 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`],et([o.property()],ui.prototype,"element",void 0),et([o.property()],ui.prototype,"variant",void 0),i.customElement("ft-typography")(ui),function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(vi||(vi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(mi||(mi={})),new Map([...["abw"].map((t=>[t,mi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,mi.AUDIO])),...["avi"].map((t=>[t,mi.AVI])),...["chm","xhs"].map((t=>[t,mi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,mi.CODE])),...["csv"].map((t=>[t,mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,mi.DITA])),...["epub"].map((t=>[t,mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,mi.EXCEL])),...["flac"].map((t=>[t,mi.FLAC])),...["gif"].map((t=>[t,mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,mi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,mi.JPEG])),...["json"].map((t=>[t,mi.JSON])),...["m4a","m4p"].map((t=>[t,mi.M4A])),...["mov","qt"].map((t=>[t,mi.MOV])),...["mp3"].map((t=>[t,mi.MP3])),...["mp4","m4v"].map((t=>[t,mi.MP4])),...["ogg","oga"].map((t=>[t,mi.OGG])),...["pdf","ps"].map((t=>[t,mi.PDF])),...["png"].map((t=>[t,mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,mi.POWERPOINT])),...["rar"].map((t=>[t,mi.RAR])),...["stp"].map((t=>[t,mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,mi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,mi.VIDEO])),...["wav"].map((t=>[t,mi.WAV])),...["wma"].map((t=>[t,mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,mi.YAML])),...["zip"].map((t=>[t,mi.ZIP]))]);var bi,$i=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bi||(bi={}));const wi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")};class ki extends i.FtLitElement{constructor(){super(...arguments),this.variant=bi.fluid_topics}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
`],et([o.property()],ui.prototype,"element",void 0),et([o.property()],ui.prototype,"variant",void 0),i.customElement("ft-typography")(ui),function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(vi||(vi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(mi||(mi={})),new Map([...["abw"].map((t=>[t,mi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,mi.AUDIO])),...["avi"].map((t=>[t,mi.AVI])),...["chm","xhs"].map((t=>[t,mi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,mi.CODE])),...["csv"].map((t=>[t,mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,mi.DITA])),...["epub"].map((t=>[t,mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,mi.EXCEL])),...["flac"].map((t=>[t,mi.FLAC])),...["gif"].map((t=>[t,mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,mi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,mi.JPEG])),...["json"].map((t=>[t,mi.JSON])),...["m4a","m4p"].map((t=>[t,mi.M4A])),...["mov","qt"].map((t=>[t,mi.MOV])),...["mp3"].map((t=>[t,mi.MP3])),...["mp4","m4v"].map((t=>[t,mi.MP4])),...["ogg","oga"].map((t=>[t,mi.OGG])),...["pdf","ps"].map((t=>[t,mi.PDF])),...["png"].map((t=>[t,mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,mi.POWERPOINT])),...["rar"].map((t=>[t,mi.RAR])),...["stp"].map((t=>[t,mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,mi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,mi.VIDEO])),...["wav"].map((t=>[t,mi.WAV])),...["wma"].map((t=>[t,mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,mi.YAML])),...["zip"].map((t=>[t,mi.ZIP]))]);var bi,$i=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bi||(bi={}));const wi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")};class ki extends i.FtLitElement{constructor(){super(...arguments),this.variant=bi.fluid_topics,this.resolvedIcon=e.nothing}render(){return e.html`
|
|
222
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
223
|
+
${r.unsafeHTML(this.resolvedIcon)}
|
|
224
|
+
<slot ?hidden=${"material"!==this.variant}></slot>
|
|
225
|
+
</i>
|
|
226
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case bi.file_format:this.resolvedIcon=null!==(t=mi[o.toUpperCase()])&&void 0!==t?t:o;break;case bi.fluid_topics:this.resolvedIcon=null!==(i=vi[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ki.elementDefinitions={},ki.styles=e.css`
|
|
227
|
+
:host {
|
|
228
|
+
display: inline-block;
|
|
229
|
+
}
|
|
225
230
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
:host, i.ft-icon {
|
|
232
|
+
width: ${wi.size};
|
|
233
|
+
height: ${wi.size};
|
|
234
|
+
text-align: center;
|
|
235
|
+
}
|
|
231
236
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
237
|
+
i.ft-icon {
|
|
238
|
+
font-size: ${wi.size};
|
|
239
|
+
line-height: 1;
|
|
240
|
+
font-weight: normal;
|
|
241
|
+
text-transform: none;
|
|
242
|
+
font-style: normal;
|
|
243
|
+
font-variant: normal;
|
|
244
|
+
speak: none;
|
|
245
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
246
|
+
text-rendering: auto;
|
|
247
|
+
-webkit-font-smoothing: antialiased;
|
|
248
|
+
-moz-osx-font-smoothing: grayscale;
|
|
249
|
+
vertical-align: ${wi.verticalAlign};
|
|
250
|
+
}
|
|
246
251
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
252
|
+
.ft-icon--fluid-topics {
|
|
253
|
+
font-family: ${wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
254
|
+
}
|
|
250
255
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
256
|
+
.ft-icon--file-format {
|
|
257
|
+
font-family: ${wi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
258
|
+
}
|
|
254
259
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
260
|
-
${r.unsafeHTML(this.getIcon())}
|
|
261
|
-
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
262
|
-
</i>
|
|
263
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===bi.file_format?null!==(t=mi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===bi.fluid_topics?null!==(i=vi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ki.elementDefinitions={},$i([o.property()],ki.prototype,"variant",void 0),$i([o.query("slot")],ki.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ki);var zi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const Si=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Ci={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Si,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Ut.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Si),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ni=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),ji={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ni,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ni)},Oi={horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class Ii extends CustomEvent{constructor(){super("icon-click")}}class Ei extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[i.noTextSelect,e.css`
|
|
260
|
+
.ft-icon--material {
|
|
261
|
+
font-family: ${wi.materialFontFamily}, "Material Icons", sans-serif;
|
|
262
|
+
}
|
|
263
|
+
`,$i([o.property()],ki.prototype,"variant",void 0),$i([o.property()],ki.prototype,"value",void 0),$i([o.state()],ki.prototype,"resolvedIcon",void 0),$i([o.query("slot")],ki.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ki);var zi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const Si=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Ci={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Si,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Tt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Si),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ni=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),ji={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ni,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ni)},Ii={horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class Oi extends CustomEvent{constructor(){super("icon-click")}}class Ei extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[i.noTextSelect,e.css`
|
|
264
264
|
:host {
|
|
265
265
|
display: inline-block;
|
|
266
266
|
max-width: 100%;
|
|
@@ -300,8 +300,8 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
300
300
|
|
|
301
301
|
.ft-chip--dense {
|
|
302
302
|
--ft-chip-internal-icon-padding: 3px;
|
|
303
|
-
--ft-chip-internal-vertical-padding: ${
|
|
304
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
303
|
+
--ft-chip-internal-vertical-padding: ${Ii.verticalPadding};
|
|
304
|
+
--ft-chip-internal-horizontal-padding: ${Ii.horizontalPadding};
|
|
305
305
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
306
306
|
}
|
|
307
307
|
|
|
@@ -354,8 +354,8 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
354
354
|
vertical-align: bottom;
|
|
355
355
|
display: block;
|
|
356
356
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
357
|
-
${i.setVariable(
|
|
358
|
-
${i.setVariable(
|
|
357
|
+
${i.setVariable(Tt.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
358
|
+
${i.setVariable(Tt.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -409,4 +409,4 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
|
|
|
409
409
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
410
410
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
411
411
|
</div>
|
|
412
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
412
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Oi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Oi))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Ei.elementDefinitions={"ft-ripple":y,"ft-typography":ui,"ft-icon":ki},zi([o.property({type:Boolean})],Ei.prototype,"highlighted",void 0),zi([o.property({type:Boolean})],Ei.prototype,"removable",void 0),zi([o.property({type:Boolean})],Ei.prototype,"disabled",void 0),zi([o.property({type:Boolean})],Ei.prototype,"clickable",void 0),zi([o.property({type:Boolean})],Ei.prototype,"iconClickable",void 0),zi([o.property({type:Boolean})],Ei.prototype,"dense",void 0),zi([o.property({type:Boolean})],Ei.prototype,"multiLine",void 0),zi([o.property({type:String})],Ei.prototype,"label",void 0),zi([o.property({type:String})],Ei.prototype,"icon",void 0),zi([o.property({type:Boolean})],Ei.prototype,"trailingIcon",void 0),zi([o.query("ft-typography slot")],Ei.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Ei),t.FtChip=Ei,t.FtChipCssVariables=Ci,t.FtChipDenseCssVariables=Ii,t.FtChipHighlightedCssVariables=ji,t.IconClickEvent=Oi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
package/build/ft-chip.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let p=e.call(o,t);p||(p=h(t),i.call(o,t,p)),this===window.customElements&&(s.set(n,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!c(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),c(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},h=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let p=e.call(o,t);p||(p=h(t),i.call(o,t,p)),this===window.customElements&&(s.set(n,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!c(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),c(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},h=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(ie){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -51,7 +51,7 @@ const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var g;const
|
|
54
|
+
*/;var g;const v=window.trustedTypes,x=v?v.emptyScript:"",m=window.reactiveElementPolyfillSupport,b={toAttribute(t,i){switch(i){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},w=(t,i)=>i!==t&&(i==i||t==t),$={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=$){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(y(t))}else void 0!==t&&i.push(y(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=$){var o,n;const r=this.constructor._$Ep(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:b.toAttribute)(i,e.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,i){var e,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(e=null==s?void 0:s.fromAttribute)&&void 0!==e?e:"function"==typeof s?s:null)&&void 0!==o?o:b.fromAttribute;this._$El=r,this[r]=a(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
@@ -82,7 +82,7 @@ var nt,rt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
82
82
|
-ms-user-select: none;
|
|
83
83
|
user-select: none;
|
|
84
84
|
}
|
|
85
|
-
`;var ut,yt,gt;const
|
|
85
|
+
`;var ut,yt,gt;const vt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(gt=null===(yt=null===(ut=window.safari)||void 0===ut?void 0:ut.pushNotification)||void 0===yt?void 0:yt.toString())&&void 0!==gt?gt:""),xt=1,mt=2,bt=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
86
86
|
/**
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2017 Google LLC
|
|
@@ -92,7 +92,7 @@ var nt,rt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const $t=bt(class extends wt{constructor(t){var i;if(super(t),t.type!==
|
|
95
|
+
*/const $t=bt(class extends wt{constructor(t){var i;if(super(t),t.type!==xt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return I}});var Ot=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const St=lt.extend("--ft-ripple-color",pt.colorContent),kt={color:St,backgroundColor:lt.extend("--ft-ripple-background-color",St),opacityContentOnSurfacePressed:lt.external(pt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:lt.external(pt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:lt.external(pt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:lt.external(pt.opacityContentOnSurfaceSelected,"Design system")},Nt=lt.extend("--ft-ripple-color",pt.colorPrimary),Ct=Nt,Et=lt.extend("--ft-ripple-background-color",Nt),Rt=lt.extend("--ft-ripple-color",pt.colorSecondary),Mt=Rt,zt=lt.extend("--ft-ripple-background-color",Rt);class Ut extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return D`
|
|
96
96
|
<style>
|
|
97
97
|
.ft-ripple .ft-ripple--effect,
|
|
98
98
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -204,7 +204,7 @@ var nt,rt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
204
204
|
* Copyright 2020 Google LLC
|
|
205
205
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
206
206
|
*/
|
|
207
|
-
const Ft=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Ft}),Bt=new Map,Lt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(r=e[c],n=jt(r));)l+=n+i[++c],p=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(i[o]),p){const t=s.join("$$lit$$");void 0===(i=Bt.get(t))&&(s.raw=s,Bt.set(t,i=s)),e=a}return t(i,...e)})(D);var Pt,Tt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Pt||(Pt={}));const _t=lt.extend("--ft-typography-font-family",pt.titleFont),Dt=lt.extend("--ft-typography-font-family",pt.contentFont),It={fontFamily:Dt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=lt.extend("--ft-typography-title-font-family",_t),Kt=lt.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=lt.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=lt.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=lt.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=lt.extend("--ft-typography-title-dense-font-family",_t),Xt=lt.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=lt.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=lt.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=lt.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),ti=lt.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ii=lt.extend("--ft-typography-subtitle1-font-family",Dt),ei=lt.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oi=lt.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),ni=lt.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ri=lt.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),si=lt.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),ai=lt.extend("--ft-typography-subtitle2-font-family",Dt),li=lt.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),ci=lt.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),pi=lt.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),hi=lt.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fi=lt.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),di=lt.extend("--ft-typography-body1-font-family",Dt),ui=lt.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),yi=lt.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),gi=lt.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),
|
|
207
|
+
const Ft=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Ft}),Bt=new Map,Lt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(r=e[c],n=jt(r));)l+=n+i[++c],p=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(i[o]),p){const t=s.join("$$lit$$");void 0===(i=Bt.get(t))&&(s.raw=s,Bt.set(t,i=s)),e=a}return t(i,...e)})(D);var Pt,Tt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Pt||(Pt={}));const _t=lt.extend("--ft-typography-font-family",pt.titleFont),Dt=lt.extend("--ft-typography-font-family",pt.contentFont),It={fontFamily:Dt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=lt.extend("--ft-typography-title-font-family",_t),Kt=lt.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=lt.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=lt.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=lt.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=lt.extend("--ft-typography-title-dense-font-family",_t),Xt=lt.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=lt.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=lt.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=lt.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),ti=lt.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ii=lt.extend("--ft-typography-subtitle1-font-family",Dt),ei=lt.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oi=lt.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),ni=lt.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ri=lt.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),si=lt.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),ai=lt.extend("--ft-typography-subtitle2-font-family",Dt),li=lt.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),ci=lt.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),pi=lt.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),hi=lt.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fi=lt.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),di=lt.extend("--ft-typography-body1-font-family",Dt),ui=lt.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),yi=lt.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),gi=lt.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),vi=lt.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),xi=lt.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit"),mi={fontFamily:lt.extend("--ft-typography-body2-font-family",Dt),fontSize:lt.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),fontWeight:lt.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),lineHeight:lt.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),textTransform:lt.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit")},bi=lt.extend("--ft-typography-caption-font-family",Dt),wi=lt.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),$i=lt.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),Oi=lt.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),Si=lt.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),ki=lt.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit"),Ni=lt.extend("--ft-typography-breadcrumb-font-family",Dt),Ci=lt.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),Ei=lt.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Ri=lt.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),Mi=lt.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),zi=lt.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Ui=lt.extend("--ft-typography-overline-font-family",Dt),Fi=lt.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),ji=lt.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Ai=lt.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Bi=lt.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),Li=lt.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),Pi=lt.extend("--ft-typography-button-font-family",Dt),Ti=lt.extend("--ft-typography-button-font-size",It.fontSize,"14px"),_i=lt.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),Di=lt.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),Ii=lt.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Wi=lt.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Ki=d`
|
|
208
208
|
.ft-typography--title {
|
|
209
209
|
font-family: ${Wt};
|
|
210
210
|
font-size: ${Kt};
|
|
@@ -247,8 +247,8 @@ const Ft=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void
|
|
|
247
247
|
font-size: ${ui};
|
|
248
248
|
font-weight: ${yi};
|
|
249
249
|
letter-spacing: ${gi};
|
|
250
|
-
line-height: ${
|
|
251
|
-
text-transform: ${
|
|
250
|
+
line-height: ${vi};
|
|
251
|
+
text-transform: ${xi};
|
|
252
252
|
}
|
|
253
253
|
`,qi=d`
|
|
254
254
|
.ft-typography--body2 {
|
|
@@ -312,49 +312,49 @@ const Ft=Symbol.for(""),jt=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void
|
|
|
312
312
|
* Copyright 2017 Google LLC
|
|
313
313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
314
314
|
*/
|
|
315
|
-
class ie extends wt{constructor(t){if(super(t),this.it=W,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ie.directiveName="unsafeHTML",ie.resultType=1;const ee=bt(ie);var oe,ne;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(oe||(oe={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ne||(ne={})),new Map([...["abw"].map((t=>[t,ne.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ne.AUDIO])),...["avi"].map((t=>[t,ne.AVI])),...["chm","xhs"].map((t=>[t,ne.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ne.CODE])),...["csv"].map((t=>[t,ne.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ne.DITA])),...["epub"].map((t=>[t,ne.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ne.EXCEL])),...["flac"].map((t=>[t,ne.FLAC])),...["gif"].map((t=>[t,ne.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ne.GZIP])),...["html","htm","xhtml"].map((t=>[t,ne.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ne.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ne.JPEG])),...["json"].map((t=>[t,ne.JSON])),...["m4a","m4p"].map((t=>[t,ne.M4A])),...["mov","qt"].map((t=>[t,ne.MOV])),...["mp3"].map((t=>[t,ne.MP3])),...["mp4","m4v"].map((t=>[t,ne.MP4])),...["ogg","oga"].map((t=>[t,ne.OGG])),...["pdf","ps"].map((t=>[t,ne.PDF])),...["png"].map((t=>[t,ne.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ne.POWERPOINT])),...["rar"].map((t=>[t,ne.RAR])),...["stp"].map((t=>[t,ne.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ne.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ne.VIDEO])),...["wav"].map((t=>[t,ne.WAV])),...["wma"].map((t=>[t,ne.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ne.WORD])),...["xml","xsl","rdf"].map((t=>[t,ne.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ne.YAML])),...["zip"].map((t=>[t,ne.ZIP]))]);var re,se=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(re||(re={}));const ae={size:lt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:lt.create("--ft-icon-vertical-align","UNKNOWN","unset")};class le extends ft{constructor(){super(...arguments),this.variant=re.fluid_topics}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
315
|
+
class ie extends wt{constructor(t){if(super(t),this.it=W,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ie.directiveName="unsafeHTML",ie.resultType=1;const ee=bt(ie);var oe,ne;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(oe||(oe={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ne||(ne={})),new Map([...["abw"].map((t=>[t,ne.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ne.AUDIO])),...["avi"].map((t=>[t,ne.AVI])),...["chm","xhs"].map((t=>[t,ne.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ne.CODE])),...["csv"].map((t=>[t,ne.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ne.DITA])),...["epub"].map((t=>[t,ne.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ne.EXCEL])),...["flac"].map((t=>[t,ne.FLAC])),...["gif"].map((t=>[t,ne.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ne.GZIP])),...["html","htm","xhtml"].map((t=>[t,ne.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ne.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ne.JPEG])),...["json"].map((t=>[t,ne.JSON])),...["m4a","m4p"].map((t=>[t,ne.M4A])),...["mov","qt"].map((t=>[t,ne.MOV])),...["mp3"].map((t=>[t,ne.MP3])),...["mp4","m4v"].map((t=>[t,ne.MP4])),...["ogg","oga"].map((t=>[t,ne.OGG])),...["pdf","ps"].map((t=>[t,ne.PDF])),...["png"].map((t=>[t,ne.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ne.POWERPOINT])),...["rar"].map((t=>[t,ne.RAR])),...["stp"].map((t=>[t,ne.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ne.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ne.VIDEO])),...["wav"].map((t=>[t,ne.WAV])),...["wma"].map((t=>[t,ne.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ne.WORD])),...["xml","xsl","rdf"].map((t=>[t,ne.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ne.YAML])),...["zip"].map((t=>[t,ne.ZIP]))]);var re,se=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(re||(re={}));const ae={size:lt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:lt.create("--ft-icon-vertical-align","UNKNOWN","unset")};class le extends ft{constructor(){super(...arguments),this.variant=re.fluid_topics,this.resolvedIcon=W}render(){return D`
|
|
316
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
317
|
+
${ee(this.resolvedIcon)}
|
|
318
|
+
<slot ?hidden=${"material"!==this.variant}></slot>
|
|
319
|
+
</i>
|
|
320
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case re.file_format:this.resolvedIcon=null!==(t=ne[e.toUpperCase()])&&void 0!==t?t:e;break;case re.fluid_topics:this.resolvedIcon=null!==(i=oe[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}le.elementDefinitions={},le.styles=d`
|
|
321
|
+
:host {
|
|
322
|
+
display: inline-block;
|
|
323
|
+
}
|
|
319
324
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
+
:host, i.ft-icon {
|
|
326
|
+
width: ${ae.size};
|
|
327
|
+
height: ${ae.size};
|
|
328
|
+
text-align: center;
|
|
329
|
+
}
|
|
325
330
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
331
|
+
i.ft-icon {
|
|
332
|
+
font-size: ${ae.size};
|
|
333
|
+
line-height: 1;
|
|
334
|
+
font-weight: normal;
|
|
335
|
+
text-transform: none;
|
|
336
|
+
font-style: normal;
|
|
337
|
+
font-variant: normal;
|
|
338
|
+
speak: none;
|
|
339
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
340
|
+
text-rendering: auto;
|
|
341
|
+
-webkit-font-smoothing: antialiased;
|
|
342
|
+
-moz-osx-font-smoothing: grayscale;
|
|
343
|
+
vertical-align: ${ae.verticalAlign};
|
|
344
|
+
}
|
|
340
345
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
346
|
+
.ft-icon--fluid-topics {
|
|
347
|
+
font-family: ${ae.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
348
|
+
}
|
|
344
349
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
350
|
+
.ft-icon--file-format {
|
|
351
|
+
font-family: ${ae.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
352
|
+
}
|
|
348
353
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
354
|
-
${ee(this.getIcon())}
|
|
355
|
-
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
356
|
-
</i>
|
|
357
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let e=this.textContent;return this.variant===re.file_format?null!==(t=ne[e.toUpperCase()])&&void 0!==t?t:e:this.variant===re.fluid_topics?null!==(i=oe[e.toUpperCase()])&&void 0!==i?i:e:W}}le.elementDefinitions={},se([o()],le.prototype,"variant",void 0),se([r("slot")],le.prototype,"slottedContent",void 0),a("ft-icon")(le);var ce=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const pe=lt.extend("--ft-chip-color",pt.colorOnSurface),he={backgroundColor:lt.extend("--ft-chip-background-color",pt.colorSurface),color:pe,fontSize:lt.extend("--ft-chip-font-size",mi.fontSize),iconSize:lt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:lt.extend("--ft-chip-ripple-color",pe),horizontalPadding:lt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:lt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:lt.external(pt.colorOutline,"Design system"),opacityDisabled:lt.external(pt.colorOpacityDisabled,"Design system")},fe=lt.extend("--ft-chip-highlighted-color",lt.extend("--ft-chip-color",pt.colorOnPrimary)),de={backgroundColor:lt.extend("--ft-chip-highlighted-background-color",lt.extend("--ft-chip-background-color",pt.colorPrimary)),color:fe,rippleColor:lt.extend("--ft-chip-highlighted-ripple-color",fe)},ue={horizontalPadding:lt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:lt.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class ye extends CustomEvent{constructor(){super("icon-click")}}class ge extends ft{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[dt,d`
|
|
354
|
+
.ft-icon--material {
|
|
355
|
+
font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
|
|
356
|
+
}
|
|
357
|
+
`,se([o()],le.prototype,"variant",void 0),se([o()],le.prototype,"value",void 0),se([n()],le.prototype,"resolvedIcon",void 0),se([r("slot")],le.prototype,"slottedContent",void 0),a("ft-icon")(le);var ce=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const pe=lt.extend("--ft-chip-color",pt.colorOnSurface),he={backgroundColor:lt.extend("--ft-chip-background-color",pt.colorSurface),color:pe,fontSize:lt.extend("--ft-chip-font-size",mi.fontSize),iconSize:lt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:lt.extend("--ft-chip-ripple-color",pe),horizontalPadding:lt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:lt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:lt.external(pt.colorOutline,"Design system"),opacityDisabled:lt.external(pt.colorOpacityDisabled,"Design system")},fe=lt.extend("--ft-chip-highlighted-color",lt.extend("--ft-chip-color",pt.colorOnPrimary)),de={backgroundColor:lt.extend("--ft-chip-highlighted-background-color",lt.extend("--ft-chip-background-color",pt.colorPrimary)),color:fe,rippleColor:lt.extend("--ft-chip-highlighted-ripple-color",fe)},ue={horizontalPadding:lt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:lt.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class ye extends CustomEvent{constructor(){super("icon-click")}}class ge extends ft{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[dt,d`
|
|
358
358
|
:host {
|
|
359
359
|
display: inline-block;
|
|
360
360
|
max-width: 100%;
|
|
@@ -484,7 +484,7 @@ class ie extends wt{constructor(t){if(super(t),this.it=W,t.type!==mt)throw Error
|
|
|
484
484
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
485
485
|
order: -1;
|
|
486
486
|
}
|
|
487
|
-
`]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":
|
|
487
|
+
`]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":vt};return D`
|
|
488
488
|
<div class="${$t(t)}"
|
|
489
489
|
aria-label="${this.getLabel()}"
|
|
490
490
|
tabindex="${this.interactionsOnChip?0:-1}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-chip",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "A generic Fluid Topics chip",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
24
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.11",
|
|
23
|
+
"@fluid-topics/ft-ripple": "0.3.11",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.11",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.11",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "35c790329a8e7f9902aad2ea8d41386e5c0b36c9"
|
|
29
29
|
}
|