@fluid-topics/ft-accordion 0.2.15 → 0.2.18
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-accordion.light.js +33 -31
- package/build/ft-accordion.min.js +113 -110
- package/package.json +6 -6
- package/build/ft-accordion.inline-styles.js +0 -435
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
!function(t,e,i,o,s,r){var n=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1
|
+
!function(t,e,i,o,s,r){var n=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class l extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
|
|
2
2
|
<div class="ft-accordion">
|
|
3
3
|
<slot @activated=${this.onChange}></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}
|
|
5
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}l.elementDefinitions={},l.styles=i.css`
|
|
6
6
|
.ft-accordion {
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
9
|
-
`,n([o.property({type:Boolean})],
|
|
9
|
+
`,n([o.property({type:Boolean})],l.prototype,"multi",void 0),n([o.query("slot")],l.prototype,"content",void 0);var p=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const a=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),f=a,h=e.FtCssVariable.extend("--ft-ripple-background-color",a),c=e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),d=e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),g=e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),y=e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),x=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=x,v=e.FtCssVariable.extend("--ft-ripple-background-color",x),m=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),b=m,$=e.FtCssVariable.extend("--ft-ripple-background-color",m);class w extends e.FtLitElement{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 e.Debouncer(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 e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{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!=s?s-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 i.html`
|
|
10
10
|
<style>
|
|
11
11
|
.ft-ripple .ft-ripple--effect,
|
|
12
12
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -107,7 +107,7 @@ var k;w.elementDefinitions={},w.styles=i.css`
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
110
|
-
opacity: ${
|
|
110
|
+
opacity: ${y};
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
@@ -118,18 +118,18 @@ var k;w.elementDefinitions={},w.styles=i.css`
|
|
|
118
118
|
opacity: ${c};
|
|
119
119
|
transform: translate(-50%, -50%) scale(1);
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`,p([o.property({type:Boolean})],w.prototype,"primary",void 0),p([o.property({type:Boolean})],w.prototype,"secondary",void 0),p([o.property({type:Boolean})],w.prototype,"unbounded",void 0),p([o.property({type:Boolean})],w.prototype,"activated",void 0),p([o.property({type:Boolean})],w.prototype,"selected",void 0),p([o.property({type:Boolean})],w.prototype,"disabled",void 0),p([o.state()],w.prototype,"hovered",void 0),p([o.state()],w.prototype,"focused",void 0),p([o.state()],w.prototype,"pressed",void 0),p([o.state()],w.prototype,"rippling",void 0),p([o.state()],w.prototype,"rippleSize",void 0),p([o.state()],w.prototype,"originX",void 0),p([o.state()],w.prototype,"originY",void 0),p([o.query(".ft-ripple")],w.prototype,"ripple",void 0),p([o.query(".ft-ripple--effect")],w.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(w);const z=globalThis.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,S="?"+N,O=`<${S}>`,_=document,A=(t="")=>_.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,T=/>/g,U=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,B=/'/g,W=/"/g,Z=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),K=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),G=new WeakMap,q=_.createTreeWalker(_,129,null,!1),F=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=I;for(let e=0;e<i;e++){const i=t[e];let l,p,a=-1,f=0;for(;f<i.length&&(n.lastIndex=f,p=n.exec(i),null!==p);)f=n.lastIndex,n===I?"!--"===p[1]?n=M:void 0!==p[1]?n=T:void 0!==p[2]?(Z.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=U):void 0!==p[3]&&(n=U):n===U?">"===p[0]?(n=null!=s?s:I,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?U:'"'===p[3]?W:B):n===W||n===B?n=U:n===M||n===T?n=I:(n=U,s=void 0);const h=n===U&&t[e+1].startsWith("/>")?" ":"";r+=n===I?i+O:a>=0?(o.push(l),i.slice(0,a)+"$lit$"+i.slice(a)+N+h):i+N+(-2===a?(o.push(void 0),e):h)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[p,a]=F(t,e);if(this.el=H.createElement(p,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?P:"?"===e[1]?V:"@"===e[1]?tt:J})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),q.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===S)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)l.push({type:7,index:s}),t+=N.length-1}s++}}static createElement(t,e){const i=_.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,o){var s,r,n,l;if(e===K)return e;let p=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const a=E(e)?void 0:e._$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,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=p:i._$Cu=p),void 0!==p&&(e=L(t,p._$AS(t,e.values),p,o)),e}class X{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(i,!0);q.currentNode=s;let r=q.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new Y(r,r.nextSibling,this,t):1===p.type?e=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(e=new et(r,this,t)),this.v.push(e),p=o[++l]}n!==(null==p?void 0:p.index)&&(r=q.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Y{constructor(t,e,i,o){var s;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),E(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==K&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return C(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==R&&E(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new X(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new H(t)),e}S(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new Y(this.M(A()),this.M(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,i,o,s){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=L(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==K,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=L(this,o[i+n],e,n),l===K&&(l=this._$AH[n]),r||(r=!E(l)||l!==this._$AH[n]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.C(t)}C(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class P extends J{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===R?void 0:t}}const Q=z?z.emptyScript:"";class V extends J{constructor(){super(...arguments),this.type=4}C(t){t&&t!==R?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends J{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=L(this,t,e,0))&&void 0!==i?i:R)===K)return;const o=this._$AH,s=t===R&&o!==R||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==R&&(o===R||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const it=window.litHtmlPolyfillSupport;null==it||it(H,Y),(null!==(k=globalThis.litHtmlVersions)&&void 0!==k?k:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
122
122
|
/**
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright 2020 Google LLC
|
|
125
125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
126
|
*/
|
|
127
|
-
const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===ot)return null===(i=t)||void 0===i?void 0:i._$litStatic$},rt=t=>({_$litStatic$:t,r:ot}),nt=new Map,
|
|
127
|
+
const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===ot)return null===(i=t)||void 0===i?void 0:i._$litStatic$},rt=t=>({_$litStatic$:t,r:ot}),nt=new Map,lt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(r=i[a],s=st(r));)p+=s+e[++a],f=!0;l.push(r),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=nt.get(t))&&(n.raw=n,nt.set(t,e=n)),i=l}return t(e,...i)})(D);var pt,at=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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 ft=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),ht=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ct={fontFamily:ht,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},dt=e.FtCssVariable.extend("--ft-typography-title-font-family",ft),gt=e.FtCssVariable.extend("--ft-typography-title-font-size",ct.fontSize,"20px"),yt=e.FtCssVariable.extend("--ft-typography-title-font-weight",ct.fontWeight,"normal"),xt=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",ct.letterSpacing,"0.15px"),ut=e.FtCssVariable.extend("--ft-typography-title-line-height",ct.lineHeight,"1.2"),vt=e.FtCssVariable.extend("--ft-typography-title-text-transform",ct.textTransform,"inherit"),mt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",ft),bt=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",ct.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",ct.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",ct.letterSpacing,"0.105px"),kt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",ct.lineHeight,"1.7"),zt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",ct.textTransform,"inherit"),jt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",ht),Nt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",ct.fontSize,"16px"),St=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",ct.fontWeight,"600"),Ot=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",ct.letterSpacing,"0.144px"),_t=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",ct.lineHeight,"1.5"),At=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",ct.textTransform,"inherit"),Et=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",ht),Ct=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",ct.fontSize,"14px"),It=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",ct.fontWeight,"normal"),Mt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",ct.letterSpacing,"0.098px"),Tt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",ct.lineHeight,"1.7"),Ut=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",ct.textTransform,"inherit"),Bt=e.FtCssVariable.extend("--ft-typography-body1-font-family",ht),Wt=e.FtCssVariable.extend("--ft-typography-body1-font-size",ct.fontSize,"16px"),Zt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",ct.fontWeight,"normal"),Dt=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",ct.letterSpacing,"0.496px"),Kt=e.FtCssVariable.extend("--ft-typography-body1-line-height",ct.lineHeight,"1.5"),Rt=e.FtCssVariable.extend("--ft-typography-body1-text-transform",ct.textTransform,"inherit"),Gt=e.FtCssVariable.extend("--ft-typography-body2-font-family",ht),qt=e.FtCssVariable.extend("--ft-typography-body2-font-size",ct.fontSize,"14px"),Ft=e.FtCssVariable.extend("--ft-typography-body2-font-weight",ct.fontWeight,"normal"),Ht=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",ct.letterSpacing,"0.252px"),Lt=e.FtCssVariable.extend("--ft-typography-body2-line-height",ct.lineHeight,"1.4"),Xt=e.FtCssVariable.extend("--ft-typography-body2-text-transform",ct.textTransform,"inherit"),Yt=e.FtCssVariable.extend("--ft-typography-caption-font-family",ht),Jt=e.FtCssVariable.extend("--ft-typography-caption-font-size",ct.fontSize,"12px"),Pt=e.FtCssVariable.extend("--ft-typography-caption-font-weight",ct.fontWeight,"normal"),Qt=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",ct.letterSpacing,"0.396px"),Vt=e.FtCssVariable.extend("--ft-typography-caption-line-height",ct.lineHeight,"1.33"),te=e.FtCssVariable.extend("--ft-typography-caption-text-transform",ct.textTransform,"inherit"),ee=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",ht),ie=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",ct.fontSize,"10px"),oe=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",ct.fontWeight,"normal"),se=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",ct.letterSpacing,"0.33px"),re=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",ct.lineHeight,"1.6"),ne=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",ct.textTransform,"inherit"),le=e.FtCssVariable.extend("--ft-typography-overline-font-family",ht),pe=e.FtCssVariable.extend("--ft-typography-overline-font-size",ct.fontSize,"10px"),ae=e.FtCssVariable.extend("--ft-typography-overline-font-weight",ct.fontWeight,"normal"),fe=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",ct.letterSpacing,"1.5px"),he=e.FtCssVariable.extend("--ft-typography-overline-line-height",ct.lineHeight,"1.6"),ce=e.FtCssVariable.extend("--ft-typography-overline-text-transform",ct.textTransform,"uppercase"),de=e.FtCssVariable.extend("--ft-typography-button-font-family",ht),ge=e.FtCssVariable.extend("--ft-typography-button-font-size",ct.fontSize,"14px"),ye=e.FtCssVariable.extend("--ft-typography-button-font-weight",ct.fontWeight,"600"),xe=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",ct.letterSpacing,"1.246px"),ue=e.FtCssVariable.extend("--ft-typography-button-line-height",ct.lineHeight,"1.15"),ve=e.FtCssVariable.extend("--ft-typography-button-text-transform",ct.textTransform,"uppercase"),me=i.css`
|
|
128
128
|
.ft-typography--title {
|
|
129
129
|
font-family: ${dt};
|
|
130
130
|
font-size: ${gt};
|
|
131
|
-
font-weight: ${
|
|
132
|
-
letter-spacing: ${
|
|
131
|
+
font-weight: ${yt};
|
|
132
|
+
letter-spacing: ${xt};
|
|
133
133
|
line-height: ${ut};
|
|
134
134
|
text-transform: ${vt};
|
|
135
135
|
}
|
|
@@ -145,8 +145,8 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
145
145
|
`,$e=i.css`
|
|
146
146
|
.ft-typography--subtitle1 {
|
|
147
147
|
font-family: ${jt};
|
|
148
|
-
font-size: ${
|
|
149
|
-
font-weight: ${
|
|
148
|
+
font-size: ${Nt};
|
|
149
|
+
font-weight: ${St};
|
|
150
150
|
letter-spacing: ${Ot};
|
|
151
151
|
line-height: ${_t};
|
|
152
152
|
text-transform: ${At};
|
|
@@ -154,8 +154,8 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
154
154
|
`,we=i.css`
|
|
155
155
|
.ft-typography--subtitle2 {
|
|
156
156
|
font-family: ${Et};
|
|
157
|
-
font-size: ${
|
|
158
|
-
font-weight: ${
|
|
157
|
+
font-size: ${Ct};
|
|
158
|
+
font-weight: ${It};
|
|
159
159
|
letter-spacing: ${Mt};
|
|
160
160
|
line-height: ${Tt};
|
|
161
161
|
text-transform: ${Ut};
|
|
@@ -164,15 +164,15 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
164
164
|
`,ke=i.css`
|
|
165
165
|
.ft-typography--body1 {
|
|
166
166
|
font-family: ${Bt};
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
167
|
+
font-size: ${Wt};
|
|
168
|
+
font-weight: ${Zt};
|
|
169
169
|
letter-spacing: ${Dt};
|
|
170
170
|
line-height: ${Kt};
|
|
171
|
-
text-transform: ${
|
|
171
|
+
text-transform: ${Rt};
|
|
172
172
|
}
|
|
173
173
|
`,ze=i.css`
|
|
174
174
|
.ft-typography--body2 {
|
|
175
|
-
font-family: ${
|
|
175
|
+
font-family: ${Gt};
|
|
176
176
|
font-size: ${qt};
|
|
177
177
|
font-weight: ${Ft};
|
|
178
178
|
letter-spacing: ${Ht};
|
|
@@ -188,7 +188,7 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
188
188
|
line-height: ${Vt};
|
|
189
189
|
text-transform: ${te};
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,Ne=i.css`
|
|
192
192
|
.ft-typography--breadcrumb {
|
|
193
193
|
font-family: ${ee};
|
|
194
194
|
font-size: ${ie};
|
|
@@ -197,10 +197,10 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
197
197
|
line-height: ${re};
|
|
198
198
|
text-transform: ${ne};
|
|
199
199
|
}
|
|
200
|
-
`,
|
|
200
|
+
`,Se=i.css`
|
|
201
201
|
.ft-typography--overline {
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
202
|
+
font-family: ${le};
|
|
203
|
+
font-size: ${pe};
|
|
204
204
|
font-weight: ${ae};
|
|
205
205
|
letter-spacing: ${fe};
|
|
206
206
|
line-height: ${he};
|
|
@@ -210,30 +210,32 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
210
210
|
.ft-typography--button {
|
|
211
211
|
font-family: ${de};
|
|
212
212
|
font-size: ${ge};
|
|
213
|
-
font-weight: ${
|
|
214
|
-
letter-spacing: ${
|
|
213
|
+
font-weight: ${ye};
|
|
214
|
+
letter-spacing: ${xe};
|
|
215
215
|
line-height: ${ue};
|
|
216
216
|
text-transform: ${ve};
|
|
217
217
|
}
|
|
218
|
-
`;class _e extends e.FtLitElement{constructor(){super(...arguments),this.variant=
|
|
218
|
+
`;class _e extends e.FtLitElement{constructor(){super(...arguments),this.variant=pt.body1}render(){return this.element?lt`
|
|
219
219
|
<${rt(this.element)}
|
|
220
220
|
class="ft-typography ft-typography--${this.variant}">
|
|
221
221
|
<slot></slot>
|
|
222
222
|
</${rt(this.element)}>
|
|
223
|
-
`:
|
|
223
|
+
`:lt`
|
|
224
224
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
225
|
-
`}}var Ae,Ee;_e.styles=[me,be,$e,we,ke,ze,je,Se,
|
|
225
|
+
`}}var Ae,Ee;_e.styles=[me,be,$e,we,ke,ze,je,Ne,Se,Oe,i.css`
|
|
226
226
|
.ft-typography {
|
|
227
227
|
vertical-align: inherit;
|
|
228
228
|
}
|
|
229
|
-
`],at([o.property()],_e.prototype,"element",void 0),at([o.property()],_e.prototype,"variant",void 0),e.customElement("ft-typography")(_e),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=""}(Ae||(Ae={})),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=""}(Ee||(Ee={})),new Map([...["abw"].map((t=>[t,Ee.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,Ee.AUDIO])),...["avi"].map((t=>[t,Ee.AVI])),...["chm","xhs"].map((t=>[t,Ee.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,Ee.CODE])),...["csv"].map((t=>[t,Ee.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ee.DITA])),...["epub"].map((t=>[t,Ee.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ee.EXCEL])),...["flac"].map((t=>[t,Ee.FLAC])),...["gif"].map((t=>[t,Ee.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ee.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ee.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,Ee.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ee.JPEG])),...["json"].map((t=>[t,Ee.JSON])),...["m4a","m4p"].map((t=>[t,Ee.M4A])),...["mov","qt"].map((t=>[t,Ee.MOV])),...["mp3"].map((t=>[t,Ee.MP3])),...["mp4","m4v"].map((t=>[t,Ee.MP4])),...["ogg","oga"].map((t=>[t,Ee.OGG])),...["pdf","ps"].map((t=>[t,Ee.PDF])),...["png"].map((t=>[t,Ee.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ee.POWERPOINT])),...["rar"].map((t=>[t,Ee.RAR])),...["stp"].map((t=>[t,Ee.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ee.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,Ee.VIDEO])),...["wav"].map((t=>[t,Ee.WAV])),...["wma"].map((t=>[t,Ee.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ee.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ee.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ee.YAML])),...["zip"].map((t=>[t,Ee.ZIP]))]);var Ie
|
|
229
|
+
`],at([o.property()],_e.prototype,"element",void 0),at([o.property()],_e.prototype,"variant",void 0),e.customElement("ft-typography")(_e),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=""}(Ae||(Ae={})),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=""}(Ee||(Ee={})),new Map([...["abw"].map((t=>[t,Ee.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,Ee.AUDIO])),...["avi"].map((t=>[t,Ee.AVI])),...["chm","xhs"].map((t=>[t,Ee.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,Ee.CODE])),...["csv"].map((t=>[t,Ee.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ee.DITA])),...["epub"].map((t=>[t,Ee.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ee.EXCEL])),...["flac"].map((t=>[t,Ee.FLAC])),...["gif"].map((t=>[t,Ee.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ee.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ee.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,Ee.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ee.JPEG])),...["json"].map((t=>[t,Ee.JSON])),...["m4a","m4p"].map((t=>[t,Ee.M4A])),...["mov","qt"].map((t=>[t,Ee.MOV])),...["mp3"].map((t=>[t,Ee.MP3])),...["mp4","m4v"].map((t=>[t,Ee.MP4])),...["ogg","oga"].map((t=>[t,Ee.OGG])),...["pdf","ps"].map((t=>[t,Ee.PDF])),...["png"].map((t=>[t,Ee.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ee.POWERPOINT])),...["rar"].map((t=>[t,Ee.RAR])),...["stp"].map((t=>[t,Ee.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ee.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,Ee.VIDEO])),...["wav"].map((t=>[t,Ee.WAV])),...["wma"].map((t=>[t,Ee.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ee.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ee.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ee.YAML])),...["zip"].map((t=>[t,Ee.ZIP]))]);var Ce,Ie=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));const Me=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),Te=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ue=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Be=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class We extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ce.fluid_topics}render(){return i.html`
|
|
230
230
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
231
231
|
${r.unsafeHTML(this.getIcon())}
|
|
232
232
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
233
233
|
</i>
|
|
234
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let o=this.textContent;return this.variant===
|
|
235
|
-
:host
|
|
234
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let o=this.textContent;return this.variant===Ce.file_format?null!==(t=Ee[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ce.fluid_topics?null!==(e=Ae[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}We.elementDefinitions={},We.styles=i.css`
|
|
235
|
+
:host {
|
|
236
236
|
display: inline-block;
|
|
237
|
+
}
|
|
238
|
+
:host, i.ft-icon {
|
|
237
239
|
width: ${Me};
|
|
238
240
|
height: ${Me};
|
|
239
241
|
text-align: center;
|
|
@@ -264,7 +266,7 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
264
266
|
.ft-icon--material {
|
|
265
267
|
font-family: ${Be}, "Material Icons", sans-serif;
|
|
266
268
|
}
|
|
267
|
-
`,
|
|
269
|
+
`,Ie([o.property()],We.prototype,"variant",void 0),Ie([o.query("slot")],We.prototype,"slottedContent",void 0),e.customElement("ft-icon")(We);var Ze=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const De={horizontalSpacing:e.FtCssVariable.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),verticalSpacing:e.FtCssVariable.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system")};class Ke extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
|
|
268
270
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
269
271
|
<div class="ft-accordion-item--toggle"
|
|
270
272
|
part="toggle"
|
|
@@ -288,7 +290,7 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
288
290
|
</div>
|
|
289
291
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
290
292
|
</div>
|
|
291
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Ke.elementDefinitions={"ft-ripple":w,"ft-typography":_e,"ft-icon":
|
|
293
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Ke.elementDefinitions={"ft-ripple":w,"ft-typography":_e,"ft-icon":We},Ke.styles=i.css`
|
|
292
294
|
.ft-accordion-item {
|
|
293
295
|
display: flex;
|
|
294
296
|
flex-direction: column;
|
|
@@ -333,4 +335,4 @@ const ot=Symbol.for(""),st=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
333
335
|
.ft-accordion-item--separator {
|
|
334
336
|
border-bottom: 1px solid ${De.colorOutline};
|
|
335
337
|
}
|
|
336
|
-
`,
|
|
338
|
+
`,Ze([o.property({type:String})],Ke.prototype,"icon",void 0),Ze([o.property({type:String})],Ke.prototype,"label",void 0),Ze([o.property({type:Boolean,reflect:!0})],Ke.prototype,"active",void 0),e.customElement("ft-accordion")(l),e.customElement("ft-accordion-item")(Ke),t.FtAccordion=l,t.FtAccordionCssVariables={},t.FtAccordionItem=Ke,t.FtAccordionItemCssVariables=De,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|