@fluid-topics/ft-accordion 1.0.54 → 1.0.56
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 +44 -28
- package/build/ft-accordion.min.js +35 -19
- package/package.json +6 -6
|
@@ -28,6 +28,30 @@
|
|
|
28
28
|
opacity: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
.ft-ripple .ft-ripple--effect {
|
|
32
|
+
aspect-ratio: 1;
|
|
33
|
+
width: auto;
|
|
34
|
+
height: auto;
|
|
35
|
+
min-width: 170%;
|
|
36
|
+
min-height: 170%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ft-ripple .ft-ripple--background{
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
45
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
46
|
+
aspect-ratio: 1;
|
|
47
|
+
width: auto;
|
|
48
|
+
height: auto;
|
|
49
|
+
max-width: unset;
|
|
50
|
+
max-height: unset;
|
|
51
|
+
min-width: 100%;
|
|
52
|
+
min-height: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
31
55
|
.ft-ripple .ft-ripple--background {
|
|
32
56
|
background-color: ${h};
|
|
33
57
|
}
|
|
@@ -55,8 +79,6 @@
|
|
|
55
79
|
.ft-ripple .ft-ripple--background {
|
|
56
80
|
top: 0;
|
|
57
81
|
left: 0;
|
|
58
|
-
height: 100%;
|
|
59
|
-
width: 100%;
|
|
60
82
|
transition: opacity 75ms linear;
|
|
61
83
|
}
|
|
62
84
|
|
|
@@ -96,14 +118,8 @@
|
|
|
96
118
|
opacity: ${c};
|
|
97
119
|
transform: translate(-50%, -50%) scale(1);
|
|
98
120
|
}
|
|
99
|
-
`;var z,j=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 N 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.
|
|
121
|
+
`;var z,j=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 N 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.originX=0,this.originY=0,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.setupDebouncer=new e.Debouncer(10),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.isFocusVisible(null==t?void 0:t.target)&&!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`
|
|
100
122
|
<style>
|
|
101
|
-
.ft-ripple .ft-ripple--effect,
|
|
102
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
103
|
-
width: ${this.rippleSize}px;
|
|
104
|
-
height: ${this.rippleSize}px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
123
|
.ft-ripple .ft-ripple--effect {
|
|
108
124
|
left: ${this.originX}px;
|
|
109
125
|
top: ${this.originY}px;
|
|
@@ -113,13 +129,13 @@
|
|
|
113
129
|
<div class="ft-ripple--background"></div>
|
|
114
130
|
<div class="ft-ripple--effect"></div>
|
|
115
131
|
</div>
|
|
116
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([o.property({type:Boolean})],N.prototype,"primary",void 0),j([o.property({type:Boolean})],N.prototype,"secondary",void 0),j([o.property({type:Boolean})],N.prototype,"unbounded",void 0),j([o.property({type:Boolean})],N.prototype,"activated",void 0),j([o.property({type:Boolean})],N.prototype,"selected",void 0),j([o.property({type:Boolean})],N.prototype,"disabled",void 0),j([o.state()],N.prototype,"hovered",void 0),j([o.state()],N.prototype,"focused",void 0),j([o.state()],N.prototype,"pressed",void 0),j([o.state()],N.prototype,"rippling",void 0),j([o.state()],N.prototype,"rippleSize",void 0),j([o.state()],N.prototype,"originX",void 0),j([o.state()],N.prototype,"originY",void 0),j([o.query(".ft-ripple")],N.prototype,"ripple",void 0),j([o.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(N);const O=window,S=O.trustedTypes,_=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,I="?"+E,U=`<${I}>`,M=document,C=()=>M.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,W="[ \t\n\f\r]",Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,R=/>/g,D=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,F=/"/g,H=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),L=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),X=new WeakMap,Y=M.createTreeWalker(M,129,null,!1),J=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=Z;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===Z?"!--"===p[1]?n=K:void 0!==p[1]?n=R:void 0!==p[2]?(H.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=D):void 0!==p[3]&&(n=D):n===D?">"===p[0]?(n=null!=s?s:Z,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?D:'"'===p[3]?F:G):n===F||n===G?n=D:n===K||n===R?n=Z:(n=D,s=void 0);const h=n===D&&t[e+1].startsWith("/>")?" ":"";r+=n===Z?i+U:a>=0?(o.push(l),i.slice(0,a)+A+i.slice(a)+E+h):i+E+(-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!==_?_.createHTML(l):l,o]};class P{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]=J(t,e);if(this.el=P.createElement(p,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(A)||e.startsWith(E)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+A).split(E),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?rt:"@"===e[1]?nt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],C()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[e],C())}}}else if(8===o.nodeType)if(o.data===I)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)l.push({type:7,index:s}),t+=E.length-1}s++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,r,n,l;if(e===L)return e;let p=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=B(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)._$Co)&&void 0!==n?n:l._$Co=[])[o]=p:i._$Cl=p),void 0!==p&&(e=Q(t,p._$AS(t,e.values),p,o)),e}class tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);Y.currentNode=s;let r=Y.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new et(r,r.nextSibling,this,t):1===p.type?e=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(e=new lt(r,this,t)),this._$AV.push(e),p=o[++l]}n!==(null==p?void 0:p.index)&&(r=Y.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),B(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new tt(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new P(t)),e}T(t){T(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 et(this.k(C()),this.k(C()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=V,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=V}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=Q(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=Q(this,o[i+n],e,n),l===L&&(l=this._$AH[n]),r||(r=!B(l)||l!==this._$AH[n]),l===V?t=V:t!==V&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const st=S?S.emptyScript:"";class rt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class nt extends it{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=Q(this,t,e,0))&&void 0!==i?i:V)===L)return;const o=this._$AH,s=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==V&&(o===V||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 lt{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){Q(this,t)}}const pt=O.litHtmlPolyfillSupport;null==pt||pt(P,et),(null!==(z=O.litHtmlVersions)&&void 0!==z?z:O.litHtmlVersions=[]).push("2.7.3");
|
|
132
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([o.property({type:Boolean})],N.prototype,"primary",void 0),j([o.property({type:Boolean})],N.prototype,"secondary",void 0),j([o.property({type:Boolean})],N.prototype,"unbounded",void 0),j([o.property({type:Boolean})],N.prototype,"activated",void 0),j([o.property({type:Boolean})],N.prototype,"selected",void 0),j([o.property({type:Boolean})],N.prototype,"disabled",void 0),j([o.state()],N.prototype,"hovered",void 0),j([o.state()],N.prototype,"focused",void 0),j([o.state()],N.prototype,"pressed",void 0),j([o.state()],N.prototype,"rippling",void 0),j([o.state()],N.prototype,"originX",void 0),j([o.state()],N.prototype,"originY",void 0),j([o.query(".ft-ripple")],N.prototype,"ripple",void 0),j([o.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(N);const _=window,O=_.trustedTypes,A=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,E="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,I="?"+S,U=`<${I}>`,M=document,C=()=>M.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,W="[ \t\n\f\r]",Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,D=/>/g,G=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,F=/"/g,H=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),L=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),X=new WeakMap,Y=M.createTreeWalker(M,129,null,!1),J=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=Z;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===Z?"!--"===p[1]?n=K:void 0!==p[1]?n=D:void 0!==p[2]?(H.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=G):void 0!==p[3]&&(n=G):n===G?">"===p[0]?(n=null!=s?s:Z,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?G:'"'===p[3]?F:R):n===F||n===R?n=G:n===K||n===D?n=Z:(n=G,s=void 0);const h=n===G&&t[e+1].startsWith("/>")?" ":"";r+=n===Z?i+U:a>=0?(o.push(l),i.slice(0,a)+E+i.slice(a)+S+h):i+S+(-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!==A?A.createHTML(l):l,o]};class P{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]=J(t,e);if(this.el=P.createElement(p,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(E)||e.startsWith(S)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+E).split(S),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?rt:"@"===e[1]?nt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],C()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[e],C())}}}else if(8===o.nodeType)if(o.data===I)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)l.push({type:7,index:s}),t+=S.length-1}s++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,r,n,l;if(e===L)return e;let p=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=B(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)._$Co)&&void 0!==n?n:l._$Co=[])[o]=p:i._$Cl=p),void 0!==p&&(e=Q(t,p._$AS(t,e.values),p,o)),e}class tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);Y.currentNode=s;let r=Y.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new et(r,r.nextSibling,this,t):1===p.type?e=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(e=new lt(r,this,t)),this._$AV.push(e),p=o[++l]}n!==(null==p?void 0:p.index)&&(r=Y.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),B(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new tt(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new P(t)),e}T(t){T(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 et(this.k(C()),this.k(C()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=V,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=V}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=Q(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=Q(this,o[i+n],e,n),l===L&&(l=this._$AH[n]),r||(r=!B(l)||l!==this._$AH[n]),l===V?t=V:t!==V&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const st=O?O.emptyScript:"";class rt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class nt extends it{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=Q(this,t,e,0))&&void 0!==i?i:V)===L)return;const o=this._$AH,s=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==V&&(o===V||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 lt{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){Q(this,t)}}const pt=_.litHtmlPolyfillSupport;null==pt||pt(P,et),(null!==(z=_.litHtmlVersions)&&void 0!==z?z:_.litHtmlVersions=[]).push("2.7.3");
|
|
117
133
|
/**
|
|
118
134
|
* @license
|
|
119
135
|
* Copyright 2020 Google LLC
|
|
120
136
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
121
137
|
*/
|
|
122
|
-
const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void 0:t._$litStatic$},ht=t=>({_$litStatic$:t,r:at}),ct=new Map,dt=(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=ft(r));)p+=s+e[++a],f=!0;a!==o&&l.push(r),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=ct.get(t))&&(n.raw=n,ct.set(t,e=n)),i=l}return t(e,...i)})(q);var xt;!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"}(xt||(xt={}));const gt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),yt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ut={fontFamily:yt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},vt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",gt),mt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ut.fontSize,"20px"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ut.fontWeight,"normal"),$t=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ut.letterSpacing,"0.15px"),wt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ut.lineHeight,"1.2"),kt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ut.textTransform,"inherit"),zt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",gt),jt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ut.fontSize,"14px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ut.fontWeight,"normal"),
|
|
138
|
+
const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void 0:t._$litStatic$},ht=t=>({_$litStatic$:t,r:at}),ct=new Map,dt=(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=ft(r));)p+=s+e[++a],f=!0;a!==o&&l.push(r),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=ct.get(t))&&(n.raw=n,ct.set(t,e=n)),i=l}return t(e,...i)})(q);var xt;!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"}(xt||(xt={}));const gt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),yt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ut={fontFamily:yt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},vt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",gt),mt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ut.fontSize,"20px"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ut.fontWeight,"normal"),$t=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ut.letterSpacing,"0.15px"),wt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ut.lineHeight,"1.2"),kt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ut.textTransform,"inherit"),zt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",gt),jt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ut.fontSize,"14px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ut.fontWeight,"normal"),_t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ut.letterSpacing,"0.105px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ut.lineHeight,"1.7"),At=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ut.textTransform,"inherit"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ut.fontSize,"16px"),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ut.fontWeight,"600"),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ut.letterSpacing,"0.144px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ut.lineHeight,"1.5"),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ut.textTransform,"inherit"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),Tt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ut.fontSize,"14px"),Wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ut.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ut.letterSpacing,"0.098px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ut.lineHeight,"1.7"),Dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ut.textTransform,"inherit"),Gt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",yt),Rt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ut.fontSize,"16px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ut.fontWeight,"normal"),Ht=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ut.letterSpacing,"0.496px"),qt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ut.lineHeight,"1.5"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ut.textTransform,"inherit"),Vt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",yt),Xt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ut.fontSize,"14px"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ut.fontWeight,"normal"),Jt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ut.letterSpacing,"0.252px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ut.lineHeight,"1.4"),Qt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ut.textTransform,"inherit"),te=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",yt),ee=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ut.fontSize,"12px"),ie=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ut.fontWeight,"normal"),oe=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ut.letterSpacing,"0.396px"),se=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ut.lineHeight,"1.33"),re=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ut.textTransform,"inherit"),ne=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",yt),le=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ut.fontSize,"10px"),pe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ut.fontWeight,"normal"),ae=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ut.letterSpacing,"0.33px"),fe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ut.lineHeight,"1.6"),he=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ut.textTransform,"inherit"),ce=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",yt),de=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ut.fontSize,"10px"),xe=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ut.fontWeight,"normal"),ge=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ut.letterSpacing,"1.5px"),ye=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ut.lineHeight,"1.6"),ue=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ut.textTransform,"uppercase"),ve=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",yt),me=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",ut.fontSize,"14px"),be=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ut.fontWeight,"600"),$e=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ut.letterSpacing,"1.246px"),we=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",ut.lineHeight,"1.15"),ke=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ut.textTransform,"uppercase"),ze=i.css`
|
|
123
139
|
.ft-typography--title {
|
|
124
140
|
font-family: ${vt};
|
|
125
141
|
font-size: ${mt};
|
|
@@ -133,39 +149,39 @@ const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
133
149
|
font-family: ${zt};
|
|
134
150
|
font-size: ${jt};
|
|
135
151
|
font-weight: ${Nt};
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
152
|
+
letter-spacing: ${_t};
|
|
153
|
+
line-height: ${Ot};
|
|
154
|
+
text-transform: ${At};
|
|
139
155
|
}
|
|
140
156
|
`,Ne=i.css`
|
|
141
157
|
.ft-typography--subtitle1 {
|
|
142
|
-
font-family: ${
|
|
143
|
-
font-size: ${
|
|
158
|
+
font-family: ${Et};
|
|
159
|
+
font-size: ${St};
|
|
144
160
|
font-weight: ${It};
|
|
145
161
|
letter-spacing: ${Ut};
|
|
146
162
|
line-height: ${Mt};
|
|
147
163
|
text-transform: ${Ct};
|
|
148
164
|
}
|
|
149
|
-
`,
|
|
165
|
+
`,_e=i.css`
|
|
150
166
|
.ft-typography--subtitle2 {
|
|
151
167
|
font-family: ${Bt};
|
|
152
168
|
font-size: ${Tt};
|
|
153
169
|
font-weight: ${Wt};
|
|
154
170
|
letter-spacing: ${Zt};
|
|
155
171
|
line-height: ${Kt};
|
|
156
|
-
text-transform: ${
|
|
172
|
+
text-transform: ${Dt};
|
|
157
173
|
}
|
|
158
174
|
|
|
159
|
-
`,
|
|
175
|
+
`,Oe=i.css`
|
|
160
176
|
.ft-typography--body1 {
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
177
|
+
font-family: ${Gt};
|
|
178
|
+
font-size: ${Rt};
|
|
163
179
|
font-weight: ${Ft};
|
|
164
180
|
letter-spacing: ${Ht};
|
|
165
181
|
line-height: ${qt};
|
|
166
182
|
text-transform: ${Lt};
|
|
167
183
|
}
|
|
168
|
-
`,
|
|
184
|
+
`,Ae=i.css`
|
|
169
185
|
.ft-typography--body2 {
|
|
170
186
|
font-family: ${Vt};
|
|
171
187
|
font-size: ${Xt};
|
|
@@ -174,7 +190,7 @@ const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
174
190
|
line-height: ${Pt};
|
|
175
191
|
text-transform: ${Qt};
|
|
176
192
|
}
|
|
177
|
-
`,
|
|
193
|
+
`,Ee=i.css`
|
|
178
194
|
.ft-typography--caption {
|
|
179
195
|
font-family: ${te};
|
|
180
196
|
font-size: ${ee};
|
|
@@ -183,7 +199,7 @@ const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
183
199
|
line-height: ${se};
|
|
184
200
|
text-transform: ${re};
|
|
185
201
|
}
|
|
186
|
-
`,
|
|
202
|
+
`,Se=i.css`
|
|
187
203
|
.ft-typography--breadcrumb {
|
|
188
204
|
font-family: ${ne};
|
|
189
205
|
font-size: ${le};
|
|
@@ -221,7 +237,7 @@ const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
221
237
|
</${ht(this.element)}>
|
|
222
238
|
`:dt`
|
|
223
239
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
224
|
-
`}}We.styles=[ze,je,Ne,Oe,
|
|
240
|
+
`}}We.styles=[ze,je,Ne,_e,Oe,Ae,Ee,Se,Ie,Ue,Me],Te([o.property()],We.prototype,"element",void 0),Te([o.property()],We.prototype,"variant",void 0),e.customElement("ft-typography")(We),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ce||(Ce={})),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=""}(Be||(Be={})),new Map([...["abw"].map((t=>[t,Be.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,Be.AUDIO])),...["avi"].map((t=>[t,Be.AVI])),...["chm","xhs"].map((t=>[t,Be.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,Be.CODE])),...["csv"].map((t=>[t,Be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Be.DITA])),...["epub"].map((t=>[t,Be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Be.EXCEL])),...["flac"].map((t=>[t,Be.FLAC])),...["gif"].map((t=>[t,Be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Be.GZIP])),...["html","htm","xhtml"].map((t=>[t,Be.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,Be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Be.JPEG])),...["json"].map((t=>[t,Be.JSON])),...["m4a","m4p"].map((t=>[t,Be.M4A])),...["mov","qt"].map((t=>[t,Be.MOV])),...["mp3"].map((t=>[t,Be.MP3])),...["mp4","m4v"].map((t=>[t,Be.MP4])),...["ogg","oga"].map((t=>[t,Be.OGG])),...["pdf","ps"].map((t=>[t,Be.PDF])),...["png"].map((t=>[t,Be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Be.POWERPOINT])),...["rar"].map((t=>[t,Be.RAR])),...["stp"].map((t=>[t,Be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Be.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,Be.VIDEO])),...["wav"].map((t=>[t,Be.WAV])),...["wma"].map((t=>[t,Be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Be.WORD])),...["xml","xsl","rdf"].map((t=>[t,Be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Be.YAML])),...["zip"].map((t=>[t,Be.ZIP]))]);const Ze=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Ke=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),De=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ge=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Re=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Fe=i.css`
|
|
225
241
|
:host, i.ft-icon {
|
|
226
242
|
display: inline-flex;
|
|
227
243
|
align-items: center;
|
|
@@ -248,7 +264,7 @@ const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
248
264
|
text-rendering: auto;
|
|
249
265
|
-webkit-font-smoothing: antialiased;
|
|
250
266
|
-moz-osx-font-smoothing: grayscale;
|
|
251
|
-
vertical-align: ${
|
|
267
|
+
vertical-align: ${Re};
|
|
252
268
|
}
|
|
253
269
|
|
|
254
270
|
i.ft-icon.ft-icon--fluid-topics {
|
|
@@ -263,11 +279,11 @@ const at=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
263
279
|
}
|
|
264
280
|
|
|
265
281
|
.ft-icon--file-format {
|
|
266
|
-
font-family: ${
|
|
282
|
+
font-family: ${De}, ft-mime, sans-serif;
|
|
267
283
|
}
|
|
268
284
|
|
|
269
285
|
.ft-icon--material {
|
|
270
|
-
font-family: ${
|
|
286
|
+
font-family: ${Ge}, "Material Icons", sans-serif;
|
|
271
287
|
}
|
|
272
288
|
`;var He;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(He||(He={}));var qe=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 Le extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(He).includes(this.variant)?this.variant:He.fluid_topics,e=t!==He.material||!!this.value;return i.html`
|
|
273
289
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
@@ -57,7 +57,7 @@ const c=window,p=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"
|
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:N}),(null!==(g=m.reactiveElementVersions)&&void 0!==g?g:m.reactiveElementVersions=[]).push("1.6.1");const C=window,R=C.trustedTypes,M=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,
|
|
60
|
+
var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:N}),(null!==(g=m.reactiveElementVersions)&&void 0!==g?g:m.reactiveElementVersions=[]).push("1.6.1");const C=window,R=C.trustedTypes,M=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,F="?"+j,z=`<${F}>`,A=document,L=()=>A.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,P="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,W=/>/g,I=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,H=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=A.createTreeWalker(A,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=T;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,p=0;for(;p<i.length&&(n.lastIndex=p,l=n.exec(i),null!==l);)p=n.lastIndex,n===T?"!--"===l[1]?n=D:void 0!==l[1]?n=W:void 0!==l[2]?(Z.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=I):void 0!==l[3]&&(n=I):n===I?">"===l[0]?(n=null!=r?r:T,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?I:'"'===l[3]?H:K):n===H||n===K?n=I:n===D||n===W?n=T:(n=I,r=void 0);const h=n===I&&t[e+1].startsWith("/>")?" ":"";s+=n===T?i+z:c>=0?(o.push(a),i.slice(0,c)+U+i.slice(c)+j+h):i+j+(-2===c?(o.push(void 0),e):h)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,c]=G(t,e);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(j)){const i=c[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(j),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?nt:"@"===e[1]?at:ot})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),Y.nextNode(),a.push({type:2,index:++r});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)a.push({type:7,index:r}),t+=j.length-1}r++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var r,s,n,a;if(e===J)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const c=_(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=tt(t,l._$AS(t,e.values),l,o)),e}class et{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);Y.currentNode=r;let s=Y.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new it(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new lt(s,this,t)),this._$AV.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=Y.nextNode(),n++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class it{constructor(t,e,i,o){var r;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),_(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new et(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}T(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new it(this.k(L()),this.k(L()),this,this.options)):i=e[o],i._$AI(r),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,i,o,r){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=tt(this,t,e,0),s=!_(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=tt(this,o[i+n],e,n),a===J&&(a=this._$AH[n]),s||(s=!_(a)||a!==this._$AH[n]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=R?R.emptyScript:"";class nt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class at extends ot{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,r=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||r);r&&this.element.removeEventListener(this.name,this,o),s&&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 lt{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){tt(this,t)}}const ct=C.litHtmlPolyfillSupport;null==ct||ct(Q,it),(null!==(E=C.litHtmlVersions)&&void 0!==E?E:C.litHtmlVersions=[]).push("2.7.3");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
@@ -114,7 +114,7 @@ const Ct=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2018 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/const jt=Mt(class extends Ut{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return J}}),
|
|
117
|
+
*/const jt=Mt(class extends Ut{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return J}}),Ft=ut.extend("--ft-ripple-color",yt.colorContent),zt=Ft,At=ut.extend("--ft-ripple-background-color",Ft),Lt=ut.external(yt.opacityContentOnSurfacePressed,"Design system"),_t=ut.external(yt.opacityContentOnSurfaceHover,"Design system"),Bt=ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),Pt=ut.external(yt.opacityContentOnSurfaceSelected,"Design system"),Tt=ut.create("--ft-ripple-border-radius","SIZE","0px"),Dt=ut.extend("--ft-ripple-color",yt.colorPrimary),Wt=Dt,It=ut.extend("--ft-ripple-background-color",Dt),Kt=ut.extend("--ft-ripple-color",yt.colorSecondary),Ht=Kt,Zt=ut.extend("--ft-ripple-background-color",Kt),Vt=y`
|
|
118
118
|
:host {
|
|
119
119
|
display: contents;
|
|
120
120
|
}
|
|
@@ -136,12 +136,36 @@ const Ct=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
136
136
|
opacity: 0;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
.ft-ripple .ft-ripple--effect {
|
|
140
|
+
aspect-ratio: 1;
|
|
141
|
+
width: auto;
|
|
142
|
+
height: auto;
|
|
143
|
+
min-width: 170%;
|
|
144
|
+
min-height: 170%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ft-ripple .ft-ripple--background{
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
153
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
154
|
+
aspect-ratio: 1;
|
|
155
|
+
width: auto;
|
|
156
|
+
height: auto;
|
|
157
|
+
max-width: unset;
|
|
158
|
+
max-height: unset;
|
|
159
|
+
min-width: 100%;
|
|
160
|
+
min-height: 100%;
|
|
161
|
+
}
|
|
162
|
+
|
|
139
163
|
.ft-ripple .ft-ripple--background {
|
|
140
164
|
background-color: ${At};
|
|
141
165
|
}
|
|
142
166
|
|
|
143
167
|
.ft-ripple .ft-ripple--effect {
|
|
144
|
-
background-color: ${
|
|
168
|
+
background-color: ${zt};
|
|
145
169
|
}
|
|
146
170
|
|
|
147
171
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -163,8 +187,6 @@ const Ct=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
163
187
|
.ft-ripple .ft-ripple--background {
|
|
164
188
|
top: 0;
|
|
165
189
|
left: 0;
|
|
166
|
-
height: 100%;
|
|
167
|
-
width: 100%;
|
|
168
190
|
transition: opacity 75ms linear;
|
|
169
191
|
}
|
|
170
192
|
|
|
@@ -204,14 +226,8 @@ const Ct=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
204
226
|
opacity: ${Lt};
|
|
205
227
|
transform: translate(-50%, -50%) scale(1);
|
|
206
228
|
}
|
|
207
|
-
`;var Jt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class qt extends $t{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.
|
|
229
|
+
`;var Jt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class qt extends $t{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.originX=0,this.originY=0,this.debouncer=new e(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.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.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.isFocusVisible(null==t?void 0:t.target)&&!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 V`
|
|
208
230
|
<style>
|
|
209
|
-
.ft-ripple .ft-ripple--effect,
|
|
210
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
211
|
-
width: ${this.rippleSize}px;
|
|
212
|
-
height: ${this.rippleSize}px;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
231
|
.ft-ripple .ft-ripple--effect {
|
|
216
232
|
left: ${this.originX}px;
|
|
217
233
|
top: ${this.originY}px;
|
|
@@ -221,13 +237,13 @@ const Ct=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
221
237
|
<div class="ft-ripple--background"></div>
|
|
222
238
|
<div class="ft-ripple--effect"></div>
|
|
223
239
|
</div>
|
|
224
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.
|
|
240
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}qt.elementDefinitions={},qt.styles=Vt,Jt([o({type:Boolean})],qt.prototype,"primary",void 0),Jt([o({type:Boolean})],qt.prototype,"secondary",void 0),Jt([o({type:Boolean})],qt.prototype,"unbounded",void 0),Jt([o({type:Boolean})],qt.prototype,"activated",void 0),Jt([o({type:Boolean})],qt.prototype,"selected",void 0),Jt([o({type:Boolean})],qt.prototype,"disabled",void 0),Jt([r()],qt.prototype,"hovered",void 0),Jt([r()],qt.prototype,"focused",void 0),Jt([r()],qt.prototype,"pressed",void 0),Jt([r()],qt.prototype,"rippling",void 0),Jt([r()],qt.prototype,"originX",void 0),Jt([r()],qt.prototype,"originY",void 0),Jt([s(".ft-ripple")],qt.prototype,"ripple",void 0),Jt([s(".ft-ripple--effect")],qt.prototype,"rippleEffect",void 0),l("ft-ripple")(qt);
|
|
225
241
|
/**
|
|
226
242
|
* @license
|
|
227
243
|
* Copyright 2020 Google LLC
|
|
228
244
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
229
245
|
*/
|
|
230
|
-
const Xt=Symbol.for(""),Yt=t=>{if((null==t?void 0:t.r)===Xt)return null==t?void 0:t._$litStatic$},Gt=t=>({_$litStatic$:t,r:Xt}),Qt=new Map,te=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(s=i[c],r=Yt(s));)l+=r+e[++c],p=!0;c!==o&&a.push(s),n.push(l),c++}if(c===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=Qt.get(t))&&(n.raw=n,Qt.set(t,e=n)),i=a}return t(e,...i)})(V);var ee;!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"}(ee||(ee={}));const ie=ut.extend("--ft-typography-font-family",yt.titleFont),oe=ut.extend("--ft-typography-font-family",yt.contentFont),re={fontFamily:oe,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},se=ut.extend("--ft-typography-title-font-family",ie),ne=ut.extend("--ft-typography-title-font-size",re.fontSize,"20px"),ae=ut.extend("--ft-typography-title-font-weight",re.fontWeight,"normal"),le=ut.extend("--ft-typography-title-letter-spacing",re.letterSpacing,"0.15px"),ce=ut.extend("--ft-typography-title-line-height",re.lineHeight,"1.2"),pe=ut.extend("--ft-typography-title-text-transform",re.textTransform,"inherit"),he=ut.extend("--ft-typography-title-dense-font-family",ie),fe=ut.extend("--ft-typography-title-dense-font-size",re.fontSize,"14px"),de=ut.extend("--ft-typography-title-dense-font-weight",re.fontWeight,"normal"),ue=ut.extend("--ft-typography-title-dense-letter-spacing",re.letterSpacing,"0.105px"),ye=ut.extend("--ft-typography-title-dense-line-height",re.lineHeight,"1.7"),xe=ut.extend("--ft-typography-title-dense-text-transform",re.textTransform,"inherit"),ve=ut.extend("--ft-typography-subtitle1-font-family",oe),ge=ut.extend("--ft-typography-subtitle1-font-size",re.fontSize,"16px"),me=ut.extend("--ft-typography-subtitle1-font-weight",re.fontWeight,"600"),be=ut.extend("--ft-typography-subtitle1-letter-spacing",re.letterSpacing,"0.144px"),we=ut.extend("--ft-typography-subtitle1-line-height",re.lineHeight,"1.5"),$e=ut.extend("--ft-typography-subtitle1-text-transform",re.textTransform,"inherit"),Oe=ut.extend("--ft-typography-subtitle2-font-family",oe),Se=ut.extend("--ft-typography-subtitle2-font-size",re.fontSize,"14px"),ke=ut.extend("--ft-typography-subtitle2-font-weight",re.fontWeight,"normal"),Ne=ut.extend("--ft-typography-subtitle2-letter-spacing",re.letterSpacing,"0.098px"),Ee=ut.extend("--ft-typography-subtitle2-line-height",re.lineHeight,"1.7"),Ce=ut.extend("--ft-typography-subtitle2-text-transform",re.textTransform,"inherit"),Re=ut.extend("--ft-typography-body1-font-family",oe),Me=ut.extend("--ft-typography-body1-font-size",re.fontSize,"16px"),Ue=ut.extend("--ft-typography-body1-font-weight",re.fontWeight,"normal"),je=ut.extend("--ft-typography-body1-letter-spacing",re.letterSpacing,"0.496px"),
|
|
246
|
+
const Xt=Symbol.for(""),Yt=t=>{if((null==t?void 0:t.r)===Xt)return null==t?void 0:t._$litStatic$},Gt=t=>({_$litStatic$:t,r:Xt}),Qt=new Map,te=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(s=i[c],r=Yt(s));)l+=r+e[++c],p=!0;c!==o&&a.push(s),n.push(l),c++}if(c===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=Qt.get(t))&&(n.raw=n,Qt.set(t,e=n)),i=a}return t(e,...i)})(V);var ee;!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"}(ee||(ee={}));const ie=ut.extend("--ft-typography-font-family",yt.titleFont),oe=ut.extend("--ft-typography-font-family",yt.contentFont),re={fontFamily:oe,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},se=ut.extend("--ft-typography-title-font-family",ie),ne=ut.extend("--ft-typography-title-font-size",re.fontSize,"20px"),ae=ut.extend("--ft-typography-title-font-weight",re.fontWeight,"normal"),le=ut.extend("--ft-typography-title-letter-spacing",re.letterSpacing,"0.15px"),ce=ut.extend("--ft-typography-title-line-height",re.lineHeight,"1.2"),pe=ut.extend("--ft-typography-title-text-transform",re.textTransform,"inherit"),he=ut.extend("--ft-typography-title-dense-font-family",ie),fe=ut.extend("--ft-typography-title-dense-font-size",re.fontSize,"14px"),de=ut.extend("--ft-typography-title-dense-font-weight",re.fontWeight,"normal"),ue=ut.extend("--ft-typography-title-dense-letter-spacing",re.letterSpacing,"0.105px"),ye=ut.extend("--ft-typography-title-dense-line-height",re.lineHeight,"1.7"),xe=ut.extend("--ft-typography-title-dense-text-transform",re.textTransform,"inherit"),ve=ut.extend("--ft-typography-subtitle1-font-family",oe),ge=ut.extend("--ft-typography-subtitle1-font-size",re.fontSize,"16px"),me=ut.extend("--ft-typography-subtitle1-font-weight",re.fontWeight,"600"),be=ut.extend("--ft-typography-subtitle1-letter-spacing",re.letterSpacing,"0.144px"),we=ut.extend("--ft-typography-subtitle1-line-height",re.lineHeight,"1.5"),$e=ut.extend("--ft-typography-subtitle1-text-transform",re.textTransform,"inherit"),Oe=ut.extend("--ft-typography-subtitle2-font-family",oe),Se=ut.extend("--ft-typography-subtitle2-font-size",re.fontSize,"14px"),ke=ut.extend("--ft-typography-subtitle2-font-weight",re.fontWeight,"normal"),Ne=ut.extend("--ft-typography-subtitle2-letter-spacing",re.letterSpacing,"0.098px"),Ee=ut.extend("--ft-typography-subtitle2-line-height",re.lineHeight,"1.7"),Ce=ut.extend("--ft-typography-subtitle2-text-transform",re.textTransform,"inherit"),Re=ut.extend("--ft-typography-body1-font-family",oe),Me=ut.extend("--ft-typography-body1-font-size",re.fontSize,"16px"),Ue=ut.extend("--ft-typography-body1-font-weight",re.fontWeight,"normal"),je=ut.extend("--ft-typography-body1-letter-spacing",re.letterSpacing,"0.496px"),Fe=ut.extend("--ft-typography-body1-line-height",re.lineHeight,"1.5"),ze=ut.extend("--ft-typography-body1-text-transform",re.textTransform,"inherit"),Ae=ut.extend("--ft-typography-body2-font-family",oe),Le=ut.extend("--ft-typography-body2-font-size",re.fontSize,"14px"),_e=ut.extend("--ft-typography-body2-font-weight",re.fontWeight,"normal"),Be=ut.extend("--ft-typography-body2-letter-spacing",re.letterSpacing,"0.252px"),Pe=ut.extend("--ft-typography-body2-line-height",re.lineHeight,"1.4"),Te=ut.extend("--ft-typography-body2-text-transform",re.textTransform,"inherit"),De=ut.extend("--ft-typography-caption-font-family",oe),We=ut.extend("--ft-typography-caption-font-size",re.fontSize,"12px"),Ie=ut.extend("--ft-typography-caption-font-weight",re.fontWeight,"normal"),Ke=ut.extend("--ft-typography-caption-letter-spacing",re.letterSpacing,"0.396px"),He=ut.extend("--ft-typography-caption-line-height",re.lineHeight,"1.33"),Ze=ut.extend("--ft-typography-caption-text-transform",re.textTransform,"inherit"),Ve=ut.extend("--ft-typography-breadcrumb-font-family",oe),Je=ut.extend("--ft-typography-breadcrumb-font-size",re.fontSize,"10px"),qe=ut.extend("--ft-typography-breadcrumb-font-weight",re.fontWeight,"normal"),Xe=ut.extend("--ft-typography-breadcrumb-letter-spacing",re.letterSpacing,"0.33px"),Ye=ut.extend("--ft-typography-breadcrumb-line-height",re.lineHeight,"1.6"),Ge=ut.extend("--ft-typography-breadcrumb-text-transform",re.textTransform,"inherit"),Qe=ut.extend("--ft-typography-overline-font-family",oe),ti=ut.extend("--ft-typography-overline-font-size",re.fontSize,"10px"),ei=ut.extend("--ft-typography-overline-font-weight",re.fontWeight,"normal"),ii=ut.extend("--ft-typography-overline-letter-spacing",re.letterSpacing,"1.5px"),oi=ut.extend("--ft-typography-overline-line-height",re.lineHeight,"1.6"),ri=ut.extend("--ft-typography-overline-text-transform",re.textTransform,"uppercase"),si=ut.extend("--ft-typography-button-font-family",oe),ni=ut.extend("--ft-typography-button-font-size",re.fontSize,"14px"),ai=ut.extend("--ft-typography-button-font-weight",re.fontWeight,"600"),li=ut.extend("--ft-typography-button-letter-spacing",re.letterSpacing,"1.246px"),ci=ut.extend("--ft-typography-button-line-height",re.lineHeight,"1.15"),pi=ut.extend("--ft-typography-button-text-transform",re.textTransform,"uppercase"),hi=y`
|
|
231
247
|
.ft-typography--title {
|
|
232
248
|
font-family: ${se};
|
|
233
249
|
font-size: ${ne};
|
|
@@ -270,8 +286,8 @@ const Xt=Symbol.for(""),Yt=t=>{if((null==t?void 0:t.r)===Xt)return null==t?void
|
|
|
270
286
|
font-size: ${Me};
|
|
271
287
|
font-weight: ${Ue};
|
|
272
288
|
letter-spacing: ${je};
|
|
273
|
-
line-height: ${
|
|
274
|
-
text-transform: ${
|
|
289
|
+
line-height: ${Fe};
|
|
290
|
+
text-transform: ${ze};
|
|
275
291
|
}
|
|
276
292
|
`,xi=y`
|
|
277
293
|
.ft-typography--body2 {
|
|
@@ -335,7 +351,7 @@ const Xt=Symbol.for(""),Yt=t=>{if((null==t?void 0:t.r)===Xt)return null==t?void
|
|
|
335
351
|
* Copyright 2017 Google LLC
|
|
336
352
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
337
353
|
*/
|
|
338
|
-
class Si extends Ut{constructor(t){if(super(t),this.et=q,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this.ft=void 0,this.et=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const ki=Mt(Si);var Ni,Ei;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ni||(Ni={})),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=""}(Ei||(Ei={})),new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]);const Ci=ut.create("--ft-icon-font-size","SIZE","24px"),Ri=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Mi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ui=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),ji=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),
|
|
354
|
+
class Si extends Ut{constructor(t){if(super(t),this.et=q,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this.ft=void 0,this.et=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const ki=Mt(Si);var Ni,Ei;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ni||(Ni={})),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=""}(Ei||(Ei={})),new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]);const Ci=ut.create("--ft-icon-font-size","SIZE","24px"),Ri=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Mi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ui=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),ji=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),Fi=y`
|
|
339
355
|
:host, i.ft-icon {
|
|
340
356
|
display: inline-flex;
|
|
341
357
|
align-items: center;
|
|
@@ -383,12 +399,12 @@ class Si extends Ut{constructor(t){if(super(t),this.et=q,t.type!==Rt)throw Error
|
|
|
383
399
|
.ft-icon--material {
|
|
384
400
|
font-family: ${Ui}, "Material Icons", sans-serif;
|
|
385
401
|
}
|
|
386
|
-
`;var
|
|
402
|
+
`;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Ai=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Li extends $t{constructor(){super(...arguments),this.resolvedIcon=q}render(){const t=this.variant&&Object.values(zi).includes(this.variant)?this.variant:zi.fluid_topics,e=t!==zi.material||!!this.value;return V`
|
|
387
403
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
388
404
|
${ki(this.resolvedIcon)}
|
|
389
405
|
<slot ?hidden=${e}></slot>
|
|
390
406
|
</i>
|
|
391
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
407
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=Ei[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Ni[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Li.elementDefinitions={},Li.styles=Fi,Ai([o()],Li.prototype,"variant",void 0),Ai([o()],Li.prototype,"value",void 0),Ai([r()],Li.prototype,"resolvedIcon",void 0),Ai([s("slot")],Li.prototype,"slottedContent",void 0),l("ft-icon")(Li);const _i={horizontalSpacing:ut.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),verticalSpacing:ut.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),colorOutline:ut.external(yt.colorOutline,"Design system")},Bi=y`
|
|
392
408
|
.ft-accordion-item {
|
|
393
409
|
display: flex;
|
|
394
410
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-accordion",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.56",
|
|
4
4
|
"description": "The accordion component allows the user to show and hide sections of related content on a page.",
|
|
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": "1.0.
|
|
23
|
-
"@fluid-topics/ft-ripple": "1.0.
|
|
24
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.0.56",
|
|
23
|
+
"@fluid-topics/ft-ripple": "1.0.56",
|
|
24
|
+
"@fluid-topics/ft-typography": "1.0.56",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.0.56",
|
|
26
26
|
"lit": "2.7.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "da00d6ea6bfc74fef8c6687f383355e35a26289b"
|
|
29
29
|
}
|