@fluid-topics/ft-floating-menu 0.3.22 → 0.3.24
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-floating-menu-item.js +2 -2
- package/build/ft-floating-menu.css.js +13 -1
- package/build/ft-floating-menu.d.ts +10 -1
- package/build/ft-floating-menu.js +57 -9
- package/build/ft-floating-menu.light.js +38 -24
- package/build/ft-floating-menu.min.js +179 -165
- package/build/ft-floating-menu.properties.d.ts +8 -0
- package/package.json +7 -7
|
@@ -14,65 +14,65 @@
|
|
|
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,n=new WeakMap,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(r.set(n,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.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=r.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.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),n.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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(g(Element,"innerHTML"),g(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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Oi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{static computeCenterLeftOffset(t,e){return(t.getBoundingClientRect().width-e.getBoundingClientRect().width)/2}}class i{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
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const o=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function n(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):o(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function s(t){return n({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,
|
|
32
|
+
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function
|
|
37
|
+
*/;function a(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var
|
|
42
|
+
*/var l;const p=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const c=window,
|
|
48
|
+
const c=window,f=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const y=t=>new v("string"==typeof t?t:t+"",void 0,d),b=(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 v(i,t,d)},g=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=c.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var
|
|
53
|
+
*/;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",k=w.reactiveElementPolyfillSupport,S={toAttribute(t,e){switch(e){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},C=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:C};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=N){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:S).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:S;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var E
|
|
59
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,z=M.trustedTypes,U=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,j="?"+F,A=`<${j}>`,B=document,L=(t="")=>B.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,W=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=B.createTreeWalker(B,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=_;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===_?"!--"===l[1]?r=P:void 0!==l[1]?r=W:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=I):void 0!==l[3]&&(r=I):r===I?">"===l[0]?(r=null!=n?n:_,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?I:'"'===l[3]?K:H):r===K||r===H?r=I:r===P||r===W?r=_:(r=I,n=void 0);const c=r===I&&t[e+1].startsWith("/>")?" ":"";s+=r===_?i+A:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+F+c):i+F+(-2===p?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,p]=G(t,e);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(F)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?rt:"@"===e[1]?at:ot})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),Y.nextNode(),a.push({type:2,index:++n});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===j)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var n,s,r,a;if(e===J)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=T(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=tt(t,l._$AS(t,e.values),l,o)),e}class et{constructor(t,e){this.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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);Y.currentNode=n;let s=Y.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new it(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new lt(s,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=Y.nextNode(),r++)}return n}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 it{constructor(t,e,i,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=tt(this,t,e),T(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>D(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!==q&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(B.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new et(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}k(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new it(this.O(L()),this.O(L()),this,this.options)):i=e[o],i._$AI(n),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 ot{constructor(t,e,i,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=tt(this,t,e,0),s=!T(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=tt(this,o[i+r],e,r),a===J&&(a=this._$AH[r]),s||(s=!T(a)||a!==this._$AH[r]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=z?z.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class at extends ot{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(Q,it),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var
|
|
65
|
+
var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new it(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}ft.finalized=!0,ft._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,e,i){let o=t=>y(null!=t?t:i),n=b`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=b`var(${y(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${y(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=b`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>b`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function vt(t,e){return y(`${t.name}: ${e}`)}const yt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/var
|
|
71
|
-
${t.map((t=>
|
|
70
|
+
*/var bt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class gt 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 n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(n,this.constructor.elementStyles),n}}}(ft)){constructor(){super(...arguments),this.exportpartsDebouncer=new i(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),V`
|
|
71
|
+
${t.map((t=>V`
|
|
72
72
|
<style>${t}</style>
|
|
73
73
|
`))}
|
|
74
74
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const h=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}bt([n()],gt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return n({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],gt.prototype,"exportpartsPrefixes",void 0);const xt=b`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,7 +81,7 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`;var
|
|
84
|
+
`;var mt,wt,$t;b`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -93,20 +93,20 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
-
`;const
|
|
96
|
+
`;const Ot=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==($t=null===(wt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==$t?$t:""),kt={textColor:ut.extend("--ft-floating-menu-text-color",yt.colorOnSurfaceHigh),colorSurface:ut.external(yt.colorSurface,"Design system"),menuElevation:ut.external(yt.elevation02,"Design system"),borderRadiusS:ut.external(yt.borderRadiusS,"Design system")},St=b`
|
|
97
97
|
.ft-floating-menu {
|
|
98
|
-
color: ${
|
|
98
|
+
color: ${kt.textColor};
|
|
99
99
|
position: relative;
|
|
100
|
+
display: inline-block;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
.ft-floating-menu--options {
|
|
103
|
-
box-shadow: ${
|
|
104
|
-
background-color: ${
|
|
105
|
-
border-radius: ${
|
|
106
|
-
color: ${
|
|
104
|
+
box-shadow: ${kt.menuElevation};
|
|
105
|
+
background-color: ${kt.colorSurface};
|
|
106
|
+
border-radius: ${kt.borderRadiusS};
|
|
107
|
+
color: ${kt.textColor};
|
|
107
108
|
display: none;
|
|
108
109
|
list-style: none;
|
|
109
|
-
left: 0;
|
|
110
110
|
max-width: calc(100vw - 32px);
|
|
111
111
|
max-height: calc(100vh - 32px);
|
|
112
112
|
margin: 0;
|
|
@@ -126,17 +126,29 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
126
126
|
display: inline-block;
|
|
127
127
|
opacity: 1;
|
|
128
128
|
}
|
|
129
|
+
|
|
130
|
+
.ft-floating-menu--left .ft-floating-menu--options {
|
|
131
|
+
left: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ft-floating-menu--right .ft-floating-menu--options {
|
|
135
|
+
right: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ft-floating-menu--bottom .ft-floating-menu--options {
|
|
139
|
+
top: 100%;
|
|
140
|
+
}
|
|
129
141
|
`
|
|
130
142
|
/**
|
|
131
143
|
* @license
|
|
132
144
|
* Copyright 2017 Google LLC
|
|
133
145
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
-
*/,
|
|
146
|
+
*/,Ct=1,Nt=2,Et=t=>(...e)=>({_$litDirective$:t,values:e});class Rt{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)}}
|
|
135
147
|
/**
|
|
136
148
|
* @license
|
|
137
149
|
* Copyright 2018 Google LLC
|
|
138
150
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
|
-
*/const
|
|
151
|
+
*/const Mt=Et(class extends Rt{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),zt=ut.extend("--ft-ripple-color",yt.colorContent),Ut={color:zt,backgroundColor:ut.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},Ft=ut.extend("--ft-ripple-color",yt.colorPrimary),jt=Ft,At=ut.extend("--ft-ripple-background-color",Ft),Bt=ut.extend("--ft-ripple-color",yt.colorSecondary),Lt=Bt,Tt=ut.extend("--ft-ripple-background-color",Bt),Dt=b`
|
|
140
152
|
:host {
|
|
141
153
|
display: contents;
|
|
142
154
|
}
|
|
@@ -158,11 +170,11 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
158
170
|
}
|
|
159
171
|
|
|
160
172
|
.ft-ripple .ft-ripple--background {
|
|
161
|
-
background-color: ${
|
|
173
|
+
background-color: ${Ut.backgroundColor};
|
|
162
174
|
}
|
|
163
175
|
|
|
164
176
|
.ft-ripple .ft-ripple--effect {
|
|
165
|
-
background-color: ${
|
|
177
|
+
background-color: ${Ut.color};
|
|
166
178
|
}
|
|
167
179
|
|
|
168
180
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -170,15 +182,15 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
170
182
|
}
|
|
171
183
|
|
|
172
184
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
173
|
-
background-color: ${
|
|
185
|
+
background-color: ${Lt};
|
|
174
186
|
}
|
|
175
187
|
|
|
176
188
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
177
|
-
background-color: ${
|
|
189
|
+
background-color: ${At};
|
|
178
190
|
}
|
|
179
191
|
|
|
180
192
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
181
|
-
background-color: ${
|
|
193
|
+
background-color: ${jt};
|
|
182
194
|
}
|
|
183
195
|
|
|
184
196
|
.ft-ripple .ft-ripple--background {
|
|
@@ -210,22 +222,22 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
210
222
|
}
|
|
211
223
|
|
|
212
224
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
213
|
-
opacity: ${
|
|
225
|
+
opacity: ${Ut.opacityContentOnSurfaceHover};
|
|
214
226
|
}
|
|
215
227
|
|
|
216
228
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
217
|
-
opacity: ${
|
|
229
|
+
opacity: ${Ut.opacityContentOnSurfaceSelected};
|
|
218
230
|
}
|
|
219
231
|
|
|
220
232
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
221
|
-
opacity: ${
|
|
233
|
+
opacity: ${Ut.opacityContentOnSurfaceFocused};
|
|
222
234
|
}
|
|
223
235
|
|
|
224
236
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
225
|
-
opacity: ${
|
|
237
|
+
opacity: ${Ut.opacityContentOnSurfacePressed};
|
|
226
238
|
transform: translate(-50%, -50%) scale(1);
|
|
227
239
|
}
|
|
228
|
-
`;var
|
|
240
|
+
`;var _t=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Pt extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
|
|
229
241
|
<style>
|
|
230
242
|
.ft-ripple .ft-ripple--effect,
|
|
231
243
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -238,119 +250,119 @@ var pt,ct;class ht extends N{constructor(){super(...arguments),this.renderOption
|
|
|
238
250
|
top: ${this.originY}px;
|
|
239
251
|
}
|
|
240
252
|
</style>
|
|
241
|
-
<div class="${
|
|
253
|
+
<div class="${Mt(t)}">
|
|
242
254
|
<div class="ft-ripple--background"></div>
|
|
243
255
|
<div class="ft-ripple--effect"></div>
|
|
244
256
|
</div>
|
|
245
|
-
`}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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}
|
|
257
|
+
`}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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Pt.elementDefinitions={},Pt.styles=Dt,_t([n({type:Boolean})],Pt.prototype,"primary",void 0),_t([n({type:Boolean})],Pt.prototype,"secondary",void 0),_t([n({type:Boolean})],Pt.prototype,"unbounded",void 0),_t([n({type:Boolean})],Pt.prototype,"activated",void 0),_t([n({type:Boolean})],Pt.prototype,"selected",void 0),_t([n({type:Boolean})],Pt.prototype,"disabled",void 0),_t([s()],Pt.prototype,"hovered",void 0),_t([s()],Pt.prototype,"focused",void 0),_t([s()],Pt.prototype,"pressed",void 0),_t([s()],Pt.prototype,"rippling",void 0),_t([s()],Pt.prototype,"rippleSize",void 0),_t([s()],Pt.prototype,"originX",void 0),_t([s()],Pt.prototype,"originY",void 0),_t([a(".ft-ripple")],Pt.prototype,"ripple",void 0),_t([a(".ft-ripple--effect")],Pt.prototype,"rippleEffect",void 0),h("ft-ripple")(Pt);
|
|
246
258
|
/**
|
|
247
259
|
* @license
|
|
248
260
|
* Copyright 2020 Google LLC
|
|
249
261
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
250
262
|
*/
|
|
251
|
-
const
|
|
263
|
+
const Wt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void 0:t._$litStatic$},Ht=t=>({_$litStatic$:t,r:Wt}),Kt=new Map,Zt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(s=i[p],n=It(s));)l+=n+e[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=Kt.get(t))&&(r.raw=r,Kt.set(t,e=r)),i=a}return t(e,...i)})(V);var Vt;!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"}(Vt||(Vt={}));const Jt=ut.extend("--ft-typography-font-family",yt.titleFont),qt=ut.extend("--ft-typography-font-family",yt.contentFont),Xt={fontFamily:qt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Yt=ut.extend("--ft-typography-title-font-family",Jt),Gt=ut.extend("--ft-typography-title-font-size",Xt.fontSize,"20px"),Qt=ut.extend("--ft-typography-title-font-weight",Xt.fontWeight,"normal"),te=ut.extend("--ft-typography-title-letter-spacing",Xt.letterSpacing,"0.15px"),ee=ut.extend("--ft-typography-title-line-height",Xt.lineHeight,"1.2"),ie=ut.extend("--ft-typography-title-text-transform",Xt.textTransform,"inherit"),oe=ut.extend("--ft-typography-title-dense-font-family",Jt),ne=ut.extend("--ft-typography-title-dense-font-size",Xt.fontSize,"14px"),se=ut.extend("--ft-typography-title-dense-font-weight",Xt.fontWeight,"normal"),re=ut.extend("--ft-typography-title-dense-letter-spacing",Xt.letterSpacing,"0.105px"),ae=ut.extend("--ft-typography-title-dense-line-height",Xt.lineHeight,"1.7"),le=ut.extend("--ft-typography-title-dense-text-transform",Xt.textTransform,"inherit"),pe=ut.extend("--ft-typography-subtitle1-font-family",qt),he=ut.extend("--ft-typography-subtitle1-font-size",Xt.fontSize,"16px"),ce=ut.extend("--ft-typography-subtitle1-font-weight",Xt.fontWeight,"600"),fe=ut.extend("--ft-typography-subtitle1-letter-spacing",Xt.letterSpacing,"0.144px"),de=ut.extend("--ft-typography-subtitle1-line-height",Xt.lineHeight,"1.5"),ue=ut.extend("--ft-typography-subtitle1-text-transform",Xt.textTransform,"inherit"),ve=ut.extend("--ft-typography-subtitle2-font-family",qt),ye=ut.extend("--ft-typography-subtitle2-font-size",Xt.fontSize,"14px"),be=ut.extend("--ft-typography-subtitle2-font-weight",Xt.fontWeight,"normal"),ge=ut.extend("--ft-typography-subtitle2-letter-spacing",Xt.letterSpacing,"0.098px"),xe=ut.extend("--ft-typography-subtitle2-line-height",Xt.lineHeight,"1.7"),me=ut.extend("--ft-typography-subtitle2-text-transform",Xt.textTransform,"inherit"),we=ut.extend("--ft-typography-body1-font-family",qt),$e=ut.extend("--ft-typography-body1-font-size",Xt.fontSize,"16px"),Oe=ut.extend("--ft-typography-body1-font-weight",Xt.fontWeight,"normal"),ke=ut.extend("--ft-typography-body1-letter-spacing",Xt.letterSpacing,"0.496px"),Se=ut.extend("--ft-typography-body1-line-height",Xt.lineHeight,"1.5"),Ce=ut.extend("--ft-typography-body1-text-transform",Xt.textTransform,"inherit"),Ne=ut.extend("--ft-typography-body2-font-family",qt),Ee=ut.extend("--ft-typography-body2-font-size",Xt.fontSize,"14px"),Re=ut.extend("--ft-typography-body2-font-weight",Xt.fontWeight,"normal"),Me=ut.extend("--ft-typography-body2-letter-spacing",Xt.letterSpacing,"0.252px"),ze=ut.extend("--ft-typography-body2-line-height",Xt.lineHeight,"1.4"),Ue=ut.extend("--ft-typography-body2-text-transform",Xt.textTransform,"inherit"),Fe=ut.extend("--ft-typography-caption-font-family",qt),je=ut.extend("--ft-typography-caption-font-size",Xt.fontSize,"12px"),Ae=ut.extend("--ft-typography-caption-font-weight",Xt.fontWeight,"normal"),Be=ut.extend("--ft-typography-caption-letter-spacing",Xt.letterSpacing,"0.396px"),Le=ut.extend("--ft-typography-caption-line-height",Xt.lineHeight,"1.33"),Te=ut.extend("--ft-typography-caption-text-transform",Xt.textTransform,"inherit"),De=ut.extend("--ft-typography-breadcrumb-font-family",qt),_e=ut.extend("--ft-typography-breadcrumb-font-size",Xt.fontSize,"10px"),Pe=ut.extend("--ft-typography-breadcrumb-font-weight",Xt.fontWeight,"normal"),We=ut.extend("--ft-typography-breadcrumb-letter-spacing",Xt.letterSpacing,"0.33px"),Ie=ut.extend("--ft-typography-breadcrumb-line-height",Xt.lineHeight,"1.6"),He=ut.extend("--ft-typography-breadcrumb-text-transform",Xt.textTransform,"inherit"),Ke=ut.extend("--ft-typography-overline-font-family",qt),Ze=ut.extend("--ft-typography-overline-font-size",Xt.fontSize,"10px"),Ve=ut.extend("--ft-typography-overline-font-weight",Xt.fontWeight,"normal"),Je=ut.extend("--ft-typography-overline-letter-spacing",Xt.letterSpacing,"1.5px"),qe=ut.extend("--ft-typography-overline-line-height",Xt.lineHeight,"1.6"),Xe=ut.extend("--ft-typography-overline-text-transform",Xt.textTransform,"uppercase"),Ye={fontFamily:ut.extend("--ft-typography-button-font-family",qt),fontSize:ut.extend("--ft-typography-button-font-size",Xt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Xt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Xt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Xt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Xt.textTransform,"uppercase")},Ge=b`
|
|
252
264
|
.ft-typography--title {
|
|
253
|
-
font-family: ${
|
|
254
|
-
font-size: ${
|
|
255
|
-
font-weight: ${
|
|
256
|
-
letter-spacing: ${
|
|
257
|
-
line-height: ${
|
|
258
|
-
text-transform: ${
|
|
259
|
-
}
|
|
260
|
-
`,
|
|
265
|
+
font-family: ${Yt};
|
|
266
|
+
font-size: ${Gt};
|
|
267
|
+
font-weight: ${Qt};
|
|
268
|
+
letter-spacing: ${te};
|
|
269
|
+
line-height: ${ee};
|
|
270
|
+
text-transform: ${ie};
|
|
271
|
+
}
|
|
272
|
+
`,Qe=b`
|
|
261
273
|
.ft-typography--title-dense {
|
|
262
|
-
font-family: ${
|
|
263
|
-
font-size: ${
|
|
264
|
-
font-weight: ${
|
|
274
|
+
font-family: ${oe};
|
|
275
|
+
font-size: ${ne};
|
|
276
|
+
font-weight: ${se};
|
|
265
277
|
letter-spacing: ${re};
|
|
266
|
-
line-height: ${
|
|
267
|
-
text-transform: ${
|
|
278
|
+
line-height: ${ae};
|
|
279
|
+
text-transform: ${le};
|
|
268
280
|
}
|
|
269
|
-
`,
|
|
281
|
+
`,ti=b`
|
|
270
282
|
.ft-typography--subtitle1 {
|
|
271
|
-
font-family: ${
|
|
272
|
-
font-size: ${
|
|
283
|
+
font-family: ${pe};
|
|
284
|
+
font-size: ${he};
|
|
273
285
|
font-weight: ${ce};
|
|
274
|
-
letter-spacing: ${
|
|
275
|
-
line-height: ${
|
|
276
|
-
text-transform: ${
|
|
286
|
+
letter-spacing: ${fe};
|
|
287
|
+
line-height: ${de};
|
|
288
|
+
text-transform: ${ue};
|
|
277
289
|
}
|
|
278
|
-
`,
|
|
290
|
+
`,ei=b`
|
|
279
291
|
.ft-typography--subtitle2 {
|
|
280
|
-
font-family: ${
|
|
292
|
+
font-family: ${ve};
|
|
281
293
|
font-size: ${ye};
|
|
282
|
-
font-weight: ${
|
|
283
|
-
letter-spacing: ${
|
|
294
|
+
font-weight: ${be};
|
|
295
|
+
letter-spacing: ${ge};
|
|
284
296
|
line-height: ${xe};
|
|
285
|
-
text-transform: ${
|
|
297
|
+
text-transform: ${me};
|
|
286
298
|
}
|
|
287
299
|
|
|
288
|
-
`,
|
|
300
|
+
`,ii=b`
|
|
289
301
|
.ft-typography--body1 {
|
|
290
|
-
font-family: ${
|
|
291
|
-
font-size: ${
|
|
292
|
-
font-weight: ${
|
|
293
|
-
letter-spacing: ${
|
|
294
|
-
line-height: ${
|
|
295
|
-
text-transform: ${
|
|
296
|
-
}
|
|
297
|
-
`,
|
|
302
|
+
font-family: ${we};
|
|
303
|
+
font-size: ${$e};
|
|
304
|
+
font-weight: ${Oe};
|
|
305
|
+
letter-spacing: ${ke};
|
|
306
|
+
line-height: ${Se};
|
|
307
|
+
text-transform: ${Ce};
|
|
308
|
+
}
|
|
309
|
+
`,oi=b`
|
|
298
310
|
.ft-typography--body2 {
|
|
299
|
-
font-family: ${
|
|
300
|
-
font-size: ${
|
|
301
|
-
font-weight: ${
|
|
302
|
-
letter-spacing: ${
|
|
303
|
-
line-height: ${
|
|
304
|
-
text-transform: ${
|
|
305
|
-
}
|
|
306
|
-
`,
|
|
311
|
+
font-family: ${Ne};
|
|
312
|
+
font-size: ${Ee};
|
|
313
|
+
font-weight: ${Re};
|
|
314
|
+
letter-spacing: ${Me};
|
|
315
|
+
line-height: ${ze};
|
|
316
|
+
text-transform: ${Ue};
|
|
317
|
+
}
|
|
318
|
+
`,ni=b`
|
|
307
319
|
.ft-typography--caption {
|
|
308
|
-
font-family: ${
|
|
309
|
-
font-size: ${
|
|
310
|
-
font-weight: ${
|
|
320
|
+
font-family: ${Fe};
|
|
321
|
+
font-size: ${je};
|
|
322
|
+
font-weight: ${Ae};
|
|
311
323
|
letter-spacing: ${Be};
|
|
312
|
-
line-height: ${
|
|
324
|
+
line-height: ${Le};
|
|
313
325
|
text-transform: ${Te};
|
|
314
326
|
}
|
|
315
|
-
`,
|
|
327
|
+
`,si=b`
|
|
316
328
|
.ft-typography--breadcrumb {
|
|
317
|
-
font-family: ${
|
|
318
|
-
font-size: ${
|
|
319
|
-
font-weight: ${
|
|
320
|
-
letter-spacing: ${
|
|
321
|
-
line-height: ${
|
|
322
|
-
text-transform: ${
|
|
323
|
-
}
|
|
324
|
-
`,ri=
|
|
329
|
+
font-family: ${De};
|
|
330
|
+
font-size: ${_e};
|
|
331
|
+
font-weight: ${Pe};
|
|
332
|
+
letter-spacing: ${We};
|
|
333
|
+
line-height: ${Ie};
|
|
334
|
+
text-transform: ${He};
|
|
335
|
+
}
|
|
336
|
+
`,ri=b`
|
|
325
337
|
.ft-typography--overline {
|
|
326
|
-
font-family: ${
|
|
327
|
-
font-size: ${
|
|
328
|
-
font-weight: ${
|
|
329
|
-
letter-spacing: ${
|
|
330
|
-
line-height: ${
|
|
331
|
-
text-transform: ${
|
|
332
|
-
}
|
|
333
|
-
`,
|
|
338
|
+
font-family: ${Ke};
|
|
339
|
+
font-size: ${Ze};
|
|
340
|
+
font-weight: ${Ve};
|
|
341
|
+
letter-spacing: ${Je};
|
|
342
|
+
line-height: ${qe};
|
|
343
|
+
text-transform: ${Xe};
|
|
344
|
+
}
|
|
345
|
+
`,ai=b`
|
|
334
346
|
.ft-typography--button {
|
|
335
|
-
font-family: ${
|
|
336
|
-
font-size: ${
|
|
337
|
-
font-weight: ${
|
|
338
|
-
letter-spacing: ${
|
|
339
|
-
line-height: ${
|
|
340
|
-
text-transform: ${
|
|
341
|
-
}
|
|
342
|
-
`,
|
|
347
|
+
font-family: ${Ye.fontFamily};
|
|
348
|
+
font-size: ${Ye.fontSize};
|
|
349
|
+
font-weight: ${Ye.fontWeight};
|
|
350
|
+
letter-spacing: ${Ye.letterSpacing};
|
|
351
|
+
line-height: ${Ye.lineHeight};
|
|
352
|
+
text-transform: ${Ye.textTransform};
|
|
353
|
+
}
|
|
354
|
+
`,li=b`
|
|
343
355
|
.ft-typography {
|
|
344
356
|
vertical-align: inherit;
|
|
345
357
|
}
|
|
346
|
-
`;var
|
|
347
|
-
<${
|
|
358
|
+
`;var pi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class hi extends gt{constructor(){super(...arguments),this.variant=Vt.body1}render(){return this.element?Zt`
|
|
359
|
+
<${Ht(this.element)}
|
|
348
360
|
class="ft-typography ft-typography--${this.variant}">
|
|
349
361
|
<slot></slot>
|
|
350
|
-
</${
|
|
351
|
-
`:
|
|
362
|
+
</${Ht(this.element)}>
|
|
363
|
+
`:Zt`
|
|
352
364
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
353
|
-
`}}
|
|
365
|
+
`}}hi.styles=[Ge,Qe,ti,ei,ii,oi,ni,si,ri,ai,li],pi([n()],hi.prototype,"element",void 0),pi([n()],hi.prototype,"variant",void 0),h("ft-typography")(hi);const ci=ut.create("--ft-tooltip-distance","SIZE","4px"),fi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),di=ut.create("--ft-tooltip-background-color","COLOR","#666666"),ui=ut.create("--ft-tooltip-z-index","NUMBER","1"),vi=ut.external(yt.borderRadiusS,"Design system"),yi=ut.create("--ft-tooltip-max-width","SIZE","150px"),bi=b`
|
|
354
366
|
.ft-tooltip--container {
|
|
355
367
|
display: block;
|
|
356
368
|
position: relative;
|
|
@@ -369,20 +381,20 @@ const Pt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
369
381
|
max-width: ${yi};
|
|
370
382
|
text-align: center;
|
|
371
383
|
padding: ${ci};
|
|
372
|
-
z-index: ${
|
|
384
|
+
z-index: ${ui};
|
|
373
385
|
}
|
|
374
386
|
|
|
375
387
|
.ft-tooltip--content {
|
|
376
388
|
padding: 4px 8px;
|
|
377
|
-
border-radius: ${
|
|
378
|
-
background-color: ${
|
|
379
|
-
color: ${
|
|
389
|
+
border-radius: ${vi};
|
|
390
|
+
background-color: ${di};
|
|
391
|
+
color: ${fi};
|
|
380
392
|
top: -500px;
|
|
381
393
|
left: -500px;
|
|
382
394
|
position: relative;
|
|
383
395
|
word-break: break-word;
|
|
384
396
|
}
|
|
385
|
-
`;var
|
|
397
|
+
`;var gi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class xi extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return V`
|
|
386
398
|
<div part="container"
|
|
387
399
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
388
400
|
@mouseenter=${this.onHover}
|
|
@@ -398,13 +410,13 @@ const Pt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
|
|
|
398
410
|
</div>
|
|
399
411
|
<slot></slot>
|
|
400
412
|
</div>
|
|
401
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,
|
|
413
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${yi})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}xi.elementDefinitions={"ft-typography":hi},xi.styles=bi,gi([n()],xi.prototype,"text",void 0),gi([n({type:Boolean})],xi.prototype,"manual",void 0),gi([n({type:Boolean})],xi.prototype,"inline",void 0),gi([n({type:Number})],xi.prototype,"delay",void 0),gi([n()],xi.prototype,"position",void 0),gi([
|
|
402
414
|
/**
|
|
403
415
|
* @license
|
|
404
416
|
* Copyright 2017 Google LLC
|
|
405
417
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
406
418
|
*/
|
|
407
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),
|
|
419
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?p(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],xi.prototype,"slotNodes",void 0),gi([a(".ft-tooltip--container")],xi.prototype,"container",void 0),gi([a("slot")],xi.prototype,"target",void 0),gi([a(".ft-tooltip")],xi.prototype,"tooltip",void 0),gi([a(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),gi([s()],xi.prototype,"visible",void 0),h("ft-tooltip")(xi);const mi={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},wi=b`
|
|
408
420
|
:host {
|
|
409
421
|
line-height: 0;
|
|
410
422
|
}
|
|
@@ -413,8 +425,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
413
425
|
display: inline-block;
|
|
414
426
|
position: relative;
|
|
415
427
|
|
|
416
|
-
width: ${
|
|
417
|
-
height: ${
|
|
428
|
+
width: ${mi.size};
|
|
429
|
+
height: ${mi.size};
|
|
418
430
|
}
|
|
419
431
|
|
|
420
432
|
.ft-loader div {
|
|
@@ -423,7 +435,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
423
435
|
width: 25%;
|
|
424
436
|
height: 25%;
|
|
425
437
|
border-radius: 50%;
|
|
426
|
-
background: ${
|
|
438
|
+
background: ${mi.color};
|
|
427
439
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
428
440
|
}
|
|
429
441
|
|
|
@@ -470,35 +482,35 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
470
482
|
transform: translate(0, 0);
|
|
471
483
|
}
|
|
472
484
|
100% {
|
|
473
|
-
transform: translate(calc(0.35 * ${
|
|
485
|
+
transform: translate(calc(0.35 * ${mi.size}), 0);
|
|
474
486
|
}
|
|
475
487
|
}
|
|
476
|
-
`;class
|
|
488
|
+
`;class $i extends gt{render(){return V`
|
|
477
489
|
<div class="ft-loader">
|
|
478
490
|
<div></div>
|
|
479
491
|
<div></div>
|
|
480
492
|
<div></div>
|
|
481
493
|
<div></div>
|
|
482
494
|
</div>
|
|
483
|
-
`}}
|
|
495
|
+
`}}$i.styles=wi,h("ft-loader")($i);
|
|
484
496
|
/**
|
|
485
497
|
* @license
|
|
486
498
|
* Copyright 2017 Google LLC
|
|
487
499
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
488
500
|
*/
|
|
489
|
-
class
|
|
501
|
+
class Oi extends Rt{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Oi.directiveName="unsafeHTML",Oi.resultType=1;const ki=Et(Oi);var Si,Ci;!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=""}(Si||(Si={})),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=""}(Ci||(Ci={})),new Map([...["abw"].map((t=>[t,Ci.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,Ci.AUDIO])),...["avi"].map((t=>[t,Ci.AVI])),...["chm","xhs"].map((t=>[t,Ci.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,Ci.CODE])),...["csv"].map((t=>[t,Ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ci.DITA])),...["epub"].map((t=>[t,Ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ci.EXCEL])),...["flac"].map((t=>[t,Ci.FLAC])),...["gif"].map((t=>[t,Ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ci.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,Ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ci.JPEG])),...["json"].map((t=>[t,Ci.JSON])),...["m4a","m4p"].map((t=>[t,Ci.M4A])),...["mov","qt"].map((t=>[t,Ci.MOV])),...["mp3"].map((t=>[t,Ci.MP3])),...["mp4","m4v"].map((t=>[t,Ci.MP4])),...["ogg","oga"].map((t=>[t,Ci.OGG])),...["pdf","ps"].map((t=>[t,Ci.PDF])),...["png"].map((t=>[t,Ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ci.POWERPOINT])),...["rar"].map((t=>[t,Ci.RAR])),...["stp"].map((t=>[t,Ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ci.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,Ci.VIDEO])),...["wav"].map((t=>[t,Ci.WAV])),...["wma"].map((t=>[t,Ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ci.YAML])),...["zip"].map((t=>[t,Ci.ZIP]))]);const Ni={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ei=b`
|
|
490
502
|
:host {
|
|
491
503
|
display: inline-block;
|
|
492
504
|
}
|
|
493
505
|
|
|
494
506
|
:host, i.ft-icon {
|
|
495
|
-
width: ${
|
|
496
|
-
height: ${
|
|
507
|
+
width: ${Ni.size};
|
|
508
|
+
height: ${Ni.size};
|
|
497
509
|
text-align: center;
|
|
498
510
|
}
|
|
499
511
|
|
|
500
512
|
i.ft-icon {
|
|
501
|
-
font-size: ${
|
|
513
|
+
font-size: ${Ni.size};
|
|
502
514
|
line-height: 1;
|
|
503
515
|
font-weight: normal;
|
|
504
516
|
text-transform: none;
|
|
@@ -509,26 +521,26 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
509
521
|
text-rendering: auto;
|
|
510
522
|
-webkit-font-smoothing: antialiased;
|
|
511
523
|
-moz-osx-font-smoothing: grayscale;
|
|
512
|
-
vertical-align: ${
|
|
524
|
+
vertical-align: ${Ni.verticalAlign};
|
|
513
525
|
}
|
|
514
526
|
|
|
515
527
|
.ft-icon--fluid-topics {
|
|
516
|
-
font-family: ${
|
|
528
|
+
font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
517
529
|
}
|
|
518
530
|
|
|
519
531
|
.ft-icon--file-format {
|
|
520
|
-
font-family: ${
|
|
532
|
+
font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
521
533
|
}
|
|
522
534
|
|
|
523
535
|
.ft-icon--material {
|
|
524
|
-
font-family: ${
|
|
536
|
+
font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
|
|
525
537
|
}
|
|
526
|
-
`;var
|
|
538
|
+
`;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class zi extends gt{constructor(){super(...arguments),this.variant=Ri.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
|
|
527
539
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
528
|
-
${
|
|
540
|
+
${ki(this.resolvedIcon)}
|
|
529
541
|
<slot ?hidden=${t}></slot>
|
|
530
542
|
</i>
|
|
531
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
543
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ri.file_format:this.resolvedIcon=null!==(t=Ci[i.toUpperCase()])&&void 0!==t?t:i;break;case Ri.fluid_topics:this.resolvedIcon=null!==(e=Si[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}zi.elementDefinitions={},zi.styles=Ei,Mi([n()],zi.prototype,"variant",void 0),Mi([n()],zi.prototype,"value",void 0),Mi([s()],zi.prototype,"resolvedIcon",void 0),Mi([a("slot")],zi.prototype,"slottedContent",void 0),h("ft-icon")(zi);const Ui=ut.extend("--ft-button-color",yt.colorPrimary),Fi={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ui,fontSize:ut.extend("--ft-button-font-size",Ye.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ui),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},ji=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Ai={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:ji,rippleColor:ut.extend("--ft-button-primary-ripple-color",ji)},Bi=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Li=[xt,b`
|
|
532
544
|
:host {
|
|
533
545
|
display: inline-block;
|
|
534
546
|
max-width: 100%;
|
|
@@ -539,7 +551,7 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
539
551
|
box-shadow: 0px 0px 0px transparent;
|
|
540
552
|
border: 0px solid transparent;
|
|
541
553
|
text-shadow: 0px 0px 0px transparent;
|
|
542
|
-
font-size: ${
|
|
554
|
+
font-size: ${Fi.fontSize};
|
|
543
555
|
}
|
|
544
556
|
|
|
545
557
|
button:hover {
|
|
@@ -568,17 +580,17 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
568
580
|
border: none;
|
|
569
581
|
pointer-events: auto;
|
|
570
582
|
|
|
571
|
-
--ft-button-internal-line-height: calc(${
|
|
572
|
-
--ft-button-internal-color: ${
|
|
573
|
-
${
|
|
583
|
+
--ft-button-internal-line-height: calc(${Fi.fontSize} + 2px);
|
|
584
|
+
--ft-button-internal-color: ${Fi.color};
|
|
585
|
+
${vt(Ni.size,Fi.iconSize)};
|
|
574
586
|
--ft-button-internal-vertical-padding: 6px;
|
|
575
587
|
--ft-button-internal-horizontal-padding: 8px;
|
|
576
|
-
${
|
|
577
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
588
|
+
${vt(Ut.color,Fi.rippleColor)};
|
|
589
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
|
|
578
590
|
|
|
579
|
-
border-radius: ${
|
|
591
|
+
border-radius: ${Fi.borderRadius};
|
|
580
592
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
581
|
-
background-color: ${
|
|
593
|
+
background-color: ${Fi.backgroundColor};
|
|
582
594
|
color: var(--ft-button-internal-color);
|
|
583
595
|
-webkit-mask-image: radial-gradient(white, black);
|
|
584
596
|
}
|
|
@@ -599,13 +611,13 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
599
611
|
|
|
600
612
|
.ft-button[disabled] {
|
|
601
613
|
filter: grayscale(1);
|
|
602
|
-
opacity: ${
|
|
614
|
+
opacity: ${Fi.opacityDisabled};
|
|
603
615
|
}
|
|
604
616
|
|
|
605
617
|
.ft-button.ft-button--primary {
|
|
606
|
-
background-color: ${
|
|
607
|
-
--ft-button-internal-color: ${
|
|
608
|
-
${
|
|
618
|
+
background-color: ${Ai.backgroundColor};
|
|
619
|
+
--ft-button-internal-color: ${Ai.color};
|
|
620
|
+
${vt(Ut.color,Ai.rippleColor)};
|
|
609
621
|
}
|
|
610
622
|
|
|
611
623
|
.ft-button.ft-button--outlined {
|
|
@@ -624,8 +636,8 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
624
636
|
text-overflow: ellipsis;
|
|
625
637
|
display: block;
|
|
626
638
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
627
|
-
${
|
|
628
|
-
${
|
|
639
|
+
${vt(Ye.fontSize,"1em")};
|
|
640
|
+
${vt(Ye.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
629
641
|
}
|
|
630
642
|
|
|
631
643
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -658,12 +670,12 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
658
670
|
}
|
|
659
671
|
|
|
660
672
|
ft-loader {
|
|
661
|
-
${
|
|
662
|
-
${
|
|
673
|
+
${vt(mi.size,Fi.iconSize)};
|
|
674
|
+
${vt(mi.color,"var(--ft-button-internal-color)")};
|
|
663
675
|
}
|
|
664
|
-
`];var Ti=function(t,e,i,o){for(var n,
|
|
676
|
+
`];var Ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Di extends gt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ri.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":Ot,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
|
|
665
677
|
<button part="button"
|
|
666
|
-
class="${
|
|
678
|
+
class="${Mt(t)}"
|
|
667
679
|
aria-label="${this.getLabel()}"
|
|
668
680
|
?disabled=${this.isDisabled()}>
|
|
669
681
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -675,15 +687,15 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
675
687
|
</ft-typography>
|
|
676
688
|
${this.resolveIcon()}
|
|
677
689
|
</button>
|
|
678
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
690
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?V`
|
|
679
691
|
<ft-tooltip part="tooltip"
|
|
680
692
|
text="${this.getLabel()}"
|
|
681
693
|
position="${this.tooltipPosition}">
|
|
682
694
|
${t}
|
|
683
695
|
</ft-tooltip>
|
|
684
|
-
`:t}resolveIcon(){return this.loading?
|
|
685
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
686
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
696
|
+
`:t}resolveIcon(){return this.loading?V`
|
|
697
|
+
<ft-loader></ft-loader> `:this.icon?V`
|
|
698
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Di.elementDefinitions={"ft-ripple":Pt,"ft-tooltip":xi,"ft-typography":hi,"ft-icon":zi,"ft-loader":$i},Di.styles=Li,Ti([n({type:Boolean})],Di.prototype,"primary",void 0),Ti([n({type:Boolean})],Di.prototype,"outlined",void 0),Ti([n({type:Boolean})],Di.prototype,"disabled",void 0),Ti([n({type:Boolean})],Di.prototype,"dense",void 0),Ti([n({type:Boolean})],Di.prototype,"round",void 0),Ti([n({type:String})],Di.prototype,"label",void 0),Ti([n({type:String})],Di.prototype,"icon",void 0),Ti([n({type:String})],Di.prototype,"iconVariant",void 0),Ti([n({type:Boolean})],Di.prototype,"trailingIcon",void 0),Ti([n({type:Boolean})],Di.prototype,"loading",void 0),Ti([n({type:String})],Di.prototype,"tooltipPosition",void 0),Ti([n({type:Boolean})],Di.prototype,"hideTooltip",void 0),Ti([n({type:Boolean})],Di.prototype,"forceTooltip",void 0),Ti([a(".ft-button")],Di.prototype,"button",void 0),Ti([a(".ft-button--label slot")],Di.prototype,"slottedContent",void 0),h("ft-button")(Di);const _i={iconColor:ut.extend("--ft-floating-menu-icon-color",yt.colorOnSurfaceMedium)},Pi=b`
|
|
687
699
|
.ft-floating-menu-item {
|
|
688
700
|
cursor: pointer;
|
|
689
701
|
display: flex;
|
|
@@ -702,31 +714,33 @@ class $i extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
702
714
|
|
|
703
715
|
.ft-floating-menu-item ft-icon {
|
|
704
716
|
--ft-icon-font-size: 24px;
|
|
705
|
-
color: ${
|
|
717
|
+
color: ${_i.iconColor};
|
|
706
718
|
margin-left: 0;
|
|
707
719
|
margin-right: 32px;
|
|
708
720
|
}
|
|
709
|
-
`;var
|
|
721
|
+
`;var Wi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ii extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class Hi extends gt{constructor(){super(...arguments),this.value=""}render(){return V`
|
|
710
722
|
<div class="ft-floating-menu-item"
|
|
711
723
|
@click=${this.onClick}>
|
|
712
724
|
<ft-ripple></ft-ripple>
|
|
713
|
-
|
|
725
|
+
${this.icon?V`<ft-icon variant="material">${this.icon}</ft-icon>`:q}
|
|
714
726
|
<ft-typography variant="body2">
|
|
715
727
|
<slot></slot>
|
|
716
728
|
</ft-typography>
|
|
717
729
|
</div>
|
|
718
|
-
`}onClick(t){this.dispatchEvent(new
|
|
719
|
-
<div class="${
|
|
730
|
+
`}onClick(t){this.dispatchEvent(new Ii(this.value))}}Hi.elementDefinitions={"ft-icon":zi,"ft-ripple":Pt,"ft-typography":hi},Hi.styles=Pi,Wi([n({type:String})],Hi.prototype,"icon",void 0),Wi([n({type:String})],Hi.prototype,"value",void 0);var Ki=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Zi extends gt{constructor(){super(...arguments),this.menuOpen=!1,this.label="",this.icon="more_vert",this.text=void 0,this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.menuOpen,"ft-floating-menu--right":"right"==this.horizontalAlignment,"ft-floating-menu--left":"left"==this.horizontalAlignment,"ft-floating-menu--bottom":"bottom"==this.verticalAlignment};return V`
|
|
731
|
+
<div class="${Mt(t)}">
|
|
720
732
|
<ft-button part="button"
|
|
721
733
|
dense round
|
|
722
|
-
icon="
|
|
734
|
+
icon="${this.icon}"
|
|
723
735
|
id="actions-button"
|
|
724
736
|
@click=${this.onClick}
|
|
725
|
-
label
|
|
737
|
+
.label=${this.label}
|
|
738
|
+
?disabled=${this.disabled}>
|
|
739
|
+
${this.text?V`<span>${this.text}</span>`:q}
|
|
726
740
|
</ft-button>
|
|
727
741
|
<div class="ft-floating-menu--options"
|
|
728
742
|
@select="${this.onClickItem}">
|
|
729
743
|
<slot></slot>
|
|
730
744
|
</div>
|
|
731
745
|
</div>
|
|
732
|
-
`}onClick(t){
|
|
746
|
+
`}onClick(t){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(t){this.menuOpen=!1}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){if(super.contentAvailableCallback(t),this.menuOpen){if("center"==this.horizontalAlignment){const t=e.computeCenterLeftOffset(this.button,this.menuContainer);this.menuContainer.style.left=`${t}px`}else this.menuContainer.style.removeProperty("left");"top"==this.verticalAlignment?this.menuContainer.style.top=`-${this.menuContainer.getBoundingClientRect().height}px`:this.menuContainer.style.removeProperty("top")}}}Zi.elementDefinitions={"ft-button":Di,"ft-floating-menu-item":Hi},Zi.styles=St,Ki([s()],Zi.prototype,"menuOpen",void 0),Ki([a(".ft-floating-menu")],Zi.prototype,"container",void 0),Ki([a(".ft-floating-menu--options")],Zi.prototype,"menuContainer",void 0),Ki([a("ft-button")],Zi.prototype,"button",void 0),Ki([n()],Zi.prototype,"label",void 0),Ki([n()],Zi.prototype,"icon",void 0),Ki([n()],Zi.prototype,"text",void 0),Ki([n()],Zi.prototype,"horizontalAlignment",void 0),Ki([n()],Zi.prototype,"verticalAlignment",void 0),Ki([n({type:Boolean})],Zi.prototype,"disabled",void 0),h("ft-floating-menu")(Zi),h("ft-floating-menu-item")(Hi),t.FtFloatingMenu=Zi,t.FtFloatingMenuCssVariables=kt,t.FtFloatingMenuItem=Hi,t.FtFloatingMenuItemCssVariables=_i,t.FtFloatingMenuItemSelect=Ii,t.itemStyles=Pi,t.styles=St,Object.defineProperty(t,"i",{value:!0})}({});
|