@fluid-topics/ft-accordion 0.3.71 → 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-accordion-item.css.d.ts +0 -1
- package/build/ft-accordion-item.css.js +0 -1
- package/build/ft-accordion-item.d.ts +2 -1
- package/build/ft-accordion-item.js +8 -5
- package/build/ft-accordion-item.properties.d.ts +2 -1
- package/build/ft-accordion-item.properties.js +0 -1
- package/build/ft-accordion.css.d.ts +0 -1
- package/build/ft-accordion.css.js +0 -1
- package/build/ft-accordion.d.ts +0 -1
- package/build/ft-accordion.js +2 -2
- package/build/ft-accordion.light.js +101 -101
- package/build/ft-accordion.min.js +133 -143
- package/build/ft-accordion.properties.d.ts +0 -1
- package/build/ft-accordion.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +7 -7
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { PropertyValues } from "lit";
|
|
2
2
|
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
3
|
+
import { FtIconVariants } from "@fluid-topics/ft-icon";
|
|
3
4
|
import { FtAccordionItemProperties } from "./ft-accordion-item.properties";
|
|
4
5
|
export declare class FtAccordionItem extends FtLitElement implements FtAccordionItemProperties {
|
|
5
6
|
static elementDefinitions: ElementDefinitionsMap;
|
|
6
7
|
static styles: import("lit").CSSResult;
|
|
7
8
|
icon: string;
|
|
9
|
+
iconVariant?: FtIconVariants;
|
|
8
10
|
label: string;
|
|
9
11
|
active: boolean;
|
|
10
12
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
11
13
|
protected update(props: PropertyValues): void;
|
|
12
14
|
private onToggleKeyDown;
|
|
13
15
|
}
|
|
14
|
-
//# sourceMappingURL=ft-accordion-item.d.ts.map
|
|
@@ -11,7 +11,7 @@ import { FtRipple } from "@fluid-topics/ft-ripple";
|
|
|
11
11
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
12
12
|
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
13
13
|
import { itemStyles } from "./ft-accordion-item.css";
|
|
14
|
-
|
|
14
|
+
class FtAccordionItem extends FtLitElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.icon = "";
|
|
@@ -31,7 +31,7 @@ export class FtAccordionItem extends FtLitElement {
|
|
|
31
31
|
aria-expanded="${this.active}">
|
|
32
32
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
33
33
|
${this.icon ? html `
|
|
34
|
-
<ft-icon variant="
|
|
34
|
+
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
35
35
|
` : null}
|
|
36
36
|
${this.label ? html `
|
|
37
37
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
@@ -72,12 +72,15 @@ FtAccordionItem.elementDefinitions = {
|
|
|
72
72
|
// language=CSS
|
|
73
73
|
FtAccordionItem.styles = itemStyles;
|
|
74
74
|
__decorate([
|
|
75
|
-
property(
|
|
75
|
+
property()
|
|
76
76
|
], FtAccordionItem.prototype, "icon", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
property(
|
|
78
|
+
property()
|
|
79
|
+
], FtAccordionItem.prototype, "iconVariant", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
property()
|
|
79
82
|
], FtAccordionItem.prototype, "label", void 0);
|
|
80
83
|
__decorate([
|
|
81
84
|
property({ type: Boolean, reflect: true })
|
|
82
85
|
], FtAccordionItem.prototype, "active", void 0);
|
|
83
|
-
|
|
86
|
+
export { FtAccordionItem };
|
package/build/ft-accordion.d.ts
CHANGED
package/build/ft-accordion.js
CHANGED
|
@@ -8,7 +8,7 @@ import { html } from "lit";
|
|
|
8
8
|
import { property, query } from "lit/decorators.js";
|
|
9
9
|
import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
10
|
import { styles } from "./ft-accordion.css";
|
|
11
|
-
|
|
11
|
+
class FtAccordion extends FtLitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.multi = false;
|
|
@@ -36,4 +36,4 @@ __decorate([
|
|
|
36
36
|
__decorate([
|
|
37
37
|
query("slot")
|
|
38
38
|
], FtAccordion.prototype, "content", void 0);
|
|
39
|
-
|
|
39
|
+
export { FtAccordion };
|
|
@@ -112,115 +112,115 @@
|
|
|
112
112
|
<div class="ft-ripple--background"></div>
|
|
113
113
|
<div class="ft-ripple--effect"></div>
|
|
114
114
|
</div>
|
|
115
|
-
`}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((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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}}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()}}j.elementDefinitions={},j.styles=w,z([o.property({type:Boolean})],j.prototype,"primary",void 0),z([o.property({type:Boolean})],j.prototype,"secondary",void 0),z([o.property({type:Boolean})],j.prototype,"unbounded",void 0),z([o.property({type:Boolean})],j.prototype,"activated",void 0),z([o.property({type:Boolean})],j.prototype,"selected",void 0),z([o.property({type:Boolean})],j.prototype,"disabled",void 0),z([o.state()],j.prototype,"hovered",void 0),z([o.state()],j.prototype,"focused",void 0),z([o.state()],j.prototype,"pressed",void 0),z([o.state()],j.prototype,"rippling",void 0),z([o.state()],j.prototype,"rippleSize",void 0),z([o.state()],j.prototype,"originX",void 0),z([o.state()],j.prototype,"originY",void 0),z([o.query(".ft-ripple")],j.prototype,"ripple",void 0),z([o.query(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(j);const N=window,O=N.trustedTypes,_=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,A="?"+S,E=`<${A}>`,I=document,U=(t="")=>I.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,W=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),R=/'/g,Z=/"/g,D=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),H=new WeakMap,L=I.createTreeWalker(I,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=B;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===B?"!--"===p[1]?n=T:void 0!==p[1]?n=W:void 0!==p[2]?(D.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=K):void 0!==p[3]&&(n=K):n===K?">"===p[0]?(n=null!=s?s:B,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?K:'"'===p[3]?Z:R):n===Z||n===R?n=K:n===T||n===W?n=B:(n=K,s=void 0);const h=n===K&&t[e+1].startsWith("/>")?" ":"";r+=n===B?i+E:a>=0?(o.push(l),i.slice(0,a)+"$lit$"+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!==_?_.createHTML(l):l,o]};class Y{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]=X(t,e);if(this.el=Y.createElement(p,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=L.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(S)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?ot:V})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(D.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],U()),L.nextNode(),l.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===A)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=I.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var s,r,n,l;if(e===q)return e;let p=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=M(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=J(t,p._$AS(t,e.values),p,o)),e}class P{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);L.currentNode=s;let r=L.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new Q(r,r.nextSibling,this,t):1===p.type?e=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(e=new st(r,this,t)),this.u.push(e),p=o[++l]}n!==(null==p?void 0:p.index)&&(r=L.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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=J(this,t,e),M(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==F&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new P(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new Y(t)),e}k(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 Q(this.O(U()),this.O(U()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,o,s){this.type=1,this._$AH=F,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=F}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=J(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=J(this,o[i+n],e,n),l===q&&(l=this._$AH[n]),r||(r=!M(l)||l!==this._$AH[n]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const et=O?O.emptyScript:"";class it extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class ot extends V{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=J(this,t,e,0))&&void 0!==i?i:F)===q)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==F&&(o===F||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 st{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){J(this,t)}}const rt=N.litHtmlPolyfillSupport;null==rt||rt(Y,Q),(null!==(k=N.litHtmlVersions)&&void 0!==k?k:N.litHtmlVersions=[]).push("2.4.0");
|
|
115
|
+
`}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((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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}}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()}}j.elementDefinitions={},j.styles=w,z([o.property({type:Boolean})],j.prototype,"primary",void 0),z([o.property({type:Boolean})],j.prototype,"secondary",void 0),z([o.property({type:Boolean})],j.prototype,"unbounded",void 0),z([o.property({type:Boolean})],j.prototype,"activated",void 0),z([o.property({type:Boolean})],j.prototype,"selected",void 0),z([o.property({type:Boolean})],j.prototype,"disabled",void 0),z([o.state()],j.prototype,"hovered",void 0),z([o.state()],j.prototype,"focused",void 0),z([o.state()],j.prototype,"pressed",void 0),z([o.state()],j.prototype,"rippling",void 0),z([o.state()],j.prototype,"rippleSize",void 0),z([o.state()],j.prototype,"originX",void 0),z([o.state()],j.prototype,"originY",void 0),z([o.query(".ft-ripple")],j.prototype,"ripple",void 0),z([o.query(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(j);const N=window,O=N.trustedTypes,_=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,E="?"+S,I=`<${E}>`,U=document,M=()=>U.createComment(""),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,T="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,R=/>/g,Z=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,G=/"/g,q=/^(?:script|style|textarea|title)$/i,F=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),H=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),V=new WeakMap,X=U.createTreeWalker(U,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=W;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===W?"!--"===p[1]?n=K:void 0!==p[1]?n=R:void 0!==p[2]?(q.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=Z):void 0!==p[3]&&(n=Z):n===Z?">"===p[0]?(n=null!=s?s:W,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?Z:'"'===p[3]?G:D):n===G||n===D?n=Z:n===K||n===R?n=W:(n=Z,s=void 0);const h=n===Z&&t[e+1].startsWith("/>")?" ":"";r+=n===W?i+I:a>=0?(o.push(l),i.slice(0,a)+A+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!==_?_.createHTML(l):l,o]};class J{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]=Y(t,e);if(this.el=J.createElement(p,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.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(S)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+A).split(S),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?it:"?"===e[1]?st:"@"===e[1]?rt:et})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.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],M()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===E)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=U.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,o){var s,r,n,l;if(e===H)return e;let p=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=C(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=P(t,p._$AS(t,e.values),p,o)),e}class Q{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:U).importNode(i,!0);X.currentNode=s;let r=X.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new tt(r,r.nextSibling,this,t):1===p.type?e=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(e=new nt(r,this,t)),this._$AV.push(e),p=o[++l]}n!==(null==p?void 0:p.index)&&(r=X.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 tt{constructor(t,e,i,o){var s;this.type=2,this._$AH=L,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=P(this,t,e),C(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==H&&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!==L&&C(this._$AH)?this._$AA.nextSibling.data=t:this.$(U.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=J.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 Q(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new J(t)),e}T(t){B(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 tt(this.k(M()),this.k(M()),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 et{constructor(t,e,i,o,s){this.type=1,this._$AH=L,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=L}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=P(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=P(this,o[i+n],e,n),l===H&&(l=this._$AH[n]),r||(r=!C(l)||l!==this._$AH[n]),l===L?t=L:t!==L&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}const ot=O?O.emptyScript:"";class st extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==L?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class rt extends et{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=P(this,t,e,0))&&void 0!==i?i:L)===H)return;const o=this._$AH,s=t===L&&o!==L||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==L&&(o===L||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 nt{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){P(this,t)}}const lt=N.litHtmlPolyfillSupport;null==lt||lt(J,tt),(null!==(k=N.litHtmlVersions)&&void 0!==k?k:N.litHtmlVersions=[]).push("2.7.3");
|
|
116
116
|
/**
|
|
117
117
|
* @license
|
|
118
118
|
* Copyright 2020 Google LLC
|
|
119
119
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
120
|
*/
|
|
121
|
-
const
|
|
121
|
+
const pt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===pt)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:pt}),ht=new Map,ct=(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=at(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=ht.get(t))&&(n.raw=n,ht.set(t,e=n)),i=l}return t(e,...i)})(F);var dt;!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"}(dt||(dt={}));const xt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),gt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),yt={fontFamily:gt,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")},ut=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",xt),vt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),mt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),$t=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",yt.lineHeight,"1.2"),wt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",xt),zt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),jt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"1.7"),_t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",gt),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"1.5"),Mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",gt),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"1.7"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Zt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",gt),Dt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),qt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",yt.lineHeight,"1.5"),Ht=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",gt),Vt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),Jt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",yt.lineHeight,"1.4"),Pt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit"),Qt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",gt),te=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),ee=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),ie=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),oe=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",yt.lineHeight,"1.33"),se=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),re=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",gt),ne=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),le=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),pe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),ae=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"1.6"),fe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),he=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",gt),ce=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),de=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),xe=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),ge=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",yt.lineHeight,"1.6"),ye=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),ue=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",gt),ve=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),me=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),be=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),$e=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",yt.lineHeight,"1.15"),we=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase"),ke=i.css`
|
|
122
122
|
.ft-typography--title {
|
|
123
|
-
font-family: ${
|
|
124
|
-
font-size: ${
|
|
125
|
-
font-weight: ${
|
|
126
|
-
letter-spacing: ${
|
|
127
|
-
line-height: ${
|
|
128
|
-
text-transform: ${
|
|
129
|
-
}
|
|
130
|
-
`,
|
|
123
|
+
font-family: ${ut};
|
|
124
|
+
font-size: ${vt};
|
|
125
|
+
font-weight: ${mt};
|
|
126
|
+
letter-spacing: ${bt};
|
|
127
|
+
line-height: ${$t};
|
|
128
|
+
text-transform: ${wt};
|
|
129
|
+
}
|
|
130
|
+
`,ze=i.css`
|
|
131
131
|
.ft-typography--title-dense {
|
|
132
|
-
font-family: ${
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
138
|
-
}
|
|
139
|
-
`,
|
|
132
|
+
font-family: ${kt};
|
|
133
|
+
font-size: ${zt};
|
|
134
|
+
font-weight: ${jt};
|
|
135
|
+
letter-spacing: ${Nt};
|
|
136
|
+
line-height: ${Ot};
|
|
137
|
+
text-transform: ${_t};
|
|
138
|
+
}
|
|
139
|
+
`,je=i.css`
|
|
140
140
|
.ft-typography--subtitle1 {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
141
|
+
font-family: ${At};
|
|
142
|
+
font-size: ${St};
|
|
143
|
+
font-weight: ${Et};
|
|
144
|
+
letter-spacing: ${It};
|
|
145
|
+
line-height: ${Ut};
|
|
146
|
+
text-transform: ${Mt};
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,Ne=i.css`
|
|
149
149
|
.ft-typography--subtitle2 {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
150
|
+
font-family: ${Ct};
|
|
151
|
+
font-size: ${Bt};
|
|
152
|
+
font-weight: ${Tt};
|
|
153
|
+
letter-spacing: ${Wt};
|
|
154
|
+
line-height: ${Kt};
|
|
155
|
+
text-transform: ${Rt};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
`,
|
|
158
|
+
`,Oe=i.css`
|
|
159
159
|
.ft-typography--body1 {
|
|
160
|
-
font-family: ${
|
|
161
|
-
font-size: ${
|
|
162
|
-
font-weight: ${
|
|
163
|
-
letter-spacing: ${
|
|
164
|
-
line-height: ${
|
|
165
|
-
text-transform: ${
|
|
160
|
+
font-family: ${Zt};
|
|
161
|
+
font-size: ${Dt};
|
|
162
|
+
font-weight: ${Gt};
|
|
163
|
+
letter-spacing: ${qt};
|
|
164
|
+
line-height: ${Ft};
|
|
165
|
+
text-transform: ${Ht};
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
167
|
+
`,_e=i.css`
|
|
168
168
|
.ft-typography--body2 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
169
|
+
font-family: ${Lt};
|
|
170
|
+
font-size: ${Vt};
|
|
171
|
+
font-weight: ${Xt};
|
|
172
|
+
letter-spacing: ${Yt};
|
|
173
|
+
line-height: ${Jt};
|
|
174
|
+
text-transform: ${Pt};
|
|
175
175
|
}
|
|
176
|
-
`,
|
|
176
|
+
`,Ae=i.css`
|
|
177
177
|
.ft-typography--caption {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
178
|
+
font-family: ${Qt};
|
|
179
|
+
font-size: ${te};
|
|
180
|
+
font-weight: ${ee};
|
|
181
|
+
letter-spacing: ${ie};
|
|
182
|
+
line-height: ${oe};
|
|
183
|
+
text-transform: ${se};
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,Se=i.css`
|
|
186
186
|
.ft-typography--breadcrumb {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
187
|
+
font-family: ${re};
|
|
188
|
+
font-size: ${ne};
|
|
189
|
+
font-weight: ${le};
|
|
190
|
+
letter-spacing: ${pe};
|
|
191
|
+
line-height: ${ae};
|
|
192
|
+
text-transform: ${fe};
|
|
193
193
|
}
|
|
194
|
-
`,
|
|
194
|
+
`,Ee=i.css`
|
|
195
195
|
.ft-typography--overline {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
202
|
-
}
|
|
203
|
-
`,
|
|
196
|
+
font-family: ${he};
|
|
197
|
+
font-size: ${ce};
|
|
198
|
+
font-weight: ${de};
|
|
199
|
+
letter-spacing: ${xe};
|
|
200
|
+
line-height: ${ge};
|
|
201
|
+
text-transform: ${ye};
|
|
202
|
+
}
|
|
203
|
+
`,Ie=i.css`
|
|
204
204
|
.ft-typography--button {
|
|
205
|
-
font-family: ${
|
|
206
|
-
font-size: ${
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
211
|
-
}
|
|
212
|
-
`,
|
|
205
|
+
font-family: ${ue};
|
|
206
|
+
font-size: ${ve};
|
|
207
|
+
font-weight: ${me};
|
|
208
|
+
letter-spacing: ${be};
|
|
209
|
+
line-height: ${$e};
|
|
210
|
+
text-transform: ${we};
|
|
211
|
+
}
|
|
212
|
+
`,Ue=i.css`
|
|
213
213
|
.ft-typography {
|
|
214
214
|
vertical-align: inherit;
|
|
215
215
|
}
|
|
216
|
-
`;var
|
|
217
|
-
<${
|
|
216
|
+
`;var Me,Ce,Be=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 Te extends e.FtLitElement{constructor(){super(...arguments),this.variant=dt.body1}render(){return this.element?ct`
|
|
217
|
+
<${ft(this.element)}
|
|
218
218
|
class="ft-typography ft-typography--${this.variant}">
|
|
219
219
|
<slot></slot>
|
|
220
|
-
</${
|
|
221
|
-
`:
|
|
220
|
+
</${ft(this.element)}>
|
|
221
|
+
`:ct`
|
|
222
222
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
223
|
-
`}}
|
|
223
|
+
`}}Te.styles=[ke,ze,je,Ne,Oe,_e,Ae,Se,Ee,Ie,Ue],Be([o.property()],Te.prototype,"element",void 0),Be([o.property()],Te.prototype,"variant",void 0),e.customElement("ft-typography")(Te),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.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=""}(Me||(Me={})),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=""}(Ce||(Ce={})),new Map([...["abw"].map((t=>[t,Ce.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,Ce.AUDIO])),...["avi"].map((t=>[t,Ce.AVI])),...["chm","xhs"].map((t=>[t,Ce.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,Ce.CODE])),...["csv"].map((t=>[t,Ce.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ce.DITA])),...["epub"].map((t=>[t,Ce.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ce.EXCEL])),...["flac"].map((t=>[t,Ce.FLAC])),...["gif"].map((t=>[t,Ce.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ce.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ce.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,Ce.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ce.JPEG])),...["json"].map((t=>[t,Ce.JSON])),...["m4a","m4p"].map((t=>[t,Ce.M4A])),...["mov","qt"].map((t=>[t,Ce.MOV])),...["mp3"].map((t=>[t,Ce.MP3])),...["mp4","m4v"].map((t=>[t,Ce.MP4])),...["ogg","oga"].map((t=>[t,Ce.OGG])),...["pdf","ps"].map((t=>[t,Ce.PDF])),...["png"].map((t=>[t,Ce.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ce.POWERPOINT])),...["rar"].map((t=>[t,Ce.RAR])),...["stp"].map((t=>[t,Ce.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ce.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,Ce.VIDEO])),...["wav"].map((t=>[t,Ce.WAV])),...["wma"].map((t=>[t,Ce.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ce.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ce.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ce.YAML])),...["zip"].map((t=>[t,Ce.ZIP]))]);const We=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")),Re=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ze=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),De=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ge=i.css`
|
|
224
224
|
:host, i.ft-icon {
|
|
225
225
|
display: inline-flex;
|
|
226
226
|
align-items: center;
|
|
@@ -229,14 +229,14 @@ const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
:host {
|
|
232
|
-
width: ${
|
|
233
|
-
height: ${
|
|
232
|
+
width: ${We};
|
|
233
|
+
height: ${We};
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
i.ft-icon {
|
|
237
237
|
width: 100%;
|
|
238
238
|
height: 100%;
|
|
239
|
-
font-size: ${
|
|
239
|
+
font-size: ${We};
|
|
240
240
|
line-height: 1;
|
|
241
241
|
font-weight: normal;
|
|
242
242
|
text-transform: none;
|
|
@@ -247,32 +247,32 @@ const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
247
247
|
text-rendering: auto;
|
|
248
248
|
-webkit-font-smoothing: antialiased;
|
|
249
249
|
-moz-osx-font-smoothing: grayscale;
|
|
250
|
-
vertical-align: ${
|
|
250
|
+
vertical-align: ${De};
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
i.ft-icon.ft-icon--fluid-topics {
|
|
254
|
-
font-family: ${
|
|
254
|
+
font-family: ${Ke}, ft-icons, fticons, sans-serif;
|
|
255
255
|
|
|
256
256
|
/* Ugly fix because font is broken */
|
|
257
|
-
font-size: calc(0.
|
|
257
|
+
font-size: calc(0.75 * ${We});
|
|
258
258
|
position: relative;
|
|
259
|
-
top: -
|
|
259
|
+
top: -4%;
|
|
260
260
|
justify-content: center;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.ft-icon--file-format {
|
|
264
|
-
font-family: ${
|
|
264
|
+
font-family: ${Re}, ft-mime, sans-serif;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.ft-icon--material {
|
|
268
|
-
font-family: ${
|
|
268
|
+
font-family: ${Ze}, "Material Icons", sans-serif;
|
|
269
269
|
}
|
|
270
|
-
`;var
|
|
271
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
270
|
+
`;var qe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(qe||(qe={}));var Fe=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 He extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(qe).includes(this.variant)?this.variant:qe.fluid_topics,e=t!==qe.material||!!this.value;return i.html`
|
|
271
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
272
272
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
273
|
-
<slot ?hidden=${
|
|
273
|
+
<slot ?hidden=${e}></slot>
|
|
274
274
|
</i>
|
|
275
|
-
`}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 o=this.value||this.textContent;switch(this.variant){case
|
|
275
|
+
`}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 o=this.value||this.textContent;switch(this.variant){case qe.file_format:this.resolvedIcon=null!==(t=Ce[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case qe.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=Me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}He.elementDefinitions={},He.styles=Ge,Fe([o.property()],He.prototype,"variant",void 0),Fe([o.property()],He.prototype,"value",void 0),Fe([o.state()],He.prototype,"resolvedIcon",void 0),Fe([o.query("slot")],He.prototype,"slottedContent",void 0),e.customElement("ft-icon")(He);const Le={horizontalSpacing:e.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system")},Ve=i.css`
|
|
276
276
|
.ft-accordion-item {
|
|
277
277
|
display: flex;
|
|
278
278
|
flex-direction: column;
|
|
@@ -285,8 +285,8 @@ const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
285
285
|
display: flex;
|
|
286
286
|
align-items: center;
|
|
287
287
|
cursor: pointer;
|
|
288
|
-
padding: ${
|
|
289
|
-
gap: calc(${
|
|
288
|
+
padding: ${Le.verticalSpacing} ${Le.horizontalSpacing};
|
|
289
|
+
gap: calc(${Le.horizontalSpacing} / 2);
|
|
290
290
|
outline: none;
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -311,13 +311,13 @@ const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
311
311
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
312
312
|
height: initial;
|
|
313
313
|
overflow: visible;
|
|
314
|
-
padding: ${
|
|
314
|
+
padding: ${Le.verticalSpacing} ${Le.horizontalSpacing};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-accordion-item--separator {
|
|
318
|
-
border-bottom: 1px solid ${
|
|
318
|
+
border-bottom: 1px solid ${Le.colorOutline};
|
|
319
319
|
}
|
|
320
|
-
`;var
|
|
320
|
+
`;var Xe=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 Ye extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
|
|
321
321
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
322
322
|
<div class="ft-accordion-item--toggle"
|
|
323
323
|
part="toggle"
|
|
@@ -329,7 +329,7 @@ const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
329
329
|
aria-expanded="${this.active}">
|
|
330
330
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
331
331
|
${this.icon?i.html`
|
|
332
|
-
<ft-icon variant="
|
|
332
|
+
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
333
333
|
`:null}
|
|
334
334
|
${this.label?i.html`
|
|
335
335
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
@@ -347,4 +347,4 @@ const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
347
347
|
</div>
|
|
348
348
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
349
349
|
</div>
|
|
350
|
-
`}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)}}
|
|
350
|
+
`}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)}}Ye.elementDefinitions={"ft-ripple":j,"ft-typography":Te,"ft-icon":He},Ye.styles=Ve,Xe([o.property()],Ye.prototype,"icon",void 0),Xe([o.property()],Ye.prototype,"iconVariant",void 0),Xe([o.property()],Ye.prototype,"label",void 0),Xe([o.property({type:Boolean,reflect:!0})],Ye.prototype,"active",void 0),e.customElement("ft-accordion")(p),e.customElement("ft-accordion-item")(Ye),t.FtAccordion=p,t.FtAccordionCssVariables={},t.FtAccordionItem=Ye,t.FtAccordionItemCssVariables=Le,t.itemStyles=Ve,t.styles=n}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|