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