@fluid-topics/ft-filter 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filter-level.d.ts +2 -2
- package/build/ft-filter-level.js +92 -98
- package/build/ft-filter-option.d.ts +1 -1
- package/build/ft-filter-option.js +4 -8
- package/build/ft-filter.d.ts +2 -3
- package/build/ft-filter.inline-styles.js +1421 -0
- package/build/ft-filter.js +114 -121
- package/build/ft-filter.light.js +512 -444
- package/build/ft-filter.min.js +547 -464
- package/build/index.d.ts +3 -0
- package/build/index.js +10 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +6 -0
- package/package.json +9 -9
package/build/ft-filter.light.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var n;const s=globalThis.trustedTypes,d=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,p="?"+l,h=`<${p}>`,m=document,
|
|
7
|
+
var n;const s=globalThis.trustedTypes,d=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,p="?"+l,h=`<${p}>`,m=document,f=(t="")=>m.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,y=/>/g,k=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,x=/'/g,_=/"/g,w=/^(?:script|style|textarea|title)$/i,$=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),z=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),O=new WeakMap,T=m.createTreeWalker(m,129,null,!1),A=(t,e)=>{const i=t.length-1,r=[];let o,c=2===e?"<svg>":"",a=g;for(let e=0;e<i;e++){const i=t[e];let n,s,d=-1,p=0;for(;p<i.length&&(a.lastIndex=p,s=a.exec(i),null!==s);)p=a.lastIndex,a===g?"!--"===s[1]?a=v:void 0!==s[1]?a=y:void 0!==s[2]?(w.test(s[2])&&(o=RegExp("</"+s[2],"g")),a=k):void 0!==s[3]&&(a=k):a===k?">"===s[0]?(a=null!=o?o:g,d=-1):void 0===s[1]?d=-2:(d=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?k:'"'===s[3]?_:x):a===_||a===x?a=k:a===v||a===y?a=g:(a=k,o=void 0);const m=a===k&&t[e+1].startsWith("/>")?" ":"";c+=a===g?i+h:d>=0?(r.push(n),i.slice(0,d)+"$lit$"+i.slice(d)+l+m):i+l+(-2===d?(r.push(void 0),e):m)}const n=c+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==d?d.createHTML(n):n,r]};class C{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,c=0;const a=t.length-1,n=this.parts,[d,h]=A(t,e);if(this.el=C.createElement(d,i),T.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=T.nextNode())&&n.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(l)){const i=h[c++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(l),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?D:"?"===e[1]?j:"@"===e[1]?M:F})}else n.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(w.test(r.tagName)){const t=r.textContent.split(l),e=t.length-1;if(e>0){r.textContent=s?s.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],f()),T.nextNode(),n.push({type:2,index:++o});r.append(t[e],f())}}}else if(8===r.nodeType)if(r.data===p)n.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(l,t+1));)n.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function R(t,e,i=t,r){var o,c,a,n;if(e===z)return e;let s=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const d=u(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==d&&(null===(c=null==s?void 0:s._$AO)||void 0===c||c.call(s,!1),void 0===d?s=void 0:(s=new d(t),s._$AT(t,i,r)),void 0!==r?(null!==(a=(n=i)._$Cl)&&void 0!==a?a:n._$Cl=[])[r]=s:i._$Cu=s),void 0!==s&&(e=R(t,s._$AS(t,e.values),s,r)),e}class B{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:m).importNode(i,!0);T.currentNode=o;let c=T.nextNode(),a=0,n=0,s=r[0];for(;void 0!==s;){if(a===s.index){let e;2===s.type?e=new E(c,c.nextSibling,this,t):1===s.type?e=new s.ctor(c,s.name,s.strings,this,t):6===s.type&&(e=new L(c,this,t)),this.v.push(e),s=r[++n]}a!==(null==s?void 0:s.index)&&(c=T.nextNode(),a++)}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 E{constructor(t,e,i,r){var o;this.type=2,this._$AH=S,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=R(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return b(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(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!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(m.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=C.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 B(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=O.get(t.strings);return void 0===e&&O.set(t.strings,e=new C(t)),e}A(t){b(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 E(this.M(f()),this.M(f()),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 F{constructor(t,e,i,r,o){this.type=1,this._$AH=S,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=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let c=!1;if(void 0===o)t=R(this,t,e,0),c=!u(t)||t!==this._$AH&&t!==z,c&&(this._$AH=t);else{const r=t;let a,n;for(t=o[0],a=0;a<o.length-1;a++)n=R(this,r[i+a],e,a),n===z&&(n=this._$AH[a]),c||(c=!u(n)||n!==this._$AH[a]),n===S?t=S:t!==S&&(t+=(null!=n?n:"")+o[a+1]),this._$AH[a]=n}c&&!r&&this.k(t)}k(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends F{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===S?void 0:t}}const I=s?s.emptyScript:"";class j extends F{constructor(){super(...arguments),this.type=4}k(t){t&&t!==S?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class M extends F{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=R(this,t,e,0))&&void 0!==i?i:S)===z)return;const r=this._$AH,o=t===S&&r!==S||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,c=t!==S&&(r===S||o);o&&this.element.removeEventListener(this.name,this,r),c&&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 L{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){R(this,t)}}const N=window.litHtmlPolyfillSupport;null==N||N(C,E),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;let c,a;const n=[],s=[];let d,l=0,p=!1;for(;l<o;){for(d=e[l];l<o&&void 0!==(a=i[l],c=null===(r=a)||void 0===r?void 0:r._$litStatic$);)d+=c+e[++l],p=!0;s.push(a),n.push(d),l++}if(l===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=P.get(t))&&(n.raw=n,P.set(t,e=n)),i=s}return t(e,...i)})($);var G,U=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};!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"}(G||(G={}));const W=
|
|
13
|
+
const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;let c,a;const n=[],s=[];let d,l=0,p=!1;for(;l<o;){for(d=e[l];l<o&&void 0!==(a=i[l],c=null===(r=a)||void 0===r?void 0:r._$litStatic$);)d+=c+e[++l],p=!0;s.push(a),n.push(d),l++}if(l===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=P.get(t))&&(n.raw=n,P.set(t,e=n)),i=s}return t(e,...i)})($);var G,U=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};!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"}(G||(G={}));const W=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Z=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),q={fontFamily:Z,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariable.extend("--ft-typography-title-font-family",W),K=e.FtCssVariable.extend("--ft-typography-title-font-size",q.fontSize,"20px"),Y=e.FtCssVariable.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),J=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),Q=e.FtCssVariable.extend("--ft-typography-title-line-height",q.lineHeight,"24px"),tt=e.FtCssVariable.extend("--ft-typography-title-text-transform",q.textTransform,"inherit"),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",W),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),ct=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",q.lineHeight,"24px"),at=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit"),nt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Z),st=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"24px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Z),ft=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"24px"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit"),yt=e.FtCssVariable.extend("--ft-typography-body1-font-family",Z),kt=e.FtCssVariable.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),xt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),_t=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),wt=e.FtCssVariable.extend("--ft-typography-body1-line-height",q.lineHeight,"24px"),$t=e.FtCssVariable.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit"),zt={fontFamily:e.FtCssVariable.extend("--ft-typography-body2-font-family",Z),fontSize:e.FtCssVariable.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body2-line-height",q.lineHeight,"20px"),textTransform:e.FtCssVariable.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit")},St=e.FtCssVariable.extend("--ft-typography-caption-font-family",Z),Ot=e.FtCssVariable.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),Tt=e.FtCssVariable.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),At=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),Ct=e.FtCssVariable.extend("--ft-typography-caption-line-height",q.lineHeight,"16px"),Rt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Z),Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),Ft=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"16px"),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit"),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-family",Z),Lt=e.FtCssVariable.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),Nt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),Ht=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),Pt=e.FtCssVariable.extend("--ft-typography-overline-line-height",q.lineHeight,"16px"),Vt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase"),Gt={fontFamily:e.FtCssVariable.extend("--ft-typography-button-font-family",Z),fontSize:e.FtCssVariable.extend("--ft-typography-button-font-size",q.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),letterSpacing:e.FtCssVariable.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),lineHeight:e.FtCssVariable.extend("--ft-typography-button-line-height",q.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase")},Ut=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${X};
|
|
16
16
|
font-size: ${K};
|
|
@@ -19,7 +19,7 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
19
19
|
line-height: ${Q};
|
|
20
20
|
text-transform: ${tt};
|
|
21
21
|
}
|
|
22
|
-
`,Wt=
|
|
22
|
+
`,Wt=i.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
24
|
font-family: ${et};
|
|
25
25
|
font-size: ${it};
|
|
@@ -28,7 +28,7 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
28
28
|
line-height: ${ct};
|
|
29
29
|
text-transform: ${at};
|
|
30
30
|
}
|
|
31
|
-
`,Zt=
|
|
31
|
+
`,Zt=i.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
33
|
font-family: ${nt};
|
|
34
34
|
font-size: ${st};
|
|
@@ -37,17 +37,17 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
37
37
|
line-height: ${pt};
|
|
38
38
|
text-transform: ${ht};
|
|
39
39
|
}
|
|
40
|
-
`,qt=
|
|
40
|
+
`,qt=i.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
42
|
font-family: ${mt};
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
43
|
+
font-size: ${ft};
|
|
44
|
+
font-weight: ${ut};
|
|
45
45
|
letter-spacing: ${bt};
|
|
46
46
|
line-height: ${gt};
|
|
47
47
|
text-transform: ${vt};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,Xt=
|
|
50
|
+
`,Xt=i.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
52
|
font-family: ${yt};
|
|
53
53
|
font-size: ${kt};
|
|
@@ -56,7 +56,7 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
56
56
|
line-height: ${wt};
|
|
57
57
|
text-transform: ${$t};
|
|
58
58
|
}
|
|
59
|
-
`,Kt=
|
|
59
|
+
`,Kt=i.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
61
|
font-family: ${zt.fontFamily};
|
|
62
62
|
font-size: ${zt.fontSize};
|
|
@@ -65,34 +65,34 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
65
65
|
line-height: ${zt.lineHeight};
|
|
66
66
|
text-transform: ${zt.textTransform};
|
|
67
67
|
}
|
|
68
|
-
`,Yt=
|
|
68
|
+
`,Yt=i.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
70
|
font-family: ${St};
|
|
71
71
|
font-size: ${Ot};
|
|
72
72
|
font-weight: ${Tt};
|
|
73
73
|
letter-spacing: ${At};
|
|
74
74
|
line-height: ${Ct};
|
|
75
|
-
text-transform: ${
|
|
75
|
+
text-transform: ${Rt};
|
|
76
76
|
}
|
|
77
|
-
`,Jt=
|
|
77
|
+
`,Jt=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
79
|
+
font-family: ${Bt};
|
|
80
80
|
font-size: ${Et};
|
|
81
81
|
font-weight: ${Ft};
|
|
82
82
|
letter-spacing: ${Dt};
|
|
83
83
|
line-height: ${It};
|
|
84
84
|
text-transform: ${jt};
|
|
85
85
|
}
|
|
86
|
-
`,Qt=
|
|
86
|
+
`,Qt=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
88
|
+
font-family: ${Mt};
|
|
89
|
+
font-size: ${Lt};
|
|
90
90
|
font-weight: ${Nt};
|
|
91
91
|
letter-spacing: ${Ht};
|
|
92
92
|
line-height: ${Pt};
|
|
93
93
|
text-transform: ${Vt};
|
|
94
94
|
}
|
|
95
|
-
`,te=
|
|
95
|
+
`,te=i.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
97
|
font-family: ${Gt.fontFamily};
|
|
98
98
|
font-size: ${Gt.fontSize};
|
|
@@ -101,18 +101,14 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
101
101
|
line-height: ${Gt.lineHeight};
|
|
102
102
|
text-transform: ${Gt.textTransform};
|
|
103
103
|
}
|
|
104
|
-
`;
|
|
105
|
-
.ft-typography {
|
|
106
|
-
vertical-align: inherit;
|
|
107
|
-
}
|
|
108
|
-
`]}getTemplate(){return this.element?V`
|
|
104
|
+
`;class ee extends e.FtLitElement{constructor(){super(...arguments),this.variant=G.body1}render(){return this.element?V`
|
|
109
105
|
<${H(this.element)}
|
|
110
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
111
107
|
<slot></slot>
|
|
112
108
|
</${H(this.element)}>
|
|
113
109
|
`:V`
|
|
114
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}
|
|
111
|
+
`}}function ie(t,e){return t.flatMap((t=>[t,...ie(e(t),e)]))}
|
|
116
112
|
/*! *****************************************************************************
|
|
117
113
|
Copyright (c) Microsoft Corporation.
|
|
118
114
|
|
|
@@ -126,7 +122,11 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
126
122
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
127
123
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
128
124
|
PERFORMANCE OF THIS SOFTWARE.
|
|
129
|
-
***************************************************************************** */
|
|
125
|
+
***************************************************************************** */ee.styles=[Ut,Wt,Zt,qt,Xt,Kt,Yt,Jt,Qt,te,i.css`
|
|
126
|
+
.ft-typography {
|
|
127
|
+
vertical-align: inherit;
|
|
128
|
+
}
|
|
129
|
+
`],U([r.property()],ee.prototype,"element",void 0),U([r.property()],ee.prototype,"variant",void 0),e.customElement("ft-typography")(ee);var re=function(t,e){return re=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])},re(t,e)};function oe(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}re(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var ce=function(){return ce=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},ce.apply(this,arguments)};function ae(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a}function ne(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.")}
|
|
130
130
|
/**
|
|
131
131
|
* @license
|
|
132
132
|
* Copyright 2018 Google Inc.
|
|
@@ -154,7 +154,7 @@ const H=t=>({_$litStatic$:t}),P=new Map,V=(t=>(e,...i)=>{var r;const o=i.length;
|
|
|
154
154
|
* Copyright 2018 Google LLC
|
|
155
155
|
* SPDX-License-Identifier: Apache-2.0
|
|
156
156
|
*/
|
|
157
|
-
class le extends
|
|
157
|
+
class le extends i.LitElement{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()}}
|
|
158
158
|
/**
|
|
159
159
|
* @license
|
|
160
160
|
* Copyright 2016 Google Inc.
|
|
@@ -176,7 +176,7 @@ class le extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(
|
|
|
176
176
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
177
177
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
178
178
|
* THE SOFTWARE.
|
|
179
|
-
*/var pe=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}(),he={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"},me={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"},
|
|
179
|
+
*/var pe=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}(),he={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"},me={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"},fe={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
|
|
180
180
|
/**
|
|
181
181
|
* @license
|
|
182
182
|
* Copyright 2016 Google Inc.
|
|
@@ -221,7 +221,7 @@ class le extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(
|
|
|
221
221
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
222
222
|
* THE SOFTWARE.
|
|
223
223
|
*/
|
|
224
|
-
var fe=["touchstart","pointerdown","mousedown","keydown"],be=["touchend","pointerup","mouseup","contextmenu"],ge=[],ve=function(t){function e(i){var r=t.call(this,ce(ce({},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 oe(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return he},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return me},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ue},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,c=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(c),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=ne(fe),o=r.next();!o.done;o=r.next()){var c=o.value;this.adapter.registerInteractionHandler(c,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=ne(be),o=r.next();!o.done;o=r.next()){var c=o.value;this.adapter.registerDocumentInteractionHandler(c,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=ne(fe),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=ne(be),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&&ge.length>0&&ge.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ge.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ge=[],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,c=e.cssClasses,a=c.FG_DEACTIVATION,n=c.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",l="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),h=p.startPoint,m=p.endPoint;d=h.x+"px, "+h.y+"px",l=m.x+"px, "+m.y+"px"}this.adapter.updateCssVariable(r,d),this.adapter.updateCssVariable(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(n),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),s)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,c=e.x,a=e.y,n=c+i.left,s=a+i.top;if("touchstart"===t.type){var d=t;r=d.changedTouches[0].pageX-n,o=d.changedTouches[0].pageY-s}else{var l=t;r=l.pageX-n,o=l.pageY-s}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).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,c=r.isActivated;(o||!c)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),ue.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=ce({},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,c=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(c,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}(pe),ye=ve;
|
|
224
|
+
var ue=["touchstart","pointerdown","mousedown","keydown"],be=["touchend","pointerup","mouseup","contextmenu"],ge=[],ve=function(t){function e(i){var r=t.call(this,ce(ce({},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 oe(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return he},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return me},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return fe},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,c=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(c),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=ne(ue),o=r.next();!o.done;o=r.next()){var c=o.value;this.adapter.registerInteractionHandler(c,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=ne(be),o=r.next();!o.done;o=r.next()){var c=o.value;this.adapter.registerDocumentInteractionHandler(c,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=ne(ue),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=ne(be),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&&ge.length>0&&ge.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ge.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ge=[],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,c=e.cssClasses,a=c.FG_DEACTIVATION,n=c.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",l="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),h=p.startPoint,m=p.endPoint;d=h.x+"px, "+h.y+"px",l=m.x+"px, "+m.y+"px"}this.adapter.updateCssVariable(r,d),this.adapter.updateCssVariable(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(n),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),s)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,c=e.x,a=e.y,n=c+i.left,s=a+i.top;if("touchstart"===t.type){var d=t;r=d.changedTouches[0].pageX-n,o=d.changedTouches[0].pageY-s}else{var l=t;r=l.pageX-n,o=l.pageY-s}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).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,c=r.isActivated;(o||!c)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),fe.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=ce({},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,c=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(c,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}(pe),ye=ve;
|
|
225
225
|
/**
|
|
226
226
|
* @license
|
|
227
227
|
* Copyright 2018 Google LLC
|
|
@@ -232,15 +232,15 @@ class ke extends le{constructor(){super(...arguments),this.primary=!1,this.accen
|
|
|
232
232
|
* @license
|
|
233
233
|
* Copyright 2018 Google LLC
|
|
234
234
|
* SPDX-License-Identifier: Apache-2.0
|
|
235
|
-
*/}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),
|
|
235
|
+
*/}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),r={"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 i.html`
|
|
236
236
|
<div class="mdc-ripple-surface mdc-ripple-upgraded ${c.classMap(r)}"
|
|
237
|
-
style="${a.styleMap({"--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>`}}ae([
|
|
237
|
+
style="${a.styleMap({"--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>`}}ae([r.query(".mdc-ripple-surface")],ke.prototype,"mdcRoot",void 0),ae([r.property({type:Boolean})],ke.prototype,"primary",void 0),ae([r.property({type:Boolean})],ke.prototype,"accent",void 0),ae([r.property({type:Boolean})],ke.prototype,"unbounded",void 0),ae([r.property({type:Boolean})],ke.prototype,"disabled",void 0),ae([r.property({type:Boolean})],ke.prototype,"activated",void 0),ae([r.property({type:Boolean})],ke.prototype,"selected",void 0),ae([r.property({type:Boolean})],ke.prototype,"internalUseStateLayerCustomProperties",void 0),ae([r.state()],ke.prototype,"hovering",void 0),ae([r.state()],ke.prototype,"bgFocused",void 0),ae([r.state()],ke.prototype,"fgActivation",void 0),ae([r.state()],ke.prototype,"fgDeactivation",void 0),ae([r.state()],ke.prototype,"fgScale",void 0),ae([r.state()],ke.prototype,"fgSize",void 0),ae([r.state()],ke.prototype,"translateStart",void 0),ae([r.state()],ke.prototype,"translateEnd",void 0),ae([r.state()],ke.prototype,"leftPos",void 0),ae([r.state()],ke.prototype,"topPos",void 0);
|
|
238
238
|
/**
|
|
239
239
|
* @license
|
|
240
240
|
* Copyright 2021 Google LLC
|
|
241
241
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
242
242
|
*/
|
|
243
|
-
const xe=e.css`.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)}`
|
|
243
|
+
const xe=i.css`.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)}`
|
|
244
244
|
/**
|
|
245
245
|
* @license
|
|
246
246
|
* Copyright 2018 Google LLC
|
|
@@ -256,7 +256,7 @@ return function(t,e,i){const r=t.constructor;if(!i){const t=`__${e}`;if(!(i=r.ge
|
|
|
256
256
|
* @license
|
|
257
257
|
* Copyright 2018 Google LLC
|
|
258
258
|
* SPDX-License-Identifier: Apache-2.0
|
|
259
|
-
*/var $e,ze;_e.styles=[xe],_e=ae([
|
|
259
|
+
*/var $e,ze;_e.styles=[xe],_e=ae([r.customElement("mwc-ripple")],_e);const Se=null!==(ze=null===($e=window.ShadyDOM)||void 0===$e?void 0:$e.inUse)&&void 0!==ze&&ze;class Oe extends le{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||Se)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}Oe.shadowRootOptions={mode:"open",delegatesFocus:!0},ae([r.property({type:Boolean})],Oe.prototype,"disabled",void 0);
|
|
260
260
|
/**
|
|
261
261
|
* @license
|
|
262
262
|
* Copyright 2020 Google LLC
|
|
@@ -272,10 +272,10 @@ class Te{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
|
|
|
272
272
|
* @license
|
|
273
273
|
* Copyright 2019 Google LLC
|
|
274
274
|
* SPDX-License-Identifier: Apache-2.0
|
|
275
|
-
*/;class Ce extends Oe{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new Te((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>this.rippleElement=t)),this.ripple)))}createAdapter(){return{}}update(t){const e=t.get("indeterminate"),i=t.get("checked"),r=t.get("disabled");if(void 0!==e||void 0!==i||void 0!==r){const t=this.calculateAnimationStateName(!!i,!!e,!!r),o=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${t}-${o}`}super.update(t)}calculateAnimationStateName(t,e,i){return i?"disabled":e?"indeterminate":t?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return
|
|
275
|
+
*/;class Ce extends Oe{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new Te((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>this.rippleElement=t)),this.ripple)))}createAdapter(){return{}}update(t){const e=t.get("indeterminate"),i=t.get("checked"),r=t.get("disabled");if(void 0!==e||void 0!==i||void 0!==r){const t=this.calculateAnimationStateName(!!i,!!e,!!r),o=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${t}-${o}`}super.update(t)}calculateAnimationStateName(t,e,i){return i?"disabled":e?"indeterminate":t?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return i.html`<mwc-ripple
|
|
276
276
|
.disabled="${this.disabled}"
|
|
277
|
-
unbounded></mwc-ripple>`}render(){const t=this.indeterminate||this.checked,
|
|
278
|
-
<div class="mdc-checkbox mdc-checkbox--upgraded ${c.classMap(
|
|
277
|
+
unbounded></mwc-ripple>`}render(){const t=this.indeterminate||this.checked,e={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":t,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass},r=this.indeterminate?"mixed":void 0;return i.html`
|
|
278
|
+
<div class="mdc-checkbox mdc-checkbox--upgraded ${c.classMap(e)}">
|
|
279
279
|
<input type="checkbox"
|
|
280
280
|
class="mdc-checkbox__native-control"
|
|
281
281
|
name="${Ae(this.name)}"
|
|
@@ -308,88 +308,121 @@ class Te{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
|
|
|
308
308
|
<div class="mdc-checkbox__mixedmark"></div>
|
|
309
309
|
</div>
|
|
310
310
|
${this.renderRipple()}
|
|
311
|
-
</div>`}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}}ae([
|
|
311
|
+
</div>`}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}}ae([r.query(".mdc-checkbox")],Ce.prototype,"mdcRoot",void 0),ae([r.query("input")],Ce.prototype,"formElement",void 0),ae([r.property({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0),ae([r.property({type:Boolean})],Ce.prototype,"indeterminate",void 0),ae([r.property({type:Boolean,reflect:!0})],Ce.prototype,"disabled",void 0),ae([r.property({type:String,reflect:!0})],Ce.prototype,"name",void 0),ae([r.property({type:String})],Ce.prototype,"value",void 0),ae([we,r.property({type:String,attribute:"aria-label"})],Ce.prototype,"ariaLabel",void 0),ae([we,r.property({type:String,attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledBy",void 0),ae([we,r.property({type:String,attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedBy",void 0),ae([r.property({type:Boolean})],Ce.prototype,"reducedTouchTarget",void 0),ae([r.state()],Ce.prototype,"animationClass",void 0),ae([r.state()],Ce.prototype,"shouldRenderRipple",void 0),ae([r.state()],Ce.prototype,"focused",void 0),ae([r.queryAsync("mwc-ripple")],Ce.prototype,"ripple",void 0),ae([r.eventOptions({passive:!0})],Ce.prototype,"handleRippleTouchStart",null);
|
|
312
312
|
/**
|
|
313
313
|
* @license
|
|
314
314
|
* Copyright 2021 Google LLC
|
|
315
315
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
316
316
|
*/
|
|
317
|
-
const Be=e.css`.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:none;display:inline-flex;-webkit-tap-highlight-color:transparent}:host([checked]),:host([indeterminate]){--mdc-ripple-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox .mdc-checkbox__background::before{content:none}`
|
|
317
|
+
const Re=i.css`.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:none;display:inline-flex;-webkit-tap-highlight-color:transparent}:host([checked]),:host([indeterminate]){--mdc-ripple-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox .mdc-checkbox__background::before{content:none}`
|
|
318
318
|
/**
|
|
319
319
|
* @license
|
|
320
320
|
* Copyright 2018 Google LLC
|
|
321
321
|
* SPDX-License-Identifier: Apache-2.0
|
|
322
|
-
*/;let
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
--mdc-ripple-focus-opacity: ${Fe.opacityContentOnSurfaceFocused};
|
|
330
|
-
--mdc-ripple-selected-opacity: ${Fe.opacityContentOnSurfaceSelected};
|
|
331
|
-
--mdc-ripple-activated-opacity: ${Fe.opacityContentOnSurfaceDragged};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
mwc-ripple.ft-ripple--secondary {
|
|
335
|
-
--mdc-ripple-color: ${Fe.secondaryColor};
|
|
336
|
-
}
|
|
322
|
+
*/;let Be=class extends Ce{};Be.styles=[Re],Be=ae([r.customElement("mwc-checkbox")],Be);var Ee=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};const Fe={color:e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),primaryColor:e.FtCssVariable.extend("--ft-ripple-primary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary)),secondaryColor:e.FtCssVariable.extend("--ft-ripple-secondary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class De extends e.FtLitElement{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:r,y:o}=this.getCoordinates(t),c=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!=r?r-c.x:c.width/2),this.originY=Math.round(null!=o?o-c.y:c.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 i.html`
|
|
323
|
+
<style>
|
|
324
|
+
.ft-ripple .ft-ripple--effect,
|
|
325
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
326
|
+
width: ${this.rippleSize}px;
|
|
327
|
+
height: ${this.rippleSize}px;
|
|
328
|
+
}
|
|
337
329
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
330
|
+
.ft-ripple .ft-ripple--effect {
|
|
331
|
+
left: ${this.originX}px;
|
|
332
|
+
top: ${this.originY}px;
|
|
333
|
+
}
|
|
334
|
+
</style>
|
|
335
|
+
<div class="${c.classMap(t)}">
|
|
336
|
+
<div class="ft-ripple--background"></div>
|
|
337
|
+
<div class="ft-ripple--effect"></div>
|
|
338
|
+
</div>
|
|
339
|
+
`}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){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"),r=e("touchend","touchcancel"),o=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",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let r,o;return null!=e.x?({x:r,y:o}=e):null!=i.touches&&(r=i.touches[0].clientX,o=i.touches[0].clientY),{x:r,y:o}}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()}}De.elementDefinitions={},De.styles=i.css`
|
|
340
|
+
:host {
|
|
341
|
+
display: contents;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.ft-ripple {
|
|
345
|
+
position: absolute;
|
|
346
|
+
inset: 0;
|
|
347
|
+
pointer-events: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.ft-ripple .ft-ripple--background,
|
|
355
|
+
.ft-ripple .ft-ripple--effect {
|
|
356
|
+
position: absolute;
|
|
357
|
+
opacity: 0;
|
|
358
|
+
background-color: ${Fe.color};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
362
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
363
|
+
background-color: ${Fe.secondaryColor};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
367
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
368
|
+
background-color: ${Fe.primaryColor};
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.ft-ripple .ft-ripple--background {
|
|
372
|
+
top: 0;
|
|
373
|
+
left: 0;
|
|
374
|
+
height: 100%;
|
|
375
|
+
width: 100%;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ft-ripple .ft-ripple--effect,
|
|
379
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
380
|
+
border-radius: 50%;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ft-ripple .ft-ripple--effect {
|
|
384
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
385
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
389
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
390
|
+
left: 50%;
|
|
391
|
+
top: 50%;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
395
|
+
transform: translate(-50%, -50%);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
399
|
+
opacity: ${Fe.opacityContentOnSurfaceHover};
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
403
|
+
opacity: ${Fe.opacityContentOnSurfaceSelected};
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
407
|
+
opacity: ${Fe.opacityContentOnSurfaceFocused};
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
411
|
+
opacity: ${Fe.opacityContentOnSurfacePressed};
|
|
412
|
+
transform: translate(-50%, -50%) scale(1);
|
|
413
|
+
}
|
|
414
|
+
`,Ee([r.property({type:Boolean})],De.prototype,"primary",void 0),Ee([r.property({type:Boolean})],De.prototype,"secondary",void 0),Ee([r.property({type:Boolean})],De.prototype,"unbounded",void 0),Ee([r.property({type:Boolean})],De.prototype,"activated",void 0),Ee([r.property({type:Boolean})],De.prototype,"selected",void 0),Ee([r.property({type:Boolean})],De.prototype,"disabled",void 0),Ee([r.state()],De.prototype,"hovered",void 0),Ee([r.state()],De.prototype,"focused",void 0),Ee([r.state()],De.prototype,"pressed",void 0),Ee([r.state()],De.prototype,"rippling",void 0),Ee([r.state()],De.prototype,"rippleSize",void 0),Ee([r.state()],De.prototype,"originX",void 0),Ee([r.state()],De.prototype,"originY",void 0),Ee([r.query(".ft-ripple")],De.prototype,"ripple",void 0),Ee([r.query(".ft-ripple--effect")],De.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(De);
|
|
350
415
|
/**
|
|
351
416
|
* @license
|
|
352
417
|
* Copyright 2021 Google LLC
|
|
353
418
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
354
419
|
*/
|
|
355
|
-
const Ie=
|
|
420
|
+
const Ie=i.css`: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"}`
|
|
356
421
|
/**
|
|
357
422
|
* @license
|
|
358
423
|
* Copyright 2018 Google LLC
|
|
359
424
|
* SPDX-License-Identifier: Apache-2.0
|
|
360
|
-
*/;let je=class extends
|
|
361
|
-
.ft-tooltip--container {
|
|
362
|
-
display: block;
|
|
363
|
-
position: relative;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.ft-tooltip--inline {
|
|
367
|
-
display: inline-block;
|
|
368
|
-
max-width: 100%;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.ft-tooltip {
|
|
372
|
-
position: absolute;
|
|
373
|
-
box-sizing: border-box;
|
|
374
|
-
overflow: hidden;
|
|
375
|
-
width: max-content;
|
|
376
|
-
max-width: 150px;
|
|
377
|
-
text-align: center;
|
|
378
|
-
padding: ${Me};
|
|
379
|
-
z-index: ${Pe};
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.ft-tooltip--content {
|
|
383
|
-
padding: 4px 8px;
|
|
384
|
-
border-radius: ${Ve};
|
|
385
|
-
background-color: ${He};
|
|
386
|
-
color: ${Ne};
|
|
387
|
-
top: -500px;
|
|
388
|
-
left: -500px;
|
|
389
|
-
position: relative;
|
|
390
|
-
word-break: break-word;
|
|
391
|
-
}
|
|
392
|
-
`}getTemplate(){return e.html`
|
|
425
|
+
*/;let je=class extends i.LitElement{render(){return i.html`<span><slot></slot></span>`}};je.styles=[Ie],je=ae([r.customElement("mwc-icon")],je);var Me=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};const Le=e.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),Ne=e.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),He=e.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),Pe=e.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),Ve=e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system");class Ge extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
|
|
393
426
|
<div part="container"
|
|
394
427
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
395
428
|
@mouseenter=${this.onHover}
|
|
@@ -404,7 +437,39 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
404
437
|
</div>
|
|
405
438
|
<slot></slot>
|
|
406
439
|
</div>
|
|
407
|
-
`}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,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.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())}}
|
|
440
|
+
`}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,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.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())}}Ge.elementDefinitions={"ft-typography":ee},Ge.styles=i.css`
|
|
441
|
+
.ft-tooltip--container {
|
|
442
|
+
display: block;
|
|
443
|
+
position: relative;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ft-tooltip--inline {
|
|
447
|
+
display: inline-block;
|
|
448
|
+
max-width: 100%;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.ft-tooltip {
|
|
452
|
+
position: absolute;
|
|
453
|
+
box-sizing: border-box;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
width: max-content;
|
|
456
|
+
max-width: 150px;
|
|
457
|
+
text-align: center;
|
|
458
|
+
padding: ${Le};
|
|
459
|
+
z-index: ${Pe};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.ft-tooltip--content {
|
|
463
|
+
padding: 4px 8px;
|
|
464
|
+
border-radius: ${Ve};
|
|
465
|
+
background-color: ${He};
|
|
466
|
+
color: ${Ne};
|
|
467
|
+
top: -500px;
|
|
468
|
+
left: -500px;
|
|
469
|
+
position: relative;
|
|
470
|
+
word-break: break-word;
|
|
471
|
+
}
|
|
472
|
+
`,Me([r.property()],Ge.prototype,"text",void 0),Me([r.property({type:Boolean})],Ge.prototype,"manual",void 0),Me([r.property({type:Boolean})],Ge.prototype,"inline",void 0),Me([r.property({type:Number})],Ge.prototype,"delay",void 0),Me([r.property()],Ge.prototype,"position",void 0),Me([r.queryAssignedNodes("",!0)],Ge.prototype,"slotNodes",void 0),Me([r.query(".ft-tooltip--container")],Ge.prototype,"container",void 0),Me([r.query("slot")],Ge.prototype,"target",void 0),Me([r.query(".ft-tooltip")],Ge.prototype,"tooltip",void 0),Me([r.query(".ft-tooltip--content")],Ge.prototype,"tooltipContent",void 0),Me([r.state()],Ge.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ge);const Ue={color:e.FtCssVariable.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class We extends e.FtLitElement{static get styles(){return i.css`
|
|
408
473
|
:host {
|
|
409
474
|
line-height: 0;
|
|
410
475
|
}
|
|
@@ -413,8 +478,8 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
413
478
|
display: inline-block;
|
|
414
479
|
position: relative;
|
|
415
480
|
|
|
416
|
-
width: ${
|
|
417
|
-
height: ${
|
|
481
|
+
width: ${Ue.size};
|
|
482
|
+
height: ${Ue.size};
|
|
418
483
|
}
|
|
419
484
|
|
|
420
485
|
.ft-loader div {
|
|
@@ -423,7 +488,7 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
423
488
|
width: 25%;
|
|
424
489
|
height: 25%;
|
|
425
490
|
border-radius: 50%;
|
|
426
|
-
background: ${
|
|
491
|
+
background: ${Ue.color};
|
|
427
492
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
428
493
|
}
|
|
429
494
|
|
|
@@ -470,20 +535,21 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
470
535
|
transform: translate(0, 0);
|
|
471
536
|
}
|
|
472
537
|
100% {
|
|
473
|
-
transform: translate(calc(0.35 * ${
|
|
538
|
+
transform: translate(calc(0.35 * ${Ue.size}), 0);
|
|
474
539
|
}
|
|
475
540
|
}
|
|
476
|
-
`}
|
|
541
|
+
`}render(){return i.html`
|
|
477
542
|
<div class="ft-loader">
|
|
478
543
|
<div></div>
|
|
479
544
|
<div></div>
|
|
480
545
|
<div></div>
|
|
481
546
|
<div></div>
|
|
482
547
|
</div>
|
|
483
|
-
`}}
|
|
548
|
+
`}}e.customElement("ft-loader")(We);var Ze=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};const qe=e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Xe={backgroundColor:e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:qe,fontSize:e.FtCssVariable.extend("--ft-button-font-size",Gt.fontSize),iconSize:e.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariable.extend("--ft-button-ripple-color",qe),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ke=e.FtCssVariable.extend("--ft-button-primary-color",e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Ye={backgroundColor:e.FtCssVariable.extend("--ft-button-primary-background-color",e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Ke,rippleColor:e.FtCssVariable.extend("--ft-button-primary-ripple-color",Ke)},Je=e.FtCssVariable.extend("--ft-button-dense-border-radius",e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class Qe extends e.FtLitElement{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[e.noTextSelect,i.css`
|
|
484
549
|
:host {
|
|
485
550
|
display: inline-block;
|
|
486
551
|
max-width: 100%;
|
|
552
|
+
pointer-events: none;
|
|
487
553
|
}
|
|
488
554
|
|
|
489
555
|
button {
|
|
@@ -516,19 +582,20 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
516
582
|
overflow: hidden;
|
|
517
583
|
box-sizing: border-box;
|
|
518
584
|
border: none;
|
|
585
|
+
pointer-events: auto;
|
|
519
586
|
|
|
520
|
-
--ft-button-internal-font-size: ${
|
|
587
|
+
--ft-button-internal-font-size: ${Xe.fontSize};
|
|
521
588
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
522
|
-
--ft-button-internal-color: ${
|
|
523
|
-
--mdc-icon-size: ${
|
|
589
|
+
--ft-button-internal-color: ${Xe.color};
|
|
590
|
+
--mdc-icon-size: ${Xe.iconSize};
|
|
524
591
|
--ft-button-internal-vertical-padding: 6px;
|
|
525
592
|
--ft-button-internal-horizontal-padding: 8px;
|
|
526
|
-
${
|
|
593
|
+
${e.setVariable(Fe.color,Xe.rippleColor)};
|
|
527
594
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
|
|
528
595
|
|
|
529
|
-
border-radius: ${
|
|
596
|
+
border-radius: ${Xe.borderRadius};
|
|
530
597
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
531
|
-
background-color: ${
|
|
598
|
+
background-color: ${Xe.backgroundColor};
|
|
532
599
|
color: var(--ft-button-internal-color);
|
|
533
600
|
-webkit-mask-image: radial-gradient(white, black);
|
|
534
601
|
}
|
|
@@ -540,7 +607,7 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
540
607
|
.ft-button--dense {
|
|
541
608
|
--ft-button-internal-vertical-padding: 2px;
|
|
542
609
|
--ft-button-internal-horizontal-padding: 4px;
|
|
543
|
-
border-radius: ${
|
|
610
|
+
border-radius: ${Je};
|
|
544
611
|
}
|
|
545
612
|
|
|
546
613
|
.ft-button--round {
|
|
@@ -549,12 +616,13 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
549
616
|
|
|
550
617
|
.ft-button[disabled] {
|
|
551
618
|
filter: grayscale(1);
|
|
552
|
-
opacity: ${
|
|
619
|
+
opacity: ${Xe.opacityDisabled};
|
|
553
620
|
}
|
|
554
621
|
|
|
555
622
|
.ft-button.ft-button--primary {
|
|
556
|
-
background-color: ${
|
|
557
|
-
--ft-button-internal-color: ${
|
|
623
|
+
background-color: ${Ye.backgroundColor};
|
|
624
|
+
--ft-button-internal-color: ${Ye.color};
|
|
625
|
+
${e.setVariable(Fe.color,Ye.rippleColor)};
|
|
558
626
|
}
|
|
559
627
|
|
|
560
628
|
.ft-button.ft-button--outlined {
|
|
@@ -572,8 +640,8 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
572
640
|
text-overflow: ellipsis;
|
|
573
641
|
display: block;
|
|
574
642
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
575
|
-
${
|
|
576
|
-
${
|
|
643
|
+
${e.setVariable(Gt.fontSize,"var(--ft-button-internal-font-size)")};
|
|
644
|
+
${e.setVariable(Gt.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
577
645
|
}
|
|
578
646
|
|
|
579
647
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -606,10 +674,10 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
606
674
|
}
|
|
607
675
|
|
|
608
676
|
ft-loader {
|
|
609
|
-
${
|
|
610
|
-
${
|
|
677
|
+
${e.setVariable(Ue.size,Xe.iconSize)};
|
|
678
|
+
${e.setVariable(Ue.color,"var(--ft-button-internal-color)")};
|
|
611
679
|
}
|
|
612
|
-
`]}
|
|
680
|
+
`]}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":e.isSafari,"ft-no-text-select":!0};return this.addTooltip(i.html`
|
|
613
681
|
<button part="button"
|
|
614
682
|
class="${c.classMap(t)}"
|
|
615
683
|
aria-label="${this.getLabel()}"
|
|
@@ -623,15 +691,15 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
623
691
|
</ft-typography>
|
|
624
692
|
${this.resolveIcon()}
|
|
625
693
|
</button>
|
|
626
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
694
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:i.html`
|
|
627
695
|
<ft-tooltip part="tooltip"
|
|
628
696
|
text="${this.getLabel()}"
|
|
629
697
|
position="${this.tooltipPosition}">
|
|
630
698
|
${t}
|
|
631
699
|
</ft-tooltip>
|
|
632
|
-
`}resolveIcon(){return this.loading?
|
|
633
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
634
|
-
<mwc-icon>${this.icon}</mwc-icon> `:
|
|
700
|
+
`}resolveIcon(){return this.loading?i.html`
|
|
701
|
+
<ft-loader></ft-loader> `:this.icon?i.html`
|
|
702
|
+
<mwc-icon>${this.icon}</mwc-icon> `:i.nothing}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}}Qe.elementDefinitions={"ft-ripple":De,"ft-tooltip":Ge,"ft-typography":ee,"mwc-icon":je,"ft-loader":We},Ze([r.property({type:Boolean})],Qe.prototype,"primary",void 0),Ze([r.property({type:Boolean})],Qe.prototype,"outlined",void 0),Ze([r.property({type:Boolean})],Qe.prototype,"disabled",void 0),Ze([r.property({type:Boolean})],Qe.prototype,"dense",void 0),Ze([r.property({type:Boolean})],Qe.prototype,"round",void 0),Ze([r.property({type:String})],Qe.prototype,"label",void 0),Ze([r.property({type:String})],Qe.prototype,"icon",void 0),Ze([r.property({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Ze([r.property({type:Boolean})],Qe.prototype,"loading",void 0),Ze([r.property({type:String})],Qe.prototype,"tooltipPosition",void 0),Ze([r.query(".ft-button")],Qe.prototype,"button",void 0),Ze([r.query(".ft-button--label slot")],Qe.prototype,"slottedContent",void 0),e.customElement("ft-button")(Qe);
|
|
635
703
|
/**
|
|
636
704
|
* @license
|
|
637
705
|
* Copyright 2017 Google Inc.
|
|
@@ -654,40 +722,40 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
654
722
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
655
723
|
* THE SOFTWARE.
|
|
656
724
|
*/
|
|
657
|
-
var
|
|
725
|
+
var ti={ROOT:"mdc-form-field"},ei={LABEL_SELECTOR:".mdc-form-field > label"},ii=function(t){function e(i){var r=t.call(this,ce(ce({},e.defaultAdapter),i))||this;return r.click=function(){r.handleClick()},r}return oe(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ti},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ei},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(pe);
|
|
658
726
|
/**
|
|
659
727
|
* @license
|
|
660
728
|
* Copyright 2018 Google LLC
|
|
661
729
|
* SPDX-License-Identifier: Apache-2.0
|
|
662
730
|
*/
|
|
663
|
-
const
|
|
731
|
+
const ri=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,i)=>e.constructor._observers.set(i,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)}))}}e.constructor._observers.set(i,t)}
|
|
664
732
|
/**
|
|
665
733
|
* @license
|
|
666
734
|
* Copyright 2018 Google LLC
|
|
667
735
|
* SPDX-License-Identifier: Apache-2.0
|
|
668
|
-
*/;class
|
|
736
|
+
*/;class oi extends le{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=ii}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof Oe){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof Oe){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return i.html`
|
|
669
737
|
<div class="mdc-form-field ${c.classMap(t)}">
|
|
670
738
|
<slot></slot>
|
|
671
739
|
<label class="mdc-label"
|
|
672
740
|
@click="${this._labelClick}">${this.label}</label>
|
|
673
|
-
</div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}ae([
|
|
741
|
+
</div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}ae([r.property({type:Boolean})],oi.prototype,"alignEnd",void 0),ae([r.property({type:Boolean})],oi.prototype,"spaceBetween",void 0),ae([r.property({type:Boolean})],oi.prototype,"nowrap",void 0),ae([r.property({type:String}),ri((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],oi.prototype,"label",void 0),ae([r.query(".mdc-form-field")],oi.prototype,"mdcRoot",void 0),ae([r.queryAssignedNodes("",!0,"*")],oi.prototype,"slottedInputs",void 0),ae([r.query("label")],oi.prototype,"labelEl",void 0);
|
|
674
742
|
/**
|
|
675
743
|
* @license
|
|
676
744
|
* Copyright 2021 Google LLC
|
|
677
745
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
678
746
|
*/
|
|
679
|
-
const
|
|
747
|
+
const ci=i.css`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`
|
|
680
748
|
/**
|
|
681
749
|
* @license
|
|
682
750
|
* Copyright 2018 Google LLC
|
|
683
751
|
* SPDX-License-Identifier: Apache-2.0
|
|
684
|
-
*/;let
|
|
752
|
+
*/;let ai=class extends oi{};ai.styles=[ci],ai=ae([r.customElement("mwc-formfield")],ai);
|
|
685
753
|
/**
|
|
686
754
|
* @license
|
|
687
755
|
* Copyright 2020 Google LLC
|
|
688
756
|
* SPDX-License-Identifier: Apache-2.0
|
|
689
757
|
*/
|
|
690
|
-
const
|
|
758
|
+
const ni=Symbol("selection controller");class si{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class di{constructor(t){this.sets={},this.focusedSet=null,this.mouseIsDown=!1,this.updating=!1,t.addEventListener("keydown",(t=>{this.keyDownHandler(t)})),t.addEventListener("mousedown",(()=>{this.mousedownHandler()})),t.addEventListener("mouseup",(()=>{this.mouseupHandler()}))}static getController(t){const e=!("global"in t)||"global"in t&&t.global?document:t.getRootNode();let i=e[ni];return void 0===i&&(i=new di(e),e[ni]=i),i}keyDownHandler(t){const e=t.target;"checked"in e&&this.has(e)&&("ArrowRight"==t.key||"ArrowDown"==t.key?this.selectNext(e):"ArrowLeft"!=t.key&&"ArrowUp"!=t.key||this.selectPrevious(e))}mousedownHandler(){this.mouseIsDown=!0}mouseupHandler(){this.mouseIsDown=!1}has(t){return this.getSet(t.name).set.has(t)}selectPrevious(t){const e=this.getOrdered(t),i=e.indexOf(t),r=e[i-1]||e[e.length-1];return this.select(r),r}selectNext(t){const e=this.getOrdered(t),i=e.indexOf(t),r=e[i+1]||e[0];return this.select(r),r}select(t){t.click()}focus(t){if(this.mouseIsDown)return;const e=this.getSet(t.name),i=this.focusedSet;this.focusedSet=e,i!=e&&e.selected&&e.selected!=t&&e.selected.focus()}isAnySelected(t){const e=this.getSet(t.name);for(const t of e.set)if(t.checked)return!0;return!1}getOrdered(t){const e=this.getSet(t.name);return e.ordered||(e.ordered=Array.from(e.set),e.ordered.sort(((t,e)=>t.compareDocumentPosition(e)==Node.DOCUMENT_POSITION_PRECEDING?1:0))),e.ordered}getSet(t){return this.sets[t]||(this.sets[t]=new si),this.sets[t]}register(t){const e=t.name||t.getAttribute("name")||"",i=this.getSet(e);i.set.add(t),i.ordered=null}unregister(t){const e=this.getSet(t.name);e.set.delete(t),e.ordered=null,e.selected==t&&(e.selected=null)}update(t){if(this.updating)return;this.updating=!0;const e=this.getSet(t.name);if(t.checked){for(const i of e.set)i!=t&&(i.checked=!1);e.selected=t}if(this.isAnySelected(t))for(const t of e.set){if(void 0===t.formElementTabIndex)break;t.formElementTabIndex=t.checked?0:-1}this.updating=!1}}
|
|
691
759
|
/**
|
|
692
760
|
* @license
|
|
693
761
|
* Copyright 2016 Google Inc.
|
|
@@ -709,15 +777,15 @@ const di=Symbol("selection controller");class li{constructor(){this.selected=nul
|
|
|
709
777
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
710
778
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
711
779
|
* THE SOFTWARE.
|
|
712
|
-
*/var
|
|
780
|
+
*/var li={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},pi={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"},hi=function(t){function e(i){return t.call(this,ce(ce({},e.defaultAdapter),i))||this}return oe(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return pi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return li},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setDisabled=function(t){var i=e.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(i):this.adapter.removeClass(i)},e}(pe);
|
|
713
781
|
/**
|
|
714
782
|
* @license
|
|
715
783
|
* Copyright 2018 Google LLC
|
|
716
784
|
* SPDX-License-Identifier: Apache-2.0
|
|
717
785
|
*/
|
|
718
|
-
class
|
|
786
|
+
class mi extends Oe{constructor(){super(...arguments),this._checked=!1,this.useStateLayerCustomProperties=!1,this.global=!1,this.disabled=!1,this.value="on",this.name="",this.reducedTouchTarget=!1,this.mdcFoundationClass=hi,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new Te((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>{this.rippleElement=t})),this.ripple)))}get checked(){return this._checked}set checked(t){var e,i;const r=this._checked;t!==r&&(this._checked=t,this.formElement&&(this.formElement.checked=t),null===(e=this._selectionController)||void 0===e||e.update(this),!1===t&&(null===(i=this.formElement)||void 0===i||i.blur()),this.requestUpdate("checked",r),this.dispatchEvent(new Event("checked",{bubbles:!0,composed:!0})))}_handleUpdatedValue(t){this.formElement.value=t}renderRipple(){return this.shouldRenderRipple?i.html`<mwc-ripple unbounded accent
|
|
719
787
|
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"
|
|
720
|
-
.disabled="${this.disabled}"></mwc-ripple>`:""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}connectedCallback(){super.connectedCallback(),this._selectionController=
|
|
788
|
+
.disabled="${this.disabled}"></mwc-ripple>`:""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}connectedCallback(){super.connectedCallback(),this._selectionController=di.getController(this),this._selectionController.register(this),this._selectionController.update(this)}disconnectedCallback(){this._selectionController.unregister(this),this._selectionController=void 0}focus(){this.formElement.focus()}createAdapter(){return Object.assign(Object.assign({},(t=this.mdcRoot,{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)})),{setNativeControlDisabled:t=>{this.formElement.disabled=t}});var t}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleClick(){this.formElement.focus()}handleBlur(){this.focused=!1,this.formElement.blur(),this.rippleHandlers.endFocus()}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}render(){const t={"mdc-radio--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-radio--disabled":this.disabled};return i.html`
|
|
721
789
|
<div class="mdc-radio ${c.classMap(t)}">
|
|
722
790
|
<input
|
|
723
791
|
tabindex="${this.formElementTabIndex}"
|
|
@@ -744,104 +812,20 @@ class fi extends Oe{constructor(){super(...arguments),this._checked=!1,this.useS
|
|
|
744
812
|
<div class="mdc-radio__inner-circle"></div>
|
|
745
813
|
</div>
|
|
746
814
|
${this.renderRipple()}
|
|
747
|
-
</div>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}ae([
|
|
815
|
+
</div>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}ae([r.query(".mdc-radio")],mi.prototype,"mdcRoot",void 0),ae([r.query("input")],mi.prototype,"formElement",void 0),ae([r.state()],mi.prototype,"useStateLayerCustomProperties",void 0),ae([r.property({type:Boolean})],mi.prototype,"global",void 0),ae([r.property({type:Boolean,reflect:!0})],mi.prototype,"checked",null),ae([r.property({type:Boolean}),ri((function(t){this.mdcFoundation.setDisabled(t)}))],mi.prototype,"disabled",void 0),ae([r.property({type:String}),ri((function(t){this._handleUpdatedValue(t)}))],mi.prototype,"value",void 0),ae([r.property({type:String})],mi.prototype,"name",void 0),ae([r.property({type:Boolean})],mi.prototype,"reducedTouchTarget",void 0),ae([r.property({type:Number})],mi.prototype,"formElementTabIndex",void 0),ae([r.state()],mi.prototype,"focused",void 0),ae([r.state()],mi.prototype,"shouldRenderRipple",void 0),ae([r.queryAsync("mwc-ripple")],mi.prototype,"ripple",void 0),ae([we,r.property({attribute:"aria-label"})],mi.prototype,"ariaLabel",void 0),ae([we,r.property({attribute:"aria-labelledby"})],mi.prototype,"ariaLabelledBy",void 0),ae([r.eventOptions({passive:!0})],mi.prototype,"handleRippleTouchStart",null);
|
|
748
816
|
/**
|
|
749
817
|
* @license
|
|
750
818
|
* Copyright 2021 Google LLC
|
|
751
819
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
752
820
|
*/
|
|
753
|
-
const
|
|
821
|
+
const fi=i.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40px - 20px) / 2)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54)}.mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio .mdc-radio__background::before{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);right:calc((40px - 40px) / 2);left:calc((40px - 40px) / 2);width:40px;height:40px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}:host{display:inline-block;outline:none}.mdc-radio{vertical-align:bottom}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unchecked-color, rgba(0, 0, 0, 0.54))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}`
|
|
754
822
|
/**
|
|
755
823
|
* @license
|
|
756
824
|
* Copyright 2018 Google LLC
|
|
757
825
|
* SPDX-License-Identifier: Apache-2.0
|
|
758
|
-
*/;let
|
|
759
|
-
.ft-filter-level--container {
|
|
760
|
-
display: flex;
|
|
761
|
-
flex-direction: column;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
.ft-filter-level--container > * {
|
|
765
|
-
padding: 0 10px;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
.ft-filter-level--go-back {
|
|
769
|
-
flex-shrink: 0;
|
|
770
|
-
text-decoration: none;
|
|
771
|
-
position: relative;
|
|
772
|
-
border-radius: ${yi.borderRadiusM};
|
|
773
|
-
overflow: hidden;
|
|
774
|
-
display: flex;
|
|
775
|
-
align-items: center;
|
|
776
|
-
padding: 4px 4px;
|
|
777
|
-
gap: 4px;
|
|
778
|
-
cursor: pointer;
|
|
779
|
-
color: ${yi.colorOnSurface};
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.ft-filter-level--go-back:focus {
|
|
783
|
-
outline: none;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
.ft-filter-level--go-back mwc-icon {
|
|
787
|
-
flex-shrink: 0;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
.ft-filter-level--go-back ft-typography {
|
|
791
|
-
display: block;
|
|
792
|
-
flex-grow: 1;
|
|
793
|
-
flex-shrink: 0;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
.ft-filter-level--option {
|
|
797
|
-
display: flex;
|
|
798
|
-
align-items: center;
|
|
799
|
-
max-width: 100%;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
.ft-filter-level--option ft-button {
|
|
803
|
-
margin-right: -10px;
|
|
804
|
-
flex-shrink: 0;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
ft-button {
|
|
808
|
-
${r.setVariable(Ke.color,yi.colorOnSurface)};
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
mwc-formfield {
|
|
812
|
-
flex-shrink: 1;
|
|
813
|
-
flex-grow: 1;
|
|
814
|
-
display: block;
|
|
815
|
-
max-width: calc(100% + 10px);
|
|
816
|
-
margin-left: -10px;
|
|
817
|
-
word-break: break-word;
|
|
818
|
-
|
|
819
|
-
--mdc-theme-secondary: ${yi.colorPrimary};
|
|
820
|
-
|
|
821
|
-
--mdc-radio-unchecked-color: ${yi.colorOnSurfaceMedium};
|
|
822
|
-
--mdc-checkbox-unchecked-color: ${yi.colorOnSurfaceMedium};
|
|
823
|
-
--mdc-checkbox-ink-color: ${yi.colorOnPrimary};
|
|
824
|
-
|
|
825
|
-
--mdc-radio-disabled-color: ${yi.colorOnSurfaceDisabled};
|
|
826
|
-
--mdc-checkbox-disabled-color: ${yi.colorOnSurfaceDisabled};
|
|
827
|
-
|
|
828
|
-
--mdc-theme-on-surface: ${yi.colorPrimary};
|
|
829
|
-
|
|
830
|
-
--mdc-typography-body2-font-family: ${yi.fontFamily};
|
|
831
|
-
--mdc-typography-body2-font-size: ${yi.fontSize};
|
|
832
|
-
--mdc-typography-body2-font-weight: ${yi.fontWeight};
|
|
833
|
-
--mdc-typography-body2-letter-spacing: ${yi.letterSpacing};
|
|
834
|
-
--mdc-typography-body2-line-height: ${yi.lineHeight};
|
|
835
|
-
--mdc-typography-body2-text-transform: ${yi.textTransform};
|
|
836
|
-
--mdc-theme-text-primary-on-background: ${yi.colorOnSurface};
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
.ft-filter--disabled {
|
|
840
|
-
--mdc-theme-text-primary-on-background: ${yi.colorOnSurfaceDisabled};
|
|
841
|
-
}
|
|
842
|
-
`]}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}getTemplate(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const i=t.slice(0,this.limit);return e.html`
|
|
826
|
+
*/;let ui=class extends mi{};ui.styles=[fi],ui=ae([r.customElement("mwc-radio")],ui);var bi=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};const gi={borderRadiusM:e.FtCssVariable.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariable.external(zt.fontFamily,"Body2 typography"),fontSize:e.FtCssVariable.external(zt.fontSize,"Body2 typography"),fontWeight:e.FtCssVariable.external(zt.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariable.external(zt.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariable.external(zt.lineHeight,"Body2 typography"),textTransform:e.FtCssVariable.external(zt.textTransform,"Body2 typography")};class vi extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return i.html`
|
|
843
827
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
844
|
-
${null==this.parent?null:
|
|
828
|
+
${null==this.parent?null:i.html`
|
|
845
829
|
<div tabindex="0"
|
|
846
830
|
class="ft-filter-level--go-back"
|
|
847
831
|
?disabled=${this.disabled}
|
|
@@ -852,10 +836,10 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
852
836
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
853
837
|
</div>
|
|
854
838
|
`}
|
|
855
|
-
${o.repeat(
|
|
839
|
+
${o.repeat(e,(t=>t.value),(t=>{var e;return i.html`
|
|
856
840
|
<div class="ft-filter-level--option" part="options">
|
|
857
841
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
858
|
-
${this.preventNavigation||t.selected||0===(null!==(
|
|
842
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?i.nothing:i.html`
|
|
859
843
|
<ft-button icon="chevron_right"
|
|
860
844
|
label="${t.label}"
|
|
861
845
|
?disabled=${this.disabled}
|
|
@@ -864,7 +848,7 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
864
848
|
`}
|
|
865
849
|
</div>
|
|
866
850
|
`}))}
|
|
867
|
-
${
|
|
851
|
+
${e.length<t.length?i.html`
|
|
868
852
|
<ft-button
|
|
869
853
|
class="ft-filter-level--display-more"
|
|
870
854
|
icon="expand_more"
|
|
@@ -872,19 +856,19 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
872
856
|
@click=${this.displayMore}>
|
|
873
857
|
${this.moreValuesButtonLabel}
|
|
874
858
|
</ft-button>
|
|
875
|
-
`:
|
|
859
|
+
`:i.nothing}
|
|
876
860
|
</div>
|
|
877
|
-
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var
|
|
861
|
+
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return i.html`
|
|
878
862
|
<mwc-formfield label="${t.label}">
|
|
879
863
|
<mwc-checkbox
|
|
880
864
|
reducedTouchTarget
|
|
881
865
|
.checked=${t.selected}
|
|
882
866
|
.disabled=${this.disabled}
|
|
883
|
-
.indeterminate=${ie(null!==(
|
|
867
|
+
.indeterminate=${ie(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
884
868
|
@change=${e=>this.optionsChanged(e,t)}
|
|
885
869
|
></mwc-checkbox>
|
|
886
870
|
</mwc-formfield>
|
|
887
|
-
`}buildMonoValuedOption(t){return
|
|
871
|
+
`}buildMonoValuedOption(t){return i.html`
|
|
888
872
|
<mwc-formfield label="${t.label}">
|
|
889
873
|
<mwc-radio
|
|
890
874
|
reducedTouchTarget
|
|
@@ -894,140 +878,99 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
894
878
|
@click=${e=>this.optionsChanged(e,t)}
|
|
895
879
|
></mwc-radio>
|
|
896
880
|
</mwc-formfield>
|
|
897
|
-
`}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
898
|
-
.ft-
|
|
899
|
-
box-sizing: border-box;
|
|
900
|
-
position: relative;
|
|
881
|
+
`}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}vi.elementDefinitions={"ft-button":Qe,"ft-ripple":De,"ft-typography":ee,"mwc-checkbox":Be,"mwc-formfield":ai,"mwc-icon":je,"mwc-radio":ui},vi.styles=[i.css`
|
|
882
|
+
.ft-filter-level--container {
|
|
901
883
|
display: flex;
|
|
902
|
-
|
|
903
|
-
--ft-snap-scroll-transparent-color: transparent;
|
|
884
|
+
flex-direction: column;
|
|
904
885
|
}
|
|
905
886
|
|
|
906
|
-
.ft-
|
|
907
|
-
|
|
908
|
-
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
909
|
-
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
887
|
+
.ft-filter-level--container > * {
|
|
888
|
+
padding: 0 10px;
|
|
910
889
|
}
|
|
911
890
|
|
|
912
|
-
.ft-
|
|
913
|
-
|
|
891
|
+
.ft-filter-level--go-back {
|
|
892
|
+
flex-shrink: 0;
|
|
893
|
+
text-decoration: none;
|
|
894
|
+
position: relative;
|
|
895
|
+
border-radius: ${gi.borderRadiusM};
|
|
914
896
|
overflow: hidden;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
.ft-snap-scroll--limit-size,
|
|
918
|
-
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
919
|
-
width: 100%;
|
|
920
|
-
height: 100%;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.ft-snap-scroll--content {
|
|
924
|
-
flex-grow: 1;
|
|
925
|
-
flex-shrink: 1;
|
|
926
|
-
box-sizing: border-box;
|
|
927
|
-
scroll-snap-align: start;
|
|
928
897
|
display: flex;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
936
|
-
display: none;
|
|
898
|
+
align-items: center;
|
|
899
|
+
padding: 4px 4px;
|
|
900
|
+
gap: 4px;
|
|
901
|
+
cursor: pointer;
|
|
902
|
+
color: ${gi.colorOnSurface};
|
|
937
903
|
}
|
|
938
904
|
|
|
939
|
-
.ft-
|
|
940
|
-
|
|
941
|
-
scrollbar-width: none;
|
|
905
|
+
.ft-filter-level--go-back:focus {
|
|
906
|
+
outline: none;
|
|
942
907
|
}
|
|
943
908
|
|
|
944
|
-
.ft-
|
|
909
|
+
.ft-filter-level--go-back mwc-icon {
|
|
945
910
|
flex-shrink: 0;
|
|
946
|
-
flex-grow: 1;
|
|
947
|
-
max-height: 100%;
|
|
948
|
-
max-width: 100%;
|
|
949
911
|
}
|
|
950
912
|
|
|
951
|
-
.ft-
|
|
952
|
-
|
|
953
|
-
|
|
913
|
+
.ft-filter-level--go-back ft-typography {
|
|
914
|
+
display: block;
|
|
915
|
+
flex-grow: 1;
|
|
916
|
+
flex-shrink: 0;
|
|
954
917
|
}
|
|
955
918
|
|
|
956
|
-
.ft-
|
|
957
|
-
|
|
958
|
-
|
|
919
|
+
.ft-filter-level--option {
|
|
920
|
+
display: flex;
|
|
921
|
+
align-items: center;
|
|
922
|
+
max-width: 100%;
|
|
959
923
|
}
|
|
960
924
|
|
|
961
|
-
.ft-
|
|
962
|
-
|
|
963
|
-
|
|
925
|
+
.ft-filter-level--option ft-button {
|
|
926
|
+
margin-right: -10px;
|
|
927
|
+
flex-shrink: 0;
|
|
964
928
|
}
|
|
965
929
|
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
overflow-y: auto;
|
|
930
|
+
ft-button {
|
|
931
|
+
${e.setVariable(Xe.color,gi.colorOnSurface)};
|
|
969
932
|
}
|
|
970
933
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
display:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
${r.setVariable(Ke.backgroundColor,"transparent")};
|
|
979
|
-
${r.setVariable(Ke.color,_i.buttonsColor)};
|
|
980
|
-
}
|
|
934
|
+
mwc-formfield {
|
|
935
|
+
flex-shrink: 1;
|
|
936
|
+
flex-grow: 1;
|
|
937
|
+
display: block;
|
|
938
|
+
max-width: calc(100% + 10px);
|
|
939
|
+
margin-left: -10px;
|
|
940
|
+
word-break: break-word;
|
|
981
941
|
|
|
982
|
-
|
|
983
|
-
.ft-snap-scroll--next[hidden] {
|
|
984
|
-
z-index: -1;
|
|
985
|
-
opacity: 0;
|
|
986
|
-
}
|
|
942
|
+
--mdc-theme-secondary: ${gi.colorPrimary};
|
|
987
943
|
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
bottom: 0;
|
|
992
|
-
background: linear-gradient(to right, ${_i.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
993
|
-
}
|
|
944
|
+
--mdc-radio-unchecked-color: ${gi.colorOnSurfaceMedium};
|
|
945
|
+
--mdc-checkbox-unchecked-color: ${gi.colorOnSurfaceMedium};
|
|
946
|
+
--mdc-checkbox-ink-color: ${gi.colorOnPrimary};
|
|
994
947
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
left: 0;
|
|
998
|
-
right: 0;
|
|
999
|
-
background: linear-gradient(to bottom, ${_i.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1000
|
-
}
|
|
948
|
+
--mdc-radio-disabled-color: ${gi.colorOnSurfaceDisabled};
|
|
949
|
+
--mdc-checkbox-disabled-color: ${gi.colorOnSurfaceDisabled};
|
|
1001
950
|
|
|
1002
|
-
|
|
1003
|
-
top: 0;
|
|
1004
|
-
right: -1px;
|
|
1005
|
-
bottom: 0;
|
|
1006
|
-
background: linear-gradient(to left, ${_i.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1007
|
-
}
|
|
951
|
+
--mdc-theme-on-surface: ${gi.colorPrimary};
|
|
1008
952
|
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
953
|
+
--mdc-typography-body2-font-family: ${gi.fontFamily};
|
|
954
|
+
--mdc-typography-body2-font-size: ${gi.fontSize};
|
|
955
|
+
--mdc-typography-body2-font-weight: ${gi.fontWeight};
|
|
956
|
+
--mdc-typography-body2-letter-spacing: ${gi.letterSpacing};
|
|
957
|
+
--mdc-typography-body2-line-height: ${gi.lineHeight};
|
|
958
|
+
--mdc-typography-body2-text-transform: ${gi.textTransform};
|
|
959
|
+
--mdc-theme-text-primary-on-background: ${gi.colorOnSurface};
|
|
1014
960
|
}
|
|
1015
961
|
|
|
1016
|
-
.ft-
|
|
1017
|
-
|
|
1018
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1019
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1020
|
-
background-color: ${_i.colorSurface};
|
|
962
|
+
.ft-filter--disabled {
|
|
963
|
+
--mdc-theme-text-primary-on-background: ${gi.colorOnSurfaceDisabled};
|
|
1021
964
|
}
|
|
1022
|
-
`}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}
|
|
965
|
+
`],bi([r.property({type:String})],vi.prototype,"id",void 0),bi([r.property({type:Object})],vi.prototype,"parent",void 0),bi([r.property({type:Array})],vi.prototype,"options",void 0),bi([r.property({type:Boolean})],vi.prototype,"multivalued",void 0),bi([r.property({type:Boolean})],vi.prototype,"disabled",void 0),bi([r.property({type:Boolean})],vi.prototype,"hideSelectedOptions",void 0),bi([r.property({type:Boolean})],vi.prototype,"preventNavigation",void 0),bi([r.property({type:String})],vi.prototype,"filter",void 0),bi([r.property({type:String})],vi.prototype,"moreValuesButtonLabel",void 0),bi([r.property({type:Number})],vi.prototype,"displayedValuesLimit",void 0),bi([r.query(".ft-filter-level--container")],vi.prototype,"container",void 0),bi([r.state()],vi.prototype,"displayedPages",void 0);var yi=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};const ki={buttonsColor:e.FtCssVariable.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system")};class xi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class _i extends e.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=c.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":e.isSafari}),r=this.controls&&this.withScroll;return i.html`
|
|
1023
966
|
<div part="container" class="${t}">
|
|
1024
967
|
<ft-button
|
|
1025
968
|
class="ft-snap-scroll--previous"
|
|
1026
969
|
part="controls"
|
|
1027
970
|
primary
|
|
1028
971
|
icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
|
|
1029
|
-
?hidden=${!
|
|
1030
|
-
?disabled=${!
|
|
972
|
+
?hidden=${!r||this.startReached}
|
|
973
|
+
?disabled=${!r||this.startReached}
|
|
1031
974
|
@click=${this.previous}
|
|
1032
975
|
></ft-button>
|
|
1033
976
|
<slot class="ft-snap-scroll--content"
|
|
@@ -1038,126 +981,144 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
1038
981
|
part="controls"
|
|
1039
982
|
primary
|
|
1040
983
|
icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
|
|
1041
|
-
?hidden=${!
|
|
1042
|
-
?disabled=${!
|
|
984
|
+
?hidden=${!r||this.endReached}
|
|
985
|
+
?disabled=${!r||this.endReached}
|
|
1043
986
|
@click=${this.next}
|
|
1044
987
|
></ft-button>
|
|
1045
988
|
</div>
|
|
1046
|
-
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
989
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new xi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}_i.elementDefinitions={"ft-button":Qe},_i.styles=i.css`
|
|
990
|
+
.ft-snap-scroll {
|
|
991
|
+
box-sizing: border-box;
|
|
992
|
+
position: relative;
|
|
993
|
+
display: flex;
|
|
994
|
+
|
|
995
|
+
--ft-snap-scroll-transparent-color: transparent;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
999
|
+
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
1000
|
+
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
1001
|
+
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.ft-snap-scroll,
|
|
1005
|
+
.ft-snap-scroll--content {
|
|
1006
|
+
overflow: hidden;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.ft-snap-scroll--limit-size,
|
|
1010
|
+
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
1011
|
+
width: 100%;
|
|
1012
|
+
height: 100%;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.ft-snap-scroll--content {
|
|
1016
|
+
flex-grow: 1;
|
|
1017
|
+
flex-shrink: 1;
|
|
1018
|
+
box-sizing: border-box;
|
|
1019
|
+
scroll-snap-align: start;
|
|
1020
|
+
display: flex;
|
|
1021
|
+
flex-wrap: nowrap;
|
|
1022
|
+
align-items: flex-start;
|
|
1023
|
+
justify-content: flex-start;
|
|
1024
|
+
gap: ${ki.gap};
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
1028
|
+
display: none;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
1032
|
+
-ms-overflow-style: none;
|
|
1033
|
+
scrollbar-width: none;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.ft-snap-scroll--content::slotted(*) {
|
|
1037
|
+
flex-shrink: 0;
|
|
1038
|
+
flex-grow: 1;
|
|
1039
|
+
max-height: 100%;
|
|
1040
|
+
max-width: 100%;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.ft-snap-scroll--horizontal,
|
|
1044
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1045
|
+
width: 100%;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.ft-snap-scroll--vertical,
|
|
1049
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1050
|
+
height: 100%;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
1054
|
+
flex-direction: row;
|
|
1055
|
+
overflow-x: auto;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
1059
|
+
flex-direction: column;
|
|
1060
|
+
overflow-y: auto;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.ft-snap-scroll--previous,
|
|
1064
|
+
.ft-snap-scroll--next {
|
|
1065
|
+
position: absolute;
|
|
1066
|
+
display: flex;
|
|
1067
|
+
z-index: ${ki.buttonsZIndex};
|
|
1068
|
+
opacity: 1;
|
|
1069
|
+
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1070
|
+
${e.setVariable(Xe.backgroundColor,"transparent")};
|
|
1071
|
+
${e.setVariable(Xe.color,ki.buttonsColor)};
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.ft-snap-scroll--previous[hidden],
|
|
1075
|
+
.ft-snap-scroll--next[hidden] {
|
|
1076
|
+
z-index: -1;
|
|
1077
|
+
opacity: 0;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
1081
|
+
top: 0;
|
|
1082
|
+
left: -1px;
|
|
1083
|
+
bottom: 0;
|
|
1084
|
+
background: linear-gradient(to right, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1088
|
+
top: -1px;
|
|
1089
|
+
left: 0;
|
|
1090
|
+
right: 0;
|
|
1091
|
+
background: linear-gradient(to bottom, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1095
|
+
top: 0;
|
|
1096
|
+
right: -1px;
|
|
1097
|
+
bottom: 0;
|
|
1098
|
+
background: linear-gradient(to left, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1102
|
+
left: 0;
|
|
1103
|
+
right: 0;
|
|
1104
|
+
bottom: -1px;
|
|
1105
|
+
background: linear-gradient(to top, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1109
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1110
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1111
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1112
|
+
background-color: ${ki.colorSurface};
|
|
1113
|
+
}
|
|
1114
|
+
`,yi([r.property({type:Boolean})],_i.prototype,"horizontal",void 0),yi([r.property({type:Boolean})],_i.prototype,"hideScrollbar",void 0),yi([r.property({type:Boolean})],_i.prototype,"controls",void 0),yi([r.property({type:Boolean})],_i.prototype,"limitSize",void 0),yi([r.state()],_i.prototype,"elements",void 0),yi([r.state()],_i.prototype,"currentElement",void 0),yi([r.state()],_i.prototype,"withScroll",void 0),yi([r.state()],_i.prototype,"startReached",void 0),yi([r.state()],_i.prototype,"endReached",void 0),yi([r.query(".ft-snap-scroll--content")],_i.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(_i);var wi=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};const $i={colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),transitionDuration:e.FtCssVariable.external(e.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:e.FtCssVariable.external(e.designSystemVariables.transitionTimingFunction,"Design system")};class zi extends CustomEvent{constructor(t){super("change",{detail:t})}}class Si extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10)}get flatOptions(){return ie(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const r=this.flatOptions.some((t=>t.selected));let o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return i.html`
|
|
1154
1115
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1155
1116
|
part="container">
|
|
1156
|
-
${this.label||r?
|
|
1117
|
+
${this.label||r?i.html`
|
|
1157
1118
|
<div class="ft-filter--header" part="header">
|
|
1158
1119
|
<ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
|
|
1159
1120
|
</ft-typography>
|
|
1160
|
-
${r?
|
|
1121
|
+
${r?i.html`
|
|
1161
1122
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1162
1123
|
${this.clearButtonLabel}
|
|
1163
1124
|
</ft-button>
|
|
@@ -1179,14 +1140,14 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
1179
1140
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1180
1141
|
@option-change=${this.optionsChanged}></slot>
|
|
1181
1142
|
</div>
|
|
1182
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,
|
|
1183
|
-
${this.raiseSelectedOptions&&
|
|
1143
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),r=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=r<0?"ft-filter--level-center":"ft-filter--level-left";return i.html`
|
|
1144
|
+
${this.raiseSelectedOptions&&e.length>0?i.html`
|
|
1184
1145
|
<ft-filter-level
|
|
1185
1146
|
id="${this.id}"
|
|
1186
1147
|
?multivalued=${this.multivalued}
|
|
1187
1148
|
?disabled=${this.disabled}
|
|
1188
1149
|
preventNavigation
|
|
1189
|
-
.options=${
|
|
1150
|
+
.options=${e}
|
|
1190
1151
|
@change=${this.onChange}
|
|
1191
1152
|
part="selected-values"
|
|
1192
1153
|
></ft-filter-level>
|
|
@@ -1198,7 +1159,7 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
1198
1159
|
${this.renderLevel(o,this.options)}
|
|
1199
1160
|
${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var i;const o=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===r?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(o,null!==(i=null==t?void 0:t.subOptions)&&void 0!==i?i:[],t)}))}
|
|
1200
1161
|
</ft-snap-scroll>
|
|
1201
|
-
`}renderLevel(t,
|
|
1162
|
+
`}renderLevel(t,e,r){return i.html`
|
|
1202
1163
|
<ft-filter-level
|
|
1203
1164
|
class="${t}"
|
|
1204
1165
|
id="${this.id}"
|
|
@@ -1208,11 +1169,118 @@ const bi=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
1208
1169
|
?disabled=${this.disabled||"ft-filter--level-center"!==t}
|
|
1209
1170
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1210
1171
|
.parent=${r}
|
|
1211
|
-
.options=${
|
|
1172
|
+
.options=${e}
|
|
1212
1173
|
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1213
1174
|
@change=${this.onChange}
|
|
1214
1175
|
@go-back=${this.goBack}
|
|
1215
1176
|
@display-level=${this.onDisplayLevel}
|
|
1216
1177
|
part="values"
|
|
1217
1178
|
></ft-filter-level>
|
|
1218
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const r=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(r)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(r):this.options.forEach(r),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new
|
|
1179
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const r=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(r)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(r):this.options.forEach(r),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new zi(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Si.elementDefinitions={"ft-button":Qe,"ft-filter-level":vi,"ft-snap-scroll":_i,"ft-typography":ee},Si.styles=[Yt,i.css`
|
|
1180
|
+
:host {
|
|
1181
|
+
display: flex;
|
|
1182
|
+
max-height: 100%;
|
|
1183
|
+
max-width: 100%;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.ft-filter--container {
|
|
1187
|
+
flex-grow: 1;
|
|
1188
|
+
display: flex;
|
|
1189
|
+
flex-direction: column;
|
|
1190
|
+
max-height: 100%;
|
|
1191
|
+
max-width: 100%;
|
|
1192
|
+
color: ${$i.colorOnSurface};
|
|
1193
|
+
background: ${$i.colorSurface};
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.ft-filter--header {
|
|
1197
|
+
display: flex;
|
|
1198
|
+
flex-wrap: wrap;
|
|
1199
|
+
gap: 4px;
|
|
1200
|
+
flex-shrink: 0;
|
|
1201
|
+
padding: 0 10px;
|
|
1202
|
+
margin-bottom: 8px;
|
|
1203
|
+
${e.setVariable(q.fontSize,"14px")};
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.ft-filter--header ft-button {
|
|
1207
|
+
flex-shrink: 0;
|
|
1208
|
+
margin-left: auto;
|
|
1209
|
+
${e.setVariable(Xe.iconSize,"18px")};
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.ft-filter--label {
|
|
1213
|
+
display: block;
|
|
1214
|
+
flex-shrink: 1;
|
|
1215
|
+
flex-grow: 1;
|
|
1216
|
+
word-break: break-word;
|
|
1217
|
+
${e.setVariable(q.lineHeight,"22px")};
|
|
1218
|
+
${e.setVariable(q.fontWeight,"bold")};
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.ft-filter--filter {
|
|
1222
|
+
flex-shrink: 0;
|
|
1223
|
+
display: flex;
|
|
1224
|
+
margin: 0;
|
|
1225
|
+
margin-bottom: 8px;
|
|
1226
|
+
padding: 0 10px;
|
|
1227
|
+
overflow: hidden;
|
|
1228
|
+
height: 32px;
|
|
1229
|
+
transition: height ${$i.transitionDuration} ${$i.transitionTimingFunction},
|
|
1230
|
+
margin ${$i.transitionDuration} ${$i.transitionTimingFunction};
|
|
1231
|
+
transition-delay: 500ms;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.ft-filter--filter[hidden] {
|
|
1235
|
+
height: 0;
|
|
1236
|
+
margin-bottom: 0;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
input {
|
|
1240
|
+
display: block;
|
|
1241
|
+
width: 100%;
|
|
1242
|
+
border-radius: 4px;
|
|
1243
|
+
border: 1px solid ${$i.colorOutline};
|
|
1244
|
+
padding: 4px;
|
|
1245
|
+
background-color: ${$i.colorSurface};
|
|
1246
|
+
color: ${$i.colorOnSurfaceMedium};
|
|
1247
|
+
outline-color: ${$i.colorPrimary};
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.ft-filter--values {
|
|
1251
|
+
flex-grow: 1;
|
|
1252
|
+
flex-shrink: 1;
|
|
1253
|
+
max-width: 100%;
|
|
1254
|
+
overflow-x: hidden;
|
|
1255
|
+
overflow-y: auto;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.ft-filter--separator {
|
|
1259
|
+
border-top: 1px solid ${$i.colorOutline};
|
|
1260
|
+
margin: 4px 10px;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
.ft-filter--levels-container {
|
|
1264
|
+
position: relative;
|
|
1265
|
+
overflow: hidden;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.ft-filter--levels {
|
|
1269
|
+
position: relative;
|
|
1270
|
+
overflow: hidden;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
ft-filter-level {
|
|
1274
|
+
width: 100%;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
.ft-filter--level-left {
|
|
1278
|
+
height: 0;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
slot {
|
|
1282
|
+
display: none;
|
|
1283
|
+
}
|
|
1284
|
+
`],wi([r.property({type:String})],Si.prototype,"id",void 0),wi([r.property({type:String})],Si.prototype,"label",void 0),wi([r.property({type:String})],Si.prototype,"filterPlaceHolder",void 0),wi([r.property({type:String})],Si.prototype,"clearButtonLabel",void 0),wi([r.property({type:String})],Si.prototype,"moreValuesButtonLabel",void 0),wi([e.jsonProperty([])],Si.prototype,"options",void 0),wi([r.property({type:Boolean})],Si.prototype,"multivalued",void 0),wi([r.property({type:Boolean})],Si.prototype,"disabled",void 0),wi([r.property({type:Boolean})],Si.prototype,"raiseSelectedOptions",void 0),wi([r.property({type:Number})],Si.prototype,"displayedValuesLimit",void 0),wi([r.query(".ft-filter--slot")],Si.prototype,"slotElement",void 0),wi([r.query(".ft-filter--container")],Si.prototype,"container",void 0),wi([r.query(".ft-filter--values")],Si.prototype,"valuesContainer",void 0),wi([r.query(".ft-filter--levels")],Si.prototype,"levelsContainer",void 0),wi([r.query(".ft-filter--levels ft-filter-level:last-child")],Si.prototype,"lastLevel",void 0),wi([r.queryAll(".ft-filter--levels ft-filter-level")],Si.prototype,"levels",void 0),wi([r.state()],Si.prototype,"withScroll",void 0),wi([r.state()],Si.prototype,"filter",void 0),wi([r.state()],Si.prototype,"slideIn",void 0),wi([r.state()],Si.prototype,"slideOut",void 0);var Oi=function(t,e,i,r){for(var o,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(a=(c<3?o(a):c>3?o(e,i,a):o(e,i))||a);return c>3&&a&&Object.defineProperty(e,i,a),a};class Ti extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
|
|
1285
|
+
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1286
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ti.elementDefinitions={},Oi([r.property({type:String})],Ti.prototype,"label",void 0),Oi([r.property({type:Object,converter:t=>t})],Ti.prototype,"value",void 0),Oi([r.property({type:Boolean,reflect:!0})],Ti.prototype,"selected",void 0),Oi([r.property({type:Object})],Ti.prototype,"subOptions",void 0),Oi([r.query(".ft-filter-option--slot")],Ti.prototype,"slotElement",void 0),e.customElement("ft-filter")(Si),e.customElement("ft-filter-level")(vi),e.customElement("ft-filter-option")(Ti),t.FtFilter=Si,t.FtFilterChangeEvent=zi,t.FtFilterCssVariables=$i,t.FtFilterOption=Ti,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litStyleMap);
|