@fluid-topics/ft-filter 0.2.3 → 0.2.7
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-filter.inline-styles.js +210 -194
- package/build/ft-filter.light.js +194 -178
- package/build/ft-filter.min.js +209 -193
- package/package.json +10 -10
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(yi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class t{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -61,19 +61,19 @@ const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
-
*/;var y;const g=window.trustedTypes,m=g?g.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},k=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k};class S extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||O}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._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=O){var o,s;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const r=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:w.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,e){var i,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:w.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$
|
|
64
|
+
*/;var y;const g=window.trustedTypes,m=g?g.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},k=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k};class S extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||O}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._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=O){var o,s;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const r=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:w.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,e){var i,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:w.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
var C;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:S}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.
|
|
70
|
+
var C;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:S}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const E=globalThis.trustedTypes,N=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,R="?"+z,M=`<${R}>`,B=document,F=(t="")=>B.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,D=t=>{var e;return U(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,A=/>/g,_=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,P=/'/g,I=/"/g,H=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),K=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),Z=new WeakMap,J=B.createTreeWalker(B,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=T:void 0!==a[1]?r=A:void 0!==a[2]?(H.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=s?s:L,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?I:P):r===I||r===P?r=_:r===T||r===A?r=L:(r=_,s=void 0);const p=r===_&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+M:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+z+p):i+z+(-2===h?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(l):l,o]};class X{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=q(t,e);if(this.el=X.createElement(a,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(z)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(z),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?st:tt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],F()),J.nextNode(),l.push({type:2,index:++s});o.append(t[e],F())}}}else if(8===o.nodeType)if(o.data===R)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)l.push({type:7,index:s}),t+=z.length-1}s++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var s,n,r,l;if(e===K)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const h=j(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=Y(t,a._$AS(t,e.values),a,o)),e}class G{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);J.currentNode=s;let n=J.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Q(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new nt(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=J.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var s;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),j(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==K&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):D(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==V&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(B.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new G(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new X(t)),e}S(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new Q(this.M(F()),this.M(F()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,s){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Y(this,t,e,0),n=!j(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Y(this,o[i+r],e,r),l===K&&(l=this._$AH[r]),n||(n=!j(l)||l!==this._$AH[r]),l===V?t=V:t!==V&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===V?void 0:t}}const it=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}C(t){t&&t!==V?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class st extends tt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:V)===K)return;const o=this._$AH,s=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==V&&(o===V||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const rt={L:"$lit$",P:z,V:R,I:1,N:q,R:G,j:D,D:Y,H:Q,F:tt,O:ot,W:st,B:et,Z:nt},lt=window.litHtmlPolyfillSupport;
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright 2017 Google LLC
|
|
74
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
75
|
*/
|
|
76
|
-
var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.
|
|
76
|
+
var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.4");class ct extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new Q(e.insertBefore(F(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return K}}ct.finalized=!0,ct._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ct}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.0");class dt{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new dt(t,e,void 0,i)}static extend(t,e,i){return new dt(t,e.category,e,i)}static external(t,e){return new dt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return v`var(${u(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):u(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ft(t,e){return u(`${t.name}: ${e}`)}const ut={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")};
|
|
77
77
|
/**
|
|
78
78
|
* @license
|
|
79
79
|
* Copyright 2021 Google LLC
|
|
@@ -92,134 +92,134 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
92
92
|
-ms-user-select: none;
|
|
93
93
|
user-select: none;
|
|
94
94
|
}
|
|
95
|
-
`;function xt(t){var e;let i;if("elementDefinitions"in t){i={};const e=t.elementDefinitions;for(let t in e)i[t]=xt(e[t])}return e=class extends t{
|
|
95
|
+
`;function xt(t){var e;let i;if("elementDefinitions"in t){i={};const e=t.elementDefinitions;for(let t in e)i[t]=xt(e[t])}return e=class extends t{render(){var e;let i=null!==(e=t.styles)&&void 0!==e?e:[];return Array.isArray(i)||(i=[i]),W`
|
|
96
96
|
${i.map((t=>W`
|
|
97
97
|
<style>${t}</style>
|
|
98
98
|
`))}
|
|
99
99
|
${super.render()}
|
|
100
|
-
`}},e.styles=void 0,e.elementDefinitions=i,e}var yt,gt,mt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),wt=t=>({_$litStatic$:t}),
|
|
100
|
+
`}},e.styles=void 0,e.elementDefinitions=i,e}var yt,gt,mt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),wt=Symbol.for(""),kt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===wt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ot=t=>({_$litStatic$:t,r:wt}),St=new Map,Ct=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(n=i[h],s=kt(n));)a+=s+e[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=St.get(t))&&(r.raw=r,St.set(t,e=r)),i=l}return t(e,...i)})(W);
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright 2020 Google LLC
|
|
104
104
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
105
|
-
*/var
|
|
105
|
+
*/var Et,Nt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Et||(Et={}));const zt=dt.extend("--ft-typography-font-family",ut.titleFont),Rt=dt.extend("--ft-typography-font-family",ut.contentFont),Mt={fontFamily:Rt,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","SIZE","24px"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Bt=dt.extend("--ft-typography-title-font-family",zt),Ft=dt.extend("--ft-typography-title-font-size",Mt.fontSize,"20px"),jt=dt.extend("--ft-typography-title-font-weight",Mt.fontWeight,"normal"),Ut=dt.extend("--ft-typography-title-letter-spacing",Mt.letterSpacing,"0.15px"),Dt=dt.extend("--ft-typography-title-line-height",Mt.lineHeight,"24px"),Lt=dt.extend("--ft-typography-title-text-transform",Mt.textTransform,"inherit"),Tt=dt.extend("--ft-typography-title-dense-font-family",zt),At=dt.extend("--ft-typography-title-dense-font-size",Mt.fontSize,"14px"),_t=dt.extend("--ft-typography-title-dense-font-weight",Mt.fontWeight,"normal"),Pt=dt.extend("--ft-typography-title-dense-letter-spacing",Mt.letterSpacing,"0.105px"),It=dt.extend("--ft-typography-title-dense-line-height",Mt.lineHeight,"24px"),Ht=dt.extend("--ft-typography-title-dense-text-transform",Mt.textTransform,"inherit"),Wt=dt.extend("--ft-typography-subtitle1-font-family",Rt),Kt=dt.extend("--ft-typography-subtitle1-font-size",Mt.fontSize,"16px"),Vt=dt.extend("--ft-typography-subtitle1-font-weight",Mt.fontWeight,"600"),Zt=dt.extend("--ft-typography-subtitle1-letter-spacing",Mt.letterSpacing,"0.144px"),Jt=dt.extend("--ft-typography-subtitle1-line-height",Mt.lineHeight,"24px"),qt=dt.extend("--ft-typography-subtitle1-text-transform",Mt.textTransform,"inherit"),Xt=dt.extend("--ft-typography-subtitle2-font-family",Rt),Yt=dt.extend("--ft-typography-subtitle2-font-size",Mt.fontSize,"14px"),Gt=dt.extend("--ft-typography-subtitle2-font-weight",Mt.fontWeight,"normal"),Qt=dt.extend("--ft-typography-subtitle2-letter-spacing",Mt.letterSpacing,"0.098px"),te=dt.extend("--ft-typography-subtitle2-line-height",Mt.lineHeight,"24px"),ee=dt.extend("--ft-typography-subtitle2-text-transform",Mt.textTransform,"inherit"),ie=dt.extend("--ft-typography-body1-font-family",Rt),oe=dt.extend("--ft-typography-body1-font-size",Mt.fontSize,"16px"),se=dt.extend("--ft-typography-body1-font-weight",Mt.fontWeight,"normal"),ne=dt.extend("--ft-typography-body1-letter-spacing",Mt.letterSpacing,"0.496px"),re=dt.extend("--ft-typography-body1-line-height",Mt.lineHeight,"24px"),le=dt.extend("--ft-typography-body1-text-transform",Mt.textTransform,"inherit"),ae={fontFamily:dt.extend("--ft-typography-body2-font-family",Rt),fontSize:dt.extend("--ft-typography-body2-font-size",Mt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-body2-font-weight",Mt.fontWeight,"normal"),letterSpacing:dt.extend("--ft-typography-body2-letter-spacing",Mt.letterSpacing,"0.252px"),lineHeight:dt.extend("--ft-typography-body2-line-height",Mt.lineHeight,"20px"),textTransform:dt.extend("--ft-typography-body2-text-transform",Mt.textTransform,"inherit")},he=dt.extend("--ft-typography-caption-font-family",Rt),ce=dt.extend("--ft-typography-caption-font-size",Mt.fontSize,"12px"),pe=dt.extend("--ft-typography-caption-font-weight",Mt.fontWeight,"normal"),de=dt.extend("--ft-typography-caption-letter-spacing",Mt.letterSpacing,"0.396px"),fe=dt.extend("--ft-typography-caption-line-height",Mt.lineHeight,"16px"),ue=dt.extend("--ft-typography-caption-text-transform",Mt.textTransform,"inherit"),ve=dt.extend("--ft-typography-breadcrumb-font-family",Rt),be=dt.extend("--ft-typography-breadcrumb-font-size",Mt.fontSize,"10px"),xe=dt.extend("--ft-typography-breadcrumb-font-weight",Mt.fontWeight,"normal"),ye=dt.extend("--ft-typography-breadcrumb-letter-spacing",Mt.letterSpacing,"0.33px"),ge=dt.extend("--ft-typography-breadcrumb-line-height",Mt.lineHeight,"16px"),me=dt.extend("--ft-typography-breadcrumb-text-transform",Mt.textTransform,"inherit"),$e=dt.extend("--ft-typography-overline-font-family",Rt),we=dt.extend("--ft-typography-overline-font-size",Mt.fontSize,"10px"),ke=dt.extend("--ft-typography-overline-font-weight",Mt.fontWeight,"normal"),Oe=dt.extend("--ft-typography-overline-letter-spacing",Mt.letterSpacing,"1.5px"),Se=dt.extend("--ft-typography-overline-line-height",Mt.lineHeight,"16px"),Ce=dt.extend("--ft-typography-overline-text-transform",Mt.textTransform,"uppercase"),Ee={fontFamily:dt.extend("--ft-typography-button-font-family",Rt),fontSize:dt.extend("--ft-typography-button-font-size",Mt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Mt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Mt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Mt.lineHeight,"16px"),textTransform:dt.extend("--ft-typography-button-text-transform",Mt.textTransform,"uppercase")},Ne=v`
|
|
106
106
|
.ft-typography--title {
|
|
107
|
-
font-family: ${
|
|
108
|
-
font-size: ${
|
|
109
|
-
font-weight: ${
|
|
110
|
-
letter-spacing: ${
|
|
111
|
-
line-height: ${
|
|
112
|
-
text-transform: ${
|
|
107
|
+
font-family: ${Bt};
|
|
108
|
+
font-size: ${Ft};
|
|
109
|
+
font-weight: ${jt};
|
|
110
|
+
letter-spacing: ${Ut};
|
|
111
|
+
line-height: ${Dt};
|
|
112
|
+
text-transform: ${Lt};
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,ze=v`
|
|
115
115
|
.ft-typography--title-dense {
|
|
116
|
-
font-family: ${
|
|
117
|
-
font-size: ${
|
|
118
|
-
font-weight: ${
|
|
119
|
-
letter-spacing: ${
|
|
120
|
-
line-height: ${
|
|
121
|
-
text-transform: ${
|
|
116
|
+
font-family: ${Tt};
|
|
117
|
+
font-size: ${At};
|
|
118
|
+
font-weight: ${_t};
|
|
119
|
+
letter-spacing: ${Pt};
|
|
120
|
+
line-height: ${It};
|
|
121
|
+
text-transform: ${Ht};
|
|
122
122
|
}
|
|
123
|
-
`,
|
|
123
|
+
`,Re=v`
|
|
124
124
|
.ft-typography--subtitle1 {
|
|
125
|
-
font-family: ${
|
|
126
|
-
font-size: ${
|
|
127
|
-
font-weight: ${
|
|
128
|
-
letter-spacing: ${
|
|
129
|
-
line-height: ${
|
|
130
|
-
text-transform: ${
|
|
125
|
+
font-family: ${Wt};
|
|
126
|
+
font-size: ${Kt};
|
|
127
|
+
font-weight: ${Vt};
|
|
128
|
+
letter-spacing: ${Zt};
|
|
129
|
+
line-height: ${Jt};
|
|
130
|
+
text-transform: ${qt};
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,Me=v`
|
|
133
133
|
.ft-typography--subtitle2 {
|
|
134
|
-
font-family: ${
|
|
135
|
-
font-size: ${
|
|
136
|
-
font-weight: ${
|
|
137
|
-
letter-spacing: ${
|
|
138
|
-
line-height: ${
|
|
139
|
-
text-transform: ${
|
|
134
|
+
font-family: ${Xt};
|
|
135
|
+
font-size: ${Yt};
|
|
136
|
+
font-weight: ${Gt};
|
|
137
|
+
letter-spacing: ${Qt};
|
|
138
|
+
line-height: ${te};
|
|
139
|
+
text-transform: ${ee};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
`,
|
|
142
|
+
`,Be=v`
|
|
143
143
|
.ft-typography--body1 {
|
|
144
|
-
font-family: ${
|
|
145
|
-
font-size: ${
|
|
146
|
-
font-weight: ${
|
|
147
|
-
letter-spacing: ${
|
|
148
|
-
line-height: ${
|
|
149
|
-
text-transform: ${
|
|
144
|
+
font-family: ${ie};
|
|
145
|
+
font-size: ${oe};
|
|
146
|
+
font-weight: ${se};
|
|
147
|
+
letter-spacing: ${ne};
|
|
148
|
+
line-height: ${re};
|
|
149
|
+
text-transform: ${le};
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,Fe=v`
|
|
152
152
|
.ft-typography--body2 {
|
|
153
|
-
font-family: ${
|
|
154
|
-
font-size: ${
|
|
155
|
-
font-weight: ${
|
|
156
|
-
letter-spacing: ${
|
|
157
|
-
line-height: ${
|
|
158
|
-
text-transform: ${
|
|
153
|
+
font-family: ${ae.fontFamily};
|
|
154
|
+
font-size: ${ae.fontSize};
|
|
155
|
+
font-weight: ${ae.fontWeight};
|
|
156
|
+
letter-spacing: ${ae.letterSpacing};
|
|
157
|
+
line-height: ${ae.lineHeight};
|
|
158
|
+
text-transform: ${ae.textTransform};
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,je=v`
|
|
161
161
|
.ft-typography--caption {
|
|
162
|
-
font-family: ${
|
|
163
|
-
font-size: ${
|
|
164
|
-
font-weight: ${
|
|
165
|
-
letter-spacing: ${
|
|
166
|
-
line-height: ${
|
|
167
|
-
text-transform: ${
|
|
162
|
+
font-family: ${he};
|
|
163
|
+
font-size: ${ce};
|
|
164
|
+
font-weight: ${pe};
|
|
165
|
+
letter-spacing: ${de};
|
|
166
|
+
line-height: ${fe};
|
|
167
|
+
text-transform: ${ue};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,Ue=v`
|
|
170
170
|
.ft-typography--breadcrumb {
|
|
171
|
-
font-family: ${
|
|
172
|
-
font-size: ${
|
|
173
|
-
font-weight: ${
|
|
174
|
-
letter-spacing: ${
|
|
175
|
-
line-height: ${
|
|
176
|
-
text-transform: ${
|
|
171
|
+
font-family: ${ve};
|
|
172
|
+
font-size: ${be};
|
|
173
|
+
font-weight: ${xe};
|
|
174
|
+
letter-spacing: ${ye};
|
|
175
|
+
line-height: ${ge};
|
|
176
|
+
text-transform: ${me};
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
178
|
+
`,De=v`
|
|
179
179
|
.ft-typography--overline {
|
|
180
|
-
font-family: ${
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
180
|
+
font-family: ${$e};
|
|
181
|
+
font-size: ${we};
|
|
182
|
+
font-weight: ${ke};
|
|
183
|
+
letter-spacing: ${Oe};
|
|
184
|
+
line-height: ${Se};
|
|
185
|
+
text-transform: ${Ce};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Le=v`
|
|
188
188
|
.ft-typography--button {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
189
|
+
font-family: ${Ee.fontFamily};
|
|
190
|
+
font-size: ${Ee.fontSize};
|
|
191
|
+
font-weight: ${Ee.fontWeight};
|
|
192
|
+
letter-spacing: ${Ee.letterSpacing};
|
|
193
|
+
line-height: ${Ee.lineHeight};
|
|
194
|
+
text-transform: ${Ee.textTransform};
|
|
195
195
|
}
|
|
196
|
-
`;class
|
|
197
|
-
<${
|
|
196
|
+
`;class Te extends vt{constructor(){super(...arguments),this.variant=Et.body1}render(){return this.element?Ct`
|
|
197
|
+
<${Ot(this.element)}
|
|
198
198
|
class="ft-typography ft-typography--${this.variant}">
|
|
199
199
|
<slot></slot>
|
|
200
|
-
</${
|
|
201
|
-
`:
|
|
200
|
+
</${Ot(this.element)}>
|
|
201
|
+
`:Ct`
|
|
202
202
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
203
|
-
`}}function
|
|
203
|
+
`}}function Ae(t,e){return t.flatMap((t=>[t,...Ae(e(t),e)]))}
|
|
204
204
|
/**
|
|
205
205
|
* @license
|
|
206
206
|
* Copyright 2017 Google LLC
|
|
207
207
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
208
|
-
*/
|
|
208
|
+
*/Te.styles=[Ne,ze,Re,Me,Be,Fe,je,Ue,De,Le,v`
|
|
209
209
|
.ft-typography {
|
|
210
210
|
vertical-align: inherit;
|
|
211
211
|
}
|
|
212
|
-
`],
|
|
212
|
+
`],Nt([i()],Te.prototype,"element",void 0),Nt([i()],Te.prototype,"variant",void 0),h("ft-typography")(Te);const _e=1,Pe=2,Ie=t=>(...e)=>({_$litDirective$:t,values:e});class He{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
213
213
|
/**
|
|
214
214
|
* @license
|
|
215
215
|
* Copyright 2020 Google LLC
|
|
216
216
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
217
|
-
*/const{H:
|
|
217
|
+
*/const{H:We}=rt,Ke=()=>document.createComment(""),Ve=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Ke(),n),o=s.insertBefore(Ke(),n);i=new We(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Ze=(t,e,i=t)=>(t._$AI(e,i),t),Je={},qe=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Xe=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Ye=Ie(class extends He{constructor(t){if(super(t),t.type!==Pe)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],h=[];let c,p,d=0,f=n.length-1,u=0,v=r.length-1;for(;d<=f&&u<=v;)if(null===n[d])d++;else if(null===n[f])f--;else if(a[d]===l[u])h[u]=Ze(n[d],r[u]),d++,u++;else if(a[f]===l[v])h[v]=Ze(n[f],r[v]),f--,v--;else if(a[d]===l[v])h[v]=Ze(n[d],r[v]),Ve(t,h[v+1],n[d]),d++,v--;else if(a[f]===l[u])h[u]=Ze(n[f],r[u]),Ve(t,n[d],n[f]),f--,u++;else if(void 0===c&&(c=Xe(l,u,v),p=Xe(a,d,f)),c.has(a[d]))if(c.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ve(t,n[d]);Ze(e,r[u]),h[u]=e}else h[u]=Ze(i,r[u]),Ve(t,n[d],i),n[e]=null;u++}else qe(n[f]),f--;else qe(n[d]),d++;for(;u<=v;){const e=Ve(t,h[v+1]);Ze(e,r[u]),h[u++]=e}for(;d<=f;){const t=n[d++];null!==t&&qe(t)}return this.ut=l,((t,e=Je)=>{t._$AH=e})(t,h),K}}),Ge=Ie(class extends He{constructor(t){var e;if(super(t),t.type!==_e||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return K}});
|
|
218
218
|
/**
|
|
219
219
|
* @license
|
|
220
220
|
* Copyright 2017 Google LLC
|
|
221
221
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
222
|
-
*/var
|
|
222
|
+
*/var Qe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ti=dt.extend("--ft-ripple-color",ut.colorContent),ei={color:ti,backgroundColor:dt.extend("--ft-ripple-background-color",ti),opacityContentOnSurfacePressed:dt.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(ut.opacityContentOnSurfaceSelected,"Design system")},ii=dt.extend("--ft-ripple-color",ut.colorPrimary),oi=ii,si=dt.extend("--ft-ripple-background-color",ii),ni=dt.extend("--ft-ripple-color",ut.colorSecondary),ri=ni,li=dt.extend("--ft-ripple-background-color",ni);class ai extends vt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new t(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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 W`
|
|
223
223
|
<style>
|
|
224
224
|
.ft-ripple .ft-ripple--effect,
|
|
225
225
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -232,11 +232,11 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
232
232
|
top: ${this.originY}px;
|
|
233
233
|
}
|
|
234
234
|
</style>
|
|
235
|
-
<div class="${
|
|
235
|
+
<div class="${Ge(t)}">
|
|
236
236
|
<div class="ft-ripple--background"></div>
|
|
237
237
|
<div class="ft-ripple--effect"></div>
|
|
238
238
|
</div>
|
|
239
|
-
`}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){super.updated(t),t.has("disabled")&&this.disabled
|
|
239
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ai.elementDefinitions={},ai.styles=v`
|
|
240
240
|
:host {
|
|
241
241
|
display: contents;
|
|
242
242
|
}
|
|
@@ -255,17 +255,30 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
255
255
|
.ft-ripple .ft-ripple--effect {
|
|
256
256
|
position: absolute;
|
|
257
257
|
opacity: 0;
|
|
258
|
-
background-color: ${Ge.color};
|
|
259
258
|
}
|
|
260
259
|
|
|
261
|
-
.ft-ripple
|
|
260
|
+
.ft-ripple .ft-ripple--background {
|
|
261
|
+
background-color: ${ei.backgroundColor};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.ft-ripple .ft-ripple--effect {
|
|
265
|
+
background-color: ${ei.color};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
269
|
+
background-color: ${li};
|
|
270
|
+
}
|
|
271
|
+
|
|
262
272
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
263
|
-
background-color: ${
|
|
273
|
+
background-color: ${ri};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
277
|
+
background-color: ${si};
|
|
264
278
|
}
|
|
265
279
|
|
|
266
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
267
280
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
268
|
-
background-color: ${
|
|
281
|
+
background-color: ${oi};
|
|
269
282
|
}
|
|
270
283
|
|
|
271
284
|
.ft-ripple .ft-ripple--background {
|
|
@@ -273,6 +286,7 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
273
286
|
left: 0;
|
|
274
287
|
height: 100%;
|
|
275
288
|
width: 100%;
|
|
289
|
+
transition: opacity 75ms linear;
|
|
276
290
|
}
|
|
277
291
|
|
|
278
292
|
.ft-ripple .ft-ripple--effect,
|
|
@@ -296,22 +310,22 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
296
310
|
}
|
|
297
311
|
|
|
298
312
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
299
|
-
opacity: ${
|
|
313
|
+
opacity: ${ei.opacityContentOnSurfaceHover};
|
|
300
314
|
}
|
|
301
315
|
|
|
302
316
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
303
|
-
opacity: ${
|
|
317
|
+
opacity: ${ei.opacityContentOnSurfaceSelected};
|
|
304
318
|
}
|
|
305
319
|
|
|
306
320
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
307
|
-
opacity: ${
|
|
321
|
+
opacity: ${ei.opacityContentOnSurfaceFocused};
|
|
308
322
|
}
|
|
309
323
|
|
|
310
324
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
311
|
-
opacity: ${
|
|
325
|
+
opacity: ${ei.opacityContentOnSurfacePressed};
|
|
312
326
|
transform: translate(-50%, -50%) scale(1);
|
|
313
327
|
}
|
|
314
|
-
`,
|
|
328
|
+
`,Qe([i({type:Boolean})],ai.prototype,"primary",void 0),Qe([i({type:Boolean})],ai.prototype,"secondary",void 0),Qe([i({type:Boolean})],ai.prototype,"unbounded",void 0),Qe([i({type:Boolean})],ai.prototype,"activated",void 0),Qe([i({type:Boolean})],ai.prototype,"selected",void 0),Qe([i({type:Boolean})],ai.prototype,"disabled",void 0),Qe([o()],ai.prototype,"hovered",void 0),Qe([o()],ai.prototype,"focused",void 0),Qe([o()],ai.prototype,"pressed",void 0),Qe([o()],ai.prototype,"rippling",void 0),Qe([o()],ai.prototype,"rippleSize",void 0),Qe([o()],ai.prototype,"originX",void 0),Qe([o()],ai.prototype,"originY",void 0),Qe([n(".ft-ripple")],ai.prototype,"ripple",void 0),Qe([n(".ft-ripple--effect")],ai.prototype,"rippleEffect",void 0),h("ft-ripple")(ai);var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ci=dt.create("--ft-tooltip-distance","SIZE","4px"),pi=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),di=dt.create("--ft-tooltip-background-color","COLOR","#666666"),fi=dt.create("--ft-tooltip-z-index","NUMBER","1"),ui=dt.external(ut.borderRadiusS,"Design system");class vi extends vt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new t,this.revealDebouncer=new t}render(){return W`
|
|
315
329
|
<div part="container"
|
|
316
330
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
317
331
|
@mouseenter=${this.onHover}
|
|
@@ -326,7 +340,7 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
326
340
|
</div>
|
|
327
341
|
<slot></slot>
|
|
328
342
|
</div>
|
|
329
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=e.height+"px",s.left=o+"px";break;case"left":s.top=i+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=i+"px",s.left=e.width+"px"}s.maxWidth=Math.max(e.width,150)+"px"}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())}}
|
|
343
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=e.height+"px",s.left=o+"px";break;case"left":s.top=i+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=i+"px",s.left=e.width+"px"}s.maxWidth=Math.max(e.width,150)+"px"}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())}}vi.elementDefinitions={"ft-typography":Te},vi.styles=v`
|
|
330
344
|
.ft-tooltip--container {
|
|
331
345
|
display: block;
|
|
332
346
|
position: relative;
|
|
@@ -344,21 +358,21 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
344
358
|
width: max-content;
|
|
345
359
|
max-width: 150px;
|
|
346
360
|
text-align: center;
|
|
347
|
-
padding: ${
|
|
348
|
-
z-index: ${
|
|
361
|
+
padding: ${ci};
|
|
362
|
+
z-index: ${fi};
|
|
349
363
|
}
|
|
350
364
|
|
|
351
365
|
.ft-tooltip--content {
|
|
352
366
|
padding: 4px 8px;
|
|
353
|
-
border-radius: ${
|
|
354
|
-
background-color: ${
|
|
355
|
-
color: ${
|
|
367
|
+
border-radius: ${ui};
|
|
368
|
+
background-color: ${di};
|
|
369
|
+
color: ${pi};
|
|
356
370
|
top: -500px;
|
|
357
371
|
left: -500px;
|
|
358
372
|
position: relative;
|
|
359
373
|
word-break: break-word;
|
|
360
374
|
}
|
|
361
|
-
`,
|
|
375
|
+
`,hi([i()],vi.prototype,"text",void 0),hi([i({type:Boolean})],vi.prototype,"manual",void 0),hi([i({type:Boolean})],vi.prototype,"inline",void 0),hi([i({type:Number})],vi.prototype,"delay",void 0),hi([i()],vi.prototype,"position",void 0),hi([function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?a({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],vi.prototype,"slotNodes",void 0),hi([n(".ft-tooltip--container")],vi.prototype,"container",void 0),hi([n("slot")],vi.prototype,"target",void 0),hi([n(".ft-tooltip")],vi.prototype,"tooltip",void 0),hi([n(".ft-tooltip--content")],vi.prototype,"tooltipContent",void 0),hi([o()],vi.prototype,"visible",void 0),h("ft-tooltip")(vi);const bi={color:dt.extend("--ft-loader-color",ut.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")};class xi extends vt{static get styles(){return v`
|
|
362
376
|
:host {
|
|
363
377
|
line-height: 0;
|
|
364
378
|
}
|
|
@@ -367,8 +381,8 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
367
381
|
display: inline-block;
|
|
368
382
|
position: relative;
|
|
369
383
|
|
|
370
|
-
width: ${
|
|
371
|
-
height: ${
|
|
384
|
+
width: ${bi.size};
|
|
385
|
+
height: ${bi.size};
|
|
372
386
|
}
|
|
373
387
|
|
|
374
388
|
.ft-loader div {
|
|
@@ -377,7 +391,7 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
377
391
|
width: 25%;
|
|
378
392
|
height: 25%;
|
|
379
393
|
border-radius: 50%;
|
|
380
|
-
background: ${
|
|
394
|
+
background: ${bi.color};
|
|
381
395
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
382
396
|
}
|
|
383
397
|
|
|
@@ -424,7 +438,7 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
424
438
|
transform: translate(0, 0);
|
|
425
439
|
}
|
|
426
440
|
100% {
|
|
427
|
-
transform: translate(calc(0.35 * ${
|
|
441
|
+
transform: translate(calc(0.35 * ${bi.size}), 0);
|
|
428
442
|
}
|
|
429
443
|
}
|
|
430
444
|
`}render(){return W`
|
|
@@ -434,27 +448,27 @@ var at,ht;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
434
448
|
<div></div>
|
|
435
449
|
<div></div>
|
|
436
450
|
</div>
|
|
437
|
-
`}}h("ft-loader")(
|
|
451
|
+
`}}h("ft-loader")(xi);
|
|
438
452
|
/**
|
|
439
453
|
* @license
|
|
440
454
|
* Copyright 2017 Google LLC
|
|
441
455
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
442
456
|
*/
|
|
443
|
-
class
|
|
457
|
+
class yi extends He{constructor(t){if(super(t),this.it=V,t.type!==Pe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this.ft=void 0,this.it=t;if(t===K)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}yi.directiveName="unsafeHTML",yi.resultType=1;const gi=Ie(yi);var mi,$i;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(mi||(mi={})),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=""}($i||($i={})),new Map([...["abw"].map((t=>[t,$i.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,$i.AUDIO])),...["avi"].map((t=>[t,$i.AVI])),...["chm","xhs"].map((t=>[t,$i.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,$i.CODE])),...["csv"].map((t=>[t,$i.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$i.DITA])),...["epub"].map((t=>[t,$i.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$i.EXCEL])),...["flac"].map((t=>[t,$i.FLAC])),...["gif"].map((t=>[t,$i.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$i.GZIP])),...["html","htm","xhtml"].map((t=>[t,$i.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,$i.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$i.JPEG])),...["json"].map((t=>[t,$i.JSON])),...["m4a","m4p"].map((t=>[t,$i.M4A])),...["mov","qt"].map((t=>[t,$i.MOV])),...["mp3"].map((t=>[t,$i.MP3])),...["mp4","m4v"].map((t=>[t,$i.MP4])),...["ogg","oga"].map((t=>[t,$i.OGG])),...["pdf","ps"].map((t=>[t,$i.PDF])),...["png"].map((t=>[t,$i.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$i.POWERPOINT])),...["rar"].map((t=>[t,$i.RAR])),...["stp"].map((t=>[t,$i.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$i.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,$i.VIDEO])),...["wav"].map((t=>[t,$i.WAV])),...["wma"].map((t=>[t,$i.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$i.WORD])),...["xml","xsl","rdf"].map((t=>[t,$i.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$i.YAML])),...["zip"].map((t=>[t,$i.ZIP]))]);var wi,ki=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(wi||(wi={}));const Oi={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"))};class Si extends vt{constructor(){super(...arguments),this.variant=wi.fluid_topics}render(){return W`
|
|
444
458
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
445
|
-
${
|
|
459
|
+
${gi(this.getIcon())}
|
|
446
460
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
447
461
|
</i>
|
|
448
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===
|
|
462
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===wi.file_format?null!==(t=$i[i.toUpperCase()])&&void 0!==t?t:i:this.variant===wi.fluid_topics?null!==(e=mi[i.toUpperCase()])&&void 0!==e?e:i:V}}Si.elementDefinitions={},Si.styles=v`
|
|
449
463
|
:host, i.ft-icon {
|
|
450
464
|
display: inline-block;
|
|
451
|
-
width: ${
|
|
452
|
-
height: ${
|
|
465
|
+
width: ${Oi.size};
|
|
466
|
+
height: ${Oi.size};
|
|
453
467
|
text-align: center;
|
|
454
468
|
}
|
|
455
469
|
|
|
456
470
|
i.ft-icon {
|
|
457
|
-
font-size: ${
|
|
471
|
+
font-size: ${Oi.size};
|
|
458
472
|
line-height: 1;
|
|
459
473
|
font-weight: normal;
|
|
460
474
|
text-transform: none;
|
|
@@ -468,17 +482,17 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
468
482
|
}
|
|
469
483
|
|
|
470
484
|
.ft-icon--fluid-topics {
|
|
471
|
-
font-family: ${
|
|
485
|
+
font-family: ${Oi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
472
486
|
}
|
|
473
487
|
|
|
474
488
|
.ft-icon--file-format {
|
|
475
|
-
font-family: ${
|
|
489
|
+
font-family: ${Oi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
476
490
|
}
|
|
477
491
|
|
|
478
492
|
.ft-icon--material {
|
|
479
|
-
font-family: ${
|
|
493
|
+
font-family: ${Oi.materialFontFamily}, "Material Icons", sans-serif;
|
|
480
494
|
}
|
|
481
|
-
`,
|
|
495
|
+
`,ki([i()],Si.prototype,"variant",void 0),ki([n("slot")],Si.prototype,"slottedContent",void 0),h("ft-icon")(Si);var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ei=dt.extend("--ft-button-color",ut.colorPrimary),Ni={backgroundColor:dt.extend("--ft-button-background-color",ut.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",ut.borderRadiusL),color:Ei,fontSize:dt.extend("--ft-button-font-size",Ee.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",Ei),opacityDisabled:dt.external(ut.colorOpacityDisabled,"Design system")},zi=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",ut.colorOnPrimary)),Ri={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",ut.colorPrimary)),color:zi,rippleColor:dt.extend("--ft-button-primary-ripple-color",zi)},Mi=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",ut.borderRadiusM));class Bi extends vt{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.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[bt,v`
|
|
482
496
|
:host {
|
|
483
497
|
display: inline-block;
|
|
484
498
|
max-width: 100%;
|
|
@@ -517,18 +531,18 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
517
531
|
border: none;
|
|
518
532
|
pointer-events: auto;
|
|
519
533
|
|
|
520
|
-
--ft-button-internal-font-size: ${
|
|
534
|
+
--ft-button-internal-font-size: ${Ni.fontSize};
|
|
521
535
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
522
|
-
--ft-button-internal-color: ${
|
|
523
|
-
${ft(
|
|
536
|
+
--ft-button-internal-color: ${Ni.color};
|
|
537
|
+
${ft(Oi.size,Ni.iconSize)};
|
|
524
538
|
--ft-button-internal-vertical-padding: 6px;
|
|
525
539
|
--ft-button-internal-horizontal-padding: 8px;
|
|
526
|
-
${ft(
|
|
527
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
540
|
+
${ft(ei.color,Ni.rippleColor)};
|
|
541
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ni.iconSize});
|
|
528
542
|
|
|
529
|
-
border-radius: ${
|
|
543
|
+
border-radius: ${Ni.borderRadius};
|
|
530
544
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
531
|
-
background-color: ${
|
|
545
|
+
background-color: ${Ni.backgroundColor};
|
|
532
546
|
color: var(--ft-button-internal-color);
|
|
533
547
|
-webkit-mask-image: radial-gradient(white, black);
|
|
534
548
|
}
|
|
@@ -540,7 +554,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
540
554
|
.ft-button--dense {
|
|
541
555
|
--ft-button-internal-vertical-padding: 2px;
|
|
542
556
|
--ft-button-internal-horizontal-padding: 4px;
|
|
543
|
-
border-radius: ${
|
|
557
|
+
border-radius: ${Mi};
|
|
544
558
|
}
|
|
545
559
|
|
|
546
560
|
.ft-button--round {
|
|
@@ -549,13 +563,13 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
549
563
|
|
|
550
564
|
.ft-button[disabled] {
|
|
551
565
|
filter: grayscale(1);
|
|
552
|
-
opacity: ${
|
|
566
|
+
opacity: ${Ni.opacityDisabled};
|
|
553
567
|
}
|
|
554
568
|
|
|
555
569
|
.ft-button.ft-button--primary {
|
|
556
|
-
background-color: ${
|
|
557
|
-
--ft-button-internal-color: ${
|
|
558
|
-
${ft(
|
|
570
|
+
background-color: ${Ri.backgroundColor};
|
|
571
|
+
--ft-button-internal-color: ${Ri.color};
|
|
572
|
+
${ft(ei.color,Ri.rippleColor)};
|
|
559
573
|
}
|
|
560
574
|
|
|
561
575
|
.ft-button.ft-button--outlined {
|
|
@@ -568,13 +582,14 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
568
582
|
}
|
|
569
583
|
|
|
570
584
|
.ft-button--label {
|
|
585
|
+
position: relative;
|
|
571
586
|
overflow: hidden;
|
|
572
587
|
white-space: nowrap;
|
|
573
588
|
text-overflow: ellipsis;
|
|
574
589
|
display: block;
|
|
575
590
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
576
|
-
${ft(
|
|
577
|
-
${ft(
|
|
591
|
+
${ft(Ee.fontSize,"var(--ft-button-internal-font-size)")};
|
|
592
|
+
${ft(Ee.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
578
593
|
}
|
|
579
594
|
|
|
580
595
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -593,6 +608,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
593
608
|
|
|
594
609
|
ft-icon {
|
|
595
610
|
flex-shrink: 0;
|
|
611
|
+
position: relative;
|
|
596
612
|
}
|
|
597
613
|
|
|
598
614
|
.ft-button--label[hidden] + ft-icon {
|
|
@@ -606,12 +622,12 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
606
622
|
}
|
|
607
623
|
|
|
608
624
|
ft-loader {
|
|
609
|
-
${ft(
|
|
610
|
-
${ft(
|
|
625
|
+
${ft(bi.size,Ni.iconSize)};
|
|
626
|
+
${ft(bi.color,"var(--ft-button-internal-color)")};
|
|
611
627
|
}
|
|
612
628
|
`]}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.addTooltip(W`
|
|
613
629
|
<button part="button"
|
|
614
|
-
class="${
|
|
630
|
+
class="${Ge(t)}"
|
|
615
631
|
aria-label="${this.getLabel()}"
|
|
616
632
|
?disabled=${this.isDisabled()}>
|
|
617
633
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -631,8 +647,8 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
631
647
|
</ft-tooltip>
|
|
632
648
|
`}resolveIcon(){return this.loading?W`
|
|
633
649
|
<ft-loader></ft-loader> `:this.icon?W`
|
|
634
|
-
<ft-icon variant="material">${this.icon}</ft-icon> `:V}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}}
|
|
635
|
-
<label class="${
|
|
650
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:V}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}}Bi.elementDefinitions={"ft-ripple":ai,"ft-tooltip":vi,"ft-typography":Te,"ft-icon":Si,"ft-loader":xi},Ci([i({type:Boolean})],Bi.prototype,"primary",void 0),Ci([i({type:Boolean})],Bi.prototype,"outlined",void 0),Ci([i({type:Boolean})],Bi.prototype,"disabled",void 0),Ci([i({type:Boolean})],Bi.prototype,"dense",void 0),Ci([i({type:Boolean})],Bi.prototype,"round",void 0),Ci([i({type:String})],Bi.prototype,"label",void 0),Ci([i({type:String})],Bi.prototype,"icon",void 0),Ci([i({type:Boolean})],Bi.prototype,"trailingIcon",void 0),Ci([i({type:Boolean})],Bi.prototype,"loading",void 0),Ci([i({type:String})],Bi.prototype,"tooltipPosition",void 0),Ci([n(".ft-button")],Bi.prototype,"button",void 0),Ci([n(".ft-button--label slot")],Bi.prototype,"slottedContent",void 0),h("ft-button")(Bi);var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ji=dt.extend("--ft-checkbox-text-color",ut.colorOnSurfaceHigh),Ui=dt.external(ut.colorPrimary,"Design system"),Di=dt.external(ut.colorOnPrimary,"Design system"),Li=dt.extend("--ft-checkbox-border-color",ut.colorOnSurfaceMedium),Ti=dt.external(ut.colorOnSurfaceDisabled,"Design system");class Ai extends vt{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return W`
|
|
651
|
+
<label class="${Ge(t)}">
|
|
636
652
|
<div class="ft-checkbox--box-container">
|
|
637
653
|
<input type="checkbox"
|
|
638
654
|
name=${this.name}
|
|
@@ -656,14 +672,14 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
656
672
|
<slot></slot>
|
|
657
673
|
</ft-typography>
|
|
658
674
|
</label>
|
|
659
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}
|
|
675
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Ai.elementDefinitions={"ft-ripple":ai,"ft-typography":Te},Ai.styles=v`
|
|
660
676
|
* {
|
|
661
677
|
box-sizing: border-box;
|
|
662
678
|
}
|
|
663
679
|
|
|
664
680
|
.ft-checkbox {
|
|
665
681
|
box-sizing: border-box;
|
|
666
|
-
color: ${
|
|
682
|
+
color: ${ji};
|
|
667
683
|
|
|
668
684
|
display: inline-flex;
|
|
669
685
|
align-items: center;
|
|
@@ -671,7 +687,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
671
687
|
}
|
|
672
688
|
|
|
673
689
|
.ft-checkbox--disabled {
|
|
674
|
-
color: ${
|
|
690
|
+
color: ${Ti};
|
|
675
691
|
}
|
|
676
692
|
|
|
677
693
|
input {
|
|
@@ -694,26 +710,26 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
694
710
|
}
|
|
695
711
|
|
|
696
712
|
.ft-checkbox--box {
|
|
697
|
-
border: 2px solid ${
|
|
713
|
+
border: 2px solid ${Li};
|
|
698
714
|
border-radius: 2px;
|
|
699
715
|
|
|
700
716
|
width: 18px;
|
|
701
717
|
height: 18px;
|
|
702
718
|
|
|
703
|
-
color: ${
|
|
719
|
+
color: ${Di};
|
|
704
720
|
}
|
|
705
721
|
|
|
706
722
|
|
|
707
723
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
708
724
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
709
|
-
border-color: ${
|
|
710
|
-
background-color: ${
|
|
725
|
+
border-color: ${Ui};
|
|
726
|
+
background-color: ${Ui};
|
|
711
727
|
}
|
|
712
728
|
|
|
713
729
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
714
|
-
border-color: ${
|
|
730
|
+
border-color: ${Ti};
|
|
715
731
|
background-color: transparent;
|
|
716
|
-
color: ${
|
|
732
|
+
color: ${Ti};
|
|
717
733
|
}
|
|
718
734
|
|
|
719
735
|
.ft-checkbox--checkmark {
|
|
@@ -732,8 +748,8 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
732
748
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
733
749
|
opacity: 1;
|
|
734
750
|
}
|
|
735
|
-
`,
|
|
736
|
-
<div class="${
|
|
751
|
+
`,Fi([i()],Ai.prototype,"name",void 0),Fi([i({type:Boolean})],Ai.prototype,"checked",void 0),Fi([i({type:Boolean})],Ai.prototype,"indeterminate",void 0),Fi([i({type:Boolean})],Ai.prototype,"disabled",void 0),Fi([n(".ft-checkbox")],Ai.prototype,"container",void 0),Fi([n("ft-ripple")],Ai.prototype,"ripple",void 0),h("ft-checkbox")(Ai);var _i=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Pi=dt.extend("--ft-radio-text-color",ut.colorOnSurfaceHigh),Ii=dt.external(ut.colorPrimary,"Design system"),Hi=(dt.external(ut.colorOnPrimary,"Design system"),dt.extend("--ft-radio-border-color",ut.colorOnSurfaceMedium)),Wi=dt.external(ut.colorOnSurfaceDisabled,"Design system");class Ki extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Vi extends vt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return W`
|
|
752
|
+
<div class="${Ge(t)}">
|
|
737
753
|
<div class="ft-radio--box-container">
|
|
738
754
|
<input id="radio-button"
|
|
739
755
|
type="radio"
|
|
@@ -757,14 +773,14 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
757
773
|
</ft-typography>
|
|
758
774
|
</label>
|
|
759
775
|
</div>
|
|
760
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
776
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ki(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ki(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Vi.elementDefinitions={"ft-ripple":ai,"ft-typography":Te},Vi.styles=v`
|
|
761
777
|
* {
|
|
762
778
|
box-sizing: border-box;
|
|
763
779
|
}
|
|
764
780
|
|
|
765
781
|
.ft-radio {
|
|
766
782
|
box-sizing: border-box;
|
|
767
|
-
color: ${
|
|
783
|
+
color: ${Pi};
|
|
768
784
|
|
|
769
785
|
display: inline-flex;
|
|
770
786
|
align-items: center;
|
|
@@ -772,7 +788,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
772
788
|
}
|
|
773
789
|
|
|
774
790
|
.ft-radio--disabled {
|
|
775
|
-
color: ${
|
|
791
|
+
color: ${Wi};
|
|
776
792
|
}
|
|
777
793
|
|
|
778
794
|
input {
|
|
@@ -795,7 +811,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
795
811
|
}
|
|
796
812
|
|
|
797
813
|
.ft-radio--box {
|
|
798
|
-
border: 2px solid ${
|
|
814
|
+
border: 2px solid ${Hi};
|
|
799
815
|
border-radius: 50%;
|
|
800
816
|
|
|
801
817
|
display: flex;
|
|
@@ -808,7 +824,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
808
824
|
|
|
809
825
|
.ft-radio--box:after {
|
|
810
826
|
content: " ";
|
|
811
|
-
background-color: ${
|
|
827
|
+
background-color: ${Ii};
|
|
812
828
|
|
|
813
829
|
border-radius: 50%;
|
|
814
830
|
|
|
@@ -820,7 +836,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
820
836
|
}
|
|
821
837
|
|
|
822
838
|
.ft-radio--checked .ft-radio--box {
|
|
823
|
-
border-color: ${
|
|
839
|
+
border-color: ${Ii};
|
|
824
840
|
}
|
|
825
841
|
|
|
826
842
|
|
|
@@ -829,24 +845,24 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
829
845
|
}
|
|
830
846
|
|
|
831
847
|
.ft-radio--disabled .ft-radio--box {
|
|
832
|
-
border-color: ${
|
|
848
|
+
border-color: ${Wi};
|
|
833
849
|
background-color: transparent;
|
|
834
850
|
}
|
|
835
851
|
|
|
836
852
|
.ft-radio--disabled .ft-radio--box:after {
|
|
837
|
-
background-color: ${
|
|
853
|
+
background-color: ${Wi};
|
|
838
854
|
}
|
|
839
|
-
`,
|
|
855
|
+
`,_i([i()],Vi.prototype,"value",void 0),_i([i()],Vi.prototype,"name",void 0),_i([i({type:Boolean})],Vi.prototype,"checked",void 0),_i([i({type:Boolean})],Vi.prototype,"disabled",void 0),_i([n(".ft-radio")],Vi.prototype,"container",void 0),_i([n("ft-ripple")],Vi.prototype,"ripple",void 0),_i([n("input")],Vi.prototype,"input",void 0);var Zi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ji extends vt{constructor(){super(...arguments),this.name=""}render(){return W`
|
|
840
856
|
<slot @slotchange=${this.onSlotChange}
|
|
841
857
|
@change=${this.onChange}
|
|
842
858
|
@keydown=${this.onKeyDown}
|
|
843
859
|
@focusin=${this.onFocusIn}
|
|
844
860
|
></slot>
|
|
845
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
861
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ji.elementDefinitions={},Ji.styles=v`
|
|
846
862
|
:host {
|
|
847
863
|
display: contents;
|
|
848
864
|
}
|
|
849
|
-
`,
|
|
865
|
+
`,Zi([i()],Ji.prototype,"name",void 0),Zi([a()],Ji.prototype,"radioButtons",void 0),h("ft-radio")(Vi),h("ft-radio-group")(Ji);var qi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Xi={borderRadiusM:dt.external(ut.borderRadiusM,"Design system"),colorOutline:dt.external(ut.colorOutline,"Design system"),colorOnSurface:dt.external(ut.colorOnSurface,"Design system"),colorOnSurfaceMedium:dt.external(ut.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:dt.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:dt.external(ut.colorPrimary,"Design system"),colorOnPrimary:dt.external(ut.colorOnPrimary,"Design system"),fontFamily:dt.external(ae.fontFamily,"Body2 typography"),fontSize:dt.external(ae.fontSize,"Body2 typography"),fontWeight:dt.external(ae.fontWeight,"Body2 typography"),letterSpacing:dt.external(ae.letterSpacing,"Body2 typography"),lineHeight:dt.external(ae.lineHeight,"Body2 typography"),textTransform:dt.external(ae.textTransform,"Body2 typography")};class Yi extends vt{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return W`
|
|
850
866
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
851
867
|
${null==this.parent?null:W`
|
|
852
868
|
<div tabindex="0"
|
|
@@ -859,7 +875,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
859
875
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
860
876
|
</div>
|
|
861
877
|
`}
|
|
862
|
-
${
|
|
878
|
+
${Ye(e,(t=>t.value),(t=>{var e;return W`
|
|
863
879
|
<div class="ft-filter-level--option" part="options">
|
|
864
880
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
865
881
|
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?V:W`
|
|
@@ -885,7 +901,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
885
901
|
<ft-checkbox name="${this.id}"
|
|
886
902
|
.checked=${t.selected}
|
|
887
903
|
.disabled=${this.disabled}
|
|
888
|
-
.indeterminate=${
|
|
904
|
+
.indeterminate=${Ae(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
889
905
|
@change=${e=>this.optionsChanged(e,t)}>
|
|
890
906
|
${t.label}
|
|
891
907
|
</ft-checkbox>
|
|
@@ -899,7 +915,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
899
915
|
|
|
900
916
|
${t.label}
|
|
901
917
|
</ft-radio>
|
|
902
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
918
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Yi.elementDefinitions={"ft-button":Bi,"ft-ripple":ai,"ft-typography":Te,"ft-checkbox":Ai,"ft-icon":Si,"ft-radio":Vi},Yi.styles=[v`
|
|
903
919
|
.ft-filter-level--container {
|
|
904
920
|
display: flex;
|
|
905
921
|
flex-direction: column;
|
|
@@ -913,14 +929,14 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
913
929
|
flex-shrink: 0;
|
|
914
930
|
text-decoration: none;
|
|
915
931
|
position: relative;
|
|
916
|
-
border-radius: ${
|
|
932
|
+
border-radius: ${Xi.borderRadiusM};
|
|
917
933
|
overflow: hidden;
|
|
918
934
|
display: flex;
|
|
919
935
|
align-items: center;
|
|
920
936
|
padding: 4px 4px;
|
|
921
937
|
gap: 4px;
|
|
922
938
|
cursor: pointer;
|
|
923
|
-
color: ${
|
|
939
|
+
color: ${Xi.colorOnSurface};
|
|
924
940
|
}
|
|
925
941
|
|
|
926
942
|
.ft-filter-level--go-back:focus {
|
|
@@ -949,7 +965,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
949
965
|
}
|
|
950
966
|
|
|
951
967
|
ft-button {
|
|
952
|
-
${ft(
|
|
968
|
+
${ft(Ni.color,Xi.colorOnSurface)};
|
|
953
969
|
}
|
|
954
970
|
|
|
955
971
|
ft-radio, ft-checkbox {
|
|
@@ -960,7 +976,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
960
976
|
margin-left: -10px;
|
|
961
977
|
word-break: break-word;
|
|
962
978
|
}
|
|
963
|
-
`],
|
|
979
|
+
`],qi([i({type:String})],Yi.prototype,"id",void 0),qi([i({type:Object})],Yi.prototype,"parent",void 0),qi([i({type:Array})],Yi.prototype,"options",void 0),qi([i({type:Boolean})],Yi.prototype,"multivalued",void 0),qi([i({type:Boolean})],Yi.prototype,"disabled",void 0),qi([i({type:Boolean})],Yi.prototype,"hideSelectedOptions",void 0),qi([i({type:Boolean})],Yi.prototype,"preventNavigation",void 0),qi([i({type:String})],Yi.prototype,"filter",void 0),qi([i({type:String})],Yi.prototype,"moreValuesButtonLabel",void 0),qi([i({type:Number})],Yi.prototype,"displayedValuesLimit",void 0),qi([n(".ft-filter-level--container")],Yi.prototype,"container",void 0),qi([o()],Yi.prototype,"displayedPages",void 0);var Gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Qi={buttonsColor:dt.extend("--ft-snap-scroll-buttons-color",ut.colorPrimary),buttonsZIndex:dt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:dt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:dt.external(ut.colorSurface,"Design system")};class to extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class eo extends vt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new t(200),this.updateScrollDebouncer=new t(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Ge({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":$t}),e=this.controls&&this.withScroll;return W`
|
|
964
980
|
<div part="container" class="${t}">
|
|
965
981
|
<ft-button
|
|
966
982
|
class="ft-snap-scroll--previous"
|
|
@@ -984,7 +1000,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
984
1000
|
@click=${this.next}
|
|
985
1001
|
></ft-button>
|
|
986
1002
|
</div>
|
|
987
|
-
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1003
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new to(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}eo.elementDefinitions={"ft-button":Bi},eo.styles=v`
|
|
988
1004
|
.ft-snap-scroll {
|
|
989
1005
|
box-sizing: border-box;
|
|
990
1006
|
position: relative;
|
|
@@ -1019,7 +1035,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1019
1035
|
flex-wrap: nowrap;
|
|
1020
1036
|
align-items: flex-start;
|
|
1021
1037
|
justify-content: flex-start;
|
|
1022
|
-
gap: ${
|
|
1038
|
+
gap: ${Qi.gap};
|
|
1023
1039
|
}
|
|
1024
1040
|
|
|
1025
1041
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1062,11 +1078,11 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1062
1078
|
.ft-snap-scroll--next {
|
|
1063
1079
|
position: absolute;
|
|
1064
1080
|
display: flex;
|
|
1065
|
-
z-index: ${
|
|
1081
|
+
z-index: ${Qi.buttonsZIndex};
|
|
1066
1082
|
opacity: 1;
|
|
1067
1083
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1068
|
-
${ft(
|
|
1069
|
-
${ft(
|
|
1084
|
+
${ft(Ni.backgroundColor,"transparent")};
|
|
1085
|
+
${ft(Ni.color,Qi.buttonsColor)};
|
|
1070
1086
|
}
|
|
1071
1087
|
|
|
1072
1088
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1079,37 +1095,37 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1079
1095
|
top: 0;
|
|
1080
1096
|
left: -1px;
|
|
1081
1097
|
bottom: 0;
|
|
1082
|
-
background: linear-gradient(to right, ${
|
|
1098
|
+
background: linear-gradient(to right, ${Qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1083
1099
|
}
|
|
1084
1100
|
|
|
1085
1101
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1086
1102
|
top: -1px;
|
|
1087
1103
|
left: 0;
|
|
1088
1104
|
right: 0;
|
|
1089
|
-
background: linear-gradient(to bottom, ${
|
|
1105
|
+
background: linear-gradient(to bottom, ${Qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1090
1106
|
}
|
|
1091
1107
|
|
|
1092
1108
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1093
1109
|
top: 0;
|
|
1094
1110
|
right: -1px;
|
|
1095
1111
|
bottom: 0;
|
|
1096
|
-
background: linear-gradient(to left, ${
|
|
1112
|
+
background: linear-gradient(to left, ${Qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1097
1113
|
}
|
|
1098
1114
|
|
|
1099
1115
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1100
1116
|
left: 0;
|
|
1101
1117
|
right: 0;
|
|
1102
1118
|
bottom: -1px;
|
|
1103
|
-
background: linear-gradient(to top, ${
|
|
1119
|
+
background: linear-gradient(to top, ${Qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1104
1120
|
}
|
|
1105
1121
|
|
|
1106
1122
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1107
1123
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1108
1124
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1109
1125
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1110
|
-
background-color: ${
|
|
1126
|
+
background-color: ${Qi.colorSurface};
|
|
1111
1127
|
}
|
|
1112
|
-
`,
|
|
1128
|
+
`,Gi([i({type:Boolean})],eo.prototype,"horizontal",void 0),Gi([i({type:Boolean})],eo.prototype,"hideScrollbar",void 0),Gi([i({type:Boolean})],eo.prototype,"controls",void 0),Gi([i({type:Boolean})],eo.prototype,"limitSize",void 0),Gi([o()],eo.prototype,"elements",void 0),Gi([o()],eo.prototype,"currentElement",void 0),Gi([o()],eo.prototype,"withScroll",void 0),Gi([o()],eo.prototype,"startReached",void 0),Gi([o()],eo.prototype,"endReached",void 0),Gi([n(".ft-snap-scroll--content")],eo.prototype,"contentSlot",void 0),h("ft-snap-scroll")(eo);var io=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const oo=dt.external(ut.colorOutline,"Design system"),so=dt.external(ut.colorOnSurface,"Design system"),no=dt.external(ut.colorOnSurfaceMedium,"Design system"),ro=dt.external(ut.colorPrimary,"Design system"),lo=dt.external(ut.colorSurface,"Design system"),ao=dt.external(ut.transitionDuration,"Design system"),ho=dt.external(ut.transitionTimingFunction,"Design system");class co extends CustomEvent{constructor(t){super("change",{detail:t})}}class po extends vt{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new t(300),this.changeDebouncer=new t(10)}get flatOptions(){return Ae(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const i=this.flatOptions.some((t=>t.selected));let o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return W`
|
|
1113
1129
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1114
1130
|
part="container">
|
|
1115
1131
|
${this.label||i?W`
|
|
@@ -1174,7 +1190,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1174
1190
|
@display-level=${this.onDisplayLevel}
|
|
1175
1191
|
part="values"
|
|
1176
1192
|
></ft-filter-level>
|
|
1177
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new
|
|
1193
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new co(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}po.elementDefinitions={"ft-button":Bi,"ft-filter-level":Yi,"ft-snap-scroll":eo,"ft-typography":Te},po.styles=[je,v`
|
|
1178
1194
|
:host {
|
|
1179
1195
|
display: flex;
|
|
1180
1196
|
max-height: 100%;
|
|
@@ -1187,8 +1203,8 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1187
1203
|
flex-direction: column;
|
|
1188
1204
|
max-height: 100%;
|
|
1189
1205
|
max-width: 100%;
|
|
1190
|
-
color: ${
|
|
1191
|
-
background: ${
|
|
1206
|
+
color: ${so};
|
|
1207
|
+
background: ${lo};
|
|
1192
1208
|
}
|
|
1193
1209
|
|
|
1194
1210
|
.ft-filter--header {
|
|
@@ -1198,13 +1214,13 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1198
1214
|
flex-shrink: 0;
|
|
1199
1215
|
padding: 0 10px;
|
|
1200
1216
|
margin-bottom: 8px;
|
|
1201
|
-
${ft(
|
|
1217
|
+
${ft(Mt.fontSize,"14px")};
|
|
1202
1218
|
}
|
|
1203
1219
|
|
|
1204
1220
|
.ft-filter--header ft-button {
|
|
1205
1221
|
flex-shrink: 0;
|
|
1206
1222
|
margin-left: auto;
|
|
1207
|
-
${ft(
|
|
1223
|
+
${ft(Ni.iconSize,"18px")};
|
|
1208
1224
|
}
|
|
1209
1225
|
|
|
1210
1226
|
.ft-filter--label {
|
|
@@ -1212,8 +1228,8 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1212
1228
|
flex-shrink: 1;
|
|
1213
1229
|
flex-grow: 1;
|
|
1214
1230
|
word-break: break-word;
|
|
1215
|
-
${ft(
|
|
1216
|
-
${ft(
|
|
1231
|
+
${ft(Mt.lineHeight,"22px")};
|
|
1232
|
+
${ft(Mt.fontWeight,"bold")};
|
|
1217
1233
|
}
|
|
1218
1234
|
|
|
1219
1235
|
.ft-filter--filter {
|
|
@@ -1224,8 +1240,8 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1224
1240
|
padding: 0 10px;
|
|
1225
1241
|
overflow: hidden;
|
|
1226
1242
|
height: 32px;
|
|
1227
|
-
transition: height ${
|
|
1228
|
-
margin ${
|
|
1243
|
+
transition: height ${ao} ${ho},
|
|
1244
|
+
margin ${ao} ${ho};
|
|
1229
1245
|
transition-delay: 500ms;
|
|
1230
1246
|
}
|
|
1231
1247
|
|
|
@@ -1238,11 +1254,11 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1238
1254
|
display: block;
|
|
1239
1255
|
width: 100%;
|
|
1240
1256
|
border-radius: 4px;
|
|
1241
|
-
border: 1px solid ${
|
|
1257
|
+
border: 1px solid ${oo};
|
|
1242
1258
|
padding: 4px;
|
|
1243
|
-
background-color: ${
|
|
1244
|
-
color: ${
|
|
1245
|
-
outline-color: ${
|
|
1259
|
+
background-color: ${lo};
|
|
1260
|
+
color: ${no};
|
|
1261
|
+
outline-color: ${ro};
|
|
1246
1262
|
}
|
|
1247
1263
|
|
|
1248
1264
|
.ft-filter--values {
|
|
@@ -1254,7 +1270,7 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1254
1270
|
}
|
|
1255
1271
|
|
|
1256
1272
|
.ft-filter--separator {
|
|
1257
|
-
border-top: 1px solid ${
|
|
1273
|
+
border-top: 1px solid ${oo};
|
|
1258
1274
|
margin: 4px 10px;
|
|
1259
1275
|
}
|
|
1260
1276
|
|
|
@@ -1279,6 +1295,6 @@ class hi extends Pe{constructor(t){if(super(t),this.it=V,t.type!==Ae)throw Error
|
|
|
1279
1295
|
slot {
|
|
1280
1296
|
display: none;
|
|
1281
1297
|
}
|
|
1282
|
-
`],
|
|
1298
|
+
`],io([i({type:String})],po.prototype,"id",void 0),io([i({type:String})],po.prototype,"label",void 0),io([i({type:String})],po.prototype,"filterPlaceHolder",void 0),io([i({type:String})],po.prototype,"clearButtonLabel",void 0),io([i({type:String})],po.prototype,"moreValuesButtonLabel",void 0),io([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],po.prototype,"options",void 0),io([i({type:Boolean})],po.prototype,"multivalued",void 0),io([i({type:Boolean})],po.prototype,"disabled",void 0),io([i({type:Boolean})],po.prototype,"raiseSelectedOptions",void 0),io([i({type:Number})],po.prototype,"displayedValuesLimit",void 0),io([n(".ft-filter--slot")],po.prototype,"slotElement",void 0),io([n(".ft-filter--container")],po.prototype,"container",void 0),io([n(".ft-filter--values")],po.prototype,"valuesContainer",void 0),io([n(".ft-filter--levels")],po.prototype,"levelsContainer",void 0),io([n(".ft-filter--levels ft-filter-level:last-child")],po.prototype,"lastLevel",void 0),io([function(t){return s({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],po.prototype,"levels",void 0),io([o()],po.prototype,"withScroll",void 0),io([o()],po.prototype,"filter",void 0),io([o()],po.prototype,"slideIn",void 0),io([o()],po.prototype,"slideOut",void 0);var fo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class uo extends vt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return W`
|
|
1283
1299
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1284
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1300
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}uo.elementDefinitions={},fo([i({type:String})],uo.prototype,"label",void 0),fo([i({type:Object,converter:t=>t})],uo.prototype,"value",void 0),fo([i({type:Boolean,reflect:!0})],uo.prototype,"selected",void 0),fo([i({type:Object})],uo.prototype,"subOptions",void 0),fo([n(".ft-filter-option--slot")],uo.prototype,"slotElement",void 0),h("ft-filter")(xt(po)),h("ft-filter-option")(xt(uo))}();
|