@fluid-topics/ft-notice 0.3.12 → 0.3.13
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.css.d.ts +7 -0
- package/build/ft-notice.css.js +40 -0
- package/build/ft-notice.d.ts +2 -9
- package/build/ft-notice.js +5 -41
- package/build/ft-notice.light.js +75 -81
- package/build/ft-notice.min.js +78 -78
- package/build/ft-notice.properties.d.ts +4 -0
- package/build/ft-notice.properties.js +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/package.json +5 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const FtNoticeCssVariables: {
|
|
2
|
+
noticeColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
3
|
+
noticeIconColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
4
|
+
borderRadius: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
5
|
+
};
|
|
6
|
+
export declare const styles: import("lit").CSSResult;
|
|
7
|
+
//# sourceMappingURL=ft-notice.css.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.css";
|
|
3
|
+
import { css } from "lit";
|
|
4
|
+
export const FtNoticeCssVariables = {
|
|
5
|
+
noticeColor: FtCssVariableFactory.extend("--ft-notice-color", designSystemVariables.colorPrimary),
|
|
6
|
+
noticeIconColor: FtCssVariableFactory.extend("--ft-notice-icon-color", designSystemVariables.colorOnPrimary),
|
|
7
|
+
borderRadius: FtCssVariableFactory.external(designSystemVariables.borderRadiusS, "Design System")
|
|
8
|
+
};
|
|
9
|
+
// language=CSS
|
|
10
|
+
export const styles = css `
|
|
11
|
+
.ft-notice {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ft-icon {
|
|
18
|
+
${setVariable(FtIconCssVariables.size, "20px")};
|
|
19
|
+
padding: 0 8px;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-self: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ft-icon {
|
|
25
|
+
color: ${FtNoticeCssVariables.noticeIconColor};
|
|
26
|
+
background-color: ${FtNoticeCssVariables.noticeColor};
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
border-top-left-radius: ${FtNoticeCssVariables.borderRadius};
|
|
30
|
+
border-bottom-left-radius: ${FtNoticeCssVariables.borderRadius};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ft-notice-label {
|
|
34
|
+
padding: 8px;
|
|
35
|
+
border-top-right-radius: ${FtNoticeCssVariables.borderRadius};
|
|
36
|
+
border-bottom-right-radius: ${FtNoticeCssVariables.borderRadius};
|
|
37
|
+
border: 1px solid ${FtNoticeCssVariables.noticeColor};
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
//# sourceMappingURL=ft-notice.css.js.map
|
package/build/ft-notice.d.ts
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
|
-
|
|
3
|
-
icon: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const FtNoticeCssVariables: {
|
|
6
|
-
noticeColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
7
|
-
noticeIconColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
8
|
-
borderRadius: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
9
|
-
};
|
|
2
|
+
import { FtNoticeProperties } from "./ft-notice.properties";
|
|
10
3
|
export declare class FtNotice extends FtLitElement implements FtNoticeProperties {
|
|
11
4
|
static elementDefinitions: ElementDefinitionsMap;
|
|
12
|
-
static
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
13
6
|
icon: string;
|
|
14
7
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
15
8
|
}
|
package/build/ft-notice.js
CHANGED
|
@@ -4,54 +4,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { html } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
10
|
-
import { FtIcon
|
|
9
|
+
import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
|
+
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
11
11
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
12
|
-
|
|
13
|
-
noticeColor: FtCssVariableFactory.extend("--ft-notice-color", designSystemVariables.colorPrimary),
|
|
14
|
-
noticeIconColor: FtCssVariableFactory.extend("--ft-notice-icon-color", designSystemVariables.colorOnPrimary),
|
|
15
|
-
borderRadius: FtCssVariableFactory.external(designSystemVariables.borderRadiusS, "Design System")
|
|
16
|
-
};
|
|
12
|
+
import { styles } from "./ft-notice.css";
|
|
17
13
|
export class FtNotice extends FtLitElement {
|
|
18
14
|
constructor() {
|
|
19
15
|
super(...arguments);
|
|
20
16
|
this.icon = "info";
|
|
21
17
|
}
|
|
22
|
-
static get styles() {
|
|
23
|
-
// language=CSS
|
|
24
|
-
return css `
|
|
25
|
-
.ft-notice {
|
|
26
|
-
display: inline-flex;
|
|
27
|
-
align-items: stretch;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
ft-icon {
|
|
32
|
-
${setVariable(FtIconCssVariables.size, "20px")};
|
|
33
|
-
padding: 0 8px;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-self: center;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.ft-icon {
|
|
39
|
-
color: ${FtNoticeCssVariables.noticeIconColor};
|
|
40
|
-
background-color: ${FtNoticeCssVariables.noticeColor};
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
border-top-left-radius: ${FtNoticeCssVariables.borderRadius};
|
|
44
|
-
border-bottom-left-radius: ${FtNoticeCssVariables.borderRadius};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.ft-notice-label {
|
|
48
|
-
padding: 8px;
|
|
49
|
-
border-top-right-radius: ${FtNoticeCssVariables.borderRadius};
|
|
50
|
-
border-bottom-right-radius: ${FtNoticeCssVariables.borderRadius};
|
|
51
|
-
border: 1px solid ${FtNoticeCssVariables.noticeColor};
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
}
|
|
55
18
|
render() {
|
|
56
19
|
return html `
|
|
57
20
|
<div class="ft-notice">
|
|
@@ -69,6 +32,7 @@ FtNotice.elementDefinitions = {
|
|
|
69
32
|
"ft-icon": FtIcon,
|
|
70
33
|
"ft-typography": FtTypography
|
|
71
34
|
};
|
|
35
|
+
FtNotice.styles = styles;
|
|
72
36
|
__decorate([
|
|
73
37
|
property({ type: String })
|
|
74
38
|
], FtNotice.prototype, "icon", void 0);
|
package/build/ft-notice.light.js
CHANGED
|
@@ -1,58 +1,52 @@
|
|
|
1
|
-
!function(t,e,i,o,s){var n,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=""}(n||(n={})),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]))]);
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case a.file_format:this.resolvedIcon=null!==(t=r[o.toUpperCase()])&&void 0!==t?t:o;break;case a.fluid_topics:this.resolvedIcon=null!==(e=n[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2017 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/
|
|
12
|
-
var p;h.elementDefinitions={},h.styles=i.css`
|
|
13
|
-
:host {
|
|
14
|
-
display: inline-block;
|
|
15
|
-
}
|
|
1
|
+
!function(t,e,i,o,s){var n,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=""}(n||(n={})),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]))]);const a={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},l=i.css`
|
|
2
|
+
:host {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
}
|
|
16
5
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
:host, i.ft-icon {
|
|
7
|
+
width: ${a.size};
|
|
8
|
+
height: ${a.size};
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
22
11
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
i.ft-icon {
|
|
13
|
+
font-size: ${a.size};
|
|
14
|
+
line-height: 1;
|
|
15
|
+
font-weight: normal;
|
|
16
|
+
text-transform: none;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-variant: normal;
|
|
19
|
+
speak: none;
|
|
20
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
21
|
+
text-rendering: auto;
|
|
22
|
+
-webkit-font-smoothing: antialiased;
|
|
23
|
+
-moz-osx-font-smoothing: grayscale;
|
|
24
|
+
vertical-align: ${a.verticalAlign};
|
|
25
|
+
}
|
|
37
26
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
.ft-icon--fluid-topics {
|
|
28
|
+
font-family: ${a.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
29
|
+
}
|
|
41
30
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
.ft-icon--file-format {
|
|
32
|
+
font-family: ${a.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
33
|
+
}
|
|
45
34
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
.ft-icon--material {
|
|
36
|
+
font-family: ${a.materialFontFamily}, "Material Icons", sans-serif;
|
|
37
|
+
}
|
|
38
|
+
`;var f;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(f||(f={}));var h,p=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class x extends e.FtLitElement{constructor(){super(...arguments),this.variant=f.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
|
|
39
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
40
|
+
${s.unsafeHTML(this.resolvedIcon)}
|
|
41
|
+
<slot ?hidden=${t}></slot>
|
|
42
|
+
</i>
|
|
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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case f.file_format:this.resolvedIcon=null!==(t=r[o.toUpperCase()])&&void 0!==t?t:o;break;case f.fluid_topics:this.resolvedIcon=null!==(e=n[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}x.elementDefinitions={},x.styles=l,p([o.property()],x.prototype,"variant",void 0),p([o.property()],x.prototype,"value",void 0),p([o.state()],x.prototype,"resolvedIcon",void 0),p([o.query("slot")],x.prototype,"slottedContent",void 0),e.customElement("ft-icon")(x);const y=globalThis.trustedTypes,c=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,g=`lit$${(Math.random()+"").slice(9)}$`,d="?"+g,m=`<${d}>`,u=document,v=(t="")=>u.createComment(t),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,N=/>/g,j=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),A=/'/g,_=/"/g,S=/^(?:script|style|textarea|title)$/i,k=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),U=new WeakMap,T=u.createTreeWalker(u,129,null,!1),E=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=w;for(let e=0;e<i;e++){const i=t[e];let a,l,f=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===w?"!--"===l[1]?r=z:void 0!==l[1]?r=N:void 0!==l[2]?(S.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=j):void 0!==l[3]&&(r=j):r===j?">"===l[0]?(r=null!=s?s:w,f=-1):void 0===l[1]?f=-2:(f=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?j:'"'===l[3]?_:A):r===_||r===A?r=j:r===z||r===N?r=w:(r=j,s=void 0);const p=r===j&&t[e+1].startsWith("/>")?" ":"";n+=r===w?i+m:f>=0?(o.push(a),i.slice(0,f)+"$lit$"+i.slice(f)+g+p):i+g+(-2===f?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(a):a,o]};class M{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,f]=E(t,e);if(this.el=M.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(g)){const i=f[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(g),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?R:"?"===e[1]?G:"@"===e[1]?P:K})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(S.test(o.tagName)){const t=o.textContent.split(g),e=t.length-1;if(e>0){o.textContent=y?y.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],v()),T.nextNode(),a.push({type:2,index:++s});o.append(t[e],v())}}}else if(8===o.nodeType)if(o.data===d)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(g,t+1));)a.push({type:7,index:s}),t+=g.length-1}s++}}static createElement(t,e){const i=u.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,o){var s,n,r,a;if(e===O)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const f=b(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==f&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===f?l=void 0:(l=new f(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=F(t,l._$AS(t,e.values),l,o)),e}class W{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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:u).importNode(i,!0);T.currentNode=s;let n=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(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new q(n,this,t)),this.v.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=T.nextNode(),r++)}return s}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 s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}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=F(this,t,e),b(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==O&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>$(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!==I&&b(this._$AH)?this._$AA.nextSibling.data=t:this.k(u.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=M.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new W(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new M(t)),e}S(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new C(this.j(v()),this.j(v()),this,this.options)):i=e[o],i._$AI(s),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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class K{constructor(t,e,i,o,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,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 s=this.strings;let n=!1;if(void 0===s)t=F(this,t,e,0),n=!b(t)||t!==this._$AH&&t!==O,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=F(this,o[i+r],e,r),a===O&&(a=this._$AH[r]),n||(n=!b(a)||a!==this._$AH[r]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.P(t)}P(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends K{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===I?void 0:t}}const Z=y?y.emptyScript:"";class G extends K{constructor(){super(...arguments),this.type=4}P(t){t&&t!==I?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class P extends K{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:I)===O)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class 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){F(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(M,C),(null!==(h=globalThis.litHtmlVersions)&&void 0!==h?h:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
50
44
|
/**
|
|
51
45
|
* @license
|
|
52
46
|
* Copyright 2020 Google LLC
|
|
53
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
48
|
*/
|
|
55
|
-
const
|
|
49
|
+
const B=Symbol.for(""),D=t=>{if((null==t?void 0:t.r)===B)return null==t?void 0:t._$litStatic$},L=t=>({_$litStatic$:t,r:B}),J=new Map,Q=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,f=0,h=!1;for(;f<o;){for(l=e[f];f<o&&void 0!==(n=i[f],s=D(n));)l+=s+e[++f],h=!0;a.push(n),r.push(l),f++}if(f===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=J.get(t))&&(r.raw=r,J.set(t,e=r)),i=a}return t(e,...i)})(k);var V;!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"}(V||(V={}));const X=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Y,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")},et=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",X),it=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",X),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),xt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Y),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Y),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),Nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Y),At=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),_t=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),St=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),kt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),It=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Y),Ut=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),Wt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Y),Ct=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Rt=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),Gt=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),Pt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Y),qt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Ht=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Jt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Y),Qt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Vt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Xt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Yt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),te=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),ee=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",Y),ie=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),oe=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),se=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),ne=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),re=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase"),ae=i.css`
|
|
56
50
|
.ft-typography--title {
|
|
57
51
|
font-family: ${et};
|
|
58
52
|
font-size: ${it};
|
|
@@ -143,47 +137,47 @@ const H=Symbol.for(""),B=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
143
137
|
line-height: ${ne};
|
|
144
138
|
text-transform: ${re};
|
|
145
139
|
}
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
`,me=i.css`
|
|
141
|
+
.ft-typography {
|
|
142
|
+
vertical-align: inherit;
|
|
143
|
+
}
|
|
144
|
+
`;var ue=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ve extends e.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?Q`
|
|
145
|
+
<${L(this.element)}
|
|
148
146
|
class="ft-typography ft-typography--${this.variant}">
|
|
149
147
|
<slot></slot>
|
|
150
|
-
</${
|
|
151
|
-
`:
|
|
148
|
+
</${L(this.element)}>
|
|
149
|
+
`:Q`
|
|
152
150
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
153
|
-
`}}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
display: inline-flex;
|
|
160
|
-
align-items: stretch;
|
|
161
|
-
box-sizing: border-box;
|
|
162
|
-
}
|
|
151
|
+
`}}ve.styles=[ae,le,fe,he,pe,xe,ye,ce,ge,de,me],ue([o.property()],ve.prototype,"element",void 0),ue([o.property()],ve.prototype,"variant",void 0),e.customElement("ft-typography")(ve);const be={noticeColor:e.FtCssVariableFactory.extend("--ft-notice-color",e.designSystemVariables.colorPrimary),noticeIconColor:e.FtCssVariableFactory.extend("--ft-notice-icon-color",e.designSystemVariables.colorOnPrimary),borderRadius:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design System")},$e=i.css`
|
|
152
|
+
.ft-notice {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
align-items: stretch;
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
}
|
|
163
157
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
158
|
+
ft-icon {
|
|
159
|
+
${e.setVariable(a.size,"20px")};
|
|
160
|
+
padding: 0 8px;
|
|
161
|
+
display: flex;
|
|
162
|
+
align-self: center;
|
|
163
|
+
}
|
|
170
164
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
165
|
+
.ft-icon {
|
|
166
|
+
color: ${be.noticeIconColor};
|
|
167
|
+
background-color: ${be.noticeColor};
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
border-top-left-radius: ${be.borderRadius};
|
|
171
|
+
border-bottom-left-radius: ${be.borderRadius};
|
|
172
|
+
}
|
|
179
173
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
174
|
+
.ft-notice-label {
|
|
175
|
+
padding: 8px;
|
|
176
|
+
border-top-right-radius: ${be.borderRadius};
|
|
177
|
+
border-bottom-right-radius: ${be.borderRadius};
|
|
178
|
+
border: 1px solid ${be.noticeColor};
|
|
179
|
+
}
|
|
180
|
+
`;var we=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ze extends e.FtLitElement{constructor(){super(...arguments),this.icon="info"}render(){return i.html`
|
|
187
181
|
<div class="ft-notice">
|
|
188
182
|
<div class="ft-icon">
|
|
189
183
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -192,4 +186,4 @@ const H=Symbol.for(""),B=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
192
186
|
<slot></slot>
|
|
193
187
|
</ft-typography>
|
|
194
188
|
</div>
|
|
195
|
-
`}}
|
|
189
|
+
`}}ze.elementDefinitions={"ft-icon":x,"ft-typography":ve},ze.styles=$e,we([o.property({type:String})],ze.prototype,"icon",void 0),e.customElement("ft-notice")(ze),t.FtNotice=ze,t.FtNoticeCssVariables=be,t.styles=$e,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
package/build/ft-notice.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(wt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -84,66 +84,66 @@ const pt=2;
|
|
|
84
84
|
* Copyright 2017 Google LLC
|
|
85
85
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
86
86
|
*/
|
|
87
|
-
class ft extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=W,t.type!==pt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ft.directiveName="unsafeHTML",ft.resultType=1;const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(ft);var ut,yt;!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=""}(ut||(ut={})),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=""}(yt||(yt={})),new Map([...["abw"].map((t=>[t,yt.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,yt.AUDIO])),...["avi"].map((t=>[t,yt.AVI])),...["chm","xhs"].map((t=>[t,yt.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,yt.CODE])),...["csv"].map((t=>[t,yt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yt.DITA])),...["epub"].map((t=>[t,yt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yt.EXCEL])),...["flac"].map((t=>[t,yt.FLAC])),...["gif"].map((t=>[t,yt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yt.GZIP])),...["html","htm","xhtml"].map((t=>[t,yt.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,yt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yt.JPEG])),...["json"].map((t=>[t,yt.JSON])),...["m4a","m4p"].map((t=>[t,yt.M4A])),...["mov","qt"].map((t=>[t,yt.MOV])),...["mp3"].map((t=>[t,yt.MP3])),...["mp4","m4v"].map((t=>[t,yt.MP4])),...["ogg","oga"].map((t=>[t,yt.OGG])),...["pdf","ps"].map((t=>[t,yt.PDF])),...["png"].map((t=>[t,yt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yt.POWERPOINT])),...["rar"].map((t=>[t,yt.RAR])),...["stp"].map((t=>[t,yt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yt.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,yt.VIDEO])),...["wav"].map((t=>[t,yt.WAV])),...["wma"].map((t=>[t,yt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yt.WORD])),...["xml","xsl","rdf"].map((t=>[t,yt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yt.YAML])),...["zip"].map((t=>[t,yt.ZIP]))]);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</i>
|
|
92
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case xt.file_format:this.resolvedIcon=null!==(t=yt[i.toUpperCase()])&&void 0!==t?t:i;break;case xt.fluid_topics:this.resolvedIcon=null!==(e=ut[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}vt.elementDefinitions={},vt.styles=h`
|
|
93
|
-
:host {
|
|
94
|
-
display: inline-block;
|
|
95
|
-
}
|
|
87
|
+
class ft extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=W,t.type!==pt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ft.directiveName="unsafeHTML",ft.resultType=1;const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(ft);var ut,yt;!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=""}(ut||(ut={})),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=""}(yt||(yt={})),new Map([...["abw"].map((t=>[t,yt.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,yt.AUDIO])),...["avi"].map((t=>[t,yt.AVI])),...["chm","xhs"].map((t=>[t,yt.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,yt.CODE])),...["csv"].map((t=>[t,yt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yt.DITA])),...["epub"].map((t=>[t,yt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yt.EXCEL])),...["flac"].map((t=>[t,yt.FLAC])),...["gif"].map((t=>[t,yt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yt.GZIP])),...["html","htm","xhtml"].map((t=>[t,yt.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,yt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yt.JPEG])),...["json"].map((t=>[t,yt.JSON])),...["m4a","m4p"].map((t=>[t,yt.M4A])),...["mov","qt"].map((t=>[t,yt.MOV])),...["mp3"].map((t=>[t,yt.MP3])),...["mp4","m4v"].map((t=>[t,yt.MP4])),...["ogg","oga"].map((t=>[t,yt.OGG])),...["pdf","ps"].map((t=>[t,yt.PDF])),...["png"].map((t=>[t,yt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yt.POWERPOINT])),...["rar"].map((t=>[t,yt.RAR])),...["stp"].map((t=>[t,yt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yt.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,yt.VIDEO])),...["wav"].map((t=>[t,yt.WAV])),...["wma"].map((t=>[t,yt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yt.WORD])),...["xml","xsl","rdf"].map((t=>[t,yt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yt.YAML])),...["zip"].map((t=>[t,yt.ZIP]))]);const xt={size:rt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:rt.extend("--ft-icon-fluid-topics-font-family",rt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:rt.extend("--ft-icon-file-format-font-family",rt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:rt.extend("--ft-icon-material-font-family",rt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:rt.create("--ft-icon-vertical-align","UNKNOWN","unset")},gt=h`
|
|
88
|
+
:host {
|
|
89
|
+
display: inline-block;
|
|
90
|
+
}
|
|
96
91
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
92
|
+
:host, i.ft-icon {
|
|
93
|
+
width: ${xt.size};
|
|
94
|
+
height: ${xt.size};
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
102
97
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
98
|
+
i.ft-icon {
|
|
99
|
+
font-size: ${xt.size};
|
|
100
|
+
line-height: 1;
|
|
101
|
+
font-weight: normal;
|
|
102
|
+
text-transform: none;
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-variant: normal;
|
|
105
|
+
speak: none;
|
|
106
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
107
|
+
text-rendering: auto;
|
|
108
|
+
-webkit-font-smoothing: antialiased;
|
|
109
|
+
-moz-osx-font-smoothing: grayscale;
|
|
110
|
+
vertical-align: ${xt.verticalAlign};
|
|
111
|
+
}
|
|
117
112
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
.ft-icon--fluid-topics {
|
|
114
|
+
font-family: ${xt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
115
|
+
}
|
|
121
116
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
.ft-icon--file-format {
|
|
118
|
+
font-family: ${xt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
119
|
+
}
|
|
125
120
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
.ft-icon--material {
|
|
122
|
+
font-family: ${xt.materialFontFamily}, "Material Icons", sans-serif;
|
|
123
|
+
}
|
|
124
|
+
`;var mt;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(mt||(mt={}));var vt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class bt extends ht{constructor(){super(...arguments),this.variant=mt.fluid_topics,this.resolvedIcon=W}render(){const t="material"!==this.variant||this.value;return P`
|
|
125
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
126
|
+
${dt(this.resolvedIcon)}
|
|
127
|
+
<slot ?hidden=${t}></slot>
|
|
128
|
+
</i>
|
|
129
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case mt.file_format:this.resolvedIcon=null!==(t=yt[i.toUpperCase()])&&void 0!==t?t:i;break;case mt.fluid_topics:this.resolvedIcon=null!==(e=ut[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}bt.elementDefinitions={},bt.styles=gt,vt([i()],bt.prototype,"variant",void 0),vt([i()],bt.prototype,"value",void 0),vt([function(t){return i({...t,state:!0})}
|
|
130
130
|
/**
|
|
131
131
|
* @license
|
|
132
132
|
* Copyright 2017 Google LLC
|
|
133
133
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
-
*/()],
|
|
134
|
+
*/()],bt.prototype,"resolvedIcon",void 0),vt([
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* Copyright 2017 Google LLC
|
|
138
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
139
|
*/
|
|
140
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],
|
|
140
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],bt.prototype,"slottedContent",void 0),n("ft-icon")(bt);
|
|
141
141
|
/**
|
|
142
142
|
* @license
|
|
143
143
|
* Copyright 2020 Google LLC
|
|
144
144
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
145
145
|
*/
|
|
146
|
-
const
|
|
146
|
+
const wt=Symbol.for(""),$t=t=>{if((null==t?void 0:t.r)===wt)return null==t?void 0:t._$litStatic$},Ot=t=>({_$litStatic$:t,r:wt}),St=new Map,Nt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=$t(r));)l+=n+e[++c],h=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=St.get(t))&&(s.raw=s,St.set(t,e=s)),i=a}return t(e,...i)})(P);var Et;!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"}(Et||(Et={}));const Ct=rt.extend("--ft-typography-font-family",st.titleFont),Rt=rt.extend("--ft-typography-font-family",st.contentFont),Mt={fontFamily:Rt,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ut=rt.extend("--ft-typography-title-font-family",Ct),kt=rt.extend("--ft-typography-title-font-size",Mt.fontSize,"20px"),Ft=rt.extend("--ft-typography-title-font-weight",Mt.fontWeight,"normal"),jt=rt.extend("--ft-typography-title-letter-spacing",Mt.letterSpacing,"0.15px"),zt=rt.extend("--ft-typography-title-line-height",Mt.lineHeight,"1.2"),At=rt.extend("--ft-typography-title-text-transform",Mt.textTransform,"inherit"),Lt=rt.extend("--ft-typography-title-dense-font-family",Ct),Tt=rt.extend("--ft-typography-title-dense-font-size",Mt.fontSize,"14px"),Pt=rt.extend("--ft-typography-title-dense-font-weight",Mt.fontWeight,"normal"),_t=rt.extend("--ft-typography-title-dense-letter-spacing",Mt.letterSpacing,"0.105px"),Wt=rt.extend("--ft-typography-title-dense-line-height",Mt.lineHeight,"1.7"),Bt=rt.extend("--ft-typography-title-dense-text-transform",Mt.textTransform,"inherit"),Dt=rt.extend("--ft-typography-subtitle1-font-family",Rt),Kt=rt.extend("--ft-typography-subtitle1-font-size",Mt.fontSize,"16px"),Ht=rt.extend("--ft-typography-subtitle1-font-weight",Mt.fontWeight,"600"),It=rt.extend("--ft-typography-subtitle1-letter-spacing",Mt.letterSpacing,"0.144px"),Zt=rt.extend("--ft-typography-subtitle1-line-height",Mt.lineHeight,"1.5"),Vt=rt.extend("--ft-typography-subtitle1-text-transform",Mt.textTransform,"inherit"),Jt=rt.extend("--ft-typography-subtitle2-font-family",Rt),qt=rt.extend("--ft-typography-subtitle2-font-size",Mt.fontSize,"14px"),Xt=rt.extend("--ft-typography-subtitle2-font-weight",Mt.fontWeight,"normal"),Gt=rt.extend("--ft-typography-subtitle2-letter-spacing",Mt.letterSpacing,"0.098px"),Qt=rt.extend("--ft-typography-subtitle2-line-height",Mt.lineHeight,"1.7"),Yt=rt.extend("--ft-typography-subtitle2-text-transform",Mt.textTransform,"inherit"),te=rt.extend("--ft-typography-body1-font-family",Rt),ee=rt.extend("--ft-typography-body1-font-size",Mt.fontSize,"16px"),ie=rt.extend("--ft-typography-body1-font-weight",Mt.fontWeight,"normal"),oe=rt.extend("--ft-typography-body1-letter-spacing",Mt.letterSpacing,"0.496px"),ne=rt.extend("--ft-typography-body1-line-height",Mt.lineHeight,"1.5"),re=rt.extend("--ft-typography-body1-text-transform",Mt.textTransform,"inherit"),se=rt.extend("--ft-typography-body2-font-family",Rt),ae=rt.extend("--ft-typography-body2-font-size",Mt.fontSize,"14px"),le=rt.extend("--ft-typography-body2-font-weight",Mt.fontWeight,"normal"),ce=rt.extend("--ft-typography-body2-letter-spacing",Mt.letterSpacing,"0.252px"),he=rt.extend("--ft-typography-body2-line-height",Mt.lineHeight,"1.4"),pe=rt.extend("--ft-typography-body2-text-transform",Mt.textTransform,"inherit"),fe=rt.extend("--ft-typography-caption-font-family",Rt),de=rt.extend("--ft-typography-caption-font-size",Mt.fontSize,"12px"),ue=rt.extend("--ft-typography-caption-font-weight",Mt.fontWeight,"normal"),ye=rt.extend("--ft-typography-caption-letter-spacing",Mt.letterSpacing,"0.396px"),xe=rt.extend("--ft-typography-caption-line-height",Mt.lineHeight,"1.33"),ge=rt.extend("--ft-typography-caption-text-transform",Mt.textTransform,"inherit"),me=rt.extend("--ft-typography-breadcrumb-font-family",Rt),ve=rt.extend("--ft-typography-breadcrumb-font-size",Mt.fontSize,"10px"),be=rt.extend("--ft-typography-breadcrumb-font-weight",Mt.fontWeight,"normal"),we=rt.extend("--ft-typography-breadcrumb-letter-spacing",Mt.letterSpacing,"0.33px"),$e=rt.extend("--ft-typography-breadcrumb-line-height",Mt.lineHeight,"1.6"),Oe=rt.extend("--ft-typography-breadcrumb-text-transform",Mt.textTransform,"inherit"),Se=rt.extend("--ft-typography-overline-font-family",Rt),Ne=rt.extend("--ft-typography-overline-font-size",Mt.fontSize,"10px"),Ee=rt.extend("--ft-typography-overline-font-weight",Mt.fontWeight,"normal"),Ce=rt.extend("--ft-typography-overline-letter-spacing",Mt.letterSpacing,"1.5px"),Re=rt.extend("--ft-typography-overline-line-height",Mt.lineHeight,"1.6"),Me=rt.extend("--ft-typography-overline-text-transform",Mt.textTransform,"uppercase"),Ue=rt.extend("--ft-typography-button-font-family",Rt),ke=rt.extend("--ft-typography-button-font-size",Mt.fontSize,"14px"),Fe=rt.extend("--ft-typography-button-font-weight",Mt.fontWeight,"600"),je=rt.extend("--ft-typography-button-letter-spacing",Mt.letterSpacing,"1.246px"),ze=rt.extend("--ft-typography-button-line-height",Mt.lineHeight,"1.15"),Ae=rt.extend("--ft-typography-button-text-transform",Mt.textTransform,"uppercase"),Le=h`
|
|
147
147
|
.ft-typography--title {
|
|
148
148
|
font-family: ${Ut};
|
|
149
149
|
font-size: ${kt};
|
|
@@ -234,47 +234,47 @@ const bt=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===bt)return null==t?void
|
|
|
234
234
|
line-height: ${ze};
|
|
235
235
|
text-transform: ${Ae};
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
`,Ze=h`
|
|
238
|
+
.ft-typography {
|
|
239
|
+
vertical-align: inherit;
|
|
240
|
+
}
|
|
241
|
+
`;var Ve=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Je extends ht{constructor(){super(...arguments),this.variant=Et.body1}render(){return this.element?Nt`
|
|
242
|
+
<${Ot(this.element)}
|
|
239
243
|
class="ft-typography ft-typography--${this.variant}">
|
|
240
244
|
<slot></slot>
|
|
241
|
-
</${
|
|
242
|
-
`:
|
|
245
|
+
</${Ot(this.element)}>
|
|
246
|
+
`:Nt`
|
|
243
247
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
244
|
-
`}}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
display: inline-flex;
|
|
251
|
-
align-items: stretch;
|
|
252
|
-
box-sizing: border-box;
|
|
253
|
-
}
|
|
248
|
+
`}}Je.styles=[Le,Te,Pe,_e,We,Be,De,Ke,He,Ie,Ze],Ve([i()],Je.prototype,"element",void 0),Ve([i()],Je.prototype,"variant",void 0),n("ft-typography")(Je);const qe={noticeColor:rt.extend("--ft-notice-color",st.colorPrimary),noticeIconColor:rt.extend("--ft-notice-icon-color",st.colorOnPrimary),borderRadius:rt.external(st.borderRadiusS,"Design System")},Xe=h`
|
|
249
|
+
.ft-notice {
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
align-items: stretch;
|
|
252
|
+
box-sizing: border-box;
|
|
253
|
+
}
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
255
|
+
ft-icon {
|
|
256
|
+
${Ge=xt.size,Qe="20px",c(`${Ge.name}: ${Qe}`)};
|
|
257
|
+
padding: 0 8px;
|
|
258
|
+
display: flex;
|
|
259
|
+
align-self: center;
|
|
260
|
+
}
|
|
261
261
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
.ft-icon {
|
|
263
|
+
color: ${qe.noticeIconColor};
|
|
264
|
+
background-color: ${qe.noticeColor};
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
border-top-left-radius: ${qe.borderRadius};
|
|
268
|
+
border-bottom-left-radius: ${qe.borderRadius};
|
|
269
|
+
}
|
|
270
270
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
.ft-notice-label {
|
|
272
|
+
padding: 8px;
|
|
273
|
+
border-top-right-radius: ${qe.borderRadius};
|
|
274
|
+
border-bottom-right-radius: ${qe.borderRadius};
|
|
275
|
+
border: 1px solid ${qe.noticeColor};
|
|
276
|
+
}
|
|
277
|
+
`;var Ge,Qe,Ye=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ti extends ht{constructor(){super(...arguments),this.icon="info"}render(){return P`
|
|
278
278
|
<div class="ft-notice">
|
|
279
279
|
<div class="ft-icon">
|
|
280
280
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -283,4 +283,4 @@ const bt=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===bt)return null==t?void
|
|
|
283
283
|
<slot></slot>
|
|
284
284
|
</ft-typography>
|
|
285
285
|
</div>
|
|
286
|
-
`}}
|
|
286
|
+
`}}ti.elementDefinitions={"ft-icon":bt,"ft-typography":Je},ti.styles=Xe,Ye([i({type:String})],ti.prototype,"icon",void 0),n("ft-notice")(ti),t.FtNotice=ti,t.FtNoticeCssVariables=qe,t.styles=Xe,Object.defineProperty(t,"i",{value:!0})}({});
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { customElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
import { FtNotice } from "./ft-notice";
|
|
3
3
|
export * from "./ft-notice";
|
|
4
|
+
export * from "./ft-notice.css";
|
|
5
|
+
export * from "./ft-notice.properties";
|
|
4
6
|
customElement("ft-notice")(FtNotice);
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.13",
|
|
23
|
+
"@fluid-topics/ft-typography": "0.3.13",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.13",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "84b5fc920bc5d2bdb646b5da8815ad51caaf228e"
|
|
28
28
|
}
|