@fluid-topics/ft-collapsible 0.1.9 → 0.1.10
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-collapsible.light.js +24 -24
- package/build/ft-collapsible.min.js +10 -10
- package/package.json +4 -4
|
@@ -139,24 +139,24 @@ const k=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;-
|
|
|
139
139
|
* Copyright 2020 Google LLC
|
|
140
140
|
* SPDX-License-Identifier: Apache-2.0
|
|
141
141
|
*/
|
|
142
|
-
class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var S=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const
|
|
142
|
+
class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var S=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const T={color:r.FtCssVariable.extend("--ft-ripple-color",r.designSystemVariables.colorContent),primaryColor:r.FtCssVariable.extend("--ft-ripple-primary-color",r.FtCssVariable.extend("--ft-ripple-color",r.designSystemVariables.colorPrimary)),secondaryColor:r.FtCssVariable.extend("--ft-ripple-secondary-color",r.FtCssVariable.extend("--ft-ripple-color",r.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let O=class extends r.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
|
|
143
143
|
:host {
|
|
144
144
|
display: contents;
|
|
145
145
|
|
|
146
|
-
--mdc-ripple-color: ${
|
|
147
|
-
--mdc-ripple-press-opacity: ${
|
|
148
|
-
--mdc-ripple-hover-opacity: ${
|
|
149
|
-
--mdc-ripple-focus-opacity: ${
|
|
150
|
-
--mdc-ripple-selected-opacity: ${
|
|
151
|
-
--mdc-ripple-activated-opacity: ${
|
|
146
|
+
--mdc-ripple-color: ${T.color};
|
|
147
|
+
--mdc-ripple-press-opacity: ${T.opacityContentOnSurfacePressed};
|
|
148
|
+
--mdc-ripple-hover-opacity: ${T.opacityContentOnSurfaceHover};
|
|
149
|
+
--mdc-ripple-focus-opacity: ${T.opacityContentOnSurfaceFocused};
|
|
150
|
+
--mdc-ripple-selected-opacity: ${T.opacityContentOnSurfaceSelected};
|
|
151
|
+
--mdc-ripple-activated-opacity: ${T.opacityContentOnSurfaceDragged};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
mwc-ripple.ft-ripple--secondary {
|
|
155
|
-
--mdc-ripple-color: ${
|
|
155
|
+
--mdc-ripple-color: ${T.secondaryColor};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
mwc-ripple.ft-ripple--primary {
|
|
159
|
-
--mdc-ripple-color: ${
|
|
159
|
+
--mdc-ripple-color: ${T.primaryColor};
|
|
160
160
|
}
|
|
161
161
|
`}getTemplate(){return e.html`
|
|
162
162
|
<mwc-ripple
|
|
@@ -172,13 +172,13 @@ class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},
|
|
|
172
172
|
* Copyright 2017 Google LLC
|
|
173
173
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
174
174
|
*/
|
|
175
|
-
var _;
|
|
175
|
+
var _;O.elementDefinitions={"mwc-ripple":z},S([i.property({type:Boolean})],O.prototype,"primary",void 0),S([i.property({type:Boolean})],O.prototype,"secondary",void 0),S([i.property({type:Boolean})],O.prototype,"unbounded",void 0),S([i.property({type:Boolean})],O.prototype,"activated",void 0),S([i.property({type:Boolean})],O.prototype,"selected",void 0),S([i.property({type:Boolean})],O.prototype,"disabled",void 0),S([i.query("mwc-ripple")],O.prototype,"mwcRipple",void 0),O=S([r.customElement("ft-ripple")],O);const C=globalThis.trustedTypes,I=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,B="?"+E,F=`<${B}>`,j=document,D=(t="")=>j.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,P=/>/g,U=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,G=/'/g,V=/"/g,L=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,X=j.createTreeWalker(j,129,null,!1),Y=(t,e)=>{const i=t.length-1,r=[];let o,a=2===e?"<svg>":"",n=M;for(let e=0;e<i;e++){const i=t[e];let s,p,c=-1,l=0;for(;l<i.length&&(n.lastIndex=l,p=n.exec(i),null!==p);)l=n.lastIndex,n===M?"!--"===p[1]?n=H:void 0!==p[1]?n=P:void 0!==p[2]?(L.test(p[2])&&(o=RegExp("</"+p[2],"g")),n=U):void 0!==p[3]&&(n=U):n===U?">"===p[0]?(n=null!=o?o:M,c=-1):void 0===p[1]?c=-2:(c=n.lastIndex-p[2].length,s=p[1],n=void 0===p[3]?U:'"'===p[3]?V:G):n===V||n===G?n=U:n===H||n===P?n=M:(n=U,o=void 0);const d=n===U&&t[e+1].startsWith("/>")?" ":"";a+=n===M?i+F:c>=0?(r.push(s),i.slice(0,c)+"$lit$"+i.slice(c)+E+d):i+E+(-2===c?(r.push(void 0),e):d)}const s=a+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(s):s,r]};class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const n=t.length-1,s=this.parts,[p,c]=Y(t,e);if(this.el=J.createElement(p,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=X.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=c[a++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?nt:it})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(E),e=t.length-1;if(e>0){r.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],D()),X.nextNode(),s.push({type:2,index:++o});r.append(t[e],D())}}}else if(8===r.nodeType)if(r.data===B)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(E,t+1));)s.push({type:7,index:o}),t+=E.length-1}o++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var o,a,n,s;if(e===q)return e;let p=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const c=R(e)?void 0:e._$litDirective$;return(null==p?void 0:p.constructor)!==c&&(null===(a=null==p?void 0:p._$AO)||void 0===a||a.call(p,!1),void 0===c?p=void 0:(p=new c(t),p._$AT(t,i,r)),void 0!==r?(null!==(n=(s=i)._$Cl)&&void 0!==n?n:s._$Cl=[])[r]=p:i._$Cu=p),void 0!==p&&(e=Q(t,p._$AS(t,e.values),p,r)),e}class tt{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:j).importNode(i,!0);X.currentNode=o;let a=X.nextNode(),n=0,s=0,p=r[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new et(a,a.nextSibling,this,t):1===p.type?e=new p.ctor(a,p.name,p.strings,this,t):6===p.type&&(e=new st(a,this,t)),this.v.push(e),p=r[++s]}n!==(null==p?void 0:p.index)&&(a=X.nextNode(),n++)}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 et{constructor(t,e,i,r){var o;this.type=2,this._$AH=W,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=Q(this,t,e),R(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==q&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return N(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!==W&&R(this._$AH)?this._$AA.nextSibling.data=t:this.S(j.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=J.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 tt(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new J(t)),e}A(t){N(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 et(this.M(D()),this.M(D()),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 it{constructor(t,e,i,r,o){this.type=1,this._$AH=W,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=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(void 0===o)t=Q(this,t,e,0),a=!R(t)||t!==this._$AH&&t!==q,a&&(this._$AH=t);else{const r=t;let n,s;for(t=o[0],n=0;n<o.length-1;n++)s=Q(this,r[i+n],e,n),s===q&&(s=this._$AH[n]),a||(a=!R(s)||s!==this._$AH[n]),s===W?t=W:t!==W&&(t+=(null!=s?s:"")+o[n+1]),this._$AH[n]=s}a&&!r&&this.k(t)}k(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends it{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===W?void 0:t}}const ot=C?C.emptyScript:"";class at extends it{constructor(){super(...arguments),this.type=4}k(t){t&&t!==W?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends it{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=Q(this,t,e,0))&&void 0!==i?i:W)===q)return;const r=this._$AH,o=t===W&&r!==W||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==W&&(r===W||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const pt=window.litHtmlPolyfillSupport;null==pt||pt(J,et),(null!==(_=globalThis.litHtmlVersions)&&void 0!==_?_:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
176
176
|
/**
|
|
177
177
|
* @license
|
|
178
178
|
* Copyright 2020 Google LLC
|
|
179
179
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
180
180
|
*/
|
|
181
|
-
const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.length;let a,n;const s=[],p=[];let c,l=0,d=!1;for(;l<o;){for(c=e[l];l<o&&void 0!==(n=i[l],a=null===(r=n)||void 0===r?void 0:r._$litStatic$);)c+=a+e[++l],d=!0;p.push(n),s.push(c),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=lt.get(t))&&(s.raw=s,lt.set(t,e=s)),i=p}return t(e,...i)})(Z);var ft,ut=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};!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"}(ft||(ft={}));const ht=r.FtCssVariable.extend("--ft-typography-font-family",r.designSystemVariables.titleFont),mt=r.FtCssVariable.extend("--ft-typography-font-family",r.designSystemVariables.contentFont),yt={fontFamily:mt,fontSize:r.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:r.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:r.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:r.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:r.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=r.FtCssVariable.extend("--ft-typography-title-font-family",ht),vt=r.FtCssVariable.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),bt=r.FtCssVariable.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),xt=r.FtCssVariable.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),$t=r.FtCssVariable.extend("--ft-typography-title-line-height",yt.lineHeight,"24px"),wt=r.FtCssVariable.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=r.FtCssVariable.extend("--ft-typography-title-dense-font-family",ht),zt=r.FtCssVariable.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),At=r.FtCssVariable.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),St=r.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),
|
|
181
|
+
const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.length;let a,n;const s=[],p=[];let c,l=0,d=!1;for(;l<o;){for(c=e[l];l<o&&void 0!==(n=i[l],a=null===(r=n)||void 0===r?void 0:r._$litStatic$);)c+=a+e[++l],d=!0;p.push(n),s.push(c),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=lt.get(t))&&(s.raw=s,lt.set(t,e=s)),i=p}return t(e,...i)})(Z);var ft,ut=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};!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"}(ft||(ft={}));const ht=r.FtCssVariable.extend("--ft-typography-font-family",r.designSystemVariables.titleFont),mt=r.FtCssVariable.extend("--ft-typography-font-family",r.designSystemVariables.contentFont),yt={fontFamily:mt,fontSize:r.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:r.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:r.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:r.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:r.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=r.FtCssVariable.extend("--ft-typography-title-font-family",ht),vt=r.FtCssVariable.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),bt=r.FtCssVariable.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),xt=r.FtCssVariable.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),$t=r.FtCssVariable.extend("--ft-typography-title-line-height",yt.lineHeight,"24px"),wt=r.FtCssVariable.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=r.FtCssVariable.extend("--ft-typography-title-dense-font-family",ht),zt=r.FtCssVariable.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),At=r.FtCssVariable.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),St=r.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Tt=r.FtCssVariable.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"24px"),Ot=r.FtCssVariable.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),_t=r.FtCssVariable.extend("--ft-typography-subtitle1-font-family",mt),Ct=r.FtCssVariable.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),It=r.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),Et=r.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),Bt=r.FtCssVariable.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"24px"),Ft=r.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),jt=r.FtCssVariable.extend("--ft-typography-subtitle2-font-family",mt),Dt=r.FtCssVariable.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Rt=r.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Nt=r.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Mt=r.FtCssVariable.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"24px"),Ht=r.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Pt=r.FtCssVariable.extend("--ft-typography-body1-font-family",mt),Ut=r.FtCssVariable.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=r.FtCssVariable.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Vt=r.FtCssVariable.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Lt=r.FtCssVariable.extend("--ft-typography-body1-line-height",yt.lineHeight,"24px"),Zt=r.FtCssVariable.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt=r.FtCssVariable.extend("--ft-typography-body2-font-family",mt),Wt=r.FtCssVariable.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),Kt=r.FtCssVariable.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),Xt=r.FtCssVariable.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),Yt=r.FtCssVariable.extend("--ft-typography-body2-line-height",yt.lineHeight,"20px"),Jt=r.FtCssVariable.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit"),Qt=r.FtCssVariable.extend("--ft-typography-caption-font-family",mt),te=r.FtCssVariable.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),ee=r.FtCssVariable.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),ie=r.FtCssVariable.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),re=r.FtCssVariable.extend("--ft-typography-caption-line-height",yt.lineHeight,"16px"),oe=r.FtCssVariable.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),ae=r.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",mt),ne=r.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),se=r.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),pe=r.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),ce=r.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"16px"),le=r.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),de=r.FtCssVariable.extend("--ft-typography-overline-font-family",mt),fe=r.FtCssVariable.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),ue=r.FtCssVariable.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),he=r.FtCssVariable.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),me=r.FtCssVariable.extend("--ft-typography-overline-line-height",yt.lineHeight,"16px"),ye=r.FtCssVariable.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),ge={fontFamily:r.FtCssVariable.extend("--ft-typography-button-font-family",mt),fontSize:r.FtCssVariable.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),fontWeight:r.FtCssVariable.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),letterSpacing:r.FtCssVariable.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),lineHeight:r.FtCssVariable.extend("--ft-typography-button-line-height",yt.lineHeight,"16px"),textTransform:r.FtCssVariable.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase")},ve=e.css`
|
|
182
182
|
.ft-typography--title {
|
|
183
183
|
font-family: ${gt};
|
|
184
184
|
font-size: ${vt};
|
|
@@ -193,16 +193,16 @@ const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
193
193
|
font-size: ${zt};
|
|
194
194
|
font-weight: ${At};
|
|
195
195
|
letter-spacing: ${St};
|
|
196
|
-
line-height: ${
|
|
197
|
-
text-transform: ${
|
|
196
|
+
line-height: ${Tt};
|
|
197
|
+
text-transform: ${Ot};
|
|
198
198
|
}
|
|
199
199
|
`,xe=e.css`
|
|
200
200
|
.ft-typography--subtitle1 {
|
|
201
201
|
font-family: ${_t};
|
|
202
202
|
font-size: ${Ct};
|
|
203
203
|
font-weight: ${It};
|
|
204
|
-
letter-spacing: ${
|
|
205
|
-
line-height: ${
|
|
204
|
+
letter-spacing: ${Et};
|
|
205
|
+
line-height: ${Bt};
|
|
206
206
|
text-transform: ${Ft};
|
|
207
207
|
}
|
|
208
208
|
`,$e=e.css`
|
|
@@ -260,7 +260,7 @@ const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
260
260
|
line-height: ${me};
|
|
261
261
|
text-transform: ${ye};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,Te=e.css`
|
|
264
264
|
.ft-typography--button {
|
|
265
265
|
font-family: ${ge.fontFamily};
|
|
266
266
|
font-size: ${ge.fontSize};
|
|
@@ -269,7 +269,7 @@ const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
269
269
|
line-height: ${ge.lineHeight};
|
|
270
270
|
text-transform: ${ge.textTransform};
|
|
271
271
|
}
|
|
272
|
-
`;let
|
|
272
|
+
`;let Oe=class extends r.FtLitElement{constructor(){super(...arguments),this.variant=ft.body1}getStyles(){return[ve,be,xe,$e,we,ke,ze,Ae,Se,Te,e.css`
|
|
273
273
|
.ft-typography {
|
|
274
274
|
vertical-align: inherit;
|
|
275
275
|
}
|
|
@@ -280,7 +280,7 @@ const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
280
280
|
</${ct(this.element)}>
|
|
281
281
|
`:dt`
|
|
282
282
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
283
|
-
`}};ut([i.property()],
|
|
283
|
+
`}};ut([i.property()],Oe.prototype,"element",void 0),ut([i.property()],Oe.prototype,"variant",void 0),Oe=ut([r.customElement("ft-typography")],Oe);
|
|
284
284
|
/**
|
|
285
285
|
* @license
|
|
286
286
|
* Copyright 2021 Google LLC
|
|
@@ -291,7 +291,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
291
291
|
* @license
|
|
292
292
|
* Copyright 2018 Google LLC
|
|
293
293
|
* SPDX-License-Identifier: Apache-2.0
|
|
294
|
-
*/;let Ce=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ce.styles=[_e],Ce=p([i.customElement("mwc-icon")],Ce);var Ie=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const
|
|
294
|
+
*/;let Ce=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ce.styles=[_e],Ce=p([i.customElement("mwc-icon")],Ce);var Ie=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const Ee=r.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),Be=r.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),Fe=r.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),je=r.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),De=r.FtCssVariable.external(r.designSystemVariables.borderRadiusS,"Design system");let Re=class extends r.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new r.Debouncer,this.revealDebouncer=new r.Debouncer}getStyles(){return e.css`
|
|
295
295
|
.ft-tooltip--container {
|
|
296
296
|
display: block;
|
|
297
297
|
position: relative;
|
|
@@ -309,7 +309,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
309
309
|
width: max-content;
|
|
310
310
|
max-width: 150px;
|
|
311
311
|
text-align: center;
|
|
312
|
-
padding: ${
|
|
312
|
+
padding: ${Ee};
|
|
313
313
|
z-index: ${je};
|
|
314
314
|
}
|
|
315
315
|
|
|
@@ -317,7 +317,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
317
317
|
padding: 4px 8px;
|
|
318
318
|
border-radius: ${De};
|
|
319
319
|
background-color: ${Fe};
|
|
320
|
-
color: ${
|
|
320
|
+
color: ${Be};
|
|
321
321
|
top: -500px;
|
|
322
322
|
left: -500px;
|
|
323
323
|
position: relative;
|
|
@@ -338,7 +338,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
338
338
|
</div>
|
|
339
339
|
<slot></slot>
|
|
340
340
|
</div>
|
|
341
|
-
`}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())}};Re.elementDefinitions={"ft-typography":
|
|
341
|
+
`}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())}};Re.elementDefinitions={"ft-typography":Oe},Ie([i.property()],Re.prototype,"text",void 0),Ie([i.property({type:Boolean})],Re.prototype,"manual",void 0),Ie([i.property({type:Boolean})],Re.prototype,"inline",void 0),Ie([i.property({type:Number})],Re.prototype,"delay",void 0),Ie([i.property()],Re.prototype,"position",void 0),Ie([i.queryAssignedNodes("",!0)],Re.prototype,"slotNodes",void 0),Ie([i.query(".ft-tooltip--container")],Re.prototype,"container",void 0),Ie([i.query("slot")],Re.prototype,"target",void 0),Ie([i.query(".ft-tooltip")],Re.prototype,"tooltip",void 0),Ie([i.query(".ft-tooltip--content")],Re.prototype,"tooltipContent",void 0),Ie([i.state()],Re.prototype,"visible",void 0),Re=Ie([r.customElement("ft-tooltip")],Re);var Ne=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const Me={color:r.FtCssVariable.extend("--ft-loader-color",r.designSystemVariables.colorPrimary),size:r.FtCssVariable.create("--ft-loader-size","SIZE","80px")};let He=class extends r.FtLitElement{getStyles(){return e.css`
|
|
342
342
|
:host {
|
|
343
343
|
line-height: 0;
|
|
344
344
|
}
|
|
@@ -457,7 +457,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
457
457
|
--mdc-icon-size: ${Ge.iconSize};
|
|
458
458
|
--ft-button-internal-vertical-padding: 6px;
|
|
459
459
|
--ft-button-internal-horizontal-padding: 8px;
|
|
460
|
-
${r.setVariable(
|
|
460
|
+
${r.setVariable(T.color,Ge.rippleColor)};
|
|
461
461
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
|
|
462
462
|
|
|
463
463
|
border-radius: ${Ge.borderRadius};
|
|
@@ -565,7 +565,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
565
565
|
</ft-tooltip>
|
|
566
566
|
`}resolveIcon(){return this.loading?e.html`
|
|
567
567
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
568
|
-
<mwc-icon>${this.icon}</mwc-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){
|
|
568
|
+
<mwc-icon>${this.icon}</mwc-icon> `:e.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}};We.elementDefinitions={"ft-ripple":O,"ft-tooltip":Re,"ft-typography":Oe,"mwc-icon":Ce,"ft-loader":He},Pe([i.property({type:Boolean})],We.prototype,"primary",void 0),Pe([i.property({type:Boolean})],We.prototype,"outlined",void 0),Pe([i.property({type:Boolean})],We.prototype,"disabled",void 0),Pe([i.property({type:Boolean})],We.prototype,"dense",void 0),Pe([i.property({type:Boolean})],We.prototype,"round",void 0),Pe([i.property({type:String})],We.prototype,"label",void 0),Pe([i.property({type:String})],We.prototype,"icon",void 0),Pe([i.property({type:Boolean})],We.prototype,"trailingIcon",void 0),Pe([i.property({type:Boolean})],We.prototype,"loading",void 0),Pe([i.property({type:String})],We.prototype,"tooltipPosition",void 0),Pe([i.query(".ft-button")],We.prototype,"button",void 0),Pe([i.query(".ft-button--label slot")],We.prototype,"slottedContent",void 0),We=Pe([r.customElement("ft-button")],We);var Ke=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};t.FtCollapsible=class extends r.FtLitElement{constructor(){super(...arguments),this.open=!1,this.label="Open here",this.primary=!1,this.secondary=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.openIcon="expand_less",this.closedIcon="expand_more",this.trailingIcon=!1}getStyles(){return e.css`
|
|
569
569
|
:host, :root {
|
|
570
570
|
display: block;
|
|
571
571
|
}
|
|
@@ -15,13 +15,13 @@ const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:y}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,N=/>/g,A=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,M=/'/g,T=/"/g,z=/^(?:script|style|textarea|title)$/i,F=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),B=new WeakMap,_=O.createTreeWalker(O,129,null,!1),D=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",a=R;for(let e=0;e<i;e++){const i=t[e];let s,c,p=-1,l=0;for(;l<i.length&&(a.lastIndex=l,c=a.exec(i),null!==c);)l=a.lastIndex,a===R?"!--"===c[1]?a=E:void 0!==c[1]?a=N:void 0!==c[2]?(z.test(c[2])&&(o=RegExp("</"+c[2],"g")),a=A):void 0!==c[3]&&(a=A):a===A?">"===c[0]?(a=null!=o?o:R,p=-1):void 0===c[1]?p=-2:(p=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?A:'"'===c[3]?T:M):a===T||a===M?a=A:a===E||a===N?a=R:(a=A,o=void 0);const d=a===A&&t[e+1].startsWith("/>")?" ":"";n+=a===R?i+$:p>=0?(r.push(s),i.slice(0,p)+"$lit$"+i.slice(p)+x+d):i+x+(-2===p?(r.push(void 0),e):d)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(s):s,r]};class
|
|
18
|
+
var v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:y}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,N=/>/g,A=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,M=/'/g,T=/"/g,z=/^(?:script|style|textarea|title)$/i,F=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),B=new WeakMap,_=O.createTreeWalker(O,129,null,!1),D=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",a=R;for(let e=0;e<i;e++){const i=t[e];let s,c,p=-1,l=0;for(;l<i.length&&(a.lastIndex=l,c=a.exec(i),null!==c);)l=a.lastIndex,a===R?"!--"===c[1]?a=E:void 0!==c[1]?a=N:void 0!==c[2]?(z.test(c[2])&&(o=RegExp("</"+c[2],"g")),a=A):void 0!==c[3]&&(a=A):a===A?">"===c[0]?(a=null!=o?o:R,p=-1):void 0===c[1]?p=-2:(p=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?A:'"'===c[3]?T:M):a===T||a===M?a=A:a===E||a===N?a=R:(a=A,o=void 0);const d=a===A&&t[e+1].startsWith("/>")?" ":"";n+=a===R?i+$:p>=0?(r.push(s),i.slice(0,p)+"$lit$"+i.slice(p)+x+d):i+x+(-2===p?(r.push(void 0),e):d)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(s):s,r]};class L{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,s=this.parts,[c,p]=D(t,e);if(this.el=L.createElement(c,i),_.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=_.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=p[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?Z:"@"===e[1]?q:W})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),_.nextNode(),s.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)s.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,r){var o,n,a,s;if(e===j)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const p=k(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,i,r)),void 0!==r?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=I(t,c._$AS(t,e.values),c,r)),e}class P{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:O).importNode(i,!0);_.currentNode=o;let n=_.nextNode(),a=0,s=0,c=r[0];for(;void 0!==c;){if(a===c.index){let e;2===c.type?e=new H(n,n.nextSibling,this,t):1===c.type?e=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(e=new G(n,this,t)),this.v.push(e),c=r[++s]}a!==(null==c?void 0:c.index)&&(n=_.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 H{constructor(t,e,i,r){var o;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),k(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==j&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return C(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!==U&&k(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=L.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new P(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new L(t)),e}A(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new H(this.M(S()),this.M(S()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class W{constructor(t,e,i,r,o){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=I(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const r=t;let a,s;for(t=o[0],a=0;a<o.length-1;a++)s=I(this,r[i+a],e,a),s===j&&(s=this._$AH[a]),n||(n=!k(s)||s!==this._$AH[a]),s===U?t=U:t!==U&&(t+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}n&&!r&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const K=g?g.emptyScript:"";class Z extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class q extends W{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:U)===j)return;const r=this._$AH,o=t===U&&r!==U||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==U&&(r===U||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class G{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){I(this,t)}}const X=window.litHtmlPolyfillSupport;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/
|
|
24
|
-
var J,Y;null==X||X(
|
|
24
|
+
var J,Y;null==X||X(L,H),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class Q extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var r,o;const n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let a=n._$litPart$;if(void 0===a){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=a=new H(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return j}}Q.finalized=!0,Q._$litElement$=!0,null===(J=globalThis.litElementHydrateSupport)||void 0===J||J.call(globalThis,{LitElement:Q});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Q}),(null!==(Y=globalThis.litElementVersions)&&void 0!==Y?Y:globalThis.litElementVersions=[]).push("3.1.2");
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
@@ -202,14 +202,14 @@ var jt=["touchstart","pointerdown","mousedown","keydown"],Ut=["touchend","pointe
|
|
|
202
202
|
* Copyright 2018 Google LLC
|
|
203
203
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
204
204
|
*/
|
|
205
|
-
const
|
|
205
|
+
const Lt=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==xt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.ct.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return j}});
|
|
206
206
|
/**
|
|
207
207
|
* @license
|
|
208
208
|
* Copyright 2018 Google LLC
|
|
209
209
|
* SPDX-License-Identifier: Apache-2.0
|
|
210
|
-
*/class
|
|
210
|
+
*/class It extends At{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Dt}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return F`
|
|
211
211
|
<div class="mdc-ripple-surface mdc-ripple-upgraded ${Ot(i)}"
|
|
212
|
-
style="${
|
|
212
|
+
style="${Lt({"--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>`}}Ct([at(".mdc-ripple-surface")],It.prototype,"mdcRoot",void 0),Ct([rt({type:Boolean})],It.prototype,"primary",void 0),Ct([rt({type:Boolean})],It.prototype,"accent",void 0),Ct([rt({type:Boolean})],It.prototype,"unbounded",void 0),Ct([rt({type:Boolean})],It.prototype,"disabled",void 0),Ct([rt({type:Boolean})],It.prototype,"activated",void 0),Ct([rt({type:Boolean})],It.prototype,"selected",void 0),Ct([rt({type:Boolean})],It.prototype,"internalUseStateLayerCustomProperties",void 0),Ct([ot()],It.prototype,"hovering",void 0),Ct([ot()],It.prototype,"bgFocused",void 0),Ct([ot()],It.prototype,"fgActivation",void 0),Ct([ot()],It.prototype,"fgDeactivation",void 0),Ct([ot()],It.prototype,"fgScale",void 0),Ct([ot()],It.prototype,"fgSize",void 0),Ct([ot()],It.prototype,"translateStart",void 0),Ct([ot()],It.prototype,"translateEnd",void 0),Ct([ot()],It.prototype,"leftPos",void 0),Ct([ot()],It.prototype,"topPos",void 0);
|
|
213
213
|
/**
|
|
214
214
|
* @license
|
|
215
215
|
* Copyright 2021 Google LLC
|
|
@@ -220,7 +220,7 @@ const Pt=a`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--md
|
|
|
220
220
|
* @license
|
|
221
221
|
* Copyright 2018 Google LLC
|
|
222
222
|
* SPDX-License-Identifier: Apache-2.0
|
|
223
|
-
*/;let Ht=class extends
|
|
223
|
+
*/;let Ht=class extends It{};Ht.styles=[Pt],Ht=Ct([et("mwc-ripple")],Ht);
|
|
224
224
|
/**
|
|
225
225
|
* @license
|
|
226
226
|
* Copyright 2020 Google LLC
|
|
@@ -259,7 +259,7 @@ class Wt{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
|
|
|
259
259
|
* Copyright 2020 Google LLC
|
|
260
260
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
261
261
|
*/
|
|
262
|
-
const qt=t=>({_$litStatic$:t}),Gt=new Map,Xt=(t=>(e,...i)=>{var r;const o=i.length;let n,a;const s=[],c=[];let p,l=0,d=!1;for(;l<o;){for(p=e[l];l<o&&void 0!==(a=i[l],n=null===(r=a)||void 0===r?void 0:r._$litStatic$);)p+=n+e[++l],d=!0;c.push(a),s.push(p),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=Gt.get(t))&&(s.raw=s,Gt.set(t,e=s)),i=c}return t(e,...i)})(F);var Jt,Yt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>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"}(Jt||(Jt={}));const Qt=dt.extend("--ft-typography-font-family",ht.titleFont),te=dt.extend("--ft-typography-font-family",ht.contentFont),ee={fontFamily:te,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","SIZE","24px"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ie=dt.extend("--ft-typography-title-font-family",Qt),re=dt.extend("--ft-typography-title-font-size",ee.fontSize,"20px"),oe=dt.extend("--ft-typography-title-font-weight",ee.fontWeight,"normal"),ne=dt.extend("--ft-typography-title-letter-spacing",ee.letterSpacing,"0.15px"),ae=dt.extend("--ft-typography-title-line-height",ee.lineHeight,"24px"),se=dt.extend("--ft-typography-title-text-transform",ee.textTransform,"inherit"),ce=dt.extend("--ft-typography-title-dense-font-family",Qt),pe=dt.extend("--ft-typography-title-dense-font-size",ee.fontSize,"14px"),le=dt.extend("--ft-typography-title-dense-font-weight",ee.fontWeight,"normal"),de=dt.extend("--ft-typography-title-dense-letter-spacing",ee.letterSpacing,"0.105px"),ue=dt.extend("--ft-typography-title-dense-line-height",ee.lineHeight,"24px"),he=dt.extend("--ft-typography-title-dense-text-transform",ee.textTransform,"inherit"),fe=dt.extend("--ft-typography-subtitle1-font-family",te),me=dt.extend("--ft-typography-subtitle1-font-size",ee.fontSize,"16px"),ye=dt.extend("--ft-typography-subtitle1-font-weight",ee.fontWeight,"600"),ve=dt.extend("--ft-typography-subtitle1-letter-spacing",ee.letterSpacing,"0.144px"),ge=dt.extend("--ft-typography-subtitle1-line-height",ee.lineHeight,"24px"),be=dt.extend("--ft-typography-subtitle1-text-transform",ee.textTransform,"inherit"),xe=dt.extend("--ft-typography-subtitle2-font-family",te),we=dt.extend("--ft-typography-subtitle2-font-size",ee.fontSize,"14px"),$e=dt.extend("--ft-typography-subtitle2-font-weight",ee.fontWeight,"normal"),Oe=dt.extend("--ft-typography-subtitle2-letter-spacing",ee.letterSpacing,"0.098px"),Se=dt.extend("--ft-typography-subtitle2-line-height",ee.lineHeight,"24px"),ke=dt.extend("--ft-typography-subtitle2-text-transform",ee.textTransform,"inherit"),Ce=dt.extend("--ft-typography-body1-font-family",te),Re=dt.extend("--ft-typography-body1-font-size",ee.fontSize,"16px"),Ee=dt.extend("--ft-typography-body1-font-weight",ee.fontWeight,"normal"),Ne=dt.extend("--ft-typography-body1-letter-spacing",ee.letterSpacing,"0.496px"),Ae=dt.extend("--ft-typography-body1-line-height",ee.lineHeight,"24px"),Me=dt.extend("--ft-typography-body1-text-transform",ee.textTransform,"inherit"),Te=dt.extend("--ft-typography-body2-font-family",te),ze=dt.extend("--ft-typography-body2-font-size",ee.fontSize,"14px"),Fe=dt.extend("--ft-typography-body2-font-weight",ee.fontWeight,"normal"),je=dt.extend("--ft-typography-body2-letter-spacing",ee.letterSpacing,"0.252px"),Ue=dt.extend("--ft-typography-body2-line-height",ee.lineHeight,"20px"),Be=dt.extend("--ft-typography-body2-text-transform",ee.textTransform,"inherit"),_e=dt.extend("--ft-typography-caption-font-family",te),De=dt.extend("--ft-typography-caption-font-size",ee.fontSize,"12px"),
|
|
262
|
+
const qt=t=>({_$litStatic$:t}),Gt=new Map,Xt=(t=>(e,...i)=>{var r;const o=i.length;let n,a;const s=[],c=[];let p,l=0,d=!1;for(;l<o;){for(p=e[l];l<o&&void 0!==(a=i[l],n=null===(r=a)||void 0===r?void 0:r._$litStatic$);)p+=n+e[++l],d=!0;c.push(a),s.push(p),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=Gt.get(t))&&(s.raw=s,Gt.set(t,e=s)),i=c}return t(e,...i)})(F);var Jt,Yt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>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"}(Jt||(Jt={}));const Qt=dt.extend("--ft-typography-font-family",ht.titleFont),te=dt.extend("--ft-typography-font-family",ht.contentFont),ee={fontFamily:te,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","SIZE","24px"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ie=dt.extend("--ft-typography-title-font-family",Qt),re=dt.extend("--ft-typography-title-font-size",ee.fontSize,"20px"),oe=dt.extend("--ft-typography-title-font-weight",ee.fontWeight,"normal"),ne=dt.extend("--ft-typography-title-letter-spacing",ee.letterSpacing,"0.15px"),ae=dt.extend("--ft-typography-title-line-height",ee.lineHeight,"24px"),se=dt.extend("--ft-typography-title-text-transform",ee.textTransform,"inherit"),ce=dt.extend("--ft-typography-title-dense-font-family",Qt),pe=dt.extend("--ft-typography-title-dense-font-size",ee.fontSize,"14px"),le=dt.extend("--ft-typography-title-dense-font-weight",ee.fontWeight,"normal"),de=dt.extend("--ft-typography-title-dense-letter-spacing",ee.letterSpacing,"0.105px"),ue=dt.extend("--ft-typography-title-dense-line-height",ee.lineHeight,"24px"),he=dt.extend("--ft-typography-title-dense-text-transform",ee.textTransform,"inherit"),fe=dt.extend("--ft-typography-subtitle1-font-family",te),me=dt.extend("--ft-typography-subtitle1-font-size",ee.fontSize,"16px"),ye=dt.extend("--ft-typography-subtitle1-font-weight",ee.fontWeight,"600"),ve=dt.extend("--ft-typography-subtitle1-letter-spacing",ee.letterSpacing,"0.144px"),ge=dt.extend("--ft-typography-subtitle1-line-height",ee.lineHeight,"24px"),be=dt.extend("--ft-typography-subtitle1-text-transform",ee.textTransform,"inherit"),xe=dt.extend("--ft-typography-subtitle2-font-family",te),we=dt.extend("--ft-typography-subtitle2-font-size",ee.fontSize,"14px"),$e=dt.extend("--ft-typography-subtitle2-font-weight",ee.fontWeight,"normal"),Oe=dt.extend("--ft-typography-subtitle2-letter-spacing",ee.letterSpacing,"0.098px"),Se=dt.extend("--ft-typography-subtitle2-line-height",ee.lineHeight,"24px"),ke=dt.extend("--ft-typography-subtitle2-text-transform",ee.textTransform,"inherit"),Ce=dt.extend("--ft-typography-body1-font-family",te),Re=dt.extend("--ft-typography-body1-font-size",ee.fontSize,"16px"),Ee=dt.extend("--ft-typography-body1-font-weight",ee.fontWeight,"normal"),Ne=dt.extend("--ft-typography-body1-letter-spacing",ee.letterSpacing,"0.496px"),Ae=dt.extend("--ft-typography-body1-line-height",ee.lineHeight,"24px"),Me=dt.extend("--ft-typography-body1-text-transform",ee.textTransform,"inherit"),Te=dt.extend("--ft-typography-body2-font-family",te),ze=dt.extend("--ft-typography-body2-font-size",ee.fontSize,"14px"),Fe=dt.extend("--ft-typography-body2-font-weight",ee.fontWeight,"normal"),je=dt.extend("--ft-typography-body2-letter-spacing",ee.letterSpacing,"0.252px"),Ue=dt.extend("--ft-typography-body2-line-height",ee.lineHeight,"20px"),Be=dt.extend("--ft-typography-body2-text-transform",ee.textTransform,"inherit"),_e=dt.extend("--ft-typography-caption-font-family",te),De=dt.extend("--ft-typography-caption-font-size",ee.fontSize,"12px"),Le=dt.extend("--ft-typography-caption-font-weight",ee.fontWeight,"normal"),Ie=dt.extend("--ft-typography-caption-letter-spacing",ee.letterSpacing,"0.396px"),Pe=dt.extend("--ft-typography-caption-line-height",ee.lineHeight,"16px"),He=dt.extend("--ft-typography-caption-text-transform",ee.textTransform,"inherit"),We=dt.extend("--ft-typography-breadcrumb-font-family",te),Ve=dt.extend("--ft-typography-breadcrumb-font-size",ee.fontSize,"10px"),Ke=dt.extend("--ft-typography-breadcrumb-font-weight",ee.fontWeight,"normal"),Ze=dt.extend("--ft-typography-breadcrumb-letter-spacing",ee.letterSpacing,"0.33px"),qe=dt.extend("--ft-typography-breadcrumb-line-height",ee.lineHeight,"16px"),Ge=dt.extend("--ft-typography-breadcrumb-text-transform",ee.textTransform,"inherit"),Xe=dt.extend("--ft-typography-overline-font-family",te),Je=dt.extend("--ft-typography-overline-font-size",ee.fontSize,"10px"),Ye=dt.extend("--ft-typography-overline-font-weight",ee.fontWeight,"normal"),Qe=dt.extend("--ft-typography-overline-letter-spacing",ee.letterSpacing,"1.5px"),ti=dt.extend("--ft-typography-overline-line-height",ee.lineHeight,"16px"),ei=dt.extend("--ft-typography-overline-text-transform",ee.textTransform,"uppercase"),ii={fontFamily:dt.extend("--ft-typography-button-font-family",te),fontSize:dt.extend("--ft-typography-button-font-size",ee.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",ee.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",ee.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",ee.lineHeight,"16px"),textTransform:dt.extend("--ft-typography-button-text-transform",ee.textTransform,"uppercase")},ri=a`
|
|
263
263
|
.ft-typography--title {
|
|
264
264
|
font-family: ${ie};
|
|
265
265
|
font-size: ${re};
|
|
@@ -318,8 +318,8 @@ const qt=t=>({_$litStatic$:t}),Gt=new Map,Xt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
318
318
|
.ft-typography--caption {
|
|
319
319
|
font-family: ${_e};
|
|
320
320
|
font-size: ${De};
|
|
321
|
-
font-weight: ${
|
|
322
|
-
letter-spacing: ${
|
|
321
|
+
font-weight: ${Le};
|
|
322
|
+
letter-spacing: ${Ie};
|
|
323
323
|
line-height: ${Pe};
|
|
324
324
|
text-transform: ${He};
|
|
325
325
|
}
|
|
@@ -652,7 +652,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
652
652
|
</ft-tooltip>
|
|
653
653
|
`}resolveIcon(){return this.loading?F`
|
|
654
654
|
<ft-loader></ft-loader> `:this.icon?F`
|
|
655
|
-
<mwc-icon>${this.icon}</mwc-icon> `:U}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){
|
|
655
|
+
<mwc-icon>${this.icon}</mwc-icon> `:U}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}};zi.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":$i,"ft-typography":hi,"mwc-icon":mi,"ft-loader":ki},Ci([rt({type:Boolean})],zi.prototype,"primary",void 0),Ci([rt({type:Boolean})],zi.prototype,"outlined",void 0),Ci([rt({type:Boolean})],zi.prototype,"disabled",void 0),Ci([rt({type:Boolean})],zi.prototype,"dense",void 0),Ci([rt({type:Boolean})],zi.prototype,"round",void 0),Ci([rt({type:String})],zi.prototype,"label",void 0),Ci([rt({type:String})],zi.prototype,"icon",void 0),Ci([rt({type:Boolean})],zi.prototype,"trailingIcon",void 0),Ci([rt({type:Boolean})],zi.prototype,"loading",void 0),Ci([rt({type:String})],zi.prototype,"tooltipPosition",void 0),Ci([at(".ft-button")],zi.prototype,"button",void 0),Ci([at(".ft-button--label slot")],zi.prototype,"slottedContent",void 0),zi=Ci([lt("ft-button")],zi);var Fi=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};t.FtCollapsible=class extends ft{constructor(){super(...arguments),this.open=!1,this.label="Open here",this.primary=!1,this.secondary=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.openIcon="expand_less",this.closedIcon="expand_more",this.trailingIcon=!1}getStyles(){return a`
|
|
656
656
|
:host, :root {
|
|
657
657
|
display: block;
|
|
658
658
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-collapsible",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Collapsible web component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "^0.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-button": "^0.1.10",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "^0.1.10",
|
|
24
24
|
"lit": "^2.0.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "af9249642eff7416fb4aa6371f82cb3f99086cec"
|
|
27
27
|
}
|