@fluid-topics/ft-notice 0.1.17 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-notice.d.ts +2 -2
- package/build/ft-notice.inline-styles.js +281 -0
- package/build/ft-notice.js +5 -9
- package/build/ft-notice.light.js +128 -130
- package/build/ft-notice.min.js +157 -145
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +7 -7
package/build/ft-notice.light.js
CHANGED
|
@@ -1,158 +1,156 @@
|
|
|
1
|
-
!function(t,e,i,o,n){var s,r;!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=""}(s||(s={})),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=""}(r||(r={})),new Map([...["abw"].map((t=>[t,r.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,r.AUDIO])),...["avi"].map((t=>[t,r.AVI])),...["chm","xhs"].map((t=>[t,r.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,r.CODE])),...["csv"].map((t=>[t,r.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,r.DITA])),...["epub"].map((t=>[t,r.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,r.EXCEL])),...["flac"].map((t=>[t,r.FLAC])),...["gif"].map((t=>[t,r.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,r.GZIP])),...["html","htm","xhtml"].map((t=>[t,r.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,r.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,r.JPEG])),...["json"].map((t=>[t,r.JSON])),...["m4a","m4p"].map((t=>[t,r.M4A])),...["mov","qt"].map((t=>[t,r.MOV])),...["mp3"].map((t=>[t,r.MP3])),...["mp4","m4v"].map((t=>[t,r.MP4])),...["ogg","oga"].map((t=>[t,r.OGG])),...["pdf","ps"].map((t=>[t,r.PDF])),...["png"].map((t=>[t,r.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,r.POWERPOINT])),...["rar"].map((t=>[t,r.RAR])),...["stp"].map((t=>[t,r.STP])),...["txt","rtf","md","mdown"].map((t=>[t,r.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,r.VIDEO])),...["wav"].map((t=>[t,r.WAV])),...["wma"].map((t=>[t,r.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,r.WORD])),...["xml","xsl","rdf"].map((t=>[t,r.XML])),...["yaml","yml","x-yaml"].map((t=>[t,r.YAML])),...["zip"].map((t=>[t,r.ZIP]))]);var l
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
text-transform: none;
|
|
8
|
-
font-style: normal;
|
|
9
|
-
font-variant: normal;
|
|
10
|
-
speak: none;
|
|
11
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
12
|
-
text-rendering: auto;
|
|
13
|
-
-webkit-font-smoothing: antialiased;
|
|
14
|
-
-moz-osx-font-smoothing: grayscale;
|
|
15
|
-
}
|
|
16
|
-
`,f=e.css`
|
|
17
|
-
.ft-icon--file-format {
|
|
18
|
-
font-family: ${p.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
19
|
-
font-size: ${p.size};
|
|
20
|
-
line-height: 1;
|
|
21
|
-
font-weight: normal;
|
|
22
|
-
text-transform: none;
|
|
23
|
-
font-style: normal;
|
|
24
|
-
font-variant: normal;
|
|
25
|
-
speak: none;
|
|
26
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
27
|
-
text-rendering: auto;
|
|
28
|
-
-webkit-font-smoothing: antialiased;
|
|
29
|
-
-moz-osx-font-smoothing: grayscale;
|
|
30
|
-
}
|
|
31
|
-
`;let x=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=l.fluid_topics}getStyles(){return[h,f,e.css`
|
|
32
|
-
:host, i.ft-icon {
|
|
33
|
-
display: inline-block;
|
|
34
|
-
width: ${p.size};
|
|
35
|
-
height: ${p.size};
|
|
36
|
-
text-align: center;
|
|
37
|
-
}
|
|
38
|
-
`]}getTemplate(){return e.html`
|
|
39
|
-
<slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
|
|
40
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">${n.unsafeHTML(this.getIcon())}</i>
|
|
41
|
-
`}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;return this.variant===l.file_format?null!==(t=r[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=s[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};
|
|
1
|
+
!function(t,e,i,o,n){var s,r;!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=""}(s||(s={})),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=""}(r||(r={})),new Map([...["abw"].map((t=>[t,r.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,r.AUDIO])),...["avi"].map((t=>[t,r.AVI])),...["chm","xhs"].map((t=>[t,r.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,r.CODE])),...["csv"].map((t=>[t,r.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,r.DITA])),...["epub"].map((t=>[t,r.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,r.EXCEL])),...["flac"].map((t=>[t,r.FLAC])),...["gif"].map((t=>[t,r.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,r.GZIP])),...["html","htm","xhtml"].map((t=>[t,r.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,r.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,r.JPEG])),...["json"].map((t=>[t,r.JSON])),...["m4a","m4p"].map((t=>[t,r.M4A])),...["mov","qt"].map((t=>[t,r.MOV])),...["mp3"].map((t=>[t,r.MP3])),...["mp4","m4v"].map((t=>[t,r.MP4])),...["ogg","oga"].map((t=>[t,r.OGG])),...["pdf","ps"].map((t=>[t,r.PDF])),...["png"].map((t=>[t,r.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,r.POWERPOINT])),...["rar"].map((t=>[t,r.RAR])),...["stp"].map((t=>[t,r.STP])),...["txt","rtf","md","mdown"].map((t=>[t,r.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,r.VIDEO])),...["wav"].map((t=>[t,r.WAV])),...["wma"].map((t=>[t,r.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,r.WORD])),...["xml","xsl","rdf"].map((t=>[t,r.XML])),...["yaml","yml","x-yaml"].map((t=>[t,r.YAML])),...["zip"].map((t=>[t,r.ZIP]))]);var a,l=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(a||(a={}));const p={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class f extends e.FtLitElement{constructor(){super(...arguments),this.variant=a.fluid_topics}render(){return i.html`
|
|
2
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
3
|
+
${n.unsafeHTML(this.getIcon())}
|
|
4
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
5
|
+
</i>
|
|
6
|
+
`}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 o=this.textContent;return this.variant===a.file_format?null!==(t=r[o.toUpperCase()])&&void 0!==t?t:o:this.variant===a.fluid_topics?null!==(e=s[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}
|
|
42
7
|
/**
|
|
43
8
|
* @license
|
|
44
9
|
* Copyright 2017 Google LLC
|
|
45
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
11
|
*/
|
|
47
|
-
var
|
|
12
|
+
var h;f.elementDefinitions={},f.styles=i.css`
|
|
13
|
+
:host, i.ft-icon {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
width: ${p.size};
|
|
16
|
+
height: ${p.size};
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
i.ft-icon {
|
|
21
|
+
font-size: ${p.size};
|
|
22
|
+
line-height: 1;
|
|
23
|
+
font-weight: normal;
|
|
24
|
+
text-transform: none;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-variant: normal;
|
|
27
|
+
speak: none;
|
|
28
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
29
|
+
text-rendering: auto;
|
|
30
|
+
-webkit-font-smoothing: antialiased;
|
|
31
|
+
-moz-osx-font-smoothing: grayscale;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ft-icon--fluid-topics {
|
|
35
|
+
font-family: ${p.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ft-icon--file-format {
|
|
39
|
+
font-family: ${p.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ft-icon--material {
|
|
43
|
+
font-family: ${p.materialFontFamily}, "Material Icons", sans-serif;
|
|
44
|
+
}
|
|
45
|
+
`,l([o.property()],f.prototype,"variant",void 0),l([o.query("slot")],f.prototype,"slottedContent",void 0),e.customElement("ft-icon")(f);const x=globalThis.trustedTypes,y=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,g="?"+c,d=`<${g}>`,m=document,u=(t="")=>m.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,z=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,A=/"/g,_=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),O=new WeakMap,T=m.createTreeWalker(m,129,null,!1),M=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=$;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,f=0;for(;f<i.length&&(r.lastIndex=f,l=r.exec(i),null!==l);)f=r.lastIndex,r===$?"!--"===l[1]?r=w:void 0!==l[1]?r=z:void 0!==l[2]?(_.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=N):void 0!==l[3]&&(r=N):r===N?">"===l[0]?(r=null!=n?n:$,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?N:'"'===l[3]?A:j):r===A||r===j?r=N:r===w||r===z?r=$:(r=N,n=void 0);const h=r===N&&t[e+1].startsWith("/>")?" ":"";s+=r===$?i+d:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+c+h):i+c+(-2===p?(o.push(void 0),e):h)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(a):a,o]};class U{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,p]=M(t,e);if(this.el=U.createElement(l,i),T.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=T.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(c)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(c),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?G:"@"===e[1]?R:W})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(c),e=t.length-1;if(e>0){o.textContent=x?x.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),T.nextNode(),a.push({type:2,index:++n});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===g)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)a.push({type:7,index:n}),t+=c.length-1}n++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function E(t,e,i=t,o){var n,s,r,a;if(e===k)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=v(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=E(t,l._$AS(t,e.values),l,o)),e}class F{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:m).importNode(i,!0);T.currentNode=n;let s=T.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new C(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new q(s,this,t)),this.v.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=T.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class C{constructor(t,e,i,o){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),v(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return b(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&v(this._$AH)?this._$AA.nextSibling.data=t:this.S(m.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=U.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new F(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=O.get(t.strings);return void 0===e&&O.set(t.strings,e=new U(t)),e}A(t){b(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new C(this.M(u()),this.M(u()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class W{constructor(t,e,i,o,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=E(this,t,e,0),s=!v(t)||t!==this._$AH&&t!==k,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=E(this,o[i+r],e,r),a===k&&(a=this._$AH[r]),s||(s=!v(a)||a!==this._$AH[r]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.k(t)}k(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===I?void 0:t}}const K=x?x.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==I?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class R extends W{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=E(this,t,e,0))&&void 0!==i?i:I)===k)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==I&&(o===I||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class q{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){E(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(U,C),(null!==(h=globalThis.litHtmlVersions)&&void 0!==h?h:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
48
46
|
/**
|
|
49
47
|
* @license
|
|
50
48
|
* Copyright 2020 Google LLC
|
|
51
49
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
50
|
*/
|
|
53
|
-
const
|
|
51
|
+
const D=t=>({_$litStatic$:t}),L=new Map,B=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const a=[],l=[];let p,f=0,h=!1;for(;f<n;){for(p=e[f];f<n&&void 0!==(r=i[f],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++f],h=!0;l.push(r),a.push(p),f++}if(f===n&&a.push(e[n]),h){const t=a.join("$$lit$$");void 0===(e=L.get(t))&&(a.raw=a,L.set(t,e=a)),i=l}return t(e,...i)})(S);var J,P=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(J||(J={}));const Q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),V=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),X={fontFamily:V,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},Y=e.FtCssVariable.extend("--ft-typography-title-font-family",Q),tt=e.FtCssVariable.extend("--ft-typography-title-font-size",X.fontSize,"20px"),et=e.FtCssVariable.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),it=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),ot=e.FtCssVariable.extend("--ft-typography-title-line-height",X.lineHeight,"24px"),nt=e.FtCssVariable.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),st=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",Q),rt=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),at=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",X.lineHeight,"24px"),ft=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",V),xt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"24px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",V),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),$t=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"24px"),wt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),zt=e.FtCssVariable.extend("--ft-typography-body1-font-family",V),Nt=e.FtCssVariable.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),jt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),At=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),_t=e.FtCssVariable.extend("--ft-typography-body1-line-height",X.lineHeight,"24px"),St=e.FtCssVariable.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit"),kt=e.FtCssVariable.extend("--ft-typography-body2-font-family",V),It=e.FtCssVariable.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),Ot=e.FtCssVariable.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),Tt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),Mt=e.FtCssVariable.extend("--ft-typography-body2-line-height",X.lineHeight,"20px"),Ut=e.FtCssVariable.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),Et=e.FtCssVariable.extend("--ft-typography-caption-font-family",V),Ft=e.FtCssVariable.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),Ct=e.FtCssVariable.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),Wt=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),Zt=e.FtCssVariable.extend("--ft-typography-caption-line-height",X.lineHeight,"16px"),Kt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit"),Gt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",V),Rt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),qt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),Ht=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"16px"),Lt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),Bt=e.FtCssVariable.extend("--ft-typography-overline-font-family",V),Jt=e.FtCssVariable.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Pt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),Qt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Vt=e.FtCssVariable.extend("--ft-typography-overline-line-height",X.lineHeight,"16px"),Xt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Yt=e.FtCssVariable.extend("--ft-typography-button-font-family",V),te=e.FtCssVariable.extend("--ft-typography-button-font-size",X.fontSize,"14px"),ee=e.FtCssVariable.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),ie=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),oe=e.FtCssVariable.extend("--ft-typography-button-line-height",X.lineHeight,"16px"),ne=e.FtCssVariable.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase"),se=i.css`
|
|
54
52
|
.ft-typography--title {
|
|
55
|
-
font-family: ${
|
|
56
|
-
font-size: ${
|
|
57
|
-
font-weight: ${
|
|
58
|
-
letter-spacing: ${
|
|
59
|
-
line-height: ${
|
|
60
|
-
text-transform: ${
|
|
53
|
+
font-family: ${Y};
|
|
54
|
+
font-size: ${tt};
|
|
55
|
+
font-weight: ${et};
|
|
56
|
+
letter-spacing: ${it};
|
|
57
|
+
line-height: ${ot};
|
|
58
|
+
text-transform: ${nt};
|
|
61
59
|
}
|
|
62
|
-
`,
|
|
60
|
+
`,re=i.css`
|
|
63
61
|
.ft-typography--title-dense {
|
|
64
|
-
font-family: ${
|
|
65
|
-
font-size: ${
|
|
66
|
-
font-weight: ${
|
|
67
|
-
letter-spacing: ${
|
|
68
|
-
line-height: ${
|
|
69
|
-
text-transform: ${
|
|
62
|
+
font-family: ${st};
|
|
63
|
+
font-size: ${rt};
|
|
64
|
+
font-weight: ${at};
|
|
65
|
+
letter-spacing: ${lt};
|
|
66
|
+
line-height: ${pt};
|
|
67
|
+
text-transform: ${ft};
|
|
70
68
|
}
|
|
71
|
-
`,
|
|
69
|
+
`,ae=i.css`
|
|
72
70
|
.ft-typography--subtitle1 {
|
|
73
|
-
font-family: ${
|
|
74
|
-
font-size: ${
|
|
75
|
-
font-weight: ${
|
|
76
|
-
letter-spacing: ${
|
|
77
|
-
line-height: ${
|
|
78
|
-
text-transform: ${
|
|
71
|
+
font-family: ${ht};
|
|
72
|
+
font-size: ${xt};
|
|
73
|
+
font-weight: ${yt};
|
|
74
|
+
letter-spacing: ${ct};
|
|
75
|
+
line-height: ${gt};
|
|
76
|
+
text-transform: ${dt};
|
|
79
77
|
}
|
|
80
|
-
`,
|
|
78
|
+
`,le=i.css`
|
|
81
79
|
.ft-typography--subtitle2 {
|
|
82
|
-
font-family: ${
|
|
83
|
-
font-size: ${
|
|
84
|
-
font-weight: ${
|
|
85
|
-
letter-spacing: ${
|
|
86
|
-
line-height: ${
|
|
87
|
-
text-transform: ${
|
|
80
|
+
font-family: ${mt};
|
|
81
|
+
font-size: ${ut};
|
|
82
|
+
font-weight: ${vt};
|
|
83
|
+
letter-spacing: ${bt};
|
|
84
|
+
line-height: ${$t};
|
|
85
|
+
text-transform: ${wt};
|
|
88
86
|
}
|
|
89
87
|
|
|
90
|
-
`,
|
|
88
|
+
`,pe=i.css`
|
|
91
89
|
.ft-typography--body1 {
|
|
92
|
-
font-family: ${
|
|
93
|
-
font-size: ${
|
|
94
|
-
font-weight: ${
|
|
95
|
-
letter-spacing: ${
|
|
96
|
-
line-height: ${
|
|
97
|
-
text-transform: ${
|
|
90
|
+
font-family: ${zt};
|
|
91
|
+
font-size: ${Nt};
|
|
92
|
+
font-weight: ${jt};
|
|
93
|
+
letter-spacing: ${At};
|
|
94
|
+
line-height: ${_t};
|
|
95
|
+
text-transform: ${St};
|
|
98
96
|
}
|
|
99
|
-
`,
|
|
97
|
+
`,fe=i.css`
|
|
100
98
|
.ft-typography--body2 {
|
|
101
|
-
font-family: ${
|
|
99
|
+
font-family: ${kt};
|
|
102
100
|
font-size: ${It};
|
|
103
|
-
font-weight: ${
|
|
104
|
-
letter-spacing: ${
|
|
105
|
-
line-height: ${
|
|
106
|
-
text-transform: ${
|
|
101
|
+
font-weight: ${Ot};
|
|
102
|
+
letter-spacing: ${Tt};
|
|
103
|
+
line-height: ${Mt};
|
|
104
|
+
text-transform: ${Ut};
|
|
107
105
|
}
|
|
108
|
-
`,
|
|
106
|
+
`,he=i.css`
|
|
109
107
|
.ft-typography--caption {
|
|
110
|
-
font-family: ${
|
|
111
|
-
font-size: ${
|
|
112
|
-
font-weight: ${
|
|
113
|
-
letter-spacing: ${
|
|
114
|
-
line-height: ${
|
|
115
|
-
text-transform: ${
|
|
108
|
+
font-family: ${Et};
|
|
109
|
+
font-size: ${Ft};
|
|
110
|
+
font-weight: ${Ct};
|
|
111
|
+
letter-spacing: ${Wt};
|
|
112
|
+
line-height: ${Zt};
|
|
113
|
+
text-transform: ${Kt};
|
|
116
114
|
}
|
|
117
|
-
`,
|
|
115
|
+
`,xe=i.css`
|
|
118
116
|
.ft-typography--breadcrumb {
|
|
119
|
-
font-family: ${
|
|
120
|
-
font-size: ${
|
|
121
|
-
font-weight: ${
|
|
122
|
-
letter-spacing: ${
|
|
123
|
-
line-height: ${
|
|
124
|
-
text-transform: ${
|
|
117
|
+
font-family: ${Gt};
|
|
118
|
+
font-size: ${Rt};
|
|
119
|
+
font-weight: ${qt};
|
|
120
|
+
letter-spacing: ${Ht};
|
|
121
|
+
line-height: ${Dt};
|
|
122
|
+
text-transform: ${Lt};
|
|
125
123
|
}
|
|
126
|
-
`,
|
|
124
|
+
`,ye=i.css`
|
|
127
125
|
.ft-typography--overline {
|
|
128
|
-
font-family: ${
|
|
129
|
-
font-size: ${
|
|
130
|
-
font-weight: ${
|
|
131
|
-
letter-spacing: ${
|
|
132
|
-
line-height: ${
|
|
133
|
-
text-transform: ${
|
|
126
|
+
font-family: ${Bt};
|
|
127
|
+
font-size: ${Jt};
|
|
128
|
+
font-weight: ${Pt};
|
|
129
|
+
letter-spacing: ${Qt};
|
|
130
|
+
line-height: ${Vt};
|
|
131
|
+
text-transform: ${Xt};
|
|
134
132
|
}
|
|
135
|
-
`,
|
|
133
|
+
`,ce=i.css`
|
|
136
134
|
.ft-typography--button {
|
|
137
|
-
font-family: ${
|
|
138
|
-
font-size: ${
|
|
139
|
-
font-weight: ${
|
|
140
|
-
letter-spacing: ${
|
|
141
|
-
line-height: ${
|
|
142
|
-
text-transform: ${
|
|
135
|
+
font-family: ${Yt};
|
|
136
|
+
font-size: ${te};
|
|
137
|
+
font-weight: ${ee};
|
|
138
|
+
letter-spacing: ${ie};
|
|
139
|
+
line-height: ${oe};
|
|
140
|
+
text-transform: ${ne};
|
|
143
141
|
}
|
|
144
|
-
`;
|
|
145
|
-
.
|
|
146
|
-
vertical-align: inherit;
|
|
147
|
-
}
|
|
148
|
-
`]}getTemplate(){return this.element?P`
|
|
149
|
-
<${B(this.element)}
|
|
142
|
+
`;class ge extends e.FtLitElement{constructor(){super(...arguments),this.variant=J.body1}render(){return this.element?B`
|
|
143
|
+
<${D(this.element)}
|
|
150
144
|
class="ft-typography ft-typography--${this.variant}">
|
|
151
145
|
<slot></slot>
|
|
152
|
-
</${
|
|
153
|
-
`:
|
|
146
|
+
</${D(this.element)}>
|
|
147
|
+
`:B`
|
|
154
148
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
155
|
-
`}}
|
|
149
|
+
`}}ge.styles=[se,re,ae,le,pe,fe,he,xe,ye,ce,i.css`
|
|
150
|
+
.ft-typography {
|
|
151
|
+
vertical-align: inherit;
|
|
152
|
+
}
|
|
153
|
+
`],P([o.property()],ge.prototype,"element",void 0),P([o.property()],ge.prototype,"variant",void 0),e.customElement("ft-typography")(ge);var de=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const me={noticeColor:e.FtCssVariable.extend("--ft-notice-color",e.designSystemVariables.colorPrimary),noticeIconColor:e.FtCssVariable.extend("--ft-notice-icon-color",e.designSystemVariables.colorOnPrimary),borderRadius:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design System")};class ue extends e.FtLitElement{constructor(){super(...arguments),this.icon="info"}static get styles(){return i.css`
|
|
156
154
|
.ft-notice {
|
|
157
155
|
display: inline-flex;
|
|
158
156
|
align-items: stretch;
|
|
@@ -160,28 +158,28 @@ const B=t=>({_$litStatic$:t}),J=new Map,P=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
160
158
|
}
|
|
161
159
|
|
|
162
160
|
ft-icon {
|
|
163
|
-
${
|
|
161
|
+
${e.setVariable(p.size,"20px")};
|
|
164
162
|
padding: 0 8px;
|
|
165
163
|
display: flex;
|
|
166
164
|
align-self: center;
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
.ft-icon {
|
|
170
|
-
color: ${
|
|
171
|
-
background-color: ${
|
|
168
|
+
color: ${me.noticeIconColor};
|
|
169
|
+
background-color: ${me.noticeColor};
|
|
172
170
|
display: flex;
|
|
173
171
|
align-items: center;
|
|
174
|
-
border-top-left-radius: ${
|
|
175
|
-
border-bottom-left-radius: ${
|
|
172
|
+
border-top-left-radius: ${me.borderRadius};
|
|
173
|
+
border-bottom-left-radius: ${me.borderRadius};
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
.ft-notice-label {
|
|
179
177
|
padding: 8px;
|
|
180
|
-
border-top-right-radius: ${
|
|
181
|
-
border-bottom-right-radius: ${
|
|
182
|
-
border: 1px solid ${
|
|
178
|
+
border-top-right-radius: ${me.borderRadius};
|
|
179
|
+
border-bottom-right-radius: ${me.borderRadius};
|
|
180
|
+
border: 1px solid ${me.noticeColor};
|
|
183
181
|
}
|
|
184
|
-
`}
|
|
182
|
+
`}render(){return i.html`
|
|
185
183
|
<div class="ft-notice">
|
|
186
184
|
<div class="ft-icon">
|
|
187
185
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -190,4 +188,4 @@ const B=t=>({_$litStatic$:t}),J=new Map,P=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
190
188
|
<slot></slot>
|
|
191
189
|
</ft-typography>
|
|
192
190
|
</div>
|
|
193
|
-
`}}
|
|
191
|
+
`}}ue.elementDefinitions={"ft-icon":f,"ft-typography":ge},de([o.property({type:String})],ue.prototype,"icon",void 0),e.customElement("ft-notice")(ue),t.FtNotice=ue,t.FtNoticeCssVariables=me,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|