@fluid-topics/ft-filterable-table 0.1.17 → 0.2.1
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-filterable-table.d.ts +2 -2
- package/build/ft-filterable-table.inline-styles.js +1181 -0
- package/build/ft-filterable-table.js +110 -112
- package/build/ft-filterable-table.light.js +684 -727
- package/build/ft-filterable-table.min.js +718 -758
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +8 -8
|
@@ -1,69 +1,96 @@
|
|
|
1
1
|
!function(t){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright
|
|
5
|
-
*
|
|
4
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
6
16
|
*/
|
|
7
|
-
const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,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,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);h(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,p,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=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,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},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),n.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)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.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){v.push(this),i.set.call(this,t),v.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!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ut){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 e{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=[]}}
|
|
8
18
|
/**
|
|
9
19
|
* @license
|
|
10
20
|
* Copyright 2017 Google LLC
|
|
11
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
|
|
22
|
+
*/const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
|
|
13
23
|
/**
|
|
14
24
|
* @license
|
|
15
25
|
* Copyright 2017 Google LLC
|
|
16
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/
|
|
18
|
-
var y;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:v}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.2.2");const b=globalThis.trustedTypes,g=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,E=t=>{var e;return C(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,N=/>/g,F=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,T=/'/g,A=/"/g,M=/^(?:script|style|textarea|title)$/i,j=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),B=new WeakMap,_=O.createTreeWalker(O,129,null,!1),I=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",s=R;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,p=0;for(;p<i.length&&(s.lastIndex=p,l=s.exec(i),null!==l);)p=s.lastIndex,s===R?"!--"===l[1]?s=z:void 0!==l[1]?s=N:void 0!==l[2]?(M.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=F):void 0!==l[3]&&(s=F):s===F?">"===l[0]?(s=null!=o?o:R,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?F:'"'===l[3]?A:T):s===A||s===T?s=F:s===z||s===N?s=R:(s=F,o=void 0);const d=s===F&&t[e+1].startsWith("/>")?" ":"";n+=s===R?i+$:c>=0?(r.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+x+d):i+x+(-2===c?(r.push(void 0),e):d)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,r]};class L{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const s=t.length-1,a=this.parts,[l,c]=I(t,e);if(this.el=L.createElement(l,i),_.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=_.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=c[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?q:"@"===e[1]?G:W})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(M.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=b?b.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),_.nextNode(),a.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)a.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,r){var o,n,s,a;if(e===D)return e;let l=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const c=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,r)),void 0!==r?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[r]=l:i._$Cu=l),void 0!==l&&(e=P(t,l._$AS(t,e.values),l,r)),e}class H{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:O).importNode(i,!0);_.currentNode=o;let n=_.nextNode(),s=0,a=0,l=r[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new V(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new X(n,this,t)),this.v.push(e),l=r[++a]}s!==(null==l?void 0:l.index)&&(n=_.nextNode(),s++)}return o}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 V{constructor(t,e,i,r){var o;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}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=P(this,t,e),k(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==D&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):E(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==U&&k(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=L.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new H(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new L(t)),e}A(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new V(this.M(S()),this.M(S()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 W{constructor(t,e,i,r,o){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=P(this,r[i+s],e,s),a===D&&(a=this._$AH[s]),n||(n=!k(a)||a!==this._$AH[s]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}n&&!r&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const K=b?b.emptyScript:"";class q extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class G extends W{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=P(this,t,e,0))&&void 0!==i?i:U)===D)return;const r=this._$AH,o=t===U&&r!==U||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==U&&(r===U||o);o&&this.element.removeEventListener(this.name,this,r),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 X{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const J={P:"$lit$",V:x,L:w,I:1,N:I,R:H,D:E,j:P,H:V,O:W,F:q,B:G,W:Z,Z:X},Y=window.litHtmlPolyfillSupport;
|
|
27
|
+
*/}function n(t){return o({...t,state:!0})}
|
|
19
28
|
/**
|
|
20
29
|
* @license
|
|
21
30
|
* Copyright 2017 Google LLC
|
|
22
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/
|
|
24
|
-
var Q,tt;null==Y||Y(L,V),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.1.3");class et extends v{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 r,o;const n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let s=n._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=s=new V(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 D}}et.finalized=!0,et._$litElement$=!0,null===(Q=globalThis.litElementHydrateSupport)||void 0===Q||Q.call(globalThis,{LitElement:et});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.1.2");
|
|
32
|
+
*/const s=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
25
33
|
/**
|
|
26
34
|
* @license
|
|
27
35
|
* Copyright 2017 Google LLC
|
|
28
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
|
|
30
|
-
const rt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e)
|
|
37
|
+
*/;function r(t,e){return s({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
31
38
|
/**
|
|
32
39
|
* @license
|
|
33
|
-
* Copyright
|
|
40
|
+
* Copyright 2021 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2019 Google LLC
|
|
34
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/,
|
|
47
|
+
*/,c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),h=new Map;class f{constructor(t,e){if(this._$cssResult$=!0,e!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=h.get(this.cssText);return c&&void 0===t&&(h.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const u=t=>new f("string"==typeof t?t:t+"",d),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new f(i,d)},v=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
|
|
36
48
|
/**
|
|
37
49
|
* @license
|
|
38
50
|
* Copyright 2017 Google LLC
|
|
39
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
|
|
52
|
+
*/;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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class k 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=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}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 v(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=S){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:w.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),l=t.converter,a=null!==(n=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==n?n: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||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){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._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
41
53
|
/**
|
|
42
54
|
* @license
|
|
43
55
|
* Copyright 2017 Google LLC
|
|
44
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
*/
|
|
57
|
+
*/
|
|
58
|
+
var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:k}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.2.2");const E=globalThis.trustedTypes,N=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,z="?"+R,F=`<${z}>`,M=document,U=(t="")=>M.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,j=t=>{var e;return B(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,A=/>/g,I=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,P=/"/g,H=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Z=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),V=new WeakMap,q=M.createTreeWalker(M,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=T;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===T?"!--"===a[1]?r=L:void 0!==a[1]?r=A:void 0!==a[2]?(H.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=n?n:T,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?P:_):r===P||r===_?r=I:r===L||r===A?r=T:(r=I,n=void 0);const d=r===I&&t[e+1].startsWith("/>")?" ":"";s+=r===T?i+F:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+R+d):i+R+(-2===p?(o.push(void 0),e):d)}const l=s+(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 J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=X(t,e);if(this.el=J.createElement(a,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.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(R)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?nt:tt})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),q.nextNode(),l.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:n}),t+=R.length-1}n++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var n,s,r,l;if(e===Z)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=D(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);q.currentNode=n;let s=q.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Q(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new st(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=q.nextNode(),r++)}return n}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 n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$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),D(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==Z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):j(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==K&&D(this._$AH)?this._$AA.nextSibling.data=t:this.S(M.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new G(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new J(t)),e}A(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Q(this.M(U()),this.M(U()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,n){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=Y(this,t,e,0),s=!D(t)||t!==this._$AH&&t!==Z,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=Y(this,o[i+r],e,r),l===Z&&(l=this._$AH[r]),s||(s=!D(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.k(t)}k(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===K?void 0:t}}const it=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}k(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:K)===Z)return;const o=this._$AH,n=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==K&&(o===K||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const rt={P:"$lit$",V:R,L:z,I:1,N:X,R:G,D:j,j:Y,H:Q,O:tt,F:ot,B:nt,W:et,Z:st},lt=window.litHtmlPolyfillSupport;
|
|
46
59
|
/**
|
|
47
60
|
* @license
|
|
48
61
|
* Copyright 2017 Google LLC
|
|
49
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
-
|
|
63
|
+
*/
|
|
64
|
+
var at,pt;null==lt||lt(J,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.1.3");class ct extends k{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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new Q(e.insertBefore(U(),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 Z}}ct.finalized=!0,ct._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ct});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ct}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.1.2");class ht{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,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 ht(t,e,void 0,i)}static extend(t,e,i){return new ht(t,e.category,e,i)}static external(t,e){return new ht(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return b`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:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
51
65
|
/**
|
|
52
66
|
* @license
|
|
53
67
|
* Copyright 2021 Google LLC
|
|
54
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/
|
|
69
|
+
*/class bt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return v(n,this.constructor.elementStyles),n}}}(ct)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
|
|
70
|
+
${t.map((t=>W`
|
|
71
|
+
<style>${t}</style>
|
|
72
|
+
`))}
|
|
73
|
+
${this.getTemplate()}
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const vt=b`
|
|
75
|
+
.ft-no-text-select {
|
|
76
|
+
-webkit-touch-callout: none;
|
|
77
|
+
-webkit-user-select: none;
|
|
78
|
+
-khtml-user-select: none;
|
|
79
|
+
-moz-user-select: none;
|
|
80
|
+
-ms-user-select: none;
|
|
81
|
+
user-select: none;
|
|
82
|
+
}
|
|
83
|
+
`;var xt,yt,gt;const mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(gt=null===(yt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===yt?void 0:yt.toString())&&void 0!==gt?gt:""),$t=1,wt=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
56
84
|
/**
|
|
57
85
|
* @license
|
|
58
86
|
* Copyright 2017 Google LLC
|
|
59
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
|
-
*/
|
|
61
|
-
const dt=1,ut=2,ft=t=>(...e)=>({_$litDirective$:t,values:e});class ht{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)}}
|
|
88
|
+
*/class St{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)}}
|
|
62
89
|
/**
|
|
63
90
|
* @license
|
|
64
91
|
* Copyright 2020 Google LLC
|
|
65
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/const{H:
|
|
93
|
+
*/const{H:kt}=rt,Ct=()=>document.createComment(""),Et=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Ct(),s),o=n.insertBefore(Ct(),s);i=new kt(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!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Nt=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},zt=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}},Ft=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Mt=Ot(class extends St{constructor(t){if(super(t),t.type!==wt)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 n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(s))return this.at=l,r;const a=null!==(n=this.at)&&void 0!==n?n:this.at=[],p=[];let c,d,h=0,f=s.length-1,u=0,b=r.length-1;for(;h<=f&&u<=b;)if(null===s[h])h++;else if(null===s[f])f--;else if(a[h]===l[u])p[u]=Nt(s[h],r[u]),h++,u++;else if(a[f]===l[b])p[b]=Nt(s[f],r[b]),f--,b--;else if(a[h]===l[b])p[b]=Nt(s[h],r[b]),Et(t,p[b+1],s[h]),h++,b--;else if(a[f]===l[u])p[u]=Nt(s[f],r[u]),Et(t,s[h],s[f]),f--,u++;else if(void 0===c&&(c=Ft(l,u,b),d=Ft(a,h,f)),c.has(a[h]))if(c.has(a[f])){const e=d.get(l[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Et(t,s[h]);Nt(e,r[u]),p[u]=e}else p[u]=Nt(i,r[u]),Et(t,s[h],i),s[e]=null;u++}else zt(s[f]),f--;else zt(s[h]),h++;for(;u<=b;){const e=Et(t,p[b+1]);Nt(e,r[u]),p[u++]=e}for(;h<=f;){const t=s[h++];null!==t&&zt(t)}return this.at=l,((t,e=Rt)=>{t._$AH=e})(t,p),Z}});
|
|
67
94
|
/**
|
|
68
95
|
* @license
|
|
69
96
|
* Copyright 2017 Google LLC
|
|
@@ -74,86 +101,67 @@ const dt=1,ut=2,ft=t=>(...e)=>({_$litDirective$:t,values:e});class ht{constructo
|
|
|
74
101
|
* Copyright 2017 Google LLC
|
|
75
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
76
103
|
*/
|
|
77
|
-
class Ot extends ht{constructor(t){if(super(t),this.it=U,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===U||null==t)return this.vt=void 0,this.it=t;if(t===D)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ot.directiveName="unsafeHTML",Ot.resultType=1;const St=ft(Ot);(function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var a;t:{var l={};try{l.__proto__={a:!0},a=l.a;break t}catch(t){}a=!1}o=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var c=o;if(!ShadowRoot.prototype.createElement){var p,d=window.HTMLElement,u=window.customElements.define,f=window.customElements.get,h=window.customElements,m=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,r),this.o.set(i,r),(o=f.call(h,t))||(o=g(t),u.call(h,t,o)),this===window.customElements&&(y.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,v.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),h.upgrade.apply(h,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=p;if(t)return p=void 0,t;var e=y.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var g=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=b.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):v.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):v.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):v.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),p=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],k=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&b.set(t,this),S.pop(),t}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");var C=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(C(Element),C(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=E.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var z=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},N=z,F=Array;if(N.prototype=r(F.prototype),N.prototype.constructor=N,c)c(N,F);else for(var T in F)if("prototype"!=T)if(Object.defineProperties){var A=Object.getOwnPropertyDescriptor(F,T);A&&Object.defineProperty(N,T,A)}else N[T]=F[T];N.u=F.prototype,n.Object.defineProperty(z.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var M=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new z(t))}))};M.prototype.namedItem=function(t){return this[t]};var j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=j.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new M(i)}})}}}).call("object"==typeof globalThis?globalThis:window);try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,r)=>{try{e.bind(window.customElements)(t,i,r)}catch(e){console.warn(t,i,r,e)}}}class kt{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=[]}}const Ct=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class Et{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,this.context=o,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 Et(t,e,void 0,i)}static extend(t,e,i){return new Et(t,e.category,e,i)}static external(t,e){return new Et(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(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 Rt(t,e){return n(`${t.name}: ${e}`)}const zt={colorPrimary:Et.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Et.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Et.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Et.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Et.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Et.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Et.create("--ft-color-error","COLOR","#B00020"),colorOutline:Et.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Et.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Et.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Et.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Et.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Et.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Et.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Et.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Et.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Et.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Et.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Et.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Et.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Et.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Et.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Et.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Et.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Et.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Et.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Et.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Et.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Et.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Et.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Et.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Et.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Et.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Et.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Et.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Et.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Et.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Et.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Et.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Et.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Et.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Et.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Et.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Et.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Et.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Et.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Et.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Et.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Et.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Et.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Et.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
78
|
-
/**
|
|
79
|
-
* @license
|
|
80
|
-
* Copyright 2021 Google LLC
|
|
81
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
82
|
-
*/class Nt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(et)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`
|
|
83
|
-
${t.map((t=>j`
|
|
84
|
-
<style>${t}</style>
|
|
85
|
-
`))}
|
|
86
|
-
${this.getTemplate()}
|
|
87
|
-
`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const Ft=s`
|
|
88
|
-
.ft-no-text-select {
|
|
89
|
-
-webkit-touch-callout: none;
|
|
90
|
-
-webkit-user-select: none;
|
|
91
|
-
-khtml-user-select: none;
|
|
92
|
-
-moz-user-select: none;
|
|
93
|
-
-ms-user-select: none;
|
|
94
|
-
user-select: none;
|
|
95
|
-
}
|
|
96
|
-
`;var Tt,At,Mt;const jt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mt=null===(At=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===At?void 0:At.toString())&&void 0!==Mt?Mt:""),Dt=ft(class extends ht{constructor(t){var e;if(super(t),t.type!==dt||"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,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach((t=>{t in e||(o.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return D}}),Ut=t=>({_$litStatic$:t}),Bt=new Map,_t=(t=>(e,...i)=>{var r;const o=i.length;let n,s;const a=[],l=[];let c,p=0,d=!1;for(;p<o;){for(c=e[p];p<o&&void 0!==(s=i[p],n=null===(r=s)||void 0===r?void 0:r._$litStatic$);)c+=n+e[++p],d=!0;l.push(s),a.push(c),p++}if(p===o&&a.push(e[o]),d){const t=a.join("$$lit$$");void 0===(e=Bt.get(t))&&(a.raw=a,Bt.set(t,e=a)),i=l}return t(e,...i)})(j);
|
|
104
|
+
class Ut extends St{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.it=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ut.directiveName="unsafeHTML",Ut.resultType=1;const Dt=Ot(Ut),Bt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==$t||"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.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const n=t.element.classList;this.st.forEach((t=>{t in e||(n.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return Z}}),jt=t=>({_$litStatic$:t}),Tt=new Map,Lt=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const l=[],a=[];let p,c=0,d=!1;for(;c<n;){for(p=e[c];c<n&&void 0!==(r=i[c],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++c],d=!0;a.push(r),l.push(p),c++}if(c===n&&l.push(e[n]),d){const t=l.join("$$lit$$");void 0===(e=Tt.get(t))&&(l.raw=l,Tt.set(t,e=l)),i=a}return t(e,...i)})(W);
|
|
97
105
|
/**
|
|
98
106
|
* @license
|
|
99
107
|
* Copyright 2018 Google LLC
|
|
100
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/var It
|
|
109
|
+
*/var At,It=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(At||(At={}));const _t=ht.extend("--ft-typography-font-family",ut.titleFont),Pt=ht.extend("--ft-typography-font-family",ut.contentFont),Ht={fontFamily:Pt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","SIZE","24px"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ht.extend("--ft-typography-title-font-family",_t),Zt=ht.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Kt=ht.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),Vt=ht.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),qt=ht.extend("--ft-typography-title-line-height",Ht.lineHeight,"24px"),Xt=ht.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Jt=ht.extend("--ft-typography-title-dense-font-family",_t),Yt=ht.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),Gt=ht.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),Qt=ht.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),te=ht.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"24px"),ee=ht.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),ie=ht.extend("--ft-typography-subtitle1-font-family",Pt),oe=ht.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),ne=ht.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),se=ht.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),re=ht.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"24px"),le=ht.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),ae=ht.extend("--ft-typography-subtitle2-font-family",Pt),pe=ht.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),ce=ht.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),de=ht.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),he=ht.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"24px"),fe=ht.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),ue={fontFamily:ht.extend("--ft-typography-body1-font-family",Pt),fontSize:ht.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),fontWeight:ht.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),letterSpacing:ht.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),lineHeight:ht.extend("--ft-typography-body1-line-height",Ht.lineHeight,"24px"),textTransform:ht.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit")},be=ht.extend("--ft-typography-body2-font-family",Pt),ve=ht.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),xe=ht.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),ye=ht.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),ge=ht.extend("--ft-typography-body2-line-height",Ht.lineHeight,"20px"),me=ht.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit"),$e={fontFamily:ht.extend("--ft-typography-caption-font-family",Pt),fontSize:ht.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),fontWeight:ht.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),letterSpacing:ht.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),lineHeight:ht.extend("--ft-typography-caption-line-height",Ht.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit")},we=ht.extend("--ft-typography-breadcrumb-font-family",Pt),Oe=ht.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),Se=ht.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),ke=ht.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Ce=ht.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"16px"),Ee=ht.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),Ne=ht.extend("--ft-typography-overline-font-family",Pt),Re=ht.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),ze=ht.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),Fe=ht.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Me=ht.extend("--ft-typography-overline-line-height",Ht.lineHeight,"16px"),Ue=ht.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),De={fontFamily:ht.extend("--ft-typography-button-font-family",Pt),fontSize:ht.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Ht.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase")},Be=b`
|
|
102
110
|
.ft-typography--title {
|
|
103
111
|
font-family: ${Wt};
|
|
104
112
|
font-size: ${Zt};
|
|
105
113
|
font-weight: ${Kt};
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
114
|
+
letter-spacing: ${Vt};
|
|
115
|
+
line-height: ${qt};
|
|
108
116
|
text-transform: ${Xt};
|
|
109
117
|
}
|
|
110
|
-
`,
|
|
118
|
+
`,je=b`
|
|
111
119
|
.ft-typography--title-dense {
|
|
112
120
|
font-family: ${Jt};
|
|
113
121
|
font-size: ${Yt};
|
|
114
|
-
font-weight: ${
|
|
115
|
-
letter-spacing: ${
|
|
116
|
-
line-height: ${
|
|
117
|
-
text-transform: ${
|
|
122
|
+
font-weight: ${Gt};
|
|
123
|
+
letter-spacing: ${Qt};
|
|
124
|
+
line-height: ${te};
|
|
125
|
+
text-transform: ${ee};
|
|
118
126
|
}
|
|
119
|
-
`,
|
|
127
|
+
`,Te=b`
|
|
120
128
|
.ft-typography--subtitle1 {
|
|
121
|
-
font-family: ${
|
|
129
|
+
font-family: ${ie};
|
|
122
130
|
font-size: ${oe};
|
|
123
131
|
font-weight: ${ne};
|
|
124
132
|
letter-spacing: ${se};
|
|
125
|
-
line-height: ${
|
|
133
|
+
line-height: ${re};
|
|
126
134
|
text-transform: ${le};
|
|
127
135
|
}
|
|
128
|
-
`,
|
|
136
|
+
`,Le=b`
|
|
129
137
|
.ft-typography--subtitle2 {
|
|
130
|
-
font-family: ${
|
|
138
|
+
font-family: ${ae};
|
|
131
139
|
font-size: ${pe};
|
|
132
|
-
font-weight: ${
|
|
133
|
-
letter-spacing: ${
|
|
134
|
-
line-height: ${
|
|
135
|
-
text-transform: ${
|
|
140
|
+
font-weight: ${ce};
|
|
141
|
+
letter-spacing: ${de};
|
|
142
|
+
line-height: ${he};
|
|
143
|
+
text-transform: ${fe};
|
|
136
144
|
}
|
|
137
145
|
|
|
138
|
-
`,
|
|
146
|
+
`,Ae=b`
|
|
139
147
|
.ft-typography--body1 {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
148
|
+
font-family: ${ue.fontFamily};
|
|
149
|
+
font-size: ${ue.fontSize};
|
|
150
|
+
font-weight: ${ue.fontWeight};
|
|
151
|
+
letter-spacing: ${ue.letterSpacing};
|
|
152
|
+
line-height: ${ue.lineHeight};
|
|
153
|
+
text-transform: ${ue.textTransform};
|
|
146
154
|
}
|
|
147
|
-
`,
|
|
155
|
+
`,Ie=b`
|
|
148
156
|
.ft-typography--body2 {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
157
|
+
font-family: ${be};
|
|
158
|
+
font-size: ${ve};
|
|
159
|
+
font-weight: ${xe};
|
|
160
|
+
letter-spacing: ${ye};
|
|
161
|
+
line-height: ${ge};
|
|
162
|
+
text-transform: ${me};
|
|
155
163
|
}
|
|
156
|
-
`,
|
|
164
|
+
`,_e=b`
|
|
157
165
|
.ft-typography--caption {
|
|
158
166
|
font-family: ${$e.fontFamily};
|
|
159
167
|
font-size: ${$e.fontSize};
|
|
@@ -162,500 +170,325 @@ class Ot extends ht{constructor(t){if(super(t),this.it=U,t.type!==ut)throw Error
|
|
|
162
170
|
line-height: ${$e.lineHeight};
|
|
163
171
|
text-transform: ${$e.textTransform};
|
|
164
172
|
}
|
|
165
|
-
`,
|
|
173
|
+
`,Pe=b`
|
|
166
174
|
.ft-typography--breadcrumb {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
175
|
+
font-family: ${we};
|
|
176
|
+
font-size: ${Oe};
|
|
177
|
+
font-weight: ${Se};
|
|
178
|
+
letter-spacing: ${ke};
|
|
179
|
+
line-height: ${Ce};
|
|
180
|
+
text-transform: ${Ee};
|
|
173
181
|
}
|
|
174
|
-
`,
|
|
182
|
+
`,He=b`
|
|
175
183
|
.ft-typography--overline {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
178
|
-
font-weight: ${
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
184
|
+
font-family: ${Ne};
|
|
185
|
+
font-size: ${Re};
|
|
186
|
+
font-weight: ${ze};
|
|
187
|
+
letter-spacing: ${Fe};
|
|
188
|
+
line-height: ${Me};
|
|
189
|
+
text-transform: ${Ue};
|
|
182
190
|
}
|
|
183
|
-
`,We=
|
|
191
|
+
`,We=b`
|
|
184
192
|
.ft-typography--button {
|
|
185
|
-
font-family: ${
|
|
186
|
-
font-size: ${
|
|
187
|
-
font-weight: ${
|
|
188
|
-
letter-spacing: ${
|
|
189
|
-
line-height: ${
|
|
190
|
-
text-transform: ${
|
|
193
|
+
font-family: ${De.fontFamily};
|
|
194
|
+
font-size: ${De.fontSize};
|
|
195
|
+
font-weight: ${De.fontWeight};
|
|
196
|
+
letter-spacing: ${De.letterSpacing};
|
|
197
|
+
line-height: ${De.lineHeight};
|
|
198
|
+
text-transform: ${De.textTransform};
|
|
191
199
|
}
|
|
192
|
-
`;
|
|
193
|
-
.
|
|
194
|
-
vertical-align: inherit;
|
|
195
|
-
}
|
|
196
|
-
`]}getTemplate(){return this.element?_t`
|
|
197
|
-
<${Ut(this.element)}
|
|
200
|
+
`;class Ze extends bt{constructor(){super(...arguments),this.variant=At.body1}render(){return this.element?Lt`
|
|
201
|
+
<${jt(this.element)}
|
|
198
202
|
class="ft-typography ft-typography--${this.variant}">
|
|
199
203
|
<slot></slot>
|
|
200
|
-
</${
|
|
201
|
-
`:
|
|
204
|
+
</${jt(this.element)}>
|
|
205
|
+
`:Lt`
|
|
202
206
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
203
|
-
`}}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
.ft-input-label {
|
|
211
|
-
border-color: ${qe.borderColor};
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.ft-input-label:before,
|
|
215
|
-
.ft-input-label:after {
|
|
216
|
-
content: "";
|
|
217
|
-
display: flex;
|
|
218
|
-
border-bottom-width: 1px;
|
|
219
|
-
border-bottom-style: solid;
|
|
220
|
-
border-color: inherit;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.ft-input-label:before {
|
|
224
|
-
width: ${qe.horizontalSpacing};
|
|
225
|
-
flex-shrink: 0;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.ft-input-label:after {
|
|
229
|
-
flex-grow: 1;
|
|
230
|
-
flex-shrink: 1;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.ft-input-label--text {
|
|
234
|
-
display: flex;
|
|
235
|
-
flex-shrink: 1;
|
|
236
|
-
position: relative;
|
|
237
|
-
border-bottom-width: 1px;
|
|
238
|
-
border-bottom-style: solid;
|
|
239
|
-
border-color: inherit;
|
|
240
|
-
color: ${qe.textColor};
|
|
241
|
-
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
242
|
-
${Rt($e.fontSize,qe.fontSize)};
|
|
243
|
-
${Rt($e.lineHeight,qe.fontSize)};
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.ft-input-label--disabled .ft-input-label--text {
|
|
247
|
-
color: ${qe.disabledTextColor};
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.ft-input-label--hidden-text {
|
|
251
|
-
padding: 0 4px;
|
|
252
|
-
opacity: 0;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ft-input-label--floating-text {
|
|
256
|
-
position: absolute;
|
|
257
|
-
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
258
|
-
transition: top 250ms;
|
|
259
|
-
width: calc(100% - 8px);
|
|
260
|
-
overflow: hidden;
|
|
261
|
-
white-space: nowrap;
|
|
262
|
-
text-overflow: ellipsis;
|
|
263
|
-
padding: ${qe.verticalSpacing} 4px;
|
|
264
|
-
margin: calc(${qe.verticalSpacing} * -1) 0;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.ft-input-label--raised .ft-input-label--text {
|
|
268
|
-
${Rt($e.fontSize,qe.raisedFontSize)};
|
|
269
|
-
${Rt($e.lineHeight,qe.raisedFontSize)};
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.ft-input-label--raised .ft-input-label--floating-text {
|
|
273
|
-
top: ${qe.verticalSpacing};
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.ft-input-label--outlined .ft-input-label--text,
|
|
277
|
-
.ft-input-label--outlined:before,
|
|
278
|
-
.ft-input-label--outlined:after {
|
|
279
|
-
border-top-width: 1px;
|
|
280
|
-
border-top-style: solid;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.ft-input-label--outlined:before {
|
|
284
|
-
border-left-width: 1px;
|
|
285
|
-
border-left-style: solid;
|
|
286
|
-
border-radius: ${qe.borderRadiusS} 0 0 ${qe.borderRadiusS};
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.ft-input-label--outlined:after {
|
|
290
|
-
border-right-width: 1px;
|
|
291
|
-
border-right-style: solid;
|
|
292
|
-
border-radius: 0 ${qe.borderRadiusS} ${qe.borderRadiusS} 0;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
296
|
-
padding: 2px 4px;
|
|
297
|
-
z-index: ${qe.raisedZIndex};
|
|
298
|
-
background-color: ${qe.colorSurface};
|
|
299
|
-
border-radius: ${qe.borderRadiusS};
|
|
300
|
-
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
304
|
-
border-top: none;
|
|
305
|
-
}
|
|
306
|
-
`]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return j`
|
|
307
|
-
<div class="${Dt(t)}">
|
|
308
|
-
${this.text?j`
|
|
207
|
+
`}}Ze.styles=[Be,je,Te,Le,Ae,Ie,_e,Pe,He,We,b`
|
|
208
|
+
.ft-typography {
|
|
209
|
+
vertical-align: inherit;
|
|
210
|
+
}
|
|
211
|
+
`],It([o()],Ze.prototype,"element",void 0),It([o()],Ze.prototype,"variant",void 0),p("ft-typography")(Ze);var Ke=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ve={fontSize:ht.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ht.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ht.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ht.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ht.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ht.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ht.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ht.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ht.external(ut.colorSurface,"Design system"),borderRadiusS:ht.external(ut.borderRadiusS,"Design system")};class qe extends bt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return W`
|
|
212
|
+
<div class="${Bt(t)}">
|
|
213
|
+
${this.text?W`
|
|
309
214
|
<div class="ft-input-label--text ft-typography--caption">
|
|
310
215
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
311
216
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
312
217
|
</div>
|
|
313
218
|
`:null}
|
|
314
219
|
</div>
|
|
315
|
-
`}}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
purpose with or without fee is hereby granted.
|
|
321
|
-
|
|
322
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
323
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
324
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
325
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
326
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
327
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
328
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
329
|
-
***************************************************************************** */
|
|
330
|
-
var Xe=function(t,e){return Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Xe(t,e)};var Je=function(){return Je=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Je.apply(this,arguments)};function Ye(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function Qe(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
|
|
331
|
-
/**
|
|
332
|
-
* @license
|
|
333
|
-
* Copyright 2018 Google Inc.
|
|
334
|
-
*
|
|
335
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
336
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
337
|
-
* in the Software without restriction, including without limitation the rights
|
|
338
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
339
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
340
|
-
* furnished to do so, subject to the following conditions:
|
|
341
|
-
*
|
|
342
|
-
* The above copyright notice and this permission notice shall be included in
|
|
343
|
-
* all copies or substantial portions of the Software.
|
|
344
|
-
*
|
|
345
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
346
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
347
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
348
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
349
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
350
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
351
|
-
* THE SOFTWARE.
|
|
352
|
-
*/
|
|
353
|
-
/**
|
|
354
|
-
* @license
|
|
355
|
-
* Copyright 2018 Google LLC
|
|
356
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
357
|
-
*/
|
|
358
|
-
const ti=()=>{},ei={get passive(){return!1}};document.addEventListener("x",ti,ei),document.removeEventListener("x",ti);
|
|
359
|
-
/**
|
|
360
|
-
* @license
|
|
361
|
-
* Copyright 2018 Google LLC
|
|
362
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
363
|
-
*/
|
|
364
|
-
class ii extends et{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
|
|
365
|
-
/**
|
|
366
|
-
* @license
|
|
367
|
-
* Copyright 2016 Google Inc.
|
|
368
|
-
*
|
|
369
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
370
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
371
|
-
* in the Software without restriction, including without limitation the rights
|
|
372
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
373
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
374
|
-
* furnished to do so, subject to the following conditions:
|
|
375
|
-
*
|
|
376
|
-
* The above copyright notice and this permission notice shall be included in
|
|
377
|
-
* all copies or substantial portions of the Software.
|
|
378
|
-
*
|
|
379
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
380
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
381
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
382
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
383
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
384
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
385
|
-
* THE SOFTWARE.
|
|
386
|
-
*/var ri=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),oi={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},ni={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},si={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
|
|
387
|
-
/**
|
|
388
|
-
* @license
|
|
389
|
-
* Copyright 2016 Google Inc.
|
|
390
|
-
*
|
|
391
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
392
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
393
|
-
* in the Software without restriction, including without limitation the rights
|
|
394
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
395
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
396
|
-
* furnished to do so, subject to the following conditions:
|
|
397
|
-
*
|
|
398
|
-
* The above copyright notice and this permission notice shall be included in
|
|
399
|
-
* all copies or substantial portions of the Software.
|
|
400
|
-
*
|
|
401
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
402
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
403
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
404
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
405
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
406
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
407
|
-
* THE SOFTWARE.
|
|
408
|
-
*/
|
|
409
|
-
/**
|
|
410
|
-
* @license
|
|
411
|
-
* Copyright 2016 Google Inc.
|
|
412
|
-
*
|
|
413
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
414
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
415
|
-
* in the Software without restriction, including without limitation the rights
|
|
416
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
417
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
418
|
-
* furnished to do so, subject to the following conditions:
|
|
419
|
-
*
|
|
420
|
-
* The above copyright notice and this permission notice shall be included in
|
|
421
|
-
* all copies or substantial portions of the Software.
|
|
422
|
-
*
|
|
423
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
424
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
425
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
426
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
427
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
428
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
429
|
-
* THE SOFTWARE.
|
|
430
|
-
*/
|
|
431
|
-
var ai=["touchstart","pointerdown","mousedown","keydown"],li=["touchend","pointerup","mouseup","contextmenu"],ci=[],pi=function(t){function e(i){var r=t.call(this,Je(Je({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Xe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return oi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ni},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return si},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,n=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(n),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=Qe(ai),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerInteractionHandler(n,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=Qe(li),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerDocumentInteractionHandler(n,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=Qe(ai),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=Qe(li),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&ci.length>0&&ci.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ci.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ci=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,n=e.cssClasses,s=n.FG_DEACTIVATION,a=n.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",p="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),u=d.startPoint,f=d.endPoint;c=u.x+"px, "+u.y+"px",p=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(o,p),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),l)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,n=e.x,s=e.y,a=n+i.left,l=s+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-a,o=c.changedTouches[0].pageY-l}else{var p=t;r=p.pageX-a,o=p.pageY-l}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,n=r.isActivated;(o||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),si.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=Je({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,n=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(n,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(ri),di=pi;
|
|
432
|
-
/**
|
|
433
|
-
* @license
|
|
434
|
-
* Copyright 2018 Google LLC
|
|
435
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
436
|
-
*/
|
|
437
|
-
const ui=ft(class extends ht{constructor(t){var e;if(super(t),t.type!==dt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.ct.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return D}});
|
|
438
|
-
/**
|
|
439
|
-
* @license
|
|
440
|
-
* Copyright 2018 Google LLC
|
|
441
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
442
|
-
*/class fi extends ii{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=di}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return j`
|
|
443
|
-
<div class="mdc-ripple-surface mdc-ripple-upgraded ${Dt(i)}"
|
|
444
|
-
style="${ui({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}Ye([lt(".mdc-ripple-surface")],fi.prototype,"mdcRoot",void 0),Ye([nt({type:Boolean})],fi.prototype,"primary",void 0),Ye([nt({type:Boolean})],fi.prototype,"accent",void 0),Ye([nt({type:Boolean})],fi.prototype,"unbounded",void 0),Ye([nt({type:Boolean})],fi.prototype,"disabled",void 0),Ye([nt({type:Boolean})],fi.prototype,"activated",void 0),Ye([nt({type:Boolean})],fi.prototype,"selected",void 0),Ye([nt({type:Boolean})],fi.prototype,"internalUseStateLayerCustomProperties",void 0),Ye([st()],fi.prototype,"hovering",void 0),Ye([st()],fi.prototype,"bgFocused",void 0),Ye([st()],fi.prototype,"fgActivation",void 0),Ye([st()],fi.prototype,"fgDeactivation",void 0),Ye([st()],fi.prototype,"fgScale",void 0),Ye([st()],fi.prototype,"fgSize",void 0),Ye([st()],fi.prototype,"translateStart",void 0),Ye([st()],fi.prototype,"translateEnd",void 0),Ye([st()],fi.prototype,"leftPos",void 0),Ye([st()],fi.prototype,"topPos",void 0);
|
|
445
|
-
/**
|
|
446
|
-
* @license
|
|
447
|
-
* Copyright 2021 Google LLC
|
|
448
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
449
|
-
*/
|
|
450
|
-
const hi=s`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
|
|
451
|
-
/**
|
|
452
|
-
* @license
|
|
453
|
-
* Copyright 2018 Google LLC
|
|
454
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
455
|
-
*/;let mi=class extends fi{};mi.styles=[hi],mi=Ye([rt("mwc-ripple")],mi);
|
|
456
|
-
/**
|
|
457
|
-
* @license
|
|
458
|
-
* Copyright 2020 Google LLC
|
|
459
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
460
|
-
*/
|
|
461
|
-
class vi{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var yi=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const bi={color:Et.extend("--ft-ripple-color",zt.colorContent),primaryColor:Et.extend("--ft-ripple-primary-color",Et.extend("--ft-ripple-color",zt.colorPrimary)),secondaryColor:Et.extend("--ft-ripple-secondary-color",Et.extend("--ft-ripple-color",zt.colorSecondary)),opacityContentOnSurfacePressed:Et.external(zt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Et.external(zt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Et.external(zt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Et.external(zt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:Et.external(zt.opacityContentOnSurfaceDragged,"Design system")};let gi=class extends Nt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return s`
|
|
462
|
-
:host {
|
|
463
|
-
display: contents;
|
|
464
|
-
|
|
465
|
-
--mdc-ripple-color: ${bi.color};
|
|
466
|
-
--mdc-ripple-press-opacity: ${bi.opacityContentOnSurfacePressed};
|
|
467
|
-
--mdc-ripple-hover-opacity: ${bi.opacityContentOnSurfaceHover};
|
|
468
|
-
--mdc-ripple-focus-opacity: ${bi.opacityContentOnSurfaceFocused};
|
|
469
|
-
--mdc-ripple-selected-opacity: ${bi.opacityContentOnSurfaceSelected};
|
|
470
|
-
--mdc-ripple-activated-opacity: ${bi.opacityContentOnSurfaceDragged};
|
|
220
|
+
`}}qe.elementDefinitions={},qe.styles=[_e,b`
|
|
221
|
+
.ft-input-label {
|
|
222
|
+
position: absolute;
|
|
223
|
+
inset: 0;
|
|
224
|
+
display: flex;
|
|
471
225
|
}
|
|
472
226
|
|
|
473
|
-
|
|
474
|
-
|
|
227
|
+
.ft-input-label {
|
|
228
|
+
border-color: ${Ve.borderColor};
|
|
475
229
|
}
|
|
476
230
|
|
|
477
|
-
|
|
478
|
-
|
|
231
|
+
.ft-input-label:before,
|
|
232
|
+
.ft-input-label:after {
|
|
233
|
+
content: "";
|
|
234
|
+
display: flex;
|
|
235
|
+
border-bottom-width: 1px;
|
|
236
|
+
border-bottom-style: solid;
|
|
237
|
+
border-color: inherit;
|
|
479
238
|
}
|
|
480
|
-
`}getTemplate(){return j`
|
|
481
|
-
<mwc-ripple
|
|
482
|
-
class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
|
|
483
|
-
?unbounded=${this.unbounded}
|
|
484
|
-
?activated=${this.activated}
|
|
485
|
-
?selected=${this.selected}
|
|
486
|
-
?disabled=${this.disabled}
|
|
487
|
-
></mwc-ripple>
|
|
488
|
-
`}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new vi((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",n),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",o),e.removeEventListener("keydown",n),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};gi.elementDefinitions={"mwc-ripple":mi},yi([nt({type:Boolean})],gi.prototype,"primary",void 0),yi([nt({type:Boolean})],gi.prototype,"secondary",void 0),yi([nt({type:Boolean})],gi.prototype,"unbounded",void 0),yi([nt({type:Boolean})],gi.prototype,"activated",void 0),yi([nt({type:Boolean})],gi.prototype,"selected",void 0),yi([nt({type:Boolean})],gi.prototype,"disabled",void 0),yi([lt("mwc-ripple")],gi.prototype,"mwcRipple",void 0),gi=yi([Ct("ft-ripple")],gi);
|
|
489
|
-
/**
|
|
490
|
-
* @license
|
|
491
|
-
* Copyright 2021 Google LLC
|
|
492
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
493
|
-
*/
|
|
494
|
-
const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
|
|
495
|
-
/**
|
|
496
|
-
* @license
|
|
497
|
-
* Copyright 2018 Google LLC
|
|
498
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
499
|
-
*/;let wi=class extends et{render(){return j`<span><slot></slot></span>`}};wi.styles=[xi],wi=Ye([rt("mwc-icon")],wi);var $i=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};let Oi=class extends Nt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return j``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Oi.elementDefinitions={},$i([nt({type:String})],Oi.prototype,"label",void 0),$i([nt({type:Object,converter:t=>t})],Oi.prototype,"value",void 0),$i([nt({type:Boolean,reflect:!0})],Oi.prototype,"selected",void 0),Oi=$i([Ct("ft-select-option")],Oi);const Si={labelSize:Et.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:Et.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:Et.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:Et.extend("--ft-select-selected-option-color",zt.colorOnSurface),helperColor:Et.extend("--ft-select-helper-color",zt.colorOnSurfaceMedium),optionsColor:Et.extend("--ft-select-options-color",zt.colorOnSurface),optionsZIndex:Et.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:Et.external(zt.colorSurface,"Design system"),colorOnSurfaceDisabled:Et.external(zt.colorOnSurfaceDisabled,"Design system"),colorPrimary:Et.external(zt.colorPrimary,"Design system"),borderRadiusS:Et.external(zt.borderRadiusS,"Design system"),elevation02:Et.external(zt.elevation02,"Design system")};let ki=class extends Nt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}getStyles(){return[Le,Pe,s`
|
|
500
|
-
*:focus {
|
|
501
|
-
outline: none;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.ft-select {
|
|
505
|
-
display: flex;
|
|
506
|
-
flex-direction: column;
|
|
507
|
-
align-items: stretch;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.ft-select--main-panel {
|
|
511
|
-
position: relative;
|
|
512
|
-
display: flex;
|
|
513
|
-
height: calc(4 * ${Si.verticalSpacing} + ${Si.labelSize} + ${Si.selectedOptionSize});
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.ft-select--input-panel {
|
|
517
|
-
flex-grow: 1;
|
|
518
|
-
position: relative;
|
|
519
|
-
display: flex;
|
|
520
|
-
align-items: center;
|
|
521
|
-
overflow: hidden;
|
|
522
|
-
padding-left: 16px;
|
|
523
|
-
padding-right: 8px;
|
|
524
|
-
gap: 8px;
|
|
525
|
-
color: ${Si.selectedOptionColor};
|
|
526
|
-
${Rt(bi.color,Si.selectedOptionColor)};
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.ft-select--input-panel,
|
|
530
|
-
.ft-select--option {
|
|
531
|
-
${Rt(bi.opacityContentOnSurfaceHover,"0.08")};
|
|
532
|
-
${Rt(bi.opacityContentOnSurfaceDragged,"0.04")};
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.ft-select--disabled .ft-select--input-panel,
|
|
536
|
-
.ft-select--disabled .ft-select--option {
|
|
537
|
-
color: ${Si.colorOnSurfaceDisabled};
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
541
|
-
.ft-select:not(.ft-select--disabled) .ft-select--option {
|
|
542
|
-
cursor: pointer;
|
|
543
|
-
}
|
|
544
239
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
240
|
+
.ft-input-label:before {
|
|
241
|
+
width: ${Ve.horizontalSpacing};
|
|
242
|
+
flex-shrink: 0;
|
|
243
|
+
}
|
|
550
244
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
245
|
+
.ft-input-label:after {
|
|
246
|
+
flex-grow: 1;
|
|
247
|
+
flex-shrink: 1;
|
|
248
|
+
}
|
|
554
249
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
250
|
+
.ft-input-label--text {
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-shrink: 1;
|
|
253
|
+
position: relative;
|
|
254
|
+
border-bottom-width: 1px;
|
|
255
|
+
border-bottom-style: solid;
|
|
256
|
+
border-color: inherit;
|
|
257
|
+
color: ${Ve.textColor};
|
|
258
|
+
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
259
|
+
${ft($e.fontSize,Ve.fontSize)};
|
|
260
|
+
${ft($e.lineHeight,Ve.fontSize)};
|
|
261
|
+
}
|
|
559
262
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
flex-shrink: 1;
|
|
564
|
-
overflow: hidden;
|
|
565
|
-
white-space: nowrap;
|
|
566
|
-
text-overflow: ellipsis;
|
|
567
|
-
${Rt(me.fontSize,Si.selectedOptionSize)};
|
|
568
|
-
${Rt(me.lineHeight,Si.selectedOptionSize)};
|
|
569
|
-
}
|
|
263
|
+
.ft-input-label--disabled .ft-input-label--text {
|
|
264
|
+
color: ${Ve.disabledTextColor};
|
|
265
|
+
}
|
|
570
266
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
267
|
+
.ft-input-label--hidden-text {
|
|
268
|
+
padding: 0 4px;
|
|
269
|
+
opacity: 0;
|
|
270
|
+
}
|
|
574
271
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
272
|
+
.ft-input-label--floating-text {
|
|
273
|
+
position: absolute;
|
|
274
|
+
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
275
|
+
transition: top 250ms;
|
|
276
|
+
width: calc(100% - 8px);
|
|
277
|
+
overflow: hidden;
|
|
278
|
+
white-space: nowrap;
|
|
279
|
+
text-overflow: ellipsis;
|
|
280
|
+
padding: ${Ve.verticalSpacing} 4px;
|
|
281
|
+
margin: calc(${Ve.verticalSpacing} * -1) 0;
|
|
282
|
+
}
|
|
578
283
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}
|
|
284
|
+
.ft-input-label--raised .ft-input-label--text {
|
|
285
|
+
${ft($e.fontSize,Ve.raisedFontSize)};
|
|
286
|
+
${ft($e.lineHeight,Ve.raisedFontSize)};
|
|
287
|
+
}
|
|
582
288
|
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}
|
|
289
|
+
.ft-input-label--raised .ft-input-label--floating-text {
|
|
290
|
+
top: ${Ve.verticalSpacing};
|
|
291
|
+
}
|
|
587
292
|
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
293
|
+
.ft-input-label--outlined .ft-input-label--text,
|
|
294
|
+
.ft-input-label--outlined:before,
|
|
295
|
+
.ft-input-label--outlined:after {
|
|
296
|
+
border-top-width: 1px;
|
|
297
|
+
border-top-style: solid;
|
|
298
|
+
}
|
|
591
299
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
right: 0;
|
|
598
|
-
color: ${Si.optionsColor};
|
|
599
|
-
background: ${Si.colorSurface};
|
|
600
|
-
z-index: ${Si.optionsZIndex};
|
|
601
|
-
box-shadow: ${Si.elevation02};
|
|
602
|
-
}
|
|
300
|
+
.ft-input-label--outlined:before {
|
|
301
|
+
border-left-width: 1px;
|
|
302
|
+
border-left-style: solid;
|
|
303
|
+
border-radius: ${Ve.borderRadiusS} 0 0 ${Ve.borderRadiusS};
|
|
304
|
+
}
|
|
603
305
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
306
|
+
.ft-input-label--outlined:after {
|
|
307
|
+
border-right-width: 1px;
|
|
308
|
+
border-right-style: solid;
|
|
309
|
+
border-radius: 0 ${Ve.borderRadiusS} ${Ve.borderRadiusS} 0;
|
|
310
|
+
}
|
|
607
311
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
312
|
+
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
313
|
+
padding: 2px 4px;
|
|
314
|
+
z-index: ${Ve.raisedZIndex};
|
|
315
|
+
background-color: ${Ve.colorSurface};
|
|
316
|
+
border-radius: ${Ve.borderRadiusS};
|
|
317
|
+
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
318
|
+
}
|
|
615
319
|
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
320
|
+
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
321
|
+
border-top: none;
|
|
322
|
+
}
|
|
323
|
+
`],Ke([o({type:String})],qe.prototype,"text",void 0),Ke([o({type:Boolean})],qe.prototype,"raised",void 0),Ke([o({type:Boolean})],qe.prototype,"outlined",void 0),Ke([o({type:Boolean})],qe.prototype,"disabled",void 0),p("ft-input-label")(qe);var Xe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Je={color:ht.extend("--ft-ripple-color",ut.colorContent),primaryColor:ht.extend("--ft-ripple-primary-color",ht.extend("--ft-ripple-color",ut.colorPrimary)),secondaryColor:ht.extend("--ft-ripple-secondary-color",ht.extend("--ft-ripple-color",ut.colorSecondary)),opacityContentOnSurfacePressed:ht.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(ut.opacityContentOnSurfaceSelected,"Design system")};class Ye extends bt{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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
|
|
324
|
+
<style>
|
|
325
|
+
.ft-ripple .ft-ripple--effect,
|
|
326
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
327
|
+
width: ${this.rippleSize}px;
|
|
328
|
+
height: ${this.rippleSize}px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.ft-ripple .ft-ripple--effect {
|
|
332
|
+
left: ${this.originX}px;
|
|
333
|
+
top: ${this.originY}px;
|
|
334
|
+
}
|
|
335
|
+
</style>
|
|
336
|
+
<div class="${Bt(t)}">
|
|
337
|
+
<div class="ft-ripple--background"></div>
|
|
338
|
+
<div class="ft-ripple--effect"></div>
|
|
339
|
+
</div>
|
|
340
|
+
`}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&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}var Ge,Qe;Ye.elementDefinitions={},Ye.styles=b`
|
|
341
|
+
:host {
|
|
342
|
+
display: contents;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.ft-ripple {
|
|
346
|
+
position: absolute;
|
|
347
|
+
inset: 0;
|
|
348
|
+
pointer-events: none;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
352
|
+
overflow: hidden;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.ft-ripple .ft-ripple--background,
|
|
356
|
+
.ft-ripple .ft-ripple--effect {
|
|
357
|
+
position: absolute;
|
|
358
|
+
opacity: 0;
|
|
359
|
+
background-color: ${Je.color};
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
363
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
364
|
+
background-color: ${Je.secondaryColor};
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
368
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
369
|
+
background-color: ${Je.primaryColor};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.ft-ripple .ft-ripple--background {
|
|
373
|
+
top: 0;
|
|
374
|
+
left: 0;
|
|
375
|
+
height: 100%;
|
|
376
|
+
width: 100%;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.ft-ripple .ft-ripple--effect,
|
|
380
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
381
|
+
border-radius: 50%;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.ft-ripple .ft-ripple--effect {
|
|
385
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
386
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
390
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
391
|
+
left: 50%;
|
|
392
|
+
top: 50%;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
396
|
+
transform: translate(-50%, -50%);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
400
|
+
opacity: ${Je.opacityContentOnSurfaceHover};
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
404
|
+
opacity: ${Je.opacityContentOnSurfaceSelected};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
408
|
+
opacity: ${Je.opacityContentOnSurfaceFocused};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
412
|
+
opacity: ${Je.opacityContentOnSurfacePressed};
|
|
413
|
+
transform: translate(-50%, -50%) scale(1);
|
|
414
|
+
}
|
|
415
|
+
`,Xe([o({type:Boolean})],Ye.prototype,"primary",void 0),Xe([o({type:Boolean})],Ye.prototype,"secondary",void 0),Xe([o({type:Boolean})],Ye.prototype,"unbounded",void 0),Xe([o({type:Boolean})],Ye.prototype,"activated",void 0),Xe([o({type:Boolean})],Ye.prototype,"selected",void 0),Xe([o({type:Boolean})],Ye.prototype,"disabled",void 0),Xe([n()],Ye.prototype,"hovered",void 0),Xe([n()],Ye.prototype,"focused",void 0),Xe([n()],Ye.prototype,"pressed",void 0),Xe([n()],Ye.prototype,"rippling",void 0),Xe([n()],Ye.prototype,"rippleSize",void 0),Xe([n()],Ye.prototype,"originX",void 0),Xe([n()],Ye.prototype,"originY",void 0),Xe([r(".ft-ripple")],Ye.prototype,"ripple",void 0),Xe([r(".ft-ripple--effect")],Ye.prototype,"rippleEffect",void 0),p("ft-ripple")(Ye),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=""}(Ge||(Ge={})),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=""}(Qe||(Qe={})),new Map([...["abw"].map((t=>[t,Qe.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,Qe.AUDIO])),...["avi"].map((t=>[t,Qe.AVI])),...["chm","xhs"].map((t=>[t,Qe.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,Qe.CODE])),...["csv"].map((t=>[t,Qe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Qe.DITA])),...["epub"].map((t=>[t,Qe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Qe.EXCEL])),...["flac"].map((t=>[t,Qe.FLAC])),...["gif"].map((t=>[t,Qe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Qe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Qe.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,Qe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Qe.JPEG])),...["json"].map((t=>[t,Qe.JSON])),...["m4a","m4p"].map((t=>[t,Qe.M4A])),...["mov","qt"].map((t=>[t,Qe.MOV])),...["mp3"].map((t=>[t,Qe.MP3])),...["mp4","m4v"].map((t=>[t,Qe.MP4])),...["ogg","oga"].map((t=>[t,Qe.OGG])),...["pdf","ps"].map((t=>[t,Qe.PDF])),...["png"].map((t=>[t,Qe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Qe.POWERPOINT])),...["rar"].map((t=>[t,Qe.RAR])),...["stp"].map((t=>[t,Qe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Qe.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,Qe.VIDEO])),...["wav"].map((t=>[t,Qe.WAV])),...["wma"].map((t=>[t,Qe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Qe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Qe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Qe.YAML])),...["zip"].map((t=>[t,Qe.ZIP]))]);var ti,ei=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ti||(ti={}));const ii={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class oi extends bt{constructor(){super(...arguments),this.variant=ti.fluid_topics}render(){return W`
|
|
416
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
417
|
+
${Dt(this.getIcon())}
|
|
418
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
419
|
+
</i>
|
|
420
|
+
`}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===ti.file_format?null!==(t=Qe[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ti.fluid_topics?null!==(e=Ge[i.toUpperCase()])&&void 0!==e?e:i:K}}oi.elementDefinitions={},oi.styles=b`
|
|
421
|
+
:host, i.ft-icon {
|
|
422
|
+
display: inline-block;
|
|
423
|
+
width: ${ii.size};
|
|
424
|
+
height: ${ii.size};
|
|
425
|
+
text-align: center;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
i.ft-icon {
|
|
429
|
+
font-size: ${ii.size};
|
|
430
|
+
line-height: 1;
|
|
431
|
+
font-weight: normal;
|
|
432
|
+
text-transform: none;
|
|
433
|
+
font-style: normal;
|
|
434
|
+
font-variant: normal;
|
|
435
|
+
speak: none;
|
|
436
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
437
|
+
text-rendering: auto;
|
|
438
|
+
-webkit-font-smoothing: antialiased;
|
|
439
|
+
-moz-osx-font-smoothing: grayscale;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ft-icon--fluid-topics {
|
|
443
|
+
font-family: ${ii.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ft-icon--file-format {
|
|
447
|
+
font-family: ${ii.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.ft-icon--material {
|
|
451
|
+
font-family: ${ii.materialFontFamily}, "Material Icons", sans-serif;
|
|
452
|
+
}
|
|
453
|
+
`,ei([o()],oi.prototype,"variant",void 0),ei([r("slot")],oi.prototype,"slottedContent",void 0),p("ft-icon")(oi);var ni=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class si extends bt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}si.elementDefinitions={},ni([o({type:String})],si.prototype,"label",void 0),ni([o({type:Object,converter:t=>t})],si.prototype,"value",void 0),ni([o({type:Boolean,reflect:!0})],si.prototype,"selected",void 0);const ri={labelSize:ht.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ht.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ht.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:ht.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ht.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ht.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ht.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:ht.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ht.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ht.external(ut.colorPrimary,"Design system"),borderRadiusS:ht.external(ut.borderRadiusS,"Design system"),elevation02:ht.external(ut.elevation02,"Design system")};class li extends bt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=!this.disabled&&this.optionsDisplayed&&this.hasOptions,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label};return W`
|
|
454
|
+
<div class="${Bt(a)}" part="container">
|
|
622
455
|
<div class="ft-select--main-panel" part="main-panel">
|
|
623
456
|
<ft-input-label text="${this.label}"
|
|
624
457
|
part="label"
|
|
625
|
-
?disabled=${
|
|
458
|
+
?disabled=${r}
|
|
626
459
|
?outlined=${this.outlined}
|
|
627
|
-
?raised=${
|
|
460
|
+
?raised=${l||s}
|
|
628
461
|
></ft-input-label>
|
|
629
462
|
<div class="ft-select--input-panel"
|
|
630
463
|
part="selected-value"
|
|
631
|
-
tabindex="${
|
|
464
|
+
tabindex="${r?"-1":"0"}"
|
|
632
465
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
633
466
|
@keydown=${this.onMainPanelKeyDown}
|
|
634
467
|
aria-label="${this.label}"
|
|
635
468
|
aria-haspopup="listbox"
|
|
636
|
-
aria-expanded="${
|
|
637
|
-
<ft-ripple ?disabled=${
|
|
469
|
+
aria-expanded="${s}">
|
|
470
|
+
<ft-ripple ?disabled=${r} ?activated=${!this.outlined}></ft-ripple>
|
|
638
471
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
639
|
-
${null!==(
|
|
472
|
+
${null!==(n=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==n?n:""}
|
|
640
473
|
</ft-typography>
|
|
641
|
-
<
|
|
474
|
+
<ft-icon variant="material">${s?"expand_less":"expand_more"}</ft-icon>
|
|
642
475
|
</div>
|
|
643
476
|
<div class="ft-select--options"
|
|
644
477
|
part="options"
|
|
645
478
|
@keydown=${this.onOptionsKeyDown}
|
|
646
479
|
innerrole="listbox">
|
|
647
|
-
${
|
|
480
|
+
${Mt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
|
|
648
481
|
</div>
|
|
649
482
|
</div>
|
|
650
|
-
${this.helper?
|
|
483
|
+
${this.helper?W`
|
|
651
484
|
<ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
|
|
652
485
|
</ft-typography>`:void 0}
|
|
653
486
|
</div>
|
|
654
487
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
655
488
|
@option-change=${this.updateOptionsFromSlot}
|
|
656
489
|
></slot>
|
|
657
|
-
`}renderOption(t){let e=this.selectedOption===t;return
|
|
658
|
-
<div class="${
|
|
490
|
+
`}renderOption(t){let e=this.selectedOption===t;return W`
|
|
491
|
+
<div class="${Bt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
|
|
659
492
|
part="option"
|
|
660
493
|
tabindex="0"
|
|
661
494
|
@keydown=${e=>this.onOptionKeyDown(e,t)}
|
|
@@ -663,98 +496,129 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
663
496
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
664
497
|
${t.label}
|
|
665
498
|
</div>
|
|
666
|
-
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
499
|
+
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}li.elementDefinitions={"ft-input-label":qe,"ft-typography":Ze,"ft-ripple":Ye,"ft-icon":oi},li.styles=[Ie,_e,b`
|
|
500
|
+
*:focus {
|
|
501
|
+
outline: none;
|
|
502
|
+
}
|
|
670
503
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
504
|
+
.ft-select {
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-direction: column;
|
|
507
|
+
align-items: stretch;
|
|
508
|
+
}
|
|
676
509
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}
|
|
510
|
+
.ft-select--main-panel {
|
|
511
|
+
position: relative;
|
|
512
|
+
display: flex;
|
|
513
|
+
height: calc(4 * ${ri.verticalSpacing} + ${ri.labelSize} + ${ri.selectedOptionSize});
|
|
514
|
+
}
|
|
683
515
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
516
|
+
.ft-select--input-panel {
|
|
517
|
+
flex-grow: 1;
|
|
518
|
+
position: relative;
|
|
519
|
+
display: flex;
|
|
520
|
+
align-items: center;
|
|
521
|
+
overflow: hidden;
|
|
522
|
+
padding-left: 16px;
|
|
523
|
+
padding-right: 8px;
|
|
524
|
+
gap: 8px;
|
|
525
|
+
color: ${ri.selectedOptionColor};
|
|
526
|
+
${ft(Je.color,ri.selectedOptionColor)};
|
|
527
|
+
}
|
|
689
528
|
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
overflow: hidden;
|
|
696
|
-
gap: 8px;
|
|
697
|
-
}
|
|
529
|
+
.ft-select--input-panel,
|
|
530
|
+
.ft-select--option {
|
|
531
|
+
${ft(Je.opacityContentOnSurfaceHover,"0.08")};
|
|
532
|
+
${ft(Je.opacityContentOnSurfacePressed,"0.04")};
|
|
533
|
+
}
|
|
698
534
|
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
535
|
+
.ft-select--disabled .ft-select--input-panel,
|
|
536
|
+
.ft-select--disabled .ft-select--option {
|
|
537
|
+
color: ${ri.colorOnSurfaceDisabled};
|
|
538
|
+
}
|
|
703
539
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
540
|
+
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
541
|
+
.ft-select:not(.ft-select--disabled) .ft-select--option {
|
|
542
|
+
cursor: pointer;
|
|
543
|
+
}
|
|
709
544
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
545
|
+
ft-input-label {
|
|
546
|
+
${ft(Ve.fontSize,ri.selectedOptionSize)};
|
|
547
|
+
${ft(Ve.raisedFontSize,ri.labelSize)};
|
|
548
|
+
${ft(Ve.verticalSpacing,ri.verticalSpacing)};
|
|
549
|
+
}
|
|
713
550
|
|
|
714
|
-
|
|
551
|
+
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
552
|
+
color: ${ri.colorPrimary};
|
|
553
|
+
}
|
|
715
554
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
555
|
+
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
556
|
+
${ft(Ve.borderColor,ri.colorPrimary)};
|
|
557
|
+
${ft(Ve.textColor,ri.colorPrimary)};
|
|
558
|
+
}
|
|
719
559
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
560
|
+
.ft-select--selected-option {
|
|
561
|
+
display: block;
|
|
562
|
+
flex-grow: 1;
|
|
563
|
+
flex-shrink: 1;
|
|
564
|
+
overflow: hidden;
|
|
565
|
+
white-space: nowrap;
|
|
566
|
+
text-overflow: ellipsis;
|
|
567
|
+
${ft(ue.fontSize,ri.selectedOptionSize)};
|
|
568
|
+
${ft(ue.lineHeight,ri.selectedOptionSize)};
|
|
569
|
+
}
|
|
724
570
|
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
571
|
+
ft-icon {
|
|
572
|
+
flex-shrink: 0;
|
|
573
|
+
}
|
|
728
574
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
575
|
+
slot {
|
|
576
|
+
display: none;
|
|
577
|
+
}
|
|
732
578
|
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}
|
|
579
|
+
.ft-select--filled .ft-select--input-panel {
|
|
580
|
+
border-radius: ${ri.borderRadiusS} ${ri.borderRadiusS} 0 0;
|
|
581
|
+
}
|
|
737
582
|
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}
|
|
583
|
+
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
584
|
+
align-self: stretch;
|
|
585
|
+
padding-top: calc(${ri.labelSize} + 2 * ${ri.verticalSpacing});
|
|
586
|
+
}
|
|
741
587
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
|
|
746
|
-
}
|
|
588
|
+
.ft-select--outlined .ft-select--input-panel {
|
|
589
|
+
border-radius: ${ri.borderRadiusS};
|
|
590
|
+
}
|
|
747
591
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
592
|
+
.ft-select--options {
|
|
593
|
+
display: none;
|
|
594
|
+
position: absolute;
|
|
595
|
+
top: 100%;
|
|
596
|
+
left: 0;
|
|
597
|
+
right: 0;
|
|
598
|
+
color: ${ri.optionsColor};
|
|
599
|
+
background: ${ri.colorSurface};
|
|
600
|
+
z-index: ${ri.optionsZIndex};
|
|
601
|
+
box-shadow: ${ri.elevation02};
|
|
602
|
+
}
|
|
751
603
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
604
|
+
.ft-select--options-displayed .ft-select--options {
|
|
605
|
+
display: block;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.ft-select--option {
|
|
609
|
+
position: relative;
|
|
610
|
+
padding: 4px 16px;
|
|
611
|
+
min-height: 32px;
|
|
612
|
+
display: flex;
|
|
613
|
+
align-items: center;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.ft-select--helper-text {
|
|
617
|
+
padding: 0 12px 0 16px;
|
|
618
|
+
color: ${ri.helperColor};
|
|
619
|
+
}
|
|
620
|
+
`],ni([o({type:String})],li.prototype,"label",void 0),ni([o({type:String})],li.prototype,"helper",void 0),ni([o({type:Boolean})],li.prototype,"outlined",void 0),ni([o({type:Boolean})],li.prototype,"disabled",void 0),ni([o({type:Array})],li.prototype,"options",void 0),ni([n()],li.prototype,"selectedOption",void 0),ni([n()],li.prototype,"optionsDisplayed",void 0),ni([n()],li.prototype,"focusOptions",void 0),ni([r(".ft-select")],li.prototype,"container",void 0),ni([r(".ft-select--input-panel")],li.prototype,"mainPanel",void 0),ni([r(".ft-select--option:first-child")],li.prototype,"firstOption",void 0),ni([r(".ft-select--option:focus")],li.prototype,"focusedOption",void 0),ni([r(".ft-select--option.ft-select--option-selected")],li.prototype,"selectedOptionElement",void 0),ni([r(".ft-select--option:last-child")],li.prototype,"lastOption",void 0),ni([r("slot")],li.prototype,"optionsSlot",void 0),p("ft-select")(li),p("ft-select-option")(si);var ai=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const pi={fontSize:ht.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ht.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ht.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ht.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ht.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ht.external(ut.colorPrimary,"Design system"),colorOnSurface:ht.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ht.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ht.external(ut.borderRadiusS,"Design system")};class ci extends bt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label};return W`
|
|
621
|
+
<div class="${Bt(t)}">
|
|
758
622
|
<div class="ft-text-field--main-panel">
|
|
759
623
|
<ft-input-label text="${this.label}"
|
|
760
624
|
?disabled=${this.disabled}
|
|
@@ -763,7 +627,7 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
763
627
|
></ft-input-label>
|
|
764
628
|
<div class="ft-text-field--input-panel"
|
|
765
629
|
aria-label="${this.label}">
|
|
766
|
-
${this.outlined?null:
|
|
630
|
+
${this.outlined?null:W`
|
|
767
631
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
768
632
|
`}
|
|
769
633
|
<input type="text"
|
|
@@ -778,49 +642,107 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
778
642
|
/>
|
|
779
643
|
|
|
780
644
|
<datalist id="datalist">
|
|
781
|
-
${this.dataList.map((t=>
|
|
645
|
+
${this.dataList.map((t=>W`
|
|
782
646
|
<option value="${t}"></option>`))}
|
|
783
647
|
</datalist>
|
|
784
648
|
|
|
785
649
|
</div>
|
|
786
650
|
</div>
|
|
787
|
-
${this.helper?
|
|
651
|
+
${this.helper?W`
|
|
788
652
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
789
653
|
</ft-typography>`:void 0}
|
|
790
654
|
</div>
|
|
791
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
position: relative;
|
|
655
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}ci.elementDefinitions={"ft-input-label":qe,"ft-ripple":Ye,"ft-typography":Ze},ci.styles=[Ae,b`
|
|
656
|
+
*:focus {
|
|
657
|
+
outline: none;
|
|
795
658
|
}
|
|
796
659
|
|
|
797
|
-
.ft-
|
|
798
|
-
display:
|
|
799
|
-
|
|
660
|
+
.ft-text-field {
|
|
661
|
+
display: flex;
|
|
662
|
+
flex-direction: column;
|
|
663
|
+
align-items: stretch;
|
|
800
664
|
}
|
|
801
665
|
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
max-width: 150px;
|
|
808
|
-
text-align: center;
|
|
809
|
-
padding: ${Ni};
|
|
810
|
-
z-index: ${Ai};
|
|
666
|
+
ft-input-label {
|
|
667
|
+
${ft(Ve.fontSize,pi.fontSize)};
|
|
668
|
+
${ft(Ve.raisedFontSize,pi.labelSize)};
|
|
669
|
+
${ft(Ve.verticalSpacing,pi.verticalSpacing)};
|
|
670
|
+
${ft(Ve.horizontalSpacing,b`calc(${pi.horizontalSpacing} - 4px)`)};
|
|
811
671
|
}
|
|
812
672
|
|
|
813
|
-
.ft-
|
|
814
|
-
padding: 4px 8px;
|
|
815
|
-
border-radius: ${Mi};
|
|
816
|
-
background-color: ${Ti};
|
|
817
|
-
color: ${Fi};
|
|
818
|
-
top: -500px;
|
|
819
|
-
left: -500px;
|
|
673
|
+
.ft-text-field--main-panel {
|
|
820
674
|
position: relative;
|
|
821
|
-
|
|
675
|
+
display: flex;
|
|
676
|
+
height: calc(4 * ${pi.verticalSpacing} + ${pi.labelSize} + ${pi.fontSize});
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.ft-text-field--input-panel {
|
|
680
|
+
flex-grow: 1;
|
|
681
|
+
position: relative;
|
|
682
|
+
display: flex;
|
|
683
|
+
align-items: center;
|
|
684
|
+
overflow: hidden;
|
|
685
|
+
gap: 8px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.ft-text-field--input-panel ft-ripple {
|
|
689
|
+
${ft(Je.opacityContentOnSurfaceHover,"0.08")};
|
|
690
|
+
${ft(Je.opacityContentOnSurfacePressed,"0.04")};
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.ft-text-field--input {
|
|
694
|
+
display: block;
|
|
695
|
+
flex-grow: 1;
|
|
696
|
+
flex-shrink: 1;
|
|
697
|
+
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
698
|
+
|
|
699
|
+
${ft(ue.fontSize,pi.fontSize)};
|
|
700
|
+
${ft(ue.lineHeight,pi.fontSize)};
|
|
701
|
+
color: ${pi.colorOnSurface};
|
|
702
|
+
|
|
703
|
+
padding: 0 ${pi.horizontalSpacing};
|
|
704
|
+
|
|
705
|
+
border: none;
|
|
706
|
+
background: none;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
710
|
+
.ft-text-field--input::-webkit-list-button {
|
|
711
|
+
display: none !important;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.ft-text-field--disabled .ft-text-field--input {
|
|
715
|
+
color: ${pi.colorOnSurfaceDisabled};
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
|
|
719
|
+
cursor: pointer;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
723
|
+
${ft(Ve.borderColor,pi.colorPrimary)};
|
|
724
|
+
${ft(Ve.textColor,pi.colorPrimary)};
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.ft-text-field--filled .ft-text-field--input-panel {
|
|
728
|
+
border-radius: ${pi.borderRadiusS} ${pi.borderRadiusS} 0 0;
|
|
822
729
|
}
|
|
823
|
-
|
|
730
|
+
|
|
731
|
+
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
|
|
732
|
+
align-self: stretch;
|
|
733
|
+
padding-bottom: ${pi.verticalSpacing};
|
|
734
|
+
padding-top: calc(${pi.labelSize} + 2 * ${pi.verticalSpacing});
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
738
|
+
border-radius: ${pi.borderRadiusS};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.ft-text-field--helper-text {
|
|
742
|
+
padding: 0 12px 0 ${pi.horizontalSpacing};
|
|
743
|
+
color: ${pi.helperColor};
|
|
744
|
+
}
|
|
745
|
+
`],ai([o({type:String})],ci.prototype,"label",void 0),ai([o({reflect:!0})],ci.prototype,"value",void 0),ai([o({type:String})],ci.prototype,"helper",void 0),ai([o({type:Boolean})],ci.prototype,"outlined",void 0),ai([o({type:Boolean})],ci.prototype,"disabled",void 0),ai([r(".ft-text-field--input")],ci.prototype,"input",void 0),ai([o({attribute:!1})],ci.prototype,"dataList",void 0),ai([n()],ci.prototype,"focused",void 0),p("ft-text-field")(ci);var di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const hi=ht.create("--ft-tooltip-distance","SIZE","4px"),fi=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),ui=ht.create("--ft-tooltip-background-color","COLOR","#666666"),bi=ht.create("--ft-tooltip-z-index","NUMBER","1"),vi=ht.external(ut.borderRadiusS,"Design system");class xi extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return W`
|
|
824
746
|
<div part="container"
|
|
825
747
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
826
748
|
@mouseenter=${this.onHover}
|
|
@@ -835,13 +757,45 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
835
757
|
</div>
|
|
836
758
|
<slot></slot>
|
|
837
759
|
</div>
|
|
838
|
-
`}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,
|
|
760
|
+
`}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,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=e.height+"px",n.left=o+"px";break;case"left":n.top=i+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=i+"px",n.left=e.width+"px"}n.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())}}xi.elementDefinitions={"ft-typography":Ze},xi.styles=b`
|
|
761
|
+
.ft-tooltip--container {
|
|
762
|
+
display: block;
|
|
763
|
+
position: relative;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.ft-tooltip--inline {
|
|
767
|
+
display: inline-block;
|
|
768
|
+
max-width: 100%;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.ft-tooltip {
|
|
772
|
+
position: absolute;
|
|
773
|
+
box-sizing: border-box;
|
|
774
|
+
overflow: hidden;
|
|
775
|
+
width: max-content;
|
|
776
|
+
max-width: 150px;
|
|
777
|
+
text-align: center;
|
|
778
|
+
padding: ${hi};
|
|
779
|
+
z-index: ${bi};
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.ft-tooltip--content {
|
|
783
|
+
padding: 4px 8px;
|
|
784
|
+
border-radius: ${vi};
|
|
785
|
+
background-color: ${ui};
|
|
786
|
+
color: ${fi};
|
|
787
|
+
top: -500px;
|
|
788
|
+
left: -500px;
|
|
789
|
+
position: relative;
|
|
790
|
+
word-break: break-word;
|
|
791
|
+
}
|
|
792
|
+
`,di([o()],xi.prototype,"text",void 0),di([o({type:Boolean})],xi.prototype,"manual",void 0),di([o({type:Boolean})],xi.prototype,"inline",void 0),di([o({type:Number})],xi.prototype,"delay",void 0),di([o()],xi.prototype,"position",void 0),di([
|
|
839
793
|
/**
|
|
840
794
|
* @license
|
|
841
795
|
* Copyright 2017 Google LLC
|
|
842
796
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
843
797
|
*/
|
|
844
|
-
function(t,e,i){let
|
|
798
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({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)],xi.prototype,"slotNodes",void 0),di([r(".ft-tooltip--container")],xi.prototype,"container",void 0),di([r("slot")],xi.prototype,"target",void 0),di([r(".ft-tooltip")],xi.prototype,"tooltip",void 0),di([r(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),di([n()],xi.prototype,"visible",void 0),p("ft-tooltip")(xi);const yi={color:ht.extend("--ft-loader-color",ut.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class gi extends bt{static get styles(){return b`
|
|
845
799
|
:host {
|
|
846
800
|
line-height: 0;
|
|
847
801
|
}
|
|
@@ -850,8 +804,8 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
850
804
|
display: inline-block;
|
|
851
805
|
position: relative;
|
|
852
806
|
|
|
853
|
-
width: ${
|
|
854
|
-
height: ${
|
|
807
|
+
width: ${yi.size};
|
|
808
|
+
height: ${yi.size};
|
|
855
809
|
}
|
|
856
810
|
|
|
857
811
|
.ft-loader div {
|
|
@@ -860,7 +814,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
860
814
|
width: 25%;
|
|
861
815
|
height: 25%;
|
|
862
816
|
border-radius: 50%;
|
|
863
|
-
background: ${
|
|
817
|
+
background: ${yi.color};
|
|
864
818
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
865
819
|
}
|
|
866
820
|
|
|
@@ -907,20 +861,21 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
907
861
|
transform: translate(0, 0);
|
|
908
862
|
}
|
|
909
863
|
100% {
|
|
910
|
-
transform: translate(calc(0.35 * ${
|
|
864
|
+
transform: translate(calc(0.35 * ${yi.size}), 0);
|
|
911
865
|
}
|
|
912
866
|
}
|
|
913
|
-
`}
|
|
867
|
+
`}render(){return W`
|
|
914
868
|
<div class="ft-loader">
|
|
915
869
|
<div></div>
|
|
916
870
|
<div></div>
|
|
917
871
|
<div></div>
|
|
918
872
|
<div></div>
|
|
919
873
|
</div>
|
|
920
|
-
`}}
|
|
874
|
+
`}}p("ft-loader")(gi);var mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const $i=ht.extend("--ft-button-color",ut.colorPrimary),wi={backgroundColor:ht.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",ut.borderRadiusL),color:$i,fontSize:ht.extend("--ft-button-font-size",De.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",$i),opacityDisabled:ht.external(ut.colorOpacityDisabled,"Design system")},Oi=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",ut.colorOnPrimary)),Si={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",ut.colorPrimary)),color:Oi,rippleColor:ht.extend("--ft-button-primary-ripple-color",Oi)},ki=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",ut.borderRadiusM));class Ci extends bt{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[vt,b`
|
|
921
875
|
:host {
|
|
922
876
|
display: inline-block;
|
|
923
877
|
max-width: 100%;
|
|
878
|
+
pointer-events: none;
|
|
924
879
|
}
|
|
925
880
|
|
|
926
881
|
button {
|
|
@@ -953,19 +908,20 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
953
908
|
overflow: hidden;
|
|
954
909
|
box-sizing: border-box;
|
|
955
910
|
border: none;
|
|
911
|
+
pointer-events: auto;
|
|
956
912
|
|
|
957
|
-
--ft-button-internal-font-size: ${
|
|
913
|
+
--ft-button-internal-font-size: ${wi.fontSize};
|
|
958
914
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
959
|
-
--ft-button-internal-color: ${
|
|
960
|
-
|
|
915
|
+
--ft-button-internal-color: ${wi.color};
|
|
916
|
+
${ft(ii.size,wi.iconSize)};
|
|
961
917
|
--ft-button-internal-vertical-padding: 6px;
|
|
962
918
|
--ft-button-internal-horizontal-padding: 8px;
|
|
963
|
-
${
|
|
964
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height),
|
|
919
|
+
${ft(Je.color,wi.rippleColor)};
|
|
920
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${wi.iconSize});
|
|
965
921
|
|
|
966
|
-
border-radius: ${
|
|
922
|
+
border-radius: ${wi.borderRadius};
|
|
967
923
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
968
|
-
background-color: ${
|
|
924
|
+
background-color: ${wi.backgroundColor};
|
|
969
925
|
color: var(--ft-button-internal-color);
|
|
970
926
|
-webkit-mask-image: radial-gradient(white, black);
|
|
971
927
|
}
|
|
@@ -977,7 +933,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
977
933
|
.ft-button--dense {
|
|
978
934
|
--ft-button-internal-vertical-padding: 2px;
|
|
979
935
|
--ft-button-internal-horizontal-padding: 4px;
|
|
980
|
-
border-radius: ${
|
|
936
|
+
border-radius: ${ki};
|
|
981
937
|
}
|
|
982
938
|
|
|
983
939
|
.ft-button--round {
|
|
@@ -986,12 +942,13 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
986
942
|
|
|
987
943
|
.ft-button[disabled] {
|
|
988
944
|
filter: grayscale(1);
|
|
989
|
-
opacity: ${
|
|
945
|
+
opacity: ${wi.opacityDisabled};
|
|
990
946
|
}
|
|
991
947
|
|
|
992
948
|
.ft-button.ft-button--primary {
|
|
993
|
-
background-color: ${
|
|
994
|
-
--ft-button-internal-color: ${
|
|
949
|
+
background-color: ${Si.backgroundColor};
|
|
950
|
+
--ft-button-internal-color: ${Si.color};
|
|
951
|
+
${ft(Je.color,Si.rippleColor)};
|
|
995
952
|
}
|
|
996
953
|
|
|
997
954
|
.ft-button.ft-button--outlined {
|
|
@@ -1009,8 +966,8 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
1009
966
|
text-overflow: ellipsis;
|
|
1010
967
|
display: block;
|
|
1011
968
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
1012
|
-
${
|
|
1013
|
-
${
|
|
969
|
+
${ft(De.fontSize,"var(--ft-button-internal-font-size)")};
|
|
970
|
+
${ft(De.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
1014
971
|
}
|
|
1015
972
|
|
|
1016
973
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -1027,28 +984,27 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
1027
984
|
display: none;
|
|
1028
985
|
}
|
|
1029
986
|
|
|
1030
|
-
|
|
987
|
+
ft-icon {
|
|
1031
988
|
flex-shrink: 0;
|
|
1032
|
-
width: var(--mdc-icon-size);
|
|
1033
989
|
}
|
|
1034
990
|
|
|
1035
|
-
.ft-button--label[hidden] +
|
|
991
|
+
.ft-button--label[hidden] + ft-icon {
|
|
1036
992
|
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
1037
993
|
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
1038
994
|
}
|
|
1039
995
|
|
|
1040
|
-
.ft-button:not(.ft-button--trailing-icon)
|
|
996
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
1041
997
|
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
1042
998
|
order: -1;
|
|
1043
999
|
}
|
|
1044
1000
|
|
|
1045
1001
|
ft-loader {
|
|
1046
|
-
${
|
|
1047
|
-
${
|
|
1002
|
+
${ft(yi.size,wi.iconSize)};
|
|
1003
|
+
${ft(yi.color,"var(--ft-button-internal-color)")};
|
|
1048
1004
|
}
|
|
1049
|
-
`]}
|
|
1005
|
+
`]}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":mt,"ft-no-text-select":!0};return this.addTooltip(W`
|
|
1050
1006
|
<button part="button"
|
|
1051
|
-
class="${
|
|
1007
|
+
class="${Bt(t)}"
|
|
1052
1008
|
aria-label="${this.getLabel()}"
|
|
1053
1009
|
?disabled=${this.isDisabled()}>
|
|
1054
1010
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -1060,127 +1016,32 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
1060
1016
|
</ft-typography>
|
|
1061
1017
|
${this.resolveIcon()}
|
|
1062
1018
|
</button>
|
|
1063
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
1019
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:W`
|
|
1064
1020
|
<ft-tooltip part="tooltip"
|
|
1065
1021
|
text="${this.getLabel()}"
|
|
1066
1022
|
position="${this.tooltipPosition}">
|
|
1067
1023
|
${t}
|
|
1068
1024
|
</ft-tooltip>
|
|
1069
|
-
`}resolveIcon(){return this.loading?
|
|
1070
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
1071
|
-
<
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
display: grid;
|
|
1078
|
-
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
.header, .row {
|
|
1082
|
-
display: contents;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
.header-cell {
|
|
1086
|
-
display: flex;
|
|
1087
|
-
flex-direction: column;
|
|
1088
|
-
background: ${Gi.headerBackground};
|
|
1089
|
-
color: ${Gi.colorOnSurfaceHigh};
|
|
1090
|
-
padding: .5rem 1rem;
|
|
1091
|
-
font-family: ${Gi.titleFont};
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
.header-cell:first-of-type {
|
|
1095
|
-
border-radius: .5rem 0 0 0;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.header-cell:last-of-type {
|
|
1099
|
-
border-radius: 0 .5rem 0 0;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.column-title-container {
|
|
1103
|
-
display: flex;
|
|
1104
|
-
align-items: center;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
.column-title-container ft-button {
|
|
1108
|
-
${Rt(Li.backgroundColor,Gi.headerBackground)};
|
|
1109
|
-
${Rt(Li.color,Gi.colorOnSurfaceHigh)};
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
.column-title {
|
|
1113
|
-
white-space: nowrap;
|
|
1114
|
-
text-transform: uppercase;
|
|
1115
|
-
margin-right: .5rem;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
.column-filter {
|
|
1119
|
-
flex-grow: 1;
|
|
1120
|
-
flex-shrink: 0;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
.column-filter:not(:empty) {
|
|
1124
|
-
padding-top: .5rem;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
.column-filter ft-text-field,
|
|
1128
|
-
.column-filter ft-select {
|
|
1129
|
-
width: 150px;
|
|
1130
|
-
min-width: 100%;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
.cell {
|
|
1134
|
-
padding: 1rem;
|
|
1135
|
-
border-left: 1px solid ${Gi.headerBackground};
|
|
1136
|
-
border-bottom: 1px solid ${Gi.headerBackground};
|
|
1137
|
-
overflow-x: auto;
|
|
1138
|
-
display: flex;
|
|
1139
|
-
align-items: center;
|
|
1140
|
-
font-family: ${Gi.contentFont};
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
/* Even is 2n+1 and odd is 2n because of the header */
|
|
1144
|
-
.row:nth-child(2n) > .cell {
|
|
1145
|
-
background: ${Gi.oddRowBackground};
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
.row:nth-child(2n + 1) > .cell {
|
|
1149
|
-
background: ${Gi.evenRowBackground};
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
.row:hover > .cell {
|
|
1153
|
-
background: ${Gi.rowHoverBackground};
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
.cell:last-of-type {
|
|
1157
|
-
border-right: 1px solid ${Gi.headerBackground};
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
.row:last-of-type .cell:first-of-type {
|
|
1161
|
-
border-radius: 0 0 0 .5rem;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
.row:last-of-type .cell:last-of-type {
|
|
1165
|
-
border-radius: 0 0 .5rem 0;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
.hidden {
|
|
1169
|
-
visibility: hidden;
|
|
1170
|
-
}
|
|
1171
|
-
`}init(t,e,i){this.data=t,this.columns=e,this.sort=i}getTemplate(){let t=this.sortData(this.filterData());return j`
|
|
1025
|
+
`}resolveIcon(){return this.loading?W`
|
|
1026
|
+
<ft-loader></ft-loader> `:this.icon?W`
|
|
1027
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:K}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}}Ci.elementDefinitions={"ft-ripple":Ye,"ft-tooltip":xi,"ft-typography":Ze,"ft-icon":oi,"ft-loader":gi},mi([o({type:Boolean})],Ci.prototype,"primary",void 0),mi([o({type:Boolean})],Ci.prototype,"outlined",void 0),mi([o({type:Boolean})],Ci.prototype,"disabled",void 0),mi([o({type:Boolean})],Ci.prototype,"dense",void 0),mi([o({type:Boolean})],Ci.prototype,"round",void 0),mi([o({type:String})],Ci.prototype,"label",void 0),mi([o({type:String})],Ci.prototype,"icon",void 0),mi([o({type:Boolean})],Ci.prototype,"trailingIcon",void 0),mi([o({type:Boolean})],Ci.prototype,"loading",void 0),mi([o({type:String})],Ci.prototype,"tooltipPosition",void 0),mi([r(".ft-button")],Ci.prototype,"button",void 0),mi([r(".ft-button--label slot")],Ci.prototype,"slottedContent",void 0),p("ft-button")(Ci);var Ei=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ri={headerBackground:ht.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ht.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ht.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ht.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),colorOnSurfaceHigh:ht.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ht.external(ut.titleFont,"Design system"),contentFont:ht.external(ut.contentFont,"Design system")},zi=t=>W`${t}`,Fi=(t,e)=>t-e;class Mi extends bt{constructor(){super(...arguments),this.data=[],this.columns=[],this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return W`
|
|
1028
|
+
<style>
|
|
1029
|
+
.table {
|
|
1030
|
+
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
1031
|
+
}
|
|
1032
|
+
</style>
|
|
1172
1033
|
<div class="table">
|
|
1173
1034
|
<div class="header">
|
|
1174
|
-
${
|
|
1035
|
+
${Mt(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
|
|
1175
1036
|
</div>
|
|
1176
|
-
${
|
|
1037
|
+
${Mt(t,((t,e)=>"row-"+e),((t,e)=>W`
|
|
1177
1038
|
<div class="row"
|
|
1178
|
-
@click=${()=>this.dispatchEvent(new
|
|
1179
|
-
${
|
|
1039
|
+
@click=${()=>this.dispatchEvent(new Ni(t))}>
|
|
1040
|
+
${Mt(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
|
|
1180
1041
|
</div>
|
|
1181
1042
|
`))}
|
|
1182
1043
|
</div>
|
|
1183
|
-
`}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var
|
|
1044
|
+
`}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:Fi,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){return W`
|
|
1184
1045
|
<div class="header-cell">
|
|
1185
1046
|
<div class="column-title-container">
|
|
1186
1047
|
<span class="column-title">${t.title}</span>
|
|
@@ -1190,27 +1051,126 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
1190
1051
|
${this.renderColumnFilter(t,e)}
|
|
1191
1052
|
</div>
|
|
1192
1053
|
</div>
|
|
1193
|
-
`}renderColumnSort(t,e){var i;const
|
|
1054
|
+
`}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,n=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return W`
|
|
1194
1055
|
<ft-button
|
|
1195
1056
|
round
|
|
1196
1057
|
dense
|
|
1197
1058
|
class="${null===(i=t.sortable)||void 0===i||i?"":"hidden"}"
|
|
1198
|
-
icon="${
|
|
1059
|
+
icon="${n}"
|
|
1199
1060
|
label="Sort ${t.title}"
|
|
1200
|
-
@click=${()=>{var t;
|
|
1061
|
+
@click=${()=>{var t;o?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
|
|
1201
1062
|
></ft-button>
|
|
1202
|
-
`}renderColumnFilter(t,e){var i,
|
|
1063
|
+
`}renderColumnFilter(t,e){var i,o;const n=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return W`
|
|
1203
1064
|
<ft-text-field
|
|
1204
1065
|
label="Search ${t.title}"
|
|
1205
|
-
@live-change="${
|
|
1066
|
+
@live-change="${n}"
|
|
1206
1067
|
></ft-text-field>
|
|
1207
|
-
`;case"select":const i=null!==(
|
|
1208
|
-
<ft-select label="Filter ${t.title}" @change=${
|
|
1068
|
+
`;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?W`
|
|
1069
|
+
<ft-select label="Filter ${t.title}" @change=${n}>
|
|
1209
1070
|
<ft-select-option></ft-select-option>
|
|
1210
|
-
${i.map((t=>
|
|
1071
|
+
${i.map((t=>W`
|
|
1211
1072
|
<ft-select-option value="${t}" label="${t}"></ft-select-option>
|
|
1212
1073
|
`))}
|
|
1213
1074
|
</ft-select>
|
|
1214
|
-
`:null}return null}renderCell(t,e,i){var
|
|
1215
|
-
<div class="cell">${(t=>{const e=
|
|
1216
|
-
`}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const
|
|
1075
|
+
`:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:zi;return W`
|
|
1076
|
+
<div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Dt(e):e})(this.getValue(t,e))}</div>
|
|
1077
|
+
`}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}Mi.styles=b`
|
|
1078
|
+
:host {
|
|
1079
|
+
display: block;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.table {
|
|
1083
|
+
display: grid;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.header, .row {
|
|
1087
|
+
display: contents;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.header-cell {
|
|
1091
|
+
display: flex;
|
|
1092
|
+
flex-direction: column;
|
|
1093
|
+
background: ${Ri.headerBackground};
|
|
1094
|
+
color: ${Ri.colorOnSurfaceHigh};
|
|
1095
|
+
padding: .5rem 1rem;
|
|
1096
|
+
font-family: ${Ri.titleFont};
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.header-cell:first-of-type {
|
|
1100
|
+
border-radius: .5rem 0 0 0;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.header-cell:last-of-type {
|
|
1104
|
+
border-radius: 0 .5rem 0 0;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.column-title-container {
|
|
1108
|
+
display: flex;
|
|
1109
|
+
align-items: center;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
.column-title-container ft-button {
|
|
1113
|
+
${ft(wi.backgroundColor,Ri.headerBackground)};
|
|
1114
|
+
${ft(wi.color,Ri.colorOnSurfaceHigh)};
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
.column-title {
|
|
1118
|
+
white-space: nowrap;
|
|
1119
|
+
text-transform: uppercase;
|
|
1120
|
+
margin-right: .5rem;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.column-filter {
|
|
1124
|
+
flex-grow: 1;
|
|
1125
|
+
flex-shrink: 0;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.column-filter:not(:empty) {
|
|
1129
|
+
padding-top: .5rem;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.column-filter ft-text-field,
|
|
1133
|
+
.column-filter ft-select {
|
|
1134
|
+
width: 150px;
|
|
1135
|
+
min-width: 100%;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.cell {
|
|
1139
|
+
padding: 1rem;
|
|
1140
|
+
border-left: 1px solid ${Ri.headerBackground};
|
|
1141
|
+
border-bottom: 1px solid ${Ri.headerBackground};
|
|
1142
|
+
overflow-x: auto;
|
|
1143
|
+
display: flex;
|
|
1144
|
+
align-items: center;
|
|
1145
|
+
font-family: ${Ri.contentFont};
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/* Even is 2n+1 and odd is 2n because of the header */
|
|
1149
|
+
.row:nth-child(2n) > .cell {
|
|
1150
|
+
background: ${Ri.oddRowBackground};
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.row:nth-child(2n + 1) > .cell {
|
|
1154
|
+
background: ${Ri.evenRowBackground};
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.row:hover > .cell {
|
|
1158
|
+
background: ${Ri.rowHoverBackground};
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.cell:last-of-type {
|
|
1162
|
+
border-right: 1px solid ${Ri.headerBackground};
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
.row:last-of-type .cell:first-of-type {
|
|
1166
|
+
border-radius: 0 0 0 .5rem;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
.row:last-of-type .cell:last-of-type {
|
|
1170
|
+
border-radius: 0 0 .5rem 0;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.hidden {
|
|
1174
|
+
visibility: hidden;
|
|
1175
|
+
}
|
|
1176
|
+
`,Ei([o({attribute:!1})],Mi.prototype,"data",void 0),Ei([o({attribute:!1})],Mi.prototype,"columns",void 0),Ei([o({attribute:!1})],Mi.prototype,"sort",void 0),Ei([n()],Mi.prototype,"currentSort",void 0),p("ft-filterable-table")(Mi),t.FtFilterableTable=Mi,t.FtFilterableTableCssVariables=Ri,t.RowClickEvent=Ni,Object.defineProperty(t,"t",{value:!0})}({});
|