@fluid-topics/ft-filter 0.2.21 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filter-level.d.ts +14 -14
- package/build/ft-filter-level.js +14 -14
- package/build/ft-filter.d.ts +8 -8
- package/build/ft-filter.js +8 -8
- package/build/ft-filter.light.js +80 -79
- package/build/ft-filter.min.js +78 -77
- package/package.json +13 -13
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 l;const a=globalThis.trustedTypes,h=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,f="?"+p,c=`<${f}>`,d=document,u=(t="")=>d.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,x=/-->/g,y=/>/g,m
|
|
7
|
+
var l;const a=globalThis.trustedTypes,h=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,f="?"+p,c=`<${f}>`,d=document,u=(t="")=>d.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,x=/-->/g,y=/>/g,m=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),$=/'/g,k=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),C=new WeakMap,B=d.createTreeWalker(d,129,null,!1),j=(t,i)=>{const e=t.length-1,o=[];let s,r=2===i?"<svg>":"",n=g;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,f=0;for(;f<e.length&&(n.lastIndex=f,a=n.exec(e),null!==a);)f=n.lastIndex,n===g?"!--"===a[1]?n=x:void 0!==a[1]?n=y:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=m):void 0!==a[3]&&(n=m):n===m?">"===a[0]?(n=null!=s?s:g,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?m:'"'===a[3]?k:$):n===k||n===$?n=m:n===x||n===y?n=g:(n=m,s=void 0);const d=n===m&&t[i+1].startsWith("/>")?" ":"";r+=n===g?e+c:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+p+d):e+p+(-2===h?(o.push(void 0),i):d)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==h?h.createHTML(l):l,o]};class E{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[h,c]=j(t,i);if(this.el=E.createElement(h,e),B.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=B.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const e=c[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?F:"?"===i[1]?I:"@"===i[1]?_:N})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(w.test(o.tagName)){const t=o.textContent.split(p),i=t.length-1;if(i>0){o.textContent=a?a.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],u()),B.nextNode(),l.push({type:2,index:++s});o.append(t[i],u())}}}else if(8===o.nodeType)if(o.data===f)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)l.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,i){const e=d.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var s,r,n,l;if(i===S)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=v(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(n=(l=e)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=D(t,a._$AS(t,i.values),a,o)),i}class T{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:d).importNode(e,!0);B.currentNode=s;let r=B.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let i;2===a.type?i=new M(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new L(r,this,t)),this.v.push(i),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=B.nextNode(),n++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class M{constructor(t,i,e,o){var s;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),v(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==S&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>b(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==O&&v(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=E.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new T(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new E(t)),i}S(t){b(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new M(this.j(u()),this.j(u()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class N{constructor(t,i,e,o,s){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let r=!1;if(void 0===s)t=D(this,t,i,0),r=!v(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=D(this,o[e+n],i,n),l===S&&(l=this._$AH[n]),r||(r=!v(l)||l!==this._$AH[n]),l===O?t=O:t!==O&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.P(t)}P(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends N{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===O?void 0:t}}const A=a?a.emptyScript:"";class I extends N{constructor(){super(...arguments),this.type=4}P(t){t&&t!==O?this.element.setAttribute(this.name,A):this.element.removeAttribute(this.name)}}class _ extends N{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=D(this,t,i,0))&&void 0!==e?e:O)===S)return;const o=this._$AH,s=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==O&&(o===O||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const R=window.litHtmlPolyfillSupport;null==R||R(E,M),(null!==(l=globalThis.litHtmlVersions)&&void 0!==l?l:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const H=Symbol.for(""),
|
|
13
|
+
const H=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t._$litStatic$},U=t=>({_$litStatic$:t,r:H}),V=new Map,W=(t=>(i,...e)=>{const o=e.length;let s,r;const n=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(r=e[h],s=P(r));)a+=s+i[++h],p=!0;l.push(r),n.push(a),h++}if(h===o&&n.push(i[o]),p){const t=n.join("$$lit$$");void 0===(i=V.get(t))&&(n.raw=n,V.set(t,i=n)),e=l}return t(i,...e)})(z);var Z,K=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,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"}(Z||(Z={}));const G=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),q=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),X={fontFamily:q,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Y=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",G),J=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",X.fontSize,"20px"),Q=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),tt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),it=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",X.lineHeight,"1.2"),et=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",G),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",X.lineHeight,"1.7"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"1.5"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",X.lineHeight,"1.5"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit"),Ct={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",X.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit")},Bt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),jt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),Et=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",X.lineHeight,"1.33"),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Ft=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),At=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),It=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),_t=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"1.6"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Ht=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),Ut=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",X.lineHeight,"1.6"),Wt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Zt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",X.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",X.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase")},Kt=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${Y};
|
|
16
16
|
font-size: ${J};
|
|
@@ -69,10 +69,10 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
69
69
|
.ft-typography--caption {
|
|
70
70
|
font-family: ${Bt};
|
|
71
71
|
font-size: ${jt};
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
72
|
+
font-weight: ${Et};
|
|
73
|
+
letter-spacing: ${Dt};
|
|
74
|
+
line-height: ${Tt};
|
|
75
|
+
text-transform: ${Mt};
|
|
76
76
|
}
|
|
77
77
|
`,ti=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
@@ -87,10 +87,10 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
87
87
|
.ft-typography--overline {
|
|
88
88
|
font-family: ${Rt};
|
|
89
89
|
font-size: ${Ht};
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
90
|
+
font-weight: ${Pt};
|
|
91
|
+
letter-spacing: ${Ut};
|
|
92
|
+
line-height: ${Vt};
|
|
93
|
+
text-transform: ${Wt};
|
|
94
94
|
}
|
|
95
95
|
`,ei=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
@@ -101,18 +101,18 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
101
101
|
line-height: ${Zt.lineHeight};
|
|
102
102
|
text-transform: ${Zt.textTransform};
|
|
103
103
|
}
|
|
104
|
-
`;class oi extends i.FtLitElement{constructor(){super(...arguments),this.variant=Z.body1}render(){return this.element?
|
|
105
|
-
<${
|
|
104
|
+
`;class oi extends i.FtLitElement{constructor(){super(...arguments),this.variant=Z.body1}render(){return this.element?W`
|
|
105
|
+
<${U(this.element)}
|
|
106
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
107
107
|
<slot></slot>
|
|
108
|
-
</${
|
|
109
|
-
`:
|
|
108
|
+
</${U(this.element)}>
|
|
109
|
+
`:W`
|
|
110
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
111
111
|
`}}function si(t,i){return t.flatMap((t=>[t,...si(i(t),i)]))}oi.styles=[Kt,Gt,qt,Xt,Yt,Jt,Qt,ti,ii,ei,e.css`
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],K([o.property()],oi.prototype,"element",void 0),K([o.property()],oi.prototype,"variant",void 0),i.customElement("ft-typography")(oi);var ri=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const ni=i.
|
|
115
|
+
`],K([o.property()],oi.prototype,"element",void 0),K([o.property()],oi.prototype,"variant",void 0),i.customElement("ft-typography")(oi);var ri=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const ni=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),li={color:ni,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",ni),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ai=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),hi=ai,pi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",ai),fi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),ci=fi,di=i.FtCssVariableFactory.extend("--ft-ripple-background-color",fi);class ui extends i.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.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.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 e.html`
|
|
116
116
|
<style>
|
|
117
117
|
.ft-ripple .ft-ripple--effect,
|
|
118
118
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -218,7 +218,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
218
218
|
opacity: ${li.opacityContentOnSurfacePressed};
|
|
219
219
|
transform: translate(-50%, -50%) scale(1);
|
|
220
220
|
}
|
|
221
|
-
`,ri([o.property({type:Boolean})],ui.prototype,"primary",void 0),ri([o.property({type:Boolean})],ui.prototype,"secondary",void 0),ri([o.property({type:Boolean})],ui.prototype,"unbounded",void 0),ri([o.property({type:Boolean})],ui.prototype,"activated",void 0),ri([o.property({type:Boolean})],ui.prototype,"selected",void 0),ri([o.property({type:Boolean})],ui.prototype,"disabled",void 0),ri([o.state()],ui.prototype,"hovered",void 0),ri([o.state()],ui.prototype,"focused",void 0),ri([o.state()],ui.prototype,"pressed",void 0),ri([o.state()],ui.prototype,"rippling",void 0),ri([o.state()],ui.prototype,"rippleSize",void 0),ri([o.state()],ui.prototype,"originX",void 0),ri([o.state()],ui.prototype,"originY",void 0),ri([o.query(".ft-ripple")],ui.prototype,"ripple",void 0),ri([o.query(".ft-ripple--effect")],ui.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(ui);var vi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const bi=i.
|
|
221
|
+
`,ri([o.property({type:Boolean})],ui.prototype,"primary",void 0),ri([o.property({type:Boolean})],ui.prototype,"secondary",void 0),ri([o.property({type:Boolean})],ui.prototype,"unbounded",void 0),ri([o.property({type:Boolean})],ui.prototype,"activated",void 0),ri([o.property({type:Boolean})],ui.prototype,"selected",void 0),ri([o.property({type:Boolean})],ui.prototype,"disabled",void 0),ri([o.state()],ui.prototype,"hovered",void 0),ri([o.state()],ui.prototype,"focused",void 0),ri([o.state()],ui.prototype,"pressed",void 0),ri([o.state()],ui.prototype,"rippling",void 0),ri([o.state()],ui.prototype,"rippleSize",void 0),ri([o.state()],ui.prototype,"originX",void 0),ri([o.state()],ui.prototype,"originY",void 0),ri([o.query(".ft-ripple")],ui.prototype,"ripple",void 0),ri([o.query(".ft-ripple--effect")],ui.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(ui);var vi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const bi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),gi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),xi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),yi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),mi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system");class $i extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
|
|
222
222
|
<div part="container"
|
|
223
223
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
224
224
|
@mouseenter=${this.onHover}
|
|
@@ -265,7 +265,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
265
265
|
position: relative;
|
|
266
266
|
word-break: break-word;
|
|
267
267
|
}
|
|
268
|
-
`,vi([o.property()],$i.prototype,"text",void 0),vi([o.property({type:Boolean})],$i.prototype,"manual",void 0),vi([o.property({type:Boolean})],$i.prototype,"inline",void 0),vi([o.property({type:Number})],$i.prototype,"delay",void 0),vi([o.property()],$i.prototype,"position",void 0),vi([o.queryAssignedNodes("",!0)],$i.prototype,"slotNodes",void 0),vi([o.query(".ft-tooltip--container")],$i.prototype,"container",void 0),vi([o.query("slot")],$i.prototype,"target",void 0),vi([o.query(".ft-tooltip")],$i.prototype,"tooltip",void 0),vi([o.query(".ft-tooltip--content")],$i.prototype,"tooltipContent",void 0),vi([o.state()],$i.prototype,"visible",void 0),i.customElement("ft-tooltip")($i);const ki={color:i.
|
|
268
|
+
`,vi([o.property()],$i.prototype,"text",void 0),vi([o.property({type:Boolean})],$i.prototype,"manual",void 0),vi([o.property({type:Boolean})],$i.prototype,"inline",void 0),vi([o.property({type:Number})],$i.prototype,"delay",void 0),vi([o.property()],$i.prototype,"position",void 0),vi([o.queryAssignedNodes("",!0)],$i.prototype,"slotNodes",void 0),vi([o.query(".ft-tooltip--container")],$i.prototype,"container",void 0),vi([o.query("slot")],$i.prototype,"target",void 0),vi([o.query(".ft-tooltip")],$i.prototype,"tooltip",void 0),vi([o.query(".ft-tooltip--content")],$i.prototype,"tooltipContent",void 0),vi([o.state()],$i.prototype,"visible",void 0),i.customElement("ft-tooltip")($i);const ki={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")};class wi extends i.FtLitElement{static get styles(){return e.css`
|
|
269
269
|
:host {
|
|
270
270
|
line-height: 0;
|
|
271
271
|
}
|
|
@@ -341,47 +341,48 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
341
341
|
<div></div>
|
|
342
342
|
<div></div>
|
|
343
343
|
</div>
|
|
344
|
-
`}}var zi,Si;i.customElement("ft-loader")(wi),function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(zi||(zi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Si||(Si={})),new Map([...["abw"].map((t=>[t,Si.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Si.AUDIO])),...["avi"].map((t=>[t,Si.AVI])),...["chm","xhs"].map((t=>[t,Si.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Si.CODE])),...["csv"].map((t=>[t,Si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Si.DITA])),...["epub"].map((t=>[t,Si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Si.EXCEL])),...["flac"].map((t=>[t,Si.FLAC])),...["gif"].map((t=>[t,Si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Si.GZIP])),...["html","htm","xhtml"].map((t=>[t,Si.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Si.JPEG])),...["json"].map((t=>[t,Si.JSON])),...["m4a","m4p"].map((t=>[t,Si.M4A])),...["mov","qt"].map((t=>[t,Si.MOV])),...["mp3"].map((t=>[t,Si.MP3])),...["mp4","m4v"].map((t=>[t,Si.MP4])),...["ogg","oga"].map((t=>[t,Si.OGG])),...["pdf","ps"].map((t=>[t,Si.PDF])),...["png"].map((t=>[t,Si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Si.POWERPOINT])),...["rar"].map((t=>[t,Si.RAR])),...["stp"].map((t=>[t,Si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Si.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Si.VIDEO])),...["wav"].map((t=>[t,Si.WAV])),...["wma"].map((t=>[t,Si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Si.WORD])),...["xml","xsl","rdf"].map((t=>[t,Si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Si.YAML])),...["zip"].map((t=>[t,Si.ZIP]))]);var Oi,Ci=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oi||(Oi={}));const Bi={size:i.
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
</i>
|
|
349
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===Oi.file_format?null!==(t=Si[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Oi.fluid_topics?null!==(i=zi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ji.elementDefinitions={},ji.styles=e.css`
|
|
350
|
-
:host {
|
|
351
|
-
display: inline-block;
|
|
352
|
-
}
|
|
353
|
-
:host, i.ft-icon {
|
|
354
|
-
width: ${Bi.size};
|
|
355
|
-
height: ${Bi.size};
|
|
356
|
-
text-align: center;
|
|
357
|
-
}
|
|
344
|
+
`}}var zi,Si;i.customElement("ft-loader")(wi),function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(zi||(zi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Si||(Si={})),new Map([...["abw"].map((t=>[t,Si.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Si.AUDIO])),...["avi"].map((t=>[t,Si.AVI])),...["chm","xhs"].map((t=>[t,Si.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Si.CODE])),...["csv"].map((t=>[t,Si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Si.DITA])),...["epub"].map((t=>[t,Si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Si.EXCEL])),...["flac"].map((t=>[t,Si.FLAC])),...["gif"].map((t=>[t,Si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Si.GZIP])),...["html","htm","xhtml"].map((t=>[t,Si.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Si.JPEG])),...["json"].map((t=>[t,Si.JSON])),...["m4a","m4p"].map((t=>[t,Si.M4A])),...["mov","qt"].map((t=>[t,Si.MOV])),...["mp3"].map((t=>[t,Si.MP3])),...["mp4","m4v"].map((t=>[t,Si.MP4])),...["ogg","oga"].map((t=>[t,Si.OGG])),...["pdf","ps"].map((t=>[t,Si.PDF])),...["png"].map((t=>[t,Si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Si.POWERPOINT])),...["rar"].map((t=>[t,Si.RAR])),...["stp"].map((t=>[t,Si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Si.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Si.VIDEO])),...["wav"].map((t=>[t,Si.WAV])),...["wma"].map((t=>[t,Si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Si.WORD])),...["xml","xsl","rdf"].map((t=>[t,Si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Si.YAML])),...["zip"].map((t=>[t,Si.ZIP]))]);var Oi,Ci=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oi||(Oi={}));const Bi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ji extends i.FtLitElement{constructor(){super(...arguments),this.variant=Oi.fluid_topics}getStyles(){return e.css`
|
|
345
|
+
:host {
|
|
346
|
+
display: inline-block;
|
|
347
|
+
}
|
|
358
348
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
font-style: normal;
|
|
365
|
-
font-variant: normal;
|
|
366
|
-
speak: none;
|
|
367
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
368
|
-
text-rendering: auto;
|
|
369
|
-
-webkit-font-smoothing: antialiased;
|
|
370
|
-
-moz-osx-font-smoothing: grayscale;
|
|
371
|
-
}
|
|
349
|
+
:host, i.ft-icon {
|
|
350
|
+
width: ${Bi.size};
|
|
351
|
+
height: ${Bi.size};
|
|
352
|
+
text-align: center;
|
|
353
|
+
}
|
|
372
354
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
355
|
+
i.ft-icon {
|
|
356
|
+
font-size: ${Bi.size};
|
|
357
|
+
line-height: 1;
|
|
358
|
+
font-weight: normal;
|
|
359
|
+
text-transform: none;
|
|
360
|
+
font-style: normal;
|
|
361
|
+
font-variant: normal;
|
|
362
|
+
speak: none;
|
|
363
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
364
|
+
text-rendering: auto;
|
|
365
|
+
-webkit-font-smoothing: antialiased;
|
|
366
|
+
-moz-osx-font-smoothing: grayscale;
|
|
367
|
+
}
|
|
376
368
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
369
|
+
.ft-icon--fluid-topics {
|
|
370
|
+
font-family: ${Bi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
371
|
+
}
|
|
380
372
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
373
|
+
.ft-icon--file-format {
|
|
374
|
+
font-family: ${Bi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.ft-icon--material {
|
|
378
|
+
font-family: ${Bi.materialFontFamily}, "Material Icons", sans-serif;
|
|
379
|
+
}
|
|
380
|
+
`}getTemplate(){return e.html`
|
|
381
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
382
|
+
${n.unsafeHTML(this.getIcon())}
|
|
383
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
384
|
+
</i>
|
|
385
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===Oi.file_format?null!==(t=Si[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Oi.fluid_topics?null!==(i=zi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ji.elementDefinitions={},Ci([o.property()],ji.prototype,"variant",void 0),Ci([o.query("slot")],ji.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ji);var Ei=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const Di=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ti={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Di,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",Zt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Di),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Mi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ni={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Mi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Mi)},Fi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Ai extends i.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[i.noTextSelect,e.css`
|
|
385
386
|
:host {
|
|
386
387
|
display: inline-block;
|
|
387
388
|
max-width: 100%;
|
|
@@ -421,18 +422,18 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
421
422
|
border: none;
|
|
422
423
|
pointer-events: auto;
|
|
423
424
|
|
|
424
|
-
--ft-button-internal-font-size: ${
|
|
425
|
+
--ft-button-internal-font-size: ${Ti.fontSize};
|
|
425
426
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
426
|
-
--ft-button-internal-color: ${
|
|
427
|
-
${i.setVariable(Bi.size,
|
|
427
|
+
--ft-button-internal-color: ${Ti.color};
|
|
428
|
+
${i.setVariable(Bi.size,Ti.iconSize)};
|
|
428
429
|
--ft-button-internal-vertical-padding: 6px;
|
|
429
430
|
--ft-button-internal-horizontal-padding: 8px;
|
|
430
|
-
${i.setVariable(li.color,
|
|
431
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
431
|
+
${i.setVariable(li.color,Ti.rippleColor)};
|
|
432
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ti.iconSize});
|
|
432
433
|
|
|
433
|
-
border-radius: ${
|
|
434
|
+
border-radius: ${Ti.borderRadius};
|
|
434
435
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
435
|
-
background-color: ${
|
|
436
|
+
background-color: ${Ti.backgroundColor};
|
|
436
437
|
color: var(--ft-button-internal-color);
|
|
437
438
|
-webkit-mask-image: radial-gradient(white, black);
|
|
438
439
|
}
|
|
@@ -453,7 +454,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
453
454
|
|
|
454
455
|
.ft-button[disabled] {
|
|
455
456
|
filter: grayscale(1);
|
|
456
|
-
opacity: ${
|
|
457
|
+
opacity: ${Ti.opacityDisabled};
|
|
457
458
|
}
|
|
458
459
|
|
|
459
460
|
.ft-button.ft-button--primary {
|
|
@@ -512,7 +513,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
512
513
|
}
|
|
513
514
|
|
|
514
515
|
ft-loader {
|
|
515
|
-
${i.setVariable(ki.size,
|
|
516
|
+
${i.setVariable(ki.size,Ti.iconSize)};
|
|
516
517
|
${i.setVariable(ki.color,"var(--ft-button-internal-color)")};
|
|
517
518
|
}
|
|
518
519
|
`]}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":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
|
|
@@ -537,7 +538,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
537
538
|
</ft-tooltip>
|
|
538
539
|
`}resolveIcon(){return this.loading?e.html`
|
|
539
540
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
540
|
-
<ft-icon variant="material">${this.icon}</ft-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}}Ai.elementDefinitions={"ft-ripple":ui,"ft-tooltip":$i,"ft-typography":oi,"ft-icon":ji,"ft-loader":wi},
|
|
541
|
+
<ft-icon variant="material">${this.icon}</ft-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}}Ai.elementDefinitions={"ft-ripple":ui,"ft-tooltip":$i,"ft-typography":oi,"ft-icon":ji,"ft-loader":wi},Ei([o.property({type:Boolean})],Ai.prototype,"primary",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"outlined",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"disabled",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"dense",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"round",void 0),Ei([o.property({type:String})],Ai.prototype,"label",void 0),Ei([o.property({type:String})],Ai.prototype,"icon",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"trailingIcon",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"loading",void 0),Ei([o.property({type:String})],Ai.prototype,"tooltipPosition",void 0),Ei([o.query(".ft-button")],Ai.prototype,"button",void 0),Ei([o.query(".ft-button--label slot")],Ai.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ai);var Ii=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const _i=i.FtCssVariableFactory.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),Li=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Ri=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),Hi=i.FtCssVariableFactory.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),Pi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system");class Ui extends i.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return e.html`
|
|
541
542
|
<label class="${r.classMap(t)}" for="checkbox-input">
|
|
542
543
|
<div class="ft-checkbox--box-container">
|
|
543
544
|
<ft-ripple
|
|
@@ -563,7 +564,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
563
564
|
<slot></slot>
|
|
564
565
|
</ft-typography>
|
|
565
566
|
</label>
|
|
566
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}}
|
|
567
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}}Ui.elementDefinitions={"ft-ripple":ui,"ft-typography":oi},Ui.styles=e.css`
|
|
567
568
|
* {
|
|
568
569
|
box-sizing: border-box;
|
|
569
570
|
}
|
|
@@ -578,7 +579,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
578
579
|
}
|
|
579
580
|
|
|
580
581
|
.ft-checkbox--disabled {
|
|
581
|
-
color: ${
|
|
582
|
+
color: ${Pi};
|
|
582
583
|
}
|
|
583
584
|
|
|
584
585
|
input {
|
|
@@ -619,9 +620,9 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
619
620
|
}
|
|
620
621
|
|
|
621
622
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
622
|
-
border-color: ${
|
|
623
|
+
border-color: ${Pi};
|
|
623
624
|
background-color: transparent;
|
|
624
|
-
color: ${
|
|
625
|
+
color: ${Pi};
|
|
625
626
|
}
|
|
626
627
|
|
|
627
628
|
.ft-checkbox--checkmark {
|
|
@@ -640,7 +641,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
640
641
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
641
642
|
opacity: 1;
|
|
642
643
|
}
|
|
643
|
-
`,Ii([o.property()],
|
|
644
|
+
`,Ii([o.property()],Ui.prototype,"name",void 0),Ii([o.property({type:Boolean,reflect:!0})],Ui.prototype,"checked",void 0),Ii([o.property({type:Boolean})],Ui.prototype,"indeterminate",void 0),Ii([o.property({type:Boolean})],Ui.prototype,"disabled",void 0),Ii([o.query(".ft-checkbox")],Ui.prototype,"container",void 0),Ii([o.query("ft-ripple")],Ui.prototype,"ripple",void 0),i.customElement("ft-checkbox")(Ui);var Vi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const Wi=i.FtCssVariableFactory.extend("--ft-radio-text-color",i.designSystemVariables.colorOnSurfaceHigh),Zi=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Ki=(i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),i.FtCssVariableFactory.extend("--ft-radio-border-color",i.designSystemVariables.colorOnSurfaceMedium)),Gi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system");class qi extends CustomEvent{constructor(t,i){super("change",{detail:{value:t,checked:i},bubbles:!0,composed:!0})}}class Xi extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return e.html`
|
|
644
645
|
<div class="${r.classMap(t)}">
|
|
645
646
|
<div class="ft-radio--box-container">
|
|
646
647
|
<ft-ripple
|
|
@@ -672,7 +673,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
672
673
|
|
|
673
674
|
.ft-radio {
|
|
674
675
|
box-sizing: border-box;
|
|
675
|
-
color: ${
|
|
676
|
+
color: ${Wi};
|
|
676
677
|
|
|
677
678
|
display: inline-flex;
|
|
678
679
|
align-items: center;
|
|
@@ -744,7 +745,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
744
745
|
.ft-radio--disabled .ft-radio--box:after {
|
|
745
746
|
background-color: ${Gi};
|
|
746
747
|
}
|
|
747
|
-
`,
|
|
748
|
+
`,Vi([o.property()],Xi.prototype,"value",void 0),Vi([o.property()],Xi.prototype,"name",void 0),Vi([o.property({type:Boolean,reflect:!0})],Xi.prototype,"checked",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),Vi([o.query(".ft-radio")],Xi.prototype,"container",void 0),Vi([o.query("ft-ripple")],Xi.prototype,"ripple",void 0),Vi([o.query("input")],Xi.prototype,"input",void 0);var Yi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};class Ji extends i.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return e.html`
|
|
748
749
|
<slot @slotchange=${this.onSlotChange}
|
|
749
750
|
@change=${this.onChange}
|
|
750
751
|
@keydown=${this.onKeyDown}
|
|
@@ -754,7 +755,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
754
755
|
:host {
|
|
755
756
|
display: contents;
|
|
756
757
|
}
|
|
757
|
-
`,Yi([o.property()],Ji.prototype,"name",void 0),Yi([o.queryAssignedElements()],Ji.prototype,"radioButtons",void 0),i.customElement("ft-radio")(Xi),i.customElement("ft-radio-group")(Ji);var Qi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const te={borderRadiusM:i.
|
|
758
|
+
`,Yi([o.property()],Ji.prototype,"name",void 0),Yi([o.queryAssignedElements()],Ji.prototype,"radioButtons",void 0),i.customElement("ft-radio")(Xi),i.customElement("ft-radio-group")(Ji);var Qi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const te={borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:i.FtCssVariableFactory.external(Ct.fontFamily,"Body2 typography"),fontSize:i.FtCssVariableFactory.external(Ct.fontSize,"Body2 typography"),fontWeight:i.FtCssVariableFactory.external(Ct.fontWeight,"Body2 typography"),letterSpacing:i.FtCssVariableFactory.external(Ct.letterSpacing,"Body2 typography"),lineHeight:i.FtCssVariableFactory.external(Ct.lineHeight,"Body2 typography"),textTransform:i.FtCssVariableFactory.external(Ct.textTransform,"Body2 typography")};class ie extends i.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,i;return null!==(i=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==i?i: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 i=t.slice(0,this.limit);return e.html`
|
|
758
759
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
759
760
|
${null==this.parent?null:e.html`
|
|
760
761
|
<div tabindex="0"
|
|
@@ -818,7 +819,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
818
819
|
@change=${t=>t.stopPropagation()}>
|
|
819
820
|
${t.label}
|
|
820
821
|
</ft-radio>
|
|
821
|
-
`}onRadioKeyUp(t,i){i.selected&&" "===t.key&&this.optionsChanged(t,i)}optionsChanged(t,i){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:i}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ie.elementDefinitions={"ft-button":Ai,"ft-ripple":ui,"ft-typography":oi,"ft-checkbox":
|
|
822
|
+
`}onRadioKeyUp(t,i){i.selected&&" "===t.key&&this.optionsChanged(t,i)}optionsChanged(t,i){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:i}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ie.elementDefinitions={"ft-button":Ai,"ft-ripple":ui,"ft-typography":oi,"ft-checkbox":Ui,"ft-icon":ji,"ft-radio":Xi},ie.styles=[e.css`
|
|
822
823
|
.ft-filter-level--container {
|
|
823
824
|
display: flex;
|
|
824
825
|
flex-direction: column;
|
|
@@ -868,7 +869,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
868
869
|
}
|
|
869
870
|
|
|
870
871
|
ft-button {
|
|
871
|
-
${i.setVariable(
|
|
872
|
+
${i.setVariable(Ti.color,te.colorOnSurface)};
|
|
872
873
|
}
|
|
873
874
|
|
|
874
875
|
ft-radio, ft-checkbox {
|
|
@@ -884,7 +885,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
884
885
|
margin: 10px 0;
|
|
885
886
|
color: ${te.colorOnSurfaceMedium};
|
|
886
887
|
}
|
|
887
|
-
`],Qi([o.property({type:String})],ie.prototype,"id",void 0),Qi([o.property({type:Object})],ie.prototype,"parent",void 0),Qi([o.property({type:Array})],ie.prototype,"options",void 0),Qi([o.property({type:Boolean})],ie.prototype,"multivalued",void 0),Qi([o.property({type:Boolean})],ie.prototype,"disabled",void 0),Qi([o.property({type:Boolean})],ie.prototype,"hideSelectedOptions",void 0),Qi([o.property({type:Boolean})],ie.prototype,"preventNavigation",void 0),Qi([o.property({type:String})],ie.prototype,"filter",void 0),Qi([o.property({type:String})],ie.prototype,"moreValuesButtonLabel",void 0),Qi([o.property({type:String})],ie.prototype,"noValuesLabel",void 0),Qi([o.property({type:Number})],ie.prototype,"displayedValuesLimit",void 0),Qi([o.query(".ft-filter-level--container")],ie.prototype,"container",void 0),Qi([o.state()],ie.prototype,"displayedPages",void 0);var ee=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const oe={buttonsColor:i.
|
|
888
|
+
`],Qi([o.property({type:String})],ie.prototype,"id",void 0),Qi([o.property({type:Object})],ie.prototype,"parent",void 0),Qi([o.property({type:Array})],ie.prototype,"options",void 0),Qi([o.property({type:Boolean})],ie.prototype,"multivalued",void 0),Qi([o.property({type:Boolean})],ie.prototype,"disabled",void 0),Qi([o.property({type:Boolean})],ie.prototype,"hideSelectedOptions",void 0),Qi([o.property({type:Boolean})],ie.prototype,"preventNavigation",void 0),Qi([o.property({type:String})],ie.prototype,"filter",void 0),Qi([o.property({type:String})],ie.prototype,"moreValuesButtonLabel",void 0),Qi([o.property({type:String})],ie.prototype,"noValuesLabel",void 0),Qi([o.property({type:Number})],ie.prototype,"displayedValuesLimit",void 0),Qi([o.query(".ft-filter-level--container")],ie.prototype,"container",void 0),Qi([o.state()],ie.prototype,"displayedPages",void 0);var ee=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const oe={buttonsColor:i.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system")};class se extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class re extends i.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 i.Debouncer(200),this.updateScrollDebouncer=new i.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}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=r.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":i.isSafari}),o=this.controls&&this.withScroll;return e.html`
|
|
888
889
|
<div part="container" class="${t}">
|
|
889
890
|
<ft-button
|
|
890
891
|
class="ft-snap-scroll--previous"
|
|
@@ -989,8 +990,8 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
989
990
|
z-index: ${oe.buttonsZIndex};
|
|
990
991
|
opacity: 1;
|
|
991
992
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
992
|
-
${i.setVariable(
|
|
993
|
-
${i.setVariable(
|
|
993
|
+
${i.setVariable(Ti.backgroundColor,"transparent")};
|
|
994
|
+
${i.setVariable(Ti.color,oe.buttonsColor)};
|
|
994
995
|
}
|
|
995
996
|
|
|
996
997
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1033,7 +1034,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
1033
1034
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1034
1035
|
background-color: ${oe.colorSurface};
|
|
1035
1036
|
}
|
|
1036
|
-
`,ee([o.property({type:Boolean})],re.prototype,"horizontal",void 0),ee([o.property({type:Boolean})],re.prototype,"hideScrollbar",void 0),ee([o.property({type:Boolean})],re.prototype,"controls",void 0),ee([o.property({type:Boolean})],re.prototype,"limitSize",void 0),ee([o.state()],re.prototype,"elements",void 0),ee([o.state()],re.prototype,"currentElement",void 0),ee([o.state()],re.prototype,"withScroll",void 0),ee([o.state()],re.prototype,"startReached",void 0),ee([o.state()],re.prototype,"endReached",void 0),ee([o.query(".ft-snap-scroll--content")],re.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(re);var ne=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const le={colorOutline:i.
|
|
1037
|
+
`,ee([o.property({type:Boolean})],re.prototype,"horizontal",void 0),ee([o.property({type:Boolean})],re.prototype,"hideScrollbar",void 0),ee([o.property({type:Boolean})],re.prototype,"controls",void 0),ee([o.property({type:Boolean})],re.prototype,"limitSize",void 0),ee([o.state()],re.prototype,"elements",void 0),ee([o.state()],re.prototype,"currentElement",void 0),ee([o.state()],re.prototype,"withScroll",void 0),ee([o.state()],re.prototype,"startReached",void 0),ee([o.state()],re.prototype,"endReached",void 0),ee([o.query(".ft-snap-scroll--content")],re.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(re);var ne=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const le={colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),transitionDuration:i.FtCssVariableFactory.external(i.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:i.FtCssVariableFactory.external(i.designSystemVariables.transitionTimingFunction,"Design system")};class ae extends CustomEvent{constructor(t){super("change",{detail:t})}}class he extends i.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",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 i.Debouncer(300),this.changeDebouncer=new i.Debouncer(10)}get flatOptions(){return si(this.options,(t=>{var i;return null!==(i=t.subOptions)&&void 0!==i?i:[]}))}render(){var t,i;const o=this.flatOptions.some((t=>t.selected));let s=this.withScroll||this.filter||null!==(i=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==i&&i;return e.html`
|
|
1037
1038
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1038
1039
|
part="container">
|
|
1039
1040
|
${this.label||o?e.html`
|
|
@@ -1131,7 +1132,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
1131
1132
|
.ft-filter--header ft-button {
|
|
1132
1133
|
flex-shrink: 0;
|
|
1133
1134
|
margin-left: auto;
|
|
1134
|
-
${i.setVariable(
|
|
1135
|
+
${i.setVariable(Ti.iconSize,"18px")};
|
|
1135
1136
|
}
|
|
1136
1137
|
|
|
1137
1138
|
.ft-filter--label {
|