@fluid-topics/ft-tabs 0.3.5 → 0.3.6
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-tabs.light.js +100 -99
- package/build/ft-tabs.min.js +110 -109
- package/package.json +6 -6
package/build/ft-tabs.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e,i,s,o,r,n){var l,a;!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=""}(l||(l={})),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=""}(a||(a={})),new Map([...["abw"].map((t=>[t,a.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,a.AUDIO])),...["avi"].map((t=>[t,a.AVI])),...["chm","xhs"].map((t=>[t,a.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,a.CODE])),...["csv"].map((t=>[t,a.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,a.DITA])),...["epub"].map((t=>[t,a.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,a.EXCEL])),...["flac"].map((t=>[t,a.FLAC])),...["gif"].map((t=>[t,a.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,a.GZIP])),...["html","htm","xhtml"].map((t=>[t,a.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,a.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,a.JPEG])),...["json"].map((t=>[t,a.JSON])),...["m4a","m4p"].map((t=>[t,a.M4A])),...["mov","qt"].map((t=>[t,a.MOV])),...["mp3"].map((t=>[t,a.MP3])),...["mp4","m4v"].map((t=>[t,a.MP4])),...["ogg","oga"].map((t=>[t,a.OGG])),...["pdf","ps"].map((t=>[t,a.PDF])),...["png"].map((t=>[t,a.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,a.POWERPOINT])),...["rar"].map((t=>[t,a.RAR])),...["stp"].map((t=>[t,a.STP])),...["txt","rtf","md","mdown"].map((t=>[t,a.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,a.VIDEO])),...["wav"].map((t=>[t,a.WAV])),...["wma"].map((t=>[t,a.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,a.WORD])),...["xml","xsl","rdf"].map((t=>[t,a.XML])),...["yaml","yml","x-yaml"].map((t=>[t,a.YAML])),...["zip"].map((t=>[t,a.ZIP]))]);var p,h=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(p||(p={}));const f=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),c=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),d=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),y=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class
|
|
1
|
+
!function(t,e,i,s,o,r,n){var l,a;!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=""}(l||(l={})),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=""}(a||(a={})),new Map([...["abw"].map((t=>[t,a.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,a.AUDIO])),...["avi"].map((t=>[t,a.AVI])),...["chm","xhs"].map((t=>[t,a.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,a.CODE])),...["csv"].map((t=>[t,a.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,a.DITA])),...["epub"].map((t=>[t,a.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,a.EXCEL])),...["flac"].map((t=>[t,a.FLAC])),...["gif"].map((t=>[t,a.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,a.GZIP])),...["html","htm","xhtml"].map((t=>[t,a.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,a.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,a.JPEG])),...["json"].map((t=>[t,a.JSON])),...["m4a","m4p"].map((t=>[t,a.M4A])),...["mov","qt"].map((t=>[t,a.MOV])),...["mp3"].map((t=>[t,a.MP3])),...["mp4","m4v"].map((t=>[t,a.MP4])),...["ogg","oga"].map((t=>[t,a.OGG])),...["pdf","ps"].map((t=>[t,a.PDF])),...["png"].map((t=>[t,a.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,a.POWERPOINT])),...["rar"].map((t=>[t,a.RAR])),...["stp"].map((t=>[t,a.STP])),...["txt","rtf","md","mdown"].map((t=>[t,a.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,a.VIDEO])),...["wav"].map((t=>[t,a.WAV])),...["wma"].map((t=>[t,a.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,a.WORD])),...["xml","xsl","rdf"].map((t=>[t,a.XML])),...["yaml","yml","x-yaml"].map((t=>[t,a.YAML])),...["zip"].map((t=>[t,a.ZIP]))]);var p,h=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(p||(p={}));const f=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),c=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),d=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),y=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),x=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset");class u extends e.FtLitElement{constructor(){super(...arguments),this.variant=p.fluid_topics}getStyles(){return i.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
text-rendering: auto;
|
|
22
22
|
-webkit-font-smoothing: antialiased;
|
|
23
23
|
-moz-osx-font-smoothing: grayscale;
|
|
24
|
+
vertical-align: ${x};
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.ft-icon--fluid-topics {
|
|
@@ -39,14 +40,14 @@
|
|
|
39
40
|
${o.unsafeHTML(this.getIcon())}
|
|
40
41
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
41
42
|
</i>
|
|
42
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let s=this.textContent;return this.variant===p.file_format?null!==(t=a[s.toUpperCase()])&&void 0!==t?t:s:this.variant===p.fluid_topics?null!==(e=l[s.toUpperCase()])&&void 0!==e?e:s:i.nothing}}
|
|
43
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let s=this.textContent;return this.variant===p.file_format?null!==(t=a[s.toUpperCase()])&&void 0!==t?t:s:this.variant===p.fluid_topics?null!==(e=l[s.toUpperCase()])&&void 0!==e?e:s:i.nothing}}u.elementDefinitions={},h([s.property()],u.prototype,"variant",void 0),h([s.query("slot")],u.prototype,"slottedContent",void 0),e.customElement("ft-icon")(u);var g=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class b extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=p.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return i.html`
|
|
43
44
|
<style>
|
|
44
45
|
:host {
|
|
45
46
|
display: ${i.unsafeCSS(this.active?"block":"none")};
|
|
46
47
|
}
|
|
47
48
|
</style>
|
|
48
49
|
<slot></slot>
|
|
49
|
-
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}
|
|
50
|
+
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}b.elementDefinitions={},g([s.property({type:String})],b.prototype,"label",void 0),g([s.property({type:String})],b.prototype,"icon",void 0),g([s.property()],b.prototype,"iconVariant",void 0),g([s.property({type:Boolean})],b.prototype,"active",void 0),g([s.property({type:Boolean})],b.prototype,"disabled",void 0),g([s.property({type:String,reflect:!0})],b.prototype,"id",void 0),g([s.property({type:String,reflect:!0,attribute:"aria-labelledby"})],b.prototype,"ariaLabelledBy",void 0);var v=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const m=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),$=m,w=e.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),z=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),j=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),N=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),S=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),O=S,A=e.FtCssVariableFactory.extend("--ft-ripple-background-color",S),I=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),_=I,M=e.FtCssVariableFactory.extend("--ft-ripple-background-color",I);class T extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.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 e,i;let{x:s,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=s?s-r.x:r.width/2),this.originY=Math.round(null!=o?o-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 i.html`
|
|
50
51
|
<style>
|
|
51
52
|
.ft-ripple .ft-ripple--effect,
|
|
52
53
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
* Copyright 2017 Google LLC
|
|
70
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
72
|
*/
|
|
72
|
-
var T
|
|
73
|
+
var C;T.elementDefinitions={},T.styles=i.css`
|
|
73
74
|
:host {
|
|
74
75
|
display: contents;
|
|
75
76
|
}
|
|
@@ -91,27 +92,27 @@ var T;M.elementDefinitions={},M.styles=i.css`
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.ft-ripple .ft-ripple--background {
|
|
94
|
-
background-color: ${
|
|
95
|
+
background-color: ${w};
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.ft-ripple .ft-ripple--effect {
|
|
98
|
-
background-color: ${
|
|
99
|
+
background-color: ${$};
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
102
|
-
background-color: ${
|
|
103
|
+
background-color: ${M};
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
106
|
-
background-color: ${
|
|
107
|
+
background-color: ${_};
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
110
|
-
background-color: ${
|
|
111
|
+
background-color: ${A};
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
114
|
-
background-color: ${
|
|
115
|
+
background-color: ${O};
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
.ft-ripple .ft-ripple--background {
|
|
@@ -143,130 +144,130 @@ var T;M.elementDefinitions={},M.styles=i.css`
|
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
146
|
-
opacity: ${
|
|
147
|
+
opacity: ${z};
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
150
|
-
opacity: ${
|
|
151
|
+
opacity: ${N};
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
154
|
-
opacity: ${
|
|
155
|
+
opacity: ${j};
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
158
|
-
opacity: ${
|
|
159
|
+
opacity: ${k};
|
|
159
160
|
transform: translate(-50%, -50%) scale(1);
|
|
160
161
|
}
|
|
161
|
-
`,
|
|
162
|
+
`,v([s.property({type:Boolean})],T.prototype,"primary",void 0),v([s.property({type:Boolean})],T.prototype,"secondary",void 0),v([s.property({type:Boolean})],T.prototype,"unbounded",void 0),v([s.property({type:Boolean})],T.prototype,"activated",void 0),v([s.property({type:Boolean})],T.prototype,"selected",void 0),v([s.property({type:Boolean})],T.prototype,"disabled",void 0),v([s.state()],T.prototype,"hovered",void 0),v([s.state()],T.prototype,"focused",void 0),v([s.state()],T.prototype,"pressed",void 0),v([s.state()],T.prototype,"rippling",void 0),v([s.state()],T.prototype,"rippleSize",void 0),v([s.state()],T.prototype,"originX",void 0),v([s.state()],T.prototype,"originY",void 0),v([s.query(".ft-ripple")],T.prototype,"ripple",void 0),v([s.query(".ft-ripple--effect")],T.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(T);const B=globalThis.trustedTypes,E=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,D="?"+U,R=`<${D}>`,W=document,G=(t="")=>W.createComment(t),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,F=/>/g,H=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,V=/"/g,X=/^(?:script|style|textarea|title)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,et=W.createTreeWalker(W,129,null,!1),it=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=P;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===P?"!--"===a[1]?n=q:void 0!==a[1]?n=F:void 0!==a[2]?(X.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=H):void 0!==a[3]&&(n=H):n===H?">"===a[0]?(n=null!=o?o:P,p=-1):void 0===a[1]?p=-2:(p=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?H:'"'===a[3]?V:L):n===V||n===L?n=H:n===q||n===F?n=P:(n=H,o=void 0);const f=n===H&&t[e+1].startsWith("/>")?" ":"";r+=n===P?i+R:p>=0?(s.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+f):i+U+(-2===p?(s.push(void 0),e):f)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,s]};class st{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,p]=it(t,e);if(this.el=st.createElement(a,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=et.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?at:"?"===e[1]?ht:"@"===e[1]?ft:lt})}else l.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(X.test(s.tagName)){const t=s.textContent.split(U),e=t.length-1;if(e>0){s.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],G()),et.nextNode(),l.push({type:2,index:++o});s.append(t[e],G())}}}else if(8===s.nodeType)if(s.data===D)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(U,t+1));)l.push({type:7,index:o}),t+=U.length-1}o++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,s){var o,r,n,l;if(e===J)return e;let a=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const p=K(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,s)),void 0!==s?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[s]=a:i._$Cu=a),void 0!==a&&(e=ot(t,a._$AS(t,e.values),a,s)),e}class rt{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:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:W).importNode(i,!0);et.currentNode=o;let r=et.nextNode(),n=0,l=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new nt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ct(r,this,t)),this.v.push(e),a=s[++l]}n!==(null==a?void 0:a.index)&&(r=et.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 nt{constructor(t,e,i,s){var o;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=null===(o=null==s?void 0:s.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._$C_}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=ot(this,t,e),K(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==J&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>Z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==Q&&K(this._$AH)?this._$AA.nextSibling.data=t:this.k(W.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=st.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new rt(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new st(t)),e}S(t){Z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new nt(this.j(G()),this.j(G()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class lt{constructor(t,e,i,s,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=ot(this,t,e,0),r=!K(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=ot(this,s[i+n],e,n),l===J&&(l=this._$AH[n]),r||(r=!K(l)||l!==this._$AH[n]),l===Q?t=Q:t!==Q&&(t+=(null!=l?l:"")+o[n+1]),this._$AH[n]=l}r&&!s&&this.P(t)}P(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class at extends lt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Q?void 0:t}}const pt=B?B.emptyScript:"";class ht extends lt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Q?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends lt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:Q)===J)return;const s=this._$AH,o=t===Q&&s!==Q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==Q&&(s===Q||o);o&&this.element.removeEventListener(this.name,this,s),r&&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 ct{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){ot(this,t)}}const dt=window.litHtmlPolyfillSupport;null==dt||dt(st,nt),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
162
163
|
/**
|
|
163
164
|
* @license
|
|
164
165
|
* Copyright 2020 Google LLC
|
|
165
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
166
167
|
*/
|
|
167
|
-
const
|
|
168
|
+
const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void 0:t._$litStatic$},ut=t=>({_$litStatic$:t,r:yt}),gt=new Map,bt=(t=>(e,...i)=>{const s=i.length;let o,r;const n=[],l=[];let a,p=0,h=!1;for(;p<s;){for(a=e[p];p<s&&void 0!==(r=i[p],o=xt(r));)a+=o+e[++p],h=!0;l.push(r),n.push(a),p++}if(p===s&&n.push(e[s]),h){const t=n.join("$$lit$$");void 0===(e=gt.get(t))&&(n.raw=n,gt.set(t,e=n)),i=l}return t(e,...i)})(Y);var vt,mt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>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"}(vt||(vt={}));const $t=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),wt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),kt={fontFamily:wt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},zt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",$t),jt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",kt.fontSize,"20px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",kt.fontWeight,"normal"),St=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",kt.letterSpacing,"0.15px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",kt.lineHeight,"1.2"),At=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",kt.textTransform,"inherit"),It=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",$t),_t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",kt.fontSize,"14px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",kt.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",kt.letterSpacing,"0.105px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",kt.lineHeight,"1.7"),Bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",kt.textTransform,"inherit"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",wt),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",kt.fontSize,"16px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",kt.fontWeight,"600"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",kt.letterSpacing,"0.144px"),Wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",kt.lineHeight,"1.5"),Gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",kt.textTransform,"inherit"),Kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",wt),Zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",kt.fontSize,"14px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",kt.fontWeight,"normal"),qt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",kt.letterSpacing,"0.098px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",kt.lineHeight,"1.7"),Ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",kt.textTransform,"inherit"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",wt),Vt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",kt.fontSize,"16px"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",kt.fontWeight,"normal"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",kt.letterSpacing,"0.496px"),Jt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",kt.lineHeight,"1.5"),Qt=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",kt.textTransform,"inherit"),te=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",wt),ee=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",kt.fontSize,"14px"),ie=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",kt.fontWeight,"normal"),se=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",kt.letterSpacing,"0.252px"),oe=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",kt.lineHeight,"1.4"),re=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",kt.textTransform,"inherit"),ne=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",wt),le=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",kt.fontSize,"12px"),ae=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",kt.fontWeight,"normal"),pe=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",kt.letterSpacing,"0.396px"),he=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",kt.lineHeight,"1.33"),fe=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",kt.textTransform,"inherit"),ce=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",wt),de=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",kt.fontSize,"10px"),ye=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",kt.fontWeight,"normal"),xe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",kt.letterSpacing,"0.33px"),ue=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",kt.lineHeight,"1.6"),ge=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",kt.textTransform,"inherit"),be=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",wt),ve=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",kt.fontSize,"10px"),me=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",kt.fontWeight,"normal"),$e=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",kt.letterSpacing,"1.5px"),we=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",kt.lineHeight,"1.6"),ke=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",kt.textTransform,"uppercase"),ze=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",wt),je=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",kt.fontSize,"14px"),Ne=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",kt.fontWeight,"600"),Se=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",kt.letterSpacing,"1.246px"),Oe=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",kt.lineHeight,"1.15"),Ae=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",kt.textTransform,"uppercase"),Ie=i.css`
|
|
168
169
|
.ft-typography--title {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
170
|
+
font-family: ${zt};
|
|
171
|
+
font-size: ${jt};
|
|
172
|
+
font-weight: ${Nt};
|
|
173
|
+
letter-spacing: ${St};
|
|
174
|
+
line-height: ${Ot};
|
|
175
|
+
text-transform: ${At};
|
|
175
176
|
}
|
|
176
|
-
`,
|
|
177
|
+
`,_e=i.css`
|
|
177
178
|
.ft-typography--title-dense {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
179
|
+
font-family: ${It};
|
|
180
|
+
font-size: ${_t};
|
|
181
|
+
font-weight: ${Mt};
|
|
182
|
+
letter-spacing: ${Tt};
|
|
183
|
+
line-height: ${Ct};
|
|
184
|
+
text-transform: ${Bt};
|
|
184
185
|
}
|
|
185
|
-
`,
|
|
186
|
+
`,Me=i.css`
|
|
186
187
|
.ft-typography--subtitle1 {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
188
|
+
font-family: ${Et};
|
|
189
|
+
font-size: ${Ut};
|
|
190
|
+
font-weight: ${Dt};
|
|
191
|
+
letter-spacing: ${Rt};
|
|
192
|
+
line-height: ${Wt};
|
|
193
|
+
text-transform: ${Gt};
|
|
193
194
|
}
|
|
194
|
-
`,
|
|
195
|
+
`,Te=i.css`
|
|
195
196
|
.ft-typography--subtitle2 {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
197
|
+
font-family: ${Kt};
|
|
198
|
+
font-size: ${Zt};
|
|
199
|
+
font-weight: ${Pt};
|
|
200
|
+
letter-spacing: ${qt};
|
|
201
|
+
line-height: ${Ft};
|
|
202
|
+
text-transform: ${Ht};
|
|
202
203
|
}
|
|
203
204
|
|
|
204
|
-
`,
|
|
205
|
+
`,Ce=i.css`
|
|
205
206
|
.ft-typography--body1 {
|
|
206
|
-
font-family: ${
|
|
207
|
-
font-size: ${
|
|
208
|
-
font-weight: ${
|
|
209
|
-
letter-spacing: ${
|
|
210
|
-
line-height: ${
|
|
211
|
-
text-transform: ${
|
|
207
|
+
font-family: ${Lt};
|
|
208
|
+
font-size: ${Vt};
|
|
209
|
+
font-weight: ${Xt};
|
|
210
|
+
letter-spacing: ${Yt};
|
|
211
|
+
line-height: ${Jt};
|
|
212
|
+
text-transform: ${Qt};
|
|
212
213
|
}
|
|
213
|
-
`,
|
|
214
|
+
`,Be=i.css`
|
|
214
215
|
.ft-typography--body2 {
|
|
215
|
-
font-family: ${
|
|
216
|
-
font-size: ${
|
|
217
|
-
font-weight: ${
|
|
218
|
-
letter-spacing: ${
|
|
219
|
-
line-height: ${
|
|
220
|
-
text-transform: ${
|
|
216
|
+
font-family: ${te};
|
|
217
|
+
font-size: ${ee};
|
|
218
|
+
font-weight: ${ie};
|
|
219
|
+
letter-spacing: ${se};
|
|
220
|
+
line-height: ${oe};
|
|
221
|
+
text-transform: ${re};
|
|
221
222
|
}
|
|
222
|
-
`,
|
|
223
|
+
`,Ee=i.css`
|
|
223
224
|
.ft-typography--caption {
|
|
224
|
-
font-family: ${
|
|
225
|
-
font-size: ${
|
|
226
|
-
font-weight: ${
|
|
227
|
-
letter-spacing: ${
|
|
228
|
-
line-height: ${
|
|
229
|
-
text-transform: ${
|
|
225
|
+
font-family: ${ne};
|
|
226
|
+
font-size: ${le};
|
|
227
|
+
font-weight: ${ae};
|
|
228
|
+
letter-spacing: ${pe};
|
|
229
|
+
line-height: ${he};
|
|
230
|
+
text-transform: ${fe};
|
|
230
231
|
}
|
|
231
|
-
`,
|
|
232
|
+
`,Ue=i.css`
|
|
232
233
|
.ft-typography--breadcrumb {
|
|
233
|
-
font-family: ${
|
|
234
|
-
font-size: ${
|
|
235
|
-
font-weight: ${
|
|
236
|
-
letter-spacing: ${
|
|
237
|
-
line-height: ${
|
|
238
|
-
text-transform: ${
|
|
234
|
+
font-family: ${ce};
|
|
235
|
+
font-size: ${de};
|
|
236
|
+
font-weight: ${ye};
|
|
237
|
+
letter-spacing: ${xe};
|
|
238
|
+
line-height: ${ue};
|
|
239
|
+
text-transform: ${ge};
|
|
239
240
|
}
|
|
240
|
-
`,
|
|
241
|
+
`,De=i.css`
|
|
241
242
|
.ft-typography--overline {
|
|
242
|
-
font-family: ${
|
|
243
|
-
font-size: ${
|
|
244
|
-
font-weight: ${
|
|
245
|
-
letter-spacing: ${
|
|
246
|
-
line-height: ${
|
|
247
|
-
text-transform: ${
|
|
243
|
+
font-family: ${be};
|
|
244
|
+
font-size: ${ve};
|
|
245
|
+
font-weight: ${me};
|
|
246
|
+
letter-spacing: ${$e};
|
|
247
|
+
line-height: ${we};
|
|
248
|
+
text-transform: ${ke};
|
|
248
249
|
}
|
|
249
|
-
`,
|
|
250
|
+
`,Re=i.css`
|
|
250
251
|
.ft-typography--button {
|
|
251
|
-
font-family: ${
|
|
252
|
-
font-size: ${
|
|
253
|
-
font-weight: ${
|
|
254
|
-
letter-spacing: ${
|
|
255
|
-
line-height: ${
|
|
256
|
-
text-transform: ${
|
|
252
|
+
font-family: ${ze};
|
|
253
|
+
font-size: ${je};
|
|
254
|
+
font-weight: ${Ne};
|
|
255
|
+
letter-spacing: ${Se};
|
|
256
|
+
line-height: ${Oe};
|
|
257
|
+
text-transform: ${Ae};
|
|
257
258
|
}
|
|
258
|
-
`;class
|
|
259
|
-
<${
|
|
259
|
+
`;class We extends e.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?bt`
|
|
260
|
+
<${ut(this.element)}
|
|
260
261
|
class="ft-typography ft-typography--${this.variant}">
|
|
261
262
|
<slot></slot>
|
|
262
|
-
</${
|
|
263
|
-
`:
|
|
263
|
+
</${ut(this.element)}>
|
|
264
|
+
`:bt`
|
|
264
265
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
265
|
-
`}}
|
|
266
|
+
`}}We.styles=[Ie,_e,Me,Te,Ce,Be,Ee,Ue,De,Re,i.css`
|
|
266
267
|
.ft-typography {
|
|
267
268
|
vertical-align: inherit;
|
|
268
269
|
}
|
|
269
|
-
`],
|
|
270
|
+
`],mt([s.property()],We.prototype,"element",void 0),mt([s.property()],We.prototype,"variant",void 0),e.customElement("ft-typography")(We);var Ge,Ke=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};t.FtTabsAlignment=void 0,(Ge=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Ge.right="right",Ge.justify="justify";const Ze={colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system")};class Pe extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class qe extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>this.requestUpdate())),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){const t={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense};return i.html`
|
|
270
271
|
<div class="${n.classMap(t)}" part="container">
|
|
271
272
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
272
273
|
${r.repeat(this.ftTabs,((t,e)=>i.html`
|
|
@@ -288,7 +289,7 @@ const dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void
|
|
|
288
289
|
</ft-icon>
|
|
289
290
|
<ft-typography class="ft-tabs--tab-label"
|
|
290
291
|
part="tab-label"
|
|
291
|
-
variant="${
|
|
292
|
+
variant="${vt.body2}">
|
|
292
293
|
${t.label}
|
|
293
294
|
</ft-typography>
|
|
294
295
|
</button>
|
|
@@ -299,11 +300,11 @@ const dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void
|
|
|
299
300
|
<slot @slotchange=${this.onContentChange}></slot>
|
|
300
301
|
</div>
|
|
301
302
|
</div>
|
|
302
|
-
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new
|
|
303
|
+
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new Pe(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,s,o,r,n,l,a,p;this.activeTabIndicator&&(this.activeTabIndicator.style.width=(null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(s=null===(i=this.activeTab)||void 0===i?void 0:i.offsetLeft)&&void 0!==s?s:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null===(o=this.activeTab)||void 0===o?void 0:o.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(l=null===(n=this.activeTab)||void 0===n?void 0:n.offsetTop)&&void 0!==l?l:0)+(null!==(p=null===(a=this.activeTab)||void 0===a?void 0:a.clientHeight)&&void 0!==p?p:0)-this.activeTabIndicator.clientHeight+"px")}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}}qe.elementDefinitions={"ft-tab":b,"ft-ripple":T,"ft-typography":We,"ft-icon":u},qe.styles=i.css`
|
|
303
304
|
.ft-tabs {
|
|
304
305
|
display: flex;
|
|
305
306
|
flex-direction: column;
|
|
306
|
-
background-color: ${
|
|
307
|
+
background-color: ${Ze.colorSurface};
|
|
307
308
|
height: 100%;
|
|
308
309
|
}
|
|
309
310
|
|
|
@@ -343,15 +344,15 @@ const dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void
|
|
|
343
344
|
outline: none;
|
|
344
345
|
font-size: 16px;
|
|
345
346
|
line-height: 1;
|
|
346
|
-
color: ${
|
|
347
|
+
color: ${Ze.colorOnSurfaceMedium};
|
|
347
348
|
}
|
|
348
349
|
|
|
349
350
|
[role='tab'][aria-selected='true'] {
|
|
350
|
-
color: ${
|
|
351
|
+
color: ${Ze.colorPrimary};
|
|
351
352
|
}
|
|
352
353
|
|
|
353
354
|
[role='tab'][disabled] {
|
|
354
|
-
color: ${
|
|
355
|
+
color: ${Ze.colorOnSurfaceDisabled};
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
.ft-tabs--align-justify [role='tab'] {
|
|
@@ -378,7 +379,7 @@ const dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void
|
|
|
378
379
|
position: absolute;
|
|
379
380
|
height: 3px;
|
|
380
381
|
border-radius: 2px;
|
|
381
|
-
background-color: ${
|
|
382
|
+
background-color: ${Ze.colorPrimary};
|
|
382
383
|
transition: width 200ms ease, left 200ms ease, top 200ms ease;
|
|
383
384
|
}
|
|
384
385
|
|
|
@@ -387,4 +388,4 @@ const dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void
|
|
|
387
388
|
flex-grow: 1;
|
|
388
389
|
overflow: auto;
|
|
389
390
|
}
|
|
390
|
-
`,
|
|
391
|
+
`,Ke([s.property({type:Boolean})],qe.prototype,"dense",void 0),Ke([s.property({type:Boolean})],qe.prototype,"contentBefore",void 0),Ke([s.property()],qe.prototype,"alignTabs",void 0),Ke([s.state()],qe.prototype,"ftTabs",void 0),Ke([s.query("[role='tablist']")],qe.prototype,"tabsContainer",void 0),Ke([s.query("[aria-selected='true']")],qe.prototype,"activeTab",void 0),Ke([s.query(".ft-tabs--active-tab-indicator")],qe.prototype,"activeTabIndicator",void 0),Ke([s.property({type:Number,reflect:!0})],qe.prototype,"activeIndex",void 0),e.customElement("ft-tab")(b),e.customElement("ft-tabs")(qe),t.FtTab=b,t.FtTabs=qe,t.FtTabsCssVariables=Ze,t.IndexChangeEvent=Pe,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat,ftGlobals.litClassMap);
|