@fluid-topics/ft-accordion 0.2.14 → 0.2.17
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.inline-styles.js +110 -107
- package/build/ft-accordion.light.js +33 -31
- package/build/ft-accordion.min.js +113 -110
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let p=i.call(o,t);p||(p=h(t),e.call(o,t,p)),this===window.customElements&&(n.set(s,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(ci){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class t{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -40,12 +40,13 @@ function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const n=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
|
|
43
|
+
*/var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const n=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
|
|
48
|
+
*/
|
|
49
|
+
const a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new Map;class p{constructor(t,e){if(this._$cssResult$=!0,e!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=c.get(this.cssText);return a&&void 0===t&&(c.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const h=t=>new p("string"==typeof t?t:t+"",l),f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new p(i,l)},d=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},u=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
|
|
49
50
|
/**
|
|
50
51
|
* @license
|
|
51
52
|
* Copyright 2017 Google LLC
|
|
@@ -56,28 +57,28 @@ function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
56
57
|
* Copyright 2017 Google LLC
|
|
57
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
59
|
*/
|
|
59
|
-
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const S=globalThis.trustedTypes,N=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,
|
|
60
|
+
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const S=globalThis.trustedTypes,N=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,k=`<${E}>`,R=document,M=(t="")=>R.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,A=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,B=/'/g,T=/"/g,_=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,I=R.createTreeWalker(R,129,null,!1),H=(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 a,l,c=-1,p=0;for(;p<i.length&&(n.lastIndex=p,l=n.exec(i),null!==l);)p=n.lastIndex,n===z?"!--"===l[1]?n=j:void 0!==l[1]?n=A:void 0!==l[2]?(_.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=L):void 0!==l[3]&&(n=L):n===L?">"===l[0]?(n=null!=s?s:z,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?L:'"'===l[3]?T:B):n===T||n===B?n=L:n===j||n===A?n=z:(n=L,s=void 0);const h=n===L&&t[e+1].startsWith("/>")?" ":"";r+=n===z?i+k:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+C+h):i+C+(-2===c?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,c]=H(t,e);if(this.el=Z.createElement(l,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?Q:"@"===e[1]?tt:X})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(C),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),I.nextNode(),a.push({type:2,index:++s});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:s}),t+=C.length-1}s++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,o){var s,r,n,a;if(e===P)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.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)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,o)),e}class J{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);I.currentNode=s;let r=I.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new et(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=I.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class q{constructor(t,e,i,o){var s;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return F(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new J(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Z(t)),e}S(t){F(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.M(M()),this.M(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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class X{constructor(t,e,i,o,s){this.type=1,this._$AH=W,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=W}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=V(this,t,e,0),r=!U(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=V(this,o[i+n],e,n),a===P&&(a=this._$AH[n]),r||(r=!U(a)||a!==this._$AH[n]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.C(t)}C(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===W?void 0:t}}const G=S?S.emptyScript:"";class Q extends X{constructor(){super(...arguments),this.type=4}C(t){t&&t!==W?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class tt extends X{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=V(this,t,e,0))&&void 0!==i?i:W)===P)return;const o=this._$AH,s=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==W&&(o===W||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const it=window.litHtmlPolyfillSupport;
|
|
60
61
|
/**
|
|
61
62
|
* @license
|
|
62
63
|
* Copyright 2017 Google LLC
|
|
63
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
65
|
*/
|
|
65
|
-
var ot,st;null==it||it(Z,
|
|
66
|
+
var ot,st;null==it||it(Z,q),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");class rt extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new q(e.insertBefore(M(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return P}}rt.finalized=!0,rt._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:rt});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:rt}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.0");class at{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new at(t,e,void 0,i)}static extend(t,e,i){return new at(t,e.category,e,i)}static external(t,e){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return f`var(${h(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):h(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const lt={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:at.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:at.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:at.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:at.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:at.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:at.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:at.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:at.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:at.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
67
|
/**
|
|
67
68
|
* @license
|
|
68
69
|
* Copyright 2021 Google LLC
|
|
69
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/
|
|
71
|
+
*/var ct,pt,ht=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(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 ft extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return d(s,this.constructor.elementStyles),s}}}(rt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),D`
|
|
71
72
|
${t.map((t=>D`
|
|
72
73
|
<style>${t}</style>
|
|
73
74
|
`))}
|
|
74
75
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}function
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,r,n;let a=[];for(let l of t){let t=null==l?void 0:l.trim();if(t)for(let l of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){let e=null!==(s=null===(o=l.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=l.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];const c=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));a.push(...c)}}this.setAttribute("exportparts",a.join(", "))}contentAvailableCallback(t){}}function dt(t){var e;let i;if("elementDefinitions"in t){i={};const e=t.elementDefinitions;for(let t in e)i[t]=dt(e[t])}return e=class extends t{render(){var e;let i=null!==(e=t.styles)&&void 0!==e?e:[];return Array.isArray(i)||(i=[i]),D`
|
|
76
77
|
${i.map((t=>D`
|
|
77
78
|
<style>${t}</style>
|
|
78
79
|
`))}
|
|
79
80
|
${super.render()}
|
|
80
|
-
`}},e.styles=void 0,e.elementDefinitions=i,e}
|
|
81
|
+
`}},e.styles=void 0,e.elementDefinitions=i,e}ht([i()],ft.prototype,"exportpartsPrefix",void 0),ht([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],ft.prototype,"exportpartsPrefixes",void 0),f`
|
|
81
82
|
.ft-no-text-select {
|
|
82
83
|
-webkit-touch-callout: none;
|
|
83
84
|
-webkit-user-select: none;
|
|
@@ -86,26 +87,26 @@ var ot,st;null==it||it(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O
|
|
|
86
87
|
-ms-user-select: none;
|
|
87
88
|
user-select: none;
|
|
88
89
|
}
|
|
89
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
90
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(pt=null===(ct=window.safari)||void 0===ct?void 0:ct.pushNotification)||void 0===pt||pt.toString());var ut=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(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 yt extends ft{constructor(){super(...arguments),this.multi=!1}render(){return D`
|
|
90
91
|
<div class="ft-accordion">
|
|
91
92
|
<slot @activated=${this.onChange}></slot>
|
|
92
93
|
</div>
|
|
93
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}
|
|
94
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}yt.elementDefinitions={},yt.styles=f`
|
|
94
95
|
.ft-accordion {
|
|
95
96
|
box-sizing: border-box;
|
|
96
97
|
}
|
|
97
|
-
`,
|
|
98
|
+
`,ut([i({type:Boolean})],yt.prototype,"multi",void 0),ut([s("slot")],yt.prototype,"content",void 0);
|
|
98
99
|
/**
|
|
99
100
|
* @license
|
|
100
101
|
* Copyright 2017 Google LLC
|
|
101
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
103
|
*/
|
|
103
|
-
const
|
|
104
|
+
const xt=1,gt=2,vt=t=>(...e)=>({_$litDirective$:t,values:e});class mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
104
105
|
/**
|
|
105
106
|
* @license
|
|
106
107
|
* Copyright 2018 Google LLC
|
|
107
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
|
-
*/const
|
|
109
|
+
*/const bt=vt(class extends mt{constructor(t){var e;if(super(t),t.type!==xt||"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.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return P}});var wt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const $t=at.extend("--ft-ripple-color",lt.colorContent),Ot=$t,St=at.extend("--ft-ripple-background-color",$t),Nt=at.external(lt.opacityContentOnSurfacePressed,"Design system"),Ct=at.external(lt.opacityContentOnSurfaceHover,"Design system"),Et=at.external(lt.opacityContentOnSurfaceFocused,"Design system"),kt=at.external(lt.opacityContentOnSurfaceSelected,"Design system"),Rt=at.extend("--ft-ripple-color",lt.colorPrimary),Mt=Rt,Ut=at.extend("--ft-ripple-background-color",Rt),Ft=at.extend("--ft-ripple-color",lt.colorSecondary),zt=Ft,jt=at.extend("--ft-ripple-background-color",Ft);class At extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new t(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return D`
|
|
109
110
|
<style>
|
|
110
111
|
.ft-ripple .ft-ripple--effect,
|
|
111
112
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -118,11 +119,11 @@ const yt=1,xt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructo
|
|
|
118
119
|
top: ${this.originY}px;
|
|
119
120
|
}
|
|
120
121
|
</style>
|
|
121
|
-
<div class="${
|
|
122
|
+
<div class="${bt(t)}">
|
|
122
123
|
<div class="ft-ripple--background"></div>
|
|
123
124
|
<div class="ft-ripple--effect"></div>
|
|
124
125
|
</div>
|
|
125
|
-
`}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(){var t;super.connectedCallback();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}}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()}}
|
|
126
|
+
`}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(){var t;super.connectedCallback();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}}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()}}At.elementDefinitions={},At.styles=f`
|
|
126
127
|
:host {
|
|
127
128
|
display: contents;
|
|
128
129
|
}
|
|
@@ -144,27 +145,27 @@ const yt=1,xt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructo
|
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
.ft-ripple .ft-ripple--background {
|
|
147
|
-
background-color: ${
|
|
148
|
+
background-color: ${St};
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
.ft-ripple .ft-ripple--effect {
|
|
151
|
-
background-color: ${
|
|
152
|
+
background-color: ${Ot};
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
155
|
-
background-color: ${
|
|
156
|
+
background-color: ${jt};
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
159
|
-
background-color: ${
|
|
160
|
+
background-color: ${zt};
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
163
|
-
background-color: ${
|
|
164
|
+
background-color: ${Ut};
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
167
|
-
background-color: ${
|
|
168
|
+
background-color: ${Mt};
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
.ft-ripple .ft-ripple--background {
|
|
@@ -196,7 +197,7 @@ const yt=1,xt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructo
|
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
199
|
-
opacity: ${
|
|
200
|
+
opacity: ${Ct};
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
@@ -204,142 +205,144 @@ const yt=1,xt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructo
|
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
207
|
-
opacity: ${
|
|
208
|
+
opacity: ${Et};
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
211
|
-
opacity: ${
|
|
212
|
+
opacity: ${Nt};
|
|
212
213
|
transform: translate(-50%, -50%) scale(1);
|
|
213
214
|
}
|
|
214
|
-
`,
|
|
215
|
+
`,wt([i({type:Boolean})],At.prototype,"primary",void 0),wt([i({type:Boolean})],At.prototype,"secondary",void 0),wt([i({type:Boolean})],At.prototype,"unbounded",void 0),wt([i({type:Boolean})],At.prototype,"activated",void 0),wt([i({type:Boolean})],At.prototype,"selected",void 0),wt([i({type:Boolean})],At.prototype,"disabled",void 0),wt([o()],At.prototype,"hovered",void 0),wt([o()],At.prototype,"focused",void 0),wt([o()],At.prototype,"pressed",void 0),wt([o()],At.prototype,"rippling",void 0),wt([o()],At.prototype,"rippleSize",void 0),wt([o()],At.prototype,"originX",void 0),wt([o()],At.prototype,"originY",void 0),wt([s(".ft-ripple")],At.prototype,"ripple",void 0),wt([s(".ft-ripple--effect")],At.prototype,"rippleEffect",void 0),n("ft-ripple")(At);
|
|
215
216
|
/**
|
|
216
217
|
* @license
|
|
217
218
|
* Copyright 2020 Google LLC
|
|
218
219
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
219
220
|
*/
|
|
220
|
-
const
|
|
221
|
+
const Lt=Symbol.for(""),Bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===Lt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Tt=t=>({_$litStatic$:t,r:Lt}),_t=new Map,Dt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],s=Bt(r));)l+=s+e[++c],p=!0;a.push(r),n.push(l),c++}if(c===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=_t.get(t))&&(n.raw=n,_t.set(t,e=n)),i=a}return t(e,...i)})(D);var Pt,Wt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Pt||(Pt={}));const Kt=at.extend("--ft-typography-font-family",lt.titleFont),It=at.extend("--ft-typography-font-family",lt.contentFont),Ht={fontFamily:It,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},Zt=at.extend("--ft-typography-title-font-family",Kt),Vt=at.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Jt=at.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),qt=at.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),Xt=at.extend("--ft-typography-title-line-height",Ht.lineHeight,"1.2"),Yt=at.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Gt=at.extend("--ft-typography-title-dense-font-family",Kt),Qt=at.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),te=at.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),ee=at.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),ie=at.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"1.7"),oe=at.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),se=at.extend("--ft-typography-subtitle1-font-family",It),re=at.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),ne=at.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),ae=at.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),le=at.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"1.5"),ce=at.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),pe=at.extend("--ft-typography-subtitle2-font-family",It),he=at.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),fe=at.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),de=at.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),ue=at.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"1.7"),ye=at.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),xe=at.extend("--ft-typography-body1-font-family",It),ge=at.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),ve=at.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),me=at.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),be=at.extend("--ft-typography-body1-line-height",Ht.lineHeight,"1.5"),we=at.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit"),$e=at.extend("--ft-typography-body2-font-family",It),Oe=at.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),Se=at.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),Ne=at.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),Ce=at.extend("--ft-typography-body2-line-height",Ht.lineHeight,"1.4"),Ee=at.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit"),ke=at.extend("--ft-typography-caption-font-family",It),Re=at.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),Me=at.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),Ue=at.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),Fe=at.extend("--ft-typography-caption-line-height",Ht.lineHeight,"1.33"),ze=at.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit"),je=at.extend("--ft-typography-breadcrumb-font-family",It),Ae=at.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),Le=at.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),Be=at.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Te=at.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"1.6"),_e=at.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),De=at.extend("--ft-typography-overline-font-family",It),Pe=at.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),We=at.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),Ke=at.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Ie=at.extend("--ft-typography-overline-line-height",Ht.lineHeight,"1.6"),He=at.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),Ze=at.extend("--ft-typography-button-font-family",It),Ve=at.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),Je=at.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),qe=at.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),Xe=at.extend("--ft-typography-button-line-height",Ht.lineHeight,"1.15"),Ye=at.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase"),Ge=f`
|
|
221
222
|
.ft-typography--title {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
223
|
+
font-family: ${Zt};
|
|
224
|
+
font-size: ${Vt};
|
|
225
|
+
font-weight: ${Jt};
|
|
225
226
|
letter-spacing: ${qt};
|
|
226
227
|
line-height: ${Xt};
|
|
227
|
-
text-transform: ${
|
|
228
|
+
text-transform: ${Yt};
|
|
228
229
|
}
|
|
229
|
-
`,
|
|
230
|
+
`,Qe=f`
|
|
230
231
|
.ft-typography--title-dense {
|
|
231
|
-
font-family: ${
|
|
232
|
-
font-size: ${
|
|
233
|
-
font-weight: ${
|
|
234
|
-
letter-spacing: ${
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
232
|
+
font-family: ${Gt};
|
|
233
|
+
font-size: ${Qt};
|
|
234
|
+
font-weight: ${te};
|
|
235
|
+
letter-spacing: ${ee};
|
|
236
|
+
line-height: ${ie};
|
|
237
|
+
text-transform: ${oe};
|
|
237
238
|
}
|
|
238
|
-
`,
|
|
239
|
+
`,ti=f`
|
|
239
240
|
.ft-typography--subtitle1 {
|
|
240
|
-
font-family: ${
|
|
241
|
-
font-size: ${
|
|
242
|
-
font-weight: ${
|
|
243
|
-
letter-spacing: ${
|
|
244
|
-
line-height: ${
|
|
245
|
-
text-transform: ${
|
|
241
|
+
font-family: ${se};
|
|
242
|
+
font-size: ${re};
|
|
243
|
+
font-weight: ${ne};
|
|
244
|
+
letter-spacing: ${ae};
|
|
245
|
+
line-height: ${le};
|
|
246
|
+
text-transform: ${ce};
|
|
246
247
|
}
|
|
247
|
-
`,
|
|
248
|
+
`,ei=f`
|
|
248
249
|
.ft-typography--subtitle2 {
|
|
249
250
|
font-family: ${pe};
|
|
250
|
-
font-size: ${
|
|
251
|
-
font-weight: ${
|
|
252
|
-
letter-spacing: ${
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
251
|
+
font-size: ${he};
|
|
252
|
+
font-weight: ${fe};
|
|
253
|
+
letter-spacing: ${de};
|
|
254
|
+
line-height: ${ue};
|
|
255
|
+
text-transform: ${ye};
|
|
255
256
|
}
|
|
256
257
|
|
|
257
|
-
`,
|
|
258
|
+
`,ii=f`
|
|
258
259
|
.ft-typography--body1 {
|
|
259
|
-
font-family: ${
|
|
260
|
-
font-size: ${
|
|
261
|
-
font-weight: ${
|
|
262
|
-
letter-spacing: ${
|
|
263
|
-
line-height: ${
|
|
264
|
-
text-transform: ${
|
|
260
|
+
font-family: ${xe};
|
|
261
|
+
font-size: ${ge};
|
|
262
|
+
font-weight: ${ve};
|
|
263
|
+
letter-spacing: ${me};
|
|
264
|
+
line-height: ${be};
|
|
265
|
+
text-transform: ${we};
|
|
265
266
|
}
|
|
266
|
-
`,
|
|
267
|
+
`,oi=f`
|
|
267
268
|
.ft-typography--body2 {
|
|
268
|
-
font-family: ${
|
|
269
|
-
font-size: ${
|
|
270
|
-
font-weight: ${
|
|
271
|
-
letter-spacing: ${
|
|
272
|
-
line-height: ${
|
|
273
|
-
text-transform: ${
|
|
269
|
+
font-family: ${$e};
|
|
270
|
+
font-size: ${Oe};
|
|
271
|
+
font-weight: ${Se};
|
|
272
|
+
letter-spacing: ${Ne};
|
|
273
|
+
line-height: ${Ce};
|
|
274
|
+
text-transform: ${Ee};
|
|
274
275
|
}
|
|
275
|
-
`,
|
|
276
|
+
`,si=f`
|
|
276
277
|
.ft-typography--caption {
|
|
277
278
|
font-family: ${ke};
|
|
278
|
-
font-size: ${
|
|
279
|
-
font-weight: ${
|
|
280
|
-
letter-spacing: ${
|
|
281
|
-
line-height: ${
|
|
282
|
-
text-transform: ${
|
|
279
|
+
font-size: ${Re};
|
|
280
|
+
font-weight: ${Me};
|
|
281
|
+
letter-spacing: ${Ue};
|
|
282
|
+
line-height: ${Fe};
|
|
283
|
+
text-transform: ${ze};
|
|
283
284
|
}
|
|
284
|
-
`,
|
|
285
|
+
`,ri=f`
|
|
285
286
|
.ft-typography--breadcrumb {
|
|
286
|
-
font-family: ${
|
|
287
|
-
font-size: ${
|
|
288
|
-
font-weight: ${
|
|
289
|
-
letter-spacing: ${
|
|
287
|
+
font-family: ${je};
|
|
288
|
+
font-size: ${Ae};
|
|
289
|
+
font-weight: ${Le};
|
|
290
|
+
letter-spacing: ${Be};
|
|
290
291
|
line-height: ${Te};
|
|
291
|
-
text-transform: ${
|
|
292
|
+
text-transform: ${_e};
|
|
292
293
|
}
|
|
293
|
-
`,
|
|
294
|
+
`,ni=f`
|
|
294
295
|
.ft-typography--overline {
|
|
295
|
-
font-family: ${
|
|
296
|
-
font-size: ${
|
|
297
|
-
font-weight: ${
|
|
298
|
-
letter-spacing: ${
|
|
296
|
+
font-family: ${De};
|
|
297
|
+
font-size: ${Pe};
|
|
298
|
+
font-weight: ${We};
|
|
299
|
+
letter-spacing: ${Ke};
|
|
299
300
|
line-height: ${Ie};
|
|
300
|
-
text-transform: ${
|
|
301
|
+
text-transform: ${He};
|
|
301
302
|
}
|
|
302
|
-
`,
|
|
303
|
+
`,ai=f`
|
|
303
304
|
.ft-typography--button {
|
|
304
|
-
font-family: ${
|
|
305
|
-
font-size: ${
|
|
306
|
-
font-weight: ${
|
|
305
|
+
font-family: ${Ze};
|
|
306
|
+
font-size: ${Ve};
|
|
307
|
+
font-weight: ${Je};
|
|
307
308
|
letter-spacing: ${qe};
|
|
308
309
|
line-height: ${Xe};
|
|
309
|
-
text-transform: ${
|
|
310
|
+
text-transform: ${Ye};
|
|
310
311
|
}
|
|
311
|
-
`;class
|
|
312
|
+
`;class li extends ft{constructor(){super(...arguments),this.variant=Pt.body1}render(){return this.element?Dt`
|
|
312
313
|
<${Tt(this.element)}
|
|
313
314
|
class="ft-typography ft-typography--${this.variant}">
|
|
314
315
|
<slot></slot>
|
|
315
316
|
</${Tt(this.element)}>
|
|
316
|
-
`:
|
|
317
|
+
`:Dt`
|
|
317
318
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
318
|
-
`}}
|
|
319
|
+
`}}li.styles=[Ge,Qe,ti,ei,ii,oi,si,ri,ni,ai,f`
|
|
319
320
|
.ft-typography {
|
|
320
321
|
vertical-align: inherit;
|
|
321
322
|
}
|
|
322
|
-
`],
|
|
323
|
+
`],Wt([i()],li.prototype,"element",void 0),Wt([i()],li.prototype,"variant",void 0),n("ft-typography")(li);
|
|
323
324
|
/**
|
|
324
325
|
* @license
|
|
325
326
|
* Copyright 2017 Google LLC
|
|
326
327
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
327
328
|
*/
|
|
328
|
-
class
|
|
329
|
+
class ci extends mt{constructor(t){if(super(t),this.it=W,t.type!==gt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.ft=void 0,this.it=t;if(t===P)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ci.directiveName="unsafeHTML",ci.resultType=1;const pi=vt(ci);var hi,fi;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(hi||(hi={})),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=""}(fi||(fi={})),new Map([...["abw"].map((t=>[t,fi.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,fi.AUDIO])),...["avi"].map((t=>[t,fi.AVI])),...["chm","xhs"].map((t=>[t,fi.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,fi.CODE])),...["csv"].map((t=>[t,fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fi.DITA])),...["epub"].map((t=>[t,fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fi.EXCEL])),...["flac"].map((t=>[t,fi.FLAC])),...["gif"].map((t=>[t,fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,fi.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,fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fi.JPEG])),...["json"].map((t=>[t,fi.JSON])),...["m4a","m4p"].map((t=>[t,fi.M4A])),...["mov","qt"].map((t=>[t,fi.MOV])),...["mp3"].map((t=>[t,fi.MP3])),...["mp4","m4v"].map((t=>[t,fi.MP4])),...["ogg","oga"].map((t=>[t,fi.OGG])),...["pdf","ps"].map((t=>[t,fi.PDF])),...["png"].map((t=>[t,fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fi.POWERPOINT])),...["rar"].map((t=>[t,fi.RAR])),...["stp"].map((t=>[t,fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fi.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,fi.VIDEO])),...["wav"].map((t=>[t,fi.WAV])),...["wma"].map((t=>[t,fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fi.YAML])),...["zip"].map((t=>[t,fi.ZIP]))]);var di,ui=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(di||(di={}));const yi=at.create("--ft-icon-font-size","SIZE","24px"),xi=at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),gi=at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),vi=at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class mi extends ft{constructor(){super(...arguments),this.variant=di.fluid_topics}render(){return D`
|
|
329
330
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
330
331
|
${pi(this.getIcon())}
|
|
331
332
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
332
333
|
</i>
|
|
333
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===
|
|
334
|
-
:host
|
|
334
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===di.file_format?null!==(t=fi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===di.fluid_topics?null!==(e=hi[i.toUpperCase()])&&void 0!==e?e:i:W}}mi.elementDefinitions={},mi.styles=f`
|
|
335
|
+
:host {
|
|
335
336
|
display: inline-block;
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
}
|
|
338
|
+
:host, i.ft-icon {
|
|
339
|
+
width: ${yi};
|
|
340
|
+
height: ${yi};
|
|
338
341
|
text-align: center;
|
|
339
342
|
}
|
|
340
343
|
|
|
341
344
|
i.ft-icon {
|
|
342
|
-
font-size: ${
|
|
345
|
+
font-size: ${yi};
|
|
343
346
|
line-height: 1;
|
|
344
347
|
font-weight: normal;
|
|
345
348
|
text-transform: none;
|
|
@@ -353,17 +356,17 @@ class li extends vt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
353
356
|
}
|
|
354
357
|
|
|
355
358
|
.ft-icon--fluid-topics {
|
|
356
|
-
font-family: ${
|
|
359
|
+
font-family: ${xi}, ft-icons, fticons, sans-serif;
|
|
357
360
|
}
|
|
358
361
|
|
|
359
362
|
.ft-icon--file-format {
|
|
360
|
-
font-family: ${
|
|
363
|
+
font-family: ${gi}, ft-mime, sans-serif;
|
|
361
364
|
}
|
|
362
365
|
|
|
363
366
|
.ft-icon--material {
|
|
364
|
-
font-family: ${
|
|
367
|
+
font-family: ${vi}, "Material Icons", sans-serif;
|
|
365
368
|
}
|
|
366
|
-
`,
|
|
369
|
+
`,ui([i()],mi.prototype,"variant",void 0),ui([s("slot")],mi.prototype,"slottedContent",void 0),n("ft-icon")(mi);var bi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const wi=at.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),$i=at.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Oi=at.external(lt.colorOutline,"Design system");class Si extends ft{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return D`
|
|
367
370
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
368
371
|
<div class="ft-accordion-item--toggle"
|
|
369
372
|
part="toggle"
|
|
@@ -387,7 +390,7 @@ class li extends vt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
387
390
|
</div>
|
|
388
391
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
389
392
|
</div>
|
|
390
|
-
`}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)}}
|
|
393
|
+
`}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)}}Si.elementDefinitions={"ft-ripple":At,"ft-typography":li,"ft-icon":mi},Si.styles=f`
|
|
391
394
|
.ft-accordion-item {
|
|
392
395
|
display: flex;
|
|
393
396
|
flex-direction: column;
|
|
@@ -400,8 +403,8 @@ class li extends vt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
400
403
|
display: flex;
|
|
401
404
|
align-items: center;
|
|
402
405
|
cursor: pointer;
|
|
403
|
-
padding: ${
|
|
404
|
-
gap: calc(${
|
|
406
|
+
padding: ${$i} ${wi};
|
|
407
|
+
gap: calc(${wi} / 2);
|
|
405
408
|
outline: none;
|
|
406
409
|
}
|
|
407
410
|
|
|
@@ -426,10 +429,10 @@ class li extends vt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
426
429
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
427
430
|
height: initial;
|
|
428
431
|
overflow: visible;
|
|
429
|
-
padding: ${
|
|
432
|
+
padding: ${$i} ${wi};
|
|
430
433
|
}
|
|
431
434
|
|
|
432
435
|
.ft-accordion-item--separator {
|
|
433
|
-
border-bottom: 1px solid ${
|
|
436
|
+
border-bottom: 1px solid ${Oi};
|
|
434
437
|
}
|
|
435
|
-
`,
|
|
438
|
+
`,bi([i({type:String})],Si.prototype,"icon",void 0),bi([i({type:String})],Si.prototype,"label",void 0),bi([i({type:Boolean,reflect:!0})],Si.prototype,"active",void 0),n("ft-accordion")(dt(yt)),n("ft-accordion-item")(dt(Si))}();
|