@fluid-topics/ft-typography 0.0.88

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/README.md ADDED
@@ -0,0 +1,21 @@
1
+ Typography components
2
+
3
+ ## Install
4
+
5
+ ```shell
6
+ npm install @fluid-topics/ft-typography
7
+ yarn add @fluid-topics/ft-typography
8
+ ```
9
+
10
+ ## Usage
11
+
12
+ ```typescript
13
+ import { html } from "lit"
14
+ import "@fluid-topics/ft-typography"
15
+
16
+ function render() {
17
+ return html`
18
+ <ft-typography variant="title">Typography component</ft-typography>
19
+ `
20
+ }
21
+ ```
@@ -0,0 +1,42 @@
1
+ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
2
+ export declare enum FtTypographyVariants {
3
+ title = "title",
4
+ title_dense = "title-dense",
5
+ subtitle1 = "subtitle1",
6
+ subtitle2 = "subtitle2",
7
+ body1 = "body1",
8
+ body2 = "body2",
9
+ caption = "caption",
10
+ breadcrumb = "breadcrumb",
11
+ overline = "overline",
12
+ button = "button"
13
+ }
14
+ export interface FtTypographyProperties {
15
+ element?: string;
16
+ variant: FtTypographyVariants;
17
+ }
18
+ export interface FtTypographyCssVariables {
19
+ "--ft-typography-font-family": string;
20
+ "--ft-typography-font-size": string;
21
+ "--ft-typography-font-weight": string;
22
+ "--ft-typography-letter-spacing": string;
23
+ "--ft-typography-line-height": string;
24
+ "--ft-typography-text-transform": string;
25
+ }
26
+ export declare const FtTypographyTitle: import("lit").CSSResult;
27
+ export declare const FtTypographyTitleDense: import("lit").CSSResult;
28
+ export declare const FtTypographySubtitle1: import("lit").CSSResult;
29
+ export declare const FtTypographySubtitle2: import("lit").CSSResult;
30
+ export declare const FtTypographyBody1: import("lit").CSSResult;
31
+ export declare const FtTypographyBody2: import("lit").CSSResult;
32
+ export declare const FtTypographyCaption: import("lit").CSSResult;
33
+ export declare const FtTypographyBreadcrumb: import("lit").CSSResult;
34
+ export declare const FtTypographyOverline: import("lit").CSSResult;
35
+ export declare const FtTypographyButton: import("lit").CSSResult;
36
+ export declare class FtTypography extends FtLitElement implements FtTypographyProperties {
37
+ protected getStyles(): import("lit").CSSResult[];
38
+ element?: string;
39
+ variant: FtTypographyVariants;
40
+ protected getTemplate(): import("lit-html").TemplateResult<1 | 2>;
41
+ }
42
+ //# sourceMappingURL=ft-typography.d.ts.map
@@ -0,0 +1,179 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css } from "lit";
8
+ import { html, unsafeStatic } from "lit/static-html.js";
9
+ import { property } from "lit/decorators.js";
10
+ import { customElement, FtLitElement } from "@fluid-topics/ft-wc-utils";
11
+ export var FtTypographyVariants;
12
+ (function (FtTypographyVariants) {
13
+ FtTypographyVariants["title"] = "title";
14
+ FtTypographyVariants["title_dense"] = "title-dense";
15
+ FtTypographyVariants["subtitle1"] = "subtitle1";
16
+ FtTypographyVariants["subtitle2"] = "subtitle2";
17
+ FtTypographyVariants["body1"] = "body1";
18
+ FtTypographyVariants["body2"] = "body2";
19
+ FtTypographyVariants["caption"] = "caption";
20
+ FtTypographyVariants["breadcrumb"] = "breadcrumb";
21
+ FtTypographyVariants["overline"] = "overline";
22
+ FtTypographyVariants["button"] = "button";
23
+ })(FtTypographyVariants || (FtTypographyVariants = {}));
24
+ // language=CSS
25
+ export const FtTypographyTitle = css `
26
+ .ft-typography--title {
27
+ font-family: var(--ft-typography-title-font-family, var(--ft-typography-font-family, var(--ft-title-font, Ubuntu))), system-ui, sans-serif;
28
+ font-size: var(--ft-typography-title-font-size, var(--ft-typography-font-size, 20px));
29
+ font-weight: var(--ft-typography-title-font-weight, var(--ft-typography-font-weight, normal));
30
+ letter-spacing: var(--ft-typography-title-letter-spacing, var(--ft-typography-letter-spacing, 0.15px));
31
+ line-height: var(--ft-typography-title-line-height, var(--ft-typography-line-height, 24px));
32
+ text-transform: var(--ft-typography-title-text-transform, var(--ft-typography-text-transform, inherit));
33
+ }
34
+ `;
35
+ // language=CSS
36
+ export const FtTypographyTitleDense = css `
37
+ .ft-typography--title-dense {
38
+ font-family: var(--ft-typography-title-dense-font-family, var(--ft-typography-font-family, var(--ft-title-font, Ubuntu))), system-ui, sans-serif;
39
+ font-size: var(--ft-typography-title-dense-font-size, var(--ft-typography-font-size, 14px));
40
+ font-weight: var(--ft-typography-title-dense-font-weight, var(--ft-typography-font-weight, normal));
41
+ letter-spacing: var(--ft-typography-title-dense-letter-spacing, var(--ft-typography-letter-spacing, 0.105px));
42
+ line-height: var(--ft-typography-title-dense-line-height, var(--ft-typography-line-height, 24px));
43
+ text-transform: var(--ft-typography-title-dense-text-transform, var(--ft-typography-text-transform, inherit));
44
+ }
45
+ `;
46
+ // language=CSS
47
+ export const FtTypographySubtitle1 = css `
48
+ .ft-typography--subtitle1 {
49
+ font-family: var(--ft-typography-subtitle1-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
50
+ font-size: var(--ft-typography-subtitle1-font-size, var(--ft-typography-font-size, 16px));
51
+ font-weight: var(--ft-typography-subtitle1-font-weight, var(--ft-typography-font-weight, 600));
52
+ letter-spacing: var(--ft-typography-subtitle1-letter-spacing, var(--ft-typography-letter-spacing, 0.144px));
53
+ line-height: var(--ft-typography-subtitle1-line-height, var(--ft-typography-line-height, 24px));
54
+ text-transform: var(--ft-typography-subtitle1-text-transform, var(--ft-typography-text-transform, inherit));
55
+ }
56
+ `;
57
+ // language=CSS
58
+ export const FtTypographySubtitle2 = css `
59
+ .ft-typography--subtitle2 {
60
+ font-family: var(--ft-typography-subtitle2-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
61
+ font-size: var(--ft-typography-subtitle2-font-size, var(--ft-typography-font-size, 14px));
62
+ font-weight: var(--ft-typography-subtitle2-font-weight, var(--ft-typography-font-weight, normal));
63
+ letter-spacing: var(--ft-typography-subtitle2-letter-spacing, var(--ft-typography-letter-spacing, 0.098px));
64
+ line-height: var(--ft-typography-subtitle2-line-height, var(--ft-typography-line-height, 24px));
65
+ text-transform: var(--ft-typography-subtitle2-text-transform, var(--ft-typography-text-transform, inherit));
66
+ }
67
+
68
+ `;
69
+ // language=CSS
70
+ export const FtTypographyBody1 = css `
71
+ .ft-typography--body1 {
72
+ font-family: var(--ft-typography-body1-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
73
+ font-size: var(--ft-typography-body1-font-size, var(--ft-typography-font-size, 16px));
74
+ font-weight: var(--ft-typography-body1-font-weight, var(--ft-typography-font-weight, normal));
75
+ letter-spacing: var(--ft-typography-body1-letter-spacing, var(--ft-typography-letter-spacing, 0.496px));
76
+ line-height: var(--ft-typography-body1-line-height, var(--ft-typography-line-height, 24px));
77
+ text-transform: var(--ft-typography-body1-text-transform, var(--ft-typography-text-transform, inherit));
78
+ }
79
+ `;
80
+ // language=CSS
81
+ export const FtTypographyBody2 = css `
82
+ .ft-typography--body2 {
83
+ font-family: var(--ft-typography-body2-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
84
+ font-size: var(--ft-typography-body2-font-size, var(--ft-typography-font-size, 14px));
85
+ font-weight: var(--ft-typography-body2-font-weight, var(--ft-typography-font-weight, normal));
86
+ letter-spacing: var(--ft-typography-body2-letter-spacing, var(--ft-typography-letter-spacing, 0.252px));
87
+ line-height: var(--ft-typography-body2-line-height, var(--ft-typography-line-height, 20px));
88
+ text-transform: var(--ft-typography-body2-text-transform, var(--ft-typography-text-transform, inherit));
89
+ }
90
+ `;
91
+ // language=CSS
92
+ export const FtTypographyCaption = css `
93
+ .ft-typography--caption {
94
+ font-family: var(--ft-typography-caption-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
95
+ font-size: var(--ft-typography-caption-font-size, var(--ft-typography-font-size, 12px));
96
+ font-weight: var(--ft-typography-caption-font-weight, var(--ft-typography-font-weight, normal));
97
+ letter-spacing: var(--ft-typography-caption-letter-spacing, var(--ft-typography-letter-spacing, 0.396px));
98
+ line-height: var(--ft-typography-caption-line-height, var(--ft-typography-line-height, 16px));
99
+ text-transform: var(--ft-typography-caption-text-transform, var(--ft-typography-text-transform, inherit));
100
+ }
101
+ `;
102
+ // language=CSS
103
+ export const FtTypographyBreadcrumb = css `
104
+ .ft-typography--breadcrumb {
105
+ font-family: var(--ft-typography-breadcrumb-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
106
+ font-size: var(--ft-typography-breadcrumb-font-size, var(--ft-typography-font-size, 10px));
107
+ font-weight: var(--ft-typography-breadcrumb-font-weight, var(--ft-typography-font-weight, normal));
108
+ letter-spacing: var(--ft-typography-breadcrumb-letter-spacing, var(--ft-typography-letter-spacing, 0.33px));
109
+ line-height: var(--ft-typography-breadcrumb-line-height, var(--ft-typography-line-height, 16px));
110
+ text-transform: var(--ft-typography-breadcrumb-text-transform, var(--ft-typography-text-transform, inherit));
111
+ }
112
+ `;
113
+ // language=CSS
114
+ export const FtTypographyOverline = css `
115
+ .ft-typography--overline {
116
+ font-family: var(--ft-typography-overline-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
117
+ font-size: var(--ft-typography-overline-font-size, var(--ft-typography-font-size, 10px));
118
+ font-weight: var(--ft-typography-overline-font-weight, var(--ft-typography-font-weight, normal));
119
+ letter-spacing: var(--ft-typography-overline-letter-spacing, var(--ft-typography-letter-spacing, 1.5px));
120
+ line-height: var(--ft-typography-overline-line-height, var(--ft-typography-line-height, 16px));
121
+ text-transform: var(--ft-typography-overline-text-transform, var(--ft-typography-text-transform, uppercase));
122
+ }
123
+ `;
124
+ // language=CSS
125
+ export const FtTypographyButton = css `
126
+ .ft-typography--button {
127
+ font-family: var(--ft-typography-button-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
128
+ font-size: var(--ft-typography-button-font-size, var(--ft-typography-font-size, 14px));
129
+ font-weight: var(--ft-typography-button-font-weight, var(--ft-typography-font-weight, 600));
130
+ letter-spacing: var(--ft-typography-button-letter-spacing, var(--ft-typography-letter-spacing, 1.246px));
131
+ line-height: var(--ft-typography-button-line-height, var(--ft-typography-line-height, 16px));
132
+ text-transform: var(--ft-typography-button-text-transform, var(--ft-typography-text-transform, uppercase));
133
+ }
134
+ `;
135
+ let FtTypography = class FtTypography extends FtLitElement {
136
+ constructor() {
137
+ super(...arguments);
138
+ this.variant = FtTypographyVariants.body1;
139
+ }
140
+ // language=CSS
141
+ getStyles() {
142
+ return [
143
+ FtTypographyTitle,
144
+ FtTypographyTitleDense,
145
+ FtTypographySubtitle1,
146
+ FtTypographySubtitle2,
147
+ FtTypographyBody1,
148
+ FtTypographyBody2,
149
+ FtTypographyCaption,
150
+ FtTypographyBreadcrumb,
151
+ FtTypographyOverline,
152
+ FtTypographyButton
153
+ ];
154
+ }
155
+ getTemplate() {
156
+ if (this.element) {
157
+ return html `
158
+ <${unsafeStatic(this.element)}
159
+ class="ft-typography ft-typography--${this.variant}">
160
+ <slot></slot>
161
+ </${unsafeStatic(this.element)}>
162
+ `;
163
+ }
164
+ return html `
165
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
166
+ `;
167
+ }
168
+ };
169
+ __decorate([
170
+ property()
171
+ ], FtTypography.prototype, "element", void 0);
172
+ __decorate([
173
+ property()
174
+ ], FtTypography.prototype, "variant", void 0);
175
+ FtTypography = __decorate([
176
+ customElement("ft-typography")
177
+ ], FtTypography);
178
+ export { FtTypography };
179
+ //# sourceMappingURL=ft-typography.js.map
@@ -0,0 +1,155 @@
1
+ !function(t){
2
+ /**
3
+ * @license
4
+ * Copyright 2019 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const i=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol(),n=new Map;class r{constructor(t,i){if(this._$cssResult$=!0,i!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=n.get(this.cssText);return i&&void 0===t&&(n.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const o=(t,...i)=>{const n=1===t.length?t[0]:i.reduce(((i,e,n)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[n+1]),t[0]);return new r(n,e)},s=(t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((i=>{const e=document.createElement("style"),n=window.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}))},a=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return(t=>new r("string"==typeof t?t:t+"",e))(i)})(t):t
8
+ /**
9
+ * @license
10
+ * Copyright 2017 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */;var h;const l=window.trustedTypes,f=l?l.emptyScript:"",p=window.reactiveElementPolyfillSupport,u={toAttribute(t,i){switch(i){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},c=(t,i)=>i!==t&&(i==i||t==t),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:c};class v extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const n=this._$Eh(e,i);void 0!==n&&(this._$Eu.set(n,e),t.push(n))})),t}static createProperty(t,i=y){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,e,i);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(n){const r=this[t];this[i]=n,this.requestUpdate(t,r,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(a(t))}else void 0!==t&&i.push(a(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return s(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=y){var n,r;const o=this.constructor._$Eh(t,e);if(void 0!==o&&!0===e.reflect){const s=(null!==(r=null===(n=e.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:u.toAttribute)(i,e.type);this._$Ei=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Ei=null}}_$AK(t,i){var e,n,r;const o=this.constructor,s=o._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=o.getPropertyOptions(s),a=t.converter,h=null!==(r=null!==(n=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==n?n:"function"==typeof a?a:null)&&void 0!==r?r:u.fromAttribute;this._$Ei=s,this[s]=h(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let n=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||c)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,e))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
13
+ /**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */
18
+ var d;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:v}),(null!==(h=globalThis.reactiveElementVersions)&&void 0!==h?h:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,b="?"+w,x=`<${b}>`,S=document,$=(t="")=>S.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,M=/>/g,z=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,T=/"/g,k=/^(?:script|style|textarea|title)$/i,R=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),L=new WeakMap,H=S.createTreeWalker(S,129,null,!1),N=(t,i)=>{const e=t.length-1,n=[];let r,o=2===i?"<svg>":"",s=j;for(let i=0;i<e;i++){const e=t[i];let a,h,l=-1,f=0;for(;f<e.length&&(s.lastIndex=f,h=s.exec(e),null!==h);)f=s.lastIndex,s===j?"!--"===h[1]?s=C:void 0!==h[1]?s=M:void 0!==h[2]?(k.test(h[2])&&(r=RegExp("</"+h[2],"g")),s=z):void 0!==h[3]&&(s=z):s===z?">"===h[0]?(s=null!=r?r:j,l=-1):void 0===h[1]?l=-2:(l=s.lastIndex-h[2].length,a=h[1],s=void 0===h[3]?z:'"'===h[3]?T:A):s===T||s===A?s=z:s===C||s===M?s=j:(s=z,r=void 0);const p=s===z&&t[i+1].startsWith("/>")?" ":"";o+=s===j?e+x:l>=0?(n.push(a),e.slice(0,l)+"$lit$"+e.slice(l)+w+p):e+w+(-2===l?(n.push(void 0),i):p)}const a=o+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(a):a,n]};class D{constructor({strings:t,_$litType$:i},e){let n;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[h,l]=N(t,i);if(this.el=D.createElement(h,e),H.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(n=H.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const i of n.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=l[o++];if(t.push(i),void 0!==e){const t=n.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?J:"@"===i[1]?K:W})}else a.push({type:6,index:r})}for(const i of t)n.removeAttribute(i)}if(k.test(n.tagName)){const t=n.textContent.split(w),i=t.length-1;if(i>0){n.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)n.append(t[e],$()),H.nextNode(),a.push({type:2,index:++r});n.append(t[i],$())}}}else if(8===n.nodeType)if(n.data===b)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(w,t+1));)a.push({type:7,index:r}),t+=w.length-1}r++}}static createElement(t,i){const e=S.createElement("template");return e.innerHTML=t,e}}function F(t,i,e=t,n){var r,o,s,a;if(i===_)return i;let h=void 0!==n?null===(r=e._$Cl)||void 0===r?void 0:r[n]:e._$Cu;const l=O(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==l&&(null===(o=null==h?void 0:h._$AO)||void 0===o||o.call(h,!1),void 0===l?h=void 0:(h=new l(t),h._$AT(t,e,n)),void 0!==n?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[n]=h:e._$Cu=h),void 0!==h&&(i=F(t,h._$AS(t,i.values),h,n)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:n}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:S).importNode(e,!0);H.currentNode=r;let o=H.nextNode(),s=0,a=0,h=n[0];for(;void 0!==h;){if(s===h.index){let i;2===h.type?i=new P(o,o.nextSibling,this,t):1===h.type?i=new h.ctor(o,h.name,h.strings,this,t):6===h.type&&(i=new Z(o,this,t)),this.v.push(i),h=n[++a]}s!==(null==h?void 0:h.index)&&(o=H.nextNode(),s++)}return r}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class P{constructor(t,i,e,n){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=n,this._$Cg=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=F(this,t,i),O(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return E(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==U&&O(this._$AH)?this._$AA.nextSibling.data=t:this.S(S.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=D.createElement(n.h,this.options)),n);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.m(e);else{const t=new I(r,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=L.get(t.strings);return void 0===i&&L.set(t.strings,i=new D(t)),i}A(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,n=0;for(const r of t)n===i.length?i.push(e=new P(this.M($()),this.M($()),this,this.options)):e=i[n],e._$AI(r),n++;n<i.length&&(this._$AR(e&&e._$AB.nextSibling,n),i.length=n)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,n,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=i,this._$AM=n,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,n){const r=this.strings;let o=!1;if(void 0===r)t=F(this,t,i,0),o=!O(t)||t!==this._$AH&&t!==_,o&&(this._$AH=t);else{const n=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=F(this,n[e+s],i,s),a===_&&(a=this._$AH[s]),o||(o=!O(a)||a!==this._$AH[s]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!n&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const B=g?g.emptyScript:"";class J extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class K extends W{constructor(t,i,e,n,r){super(t,i,e,n,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=F(this,t,i,0))&&void 0!==e?e:U)===_)return;const n=this._$AH,r=t===U&&n!==U||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==U&&(n===U||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const q=window.litHtmlPolyfillSupport;
19
+ /**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */
24
+ var G,Q;null==q||q(D,P),(null!==(d=globalThis.litHtmlVersions)&&void 0!==d?d:globalThis.litHtmlVersions=[]).push("2.1.3");class X extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var n,r;const o=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:i;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new P(i.insertBefore($(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}X.finalized=!0,X._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:X});const Y=globalThis.litElementPolyfillSupport;null==Y||Y({LitElement:X}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.1.2");
25
+ /**
26
+ * @license
27
+ * Copyright 2020 Google LLC
28
+ * SPDX-License-Identifier: BSD-3-Clause
29
+ */
30
+ const tt=t=>({_$litStatic$:t}),it=new Map,et=(t=>(i,...e)=>{var n;const r=e.length;let o,s;const a=[],h=[];let l,f=0,p=!1;for(;f<r;){for(l=i[f];f<r&&void 0!==(s=e[f],o=null===(n=s)||void 0===n?void 0:n._$litStatic$);)l+=o+i[++f],p=!0;h.push(s),a.push(l),f++}if(f===r&&a.push(i[r]),p){const t=a.join("$$lit$$");void 0===(i=it.get(t))&&(a.raw=a,it.set(t,i=a)),e=h}return t(i,...e)})(R),nt=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};
31
+ /**
32
+ * @license
33
+ * Copyright 2017 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */function rt(t){return(i,e)=>void 0!==e?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,e):nt(t,i)
36
+ /**
37
+ * @license
38
+ * Copyright 2021 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ */}var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,function(){function t(t){var i=0;return function(){return i<t.length?{done:!1,value:t[i++]}:{done:!0}}}function i(i){var e="undefined"!=typeof Symbol&&Symbol.iterator&&i[Symbol.iterator];return e?e.call(i):{next:t(i)}}function e(t){if(!(t instanceof Array)){t=i(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function i(){}return i.prototype=t,new i};var r,o=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<t.length;++i){var e=t[i];if(e&&e.Math==Math)return e}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(i,e,n){return i=t(i,e),n&&Reflect.setPrototypeOf(i,n.prototype),i}}return function(t,i,e){return void 0===e&&(e=t),e=n(e.prototype||Object.prototype),Function.prototype.apply.call(t,e,i)||e}}();if("function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var a;t:{var h={};try{h.__proto__={a:!0},a=h.a;break t}catch(t){}a=!1}r=a?function(t,i){if(t.__proto__=i,t.__proto__!==i)throw new TypeError(t+" is not extensible");return t}:null}var l=r;if(!ShadowRoot.prototype.createElement){var f,p=window.HTMLElement,u=window.customElements.define,c=window.customElements.get,y=window.customElements,v=new WeakMap,d=new WeakMap,g=new WeakMap,m=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,e){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(e))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=e.prototype.attributeChangedCallback,r=new Set(e.observedAttributes||[]);if(b(e,r,n),n={g:e,connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,adoptedCallback:e.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:e.formAssociated,formAssociatedCallback:e.prototype.formAssociatedCallback,formDisabledCallback:e.prototype.formDisabledCallback,formResetCallback:e.prototype.formResetCallback,formStateRestoreCallback:e.prototype.formStateRestoreCallback,observedAttributes:r},this.l.set(t,n),this.o.set(e,n),(r=c.call(y,t))||(r=w(t),u.call(y,t,r)),this===window.customElements&&(g.set(e,n),n.s=r),r=this.h.get(t)){this.h.delete(t);for(var o=(r=i(r)).next();!o.done;o=r.next())o=o.value,d.delete(o),S(o,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(e),this.i.delete(t)),e},window.CustomElementRegistry.prototype.upgrade=function(){O.push(this),y.upgrade.apply(y,arguments),O.pop()},window.CustomElementRegistry.prototype.get=function(t){var i;return null==(i=this.l.get(t))?void 0:i.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var i=this.j(t);if(void 0!==i)return Promise.resolve(i.g);var e=this.i.get(t);return void 0===e&&((e={}).promise=new Promise((function(t){return e.resolve=t})),this.i.set(t,e)),e.promise},window.CustomElementRegistry.prototype.m=function(t,i,e){var n=this.h.get(i);n||this.h.set(i,n=new Set),e?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=f;if(t)return f=void 0,t;var i=g.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],i.s),Object.setPrototypeOf(t,this.constructor.prototype),v.set(t,i),t},window.HTMLElement.prototype=p.prototype;var w=function(t){function i(){var i=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);t:{var e=i.getRootNode();if(!(e===document||e instanceof ShadowRoot)){if((e=O[O.length-1])instanceof CustomElementRegistry){var n=e;break t}(e=e.getRootNode())===document||e instanceof ShadowRoot||(e=(null==(n=m.get(e))?void 0:n.getRootNode())||document)}n=e.customElements}return(e=(n=n||window.customElements).j(t))?S(i,e):d.set(i,n),i}return o.Object.defineProperty(i,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),i.prototype.connectedCallback=function(){var i=v.get(this);i?i.connectedCallback&&i.connectedCallback.apply(this,arguments):d.get(this).m(this,t,!0)},i.prototype.disconnectedCallback=function(){var i=v.get(this);i?i.disconnectedCallback&&i.disconnectedCallback.apply(this,arguments):d.get(this).m(this,t,!1)},i.prototype.adoptedCallback=function(){var t,i;null==(t=v.get(this))||null==(i=t.adoptedCallback)||i.apply(this,arguments)},i.prototype.formAssociatedCallback=function(){var t,i=v.get(this);i&&i.formAssociated&&(null==i||null==(t=i.formAssociatedCallback)||t.apply(this,arguments))},i.prototype.formDisabledCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formDisabledCallback)||t.apply(this,arguments))},i.prototype.formResetCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formResetCallback)||t.apply(this,arguments))},i.prototype.formStateRestoreCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formStateRestoreCallback)||t.apply(this,arguments))},i},b=function(t,i,e){if(0!==i.size&&void 0!==e){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){if(t=t.toLowerCase(),i.has(t)){var o=this.getAttribute(t);n.call(this,t,r),e.call(this,t,o,r)}else n.call(this,t,r)});var r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),i.has(t)){var n=this.getAttribute(t);r.call(this,t),e.call(this,t,n,null)}else r.call(this,t)})}},x=function(t){var i=Object.getPrototypeOf(t);if(i!==window.HTMLElement)return i===p?Object.setPrototypeOf(t,window.HTMLElement):x(i)},S=function(t,i,e){e=void 0!==e&&e,Object.setPrototypeOf(t,i.g.prototype),v.set(t,i),f=t;try{new i.g}catch(t){x(i.g),new i.g}i.observedAttributes.forEach((function(e){t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var i=$.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};var O=[document],E=function(t,i,e){var n=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){O.push(this);var t=n.apply(e||this,arguments);return void 0!==t&&m.set(t,this),O.pop(),t}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");var j=function(t){var i=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},i,{set:function(t){O.push(this),i.set.call(this,t),O.pop()}}))};if(j(Element),j(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,M=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];return i=M.call.apply(M,[this].concat(e(i))),C.set(i,this),i},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var i=window.ElementInternals.prototype,n=i[t];i[t]=function(t){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];if(r=C.get(this),!0!==v.get(r).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(e(i)))}}));var z=function(t){var i=s(Array,[].concat(e(t)),this.constructor);return i.h=t,i},A=z,T=Array;if(A.prototype=n(T.prototype),A.prototype.constructor=A,l)l(A,T);else for(var k in T)if("prototype"!=k)if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(T,k);R&&Object.defineProperty(A,k,R)}else A[k]=T[k];A.u=T.prototype,o.Object.defineProperty(z.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var _=function(t){var i=this,e=new Map;t.forEach((function(t,n){var r=t.getAttribute("name"),o=e.get(r)||[];i[+n]=t,o.push(t),e.set(r,o)})),this.length=t.length,e.forEach((function(t,e){t&&(i[e]=1===t.length?t[0]:new z(t))}))};_.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),e=[],n=(t=i(t)).next();!n.done;n=t.next()){n=n.value;var r=v.get(n);r&&!0!==r.formAssociated||e.push(n)}return new _(e)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(ht){const t=window.customElements.define;window.customElements.define=(i,e,n)=>{try{t.bind(window.customElements)(i,e,n)}catch(t){console.warn(i,e,n,t)}}}class st extends(
41
+ /**
42
+ * @license
43
+ * Copyright 2021 Google LLC
44
+ * SPDX-License-Identifier: BSD-3-Clause
45
+ */
46
+ function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:n}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const r=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return s(r,this.constructor.elementStyles),r}}}(X)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),R`${t.map((t=>R`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}
47
+ /**
48
+ * @license
49
+ * Copyright 2017 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ */const at=2;
52
+ /**
53
+ * @license
54
+ * Copyright 2017 Google LLC
55
+ * SPDX-License-Identifier: BSD-3-Clause
56
+ */
57
+ class ht extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}{constructor(t){if(super(t),this.it=U,t.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===U||null==t)return this.vt=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.vt;this.it=t;const i=[t];return i.raw=i,this.vt={_$litType$:this.constructor.resultType,strings:i,values:[]}}}var lt,ft;ht.directiveName="unsafeHTML",ht.resultType=1,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(lt=window.safari)||void 0===lt?void 0:lt.pushNotification)||void 0===ft||ft.toString());var pt,ut=function(t,i,e,n){for(var r,o=arguments.length,s=o<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(i,e,s):r(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};t.FtTypographyVariants=void 0,(pt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",pt.title_dense="title-dense",pt.subtitle1="subtitle1",pt.subtitle2="subtitle2",pt.body1="body1",pt.body2="body2",pt.caption="caption",pt.breadcrumb="breadcrumb",pt.overline="overline",pt.button="button";const ct=o`
58
+ .ft-typography--title {
59
+ font-family: var(--ft-typography-title-font-family, var(--ft-typography-font-family, var(--ft-title-font, Ubuntu))), system-ui, sans-serif;
60
+ font-size: var(--ft-typography-title-font-size, var(--ft-typography-font-size, 20px));
61
+ font-weight: var(--ft-typography-title-font-weight, var(--ft-typography-font-weight, normal));
62
+ letter-spacing: var(--ft-typography-title-letter-spacing, var(--ft-typography-letter-spacing, 0.15px));
63
+ line-height: var(--ft-typography-title-line-height, var(--ft-typography-line-height, 24px));
64
+ text-transform: var(--ft-typography-title-text-transform, var(--ft-typography-text-transform, inherit));
65
+ }
66
+ `,yt=o`
67
+ .ft-typography--title-dense {
68
+ font-family: var(--ft-typography-title-dense-font-family, var(--ft-typography-font-family, var(--ft-title-font, Ubuntu))), system-ui, sans-serif;
69
+ font-size: var(--ft-typography-title-dense-font-size, var(--ft-typography-font-size, 14px));
70
+ font-weight: var(--ft-typography-title-dense-font-weight, var(--ft-typography-font-weight, normal));
71
+ letter-spacing: var(--ft-typography-title-dense-letter-spacing, var(--ft-typography-letter-spacing, 0.105px));
72
+ line-height: var(--ft-typography-title-dense-line-height, var(--ft-typography-line-height, 24px));
73
+ text-transform: var(--ft-typography-title-dense-text-transform, var(--ft-typography-text-transform, inherit));
74
+ }
75
+ `,vt=o`
76
+ .ft-typography--subtitle1 {
77
+ font-family: var(--ft-typography-subtitle1-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
78
+ font-size: var(--ft-typography-subtitle1-font-size, var(--ft-typography-font-size, 16px));
79
+ font-weight: var(--ft-typography-subtitle1-font-weight, var(--ft-typography-font-weight, 600));
80
+ letter-spacing: var(--ft-typography-subtitle1-letter-spacing, var(--ft-typography-letter-spacing, 0.144px));
81
+ line-height: var(--ft-typography-subtitle1-line-height, var(--ft-typography-line-height, 24px));
82
+ text-transform: var(--ft-typography-subtitle1-text-transform, var(--ft-typography-text-transform, inherit));
83
+ }
84
+ `,dt=o`
85
+ .ft-typography--subtitle2 {
86
+ font-family: var(--ft-typography-subtitle2-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
87
+ font-size: var(--ft-typography-subtitle2-font-size, var(--ft-typography-font-size, 14px));
88
+ font-weight: var(--ft-typography-subtitle2-font-weight, var(--ft-typography-font-weight, normal));
89
+ letter-spacing: var(--ft-typography-subtitle2-letter-spacing, var(--ft-typography-letter-spacing, 0.098px));
90
+ line-height: var(--ft-typography-subtitle2-line-height, var(--ft-typography-line-height, 24px));
91
+ text-transform: var(--ft-typography-subtitle2-text-transform, var(--ft-typography-text-transform, inherit));
92
+ }
93
+
94
+ `,gt=o`
95
+ .ft-typography--body1 {
96
+ font-family: var(--ft-typography-body1-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
97
+ font-size: var(--ft-typography-body1-font-size, var(--ft-typography-font-size, 16px));
98
+ font-weight: var(--ft-typography-body1-font-weight, var(--ft-typography-font-weight, normal));
99
+ letter-spacing: var(--ft-typography-body1-letter-spacing, var(--ft-typography-letter-spacing, 0.496px));
100
+ line-height: var(--ft-typography-body1-line-height, var(--ft-typography-line-height, 24px));
101
+ text-transform: var(--ft-typography-body1-text-transform, var(--ft-typography-text-transform, inherit));
102
+ }
103
+ `,mt=o`
104
+ .ft-typography--body2 {
105
+ font-family: var(--ft-typography-body2-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
106
+ font-size: var(--ft-typography-body2-font-size, var(--ft-typography-font-size, 14px));
107
+ font-weight: var(--ft-typography-body2-font-weight, var(--ft-typography-font-weight, normal));
108
+ letter-spacing: var(--ft-typography-body2-letter-spacing, var(--ft-typography-letter-spacing, 0.252px));
109
+ line-height: var(--ft-typography-body2-line-height, var(--ft-typography-line-height, 20px));
110
+ text-transform: var(--ft-typography-body2-text-transform, var(--ft-typography-text-transform, inherit));
111
+ }
112
+ `,wt=o`
113
+ .ft-typography--caption {
114
+ font-family: var(--ft-typography-caption-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
115
+ font-size: var(--ft-typography-caption-font-size, var(--ft-typography-font-size, 12px));
116
+ font-weight: var(--ft-typography-caption-font-weight, var(--ft-typography-font-weight, normal));
117
+ letter-spacing: var(--ft-typography-caption-letter-spacing, var(--ft-typography-letter-spacing, 0.396px));
118
+ line-height: var(--ft-typography-caption-line-height, var(--ft-typography-line-height, 16px));
119
+ text-transform: var(--ft-typography-caption-text-transform, var(--ft-typography-text-transform, inherit));
120
+ }
121
+ `,bt=o`
122
+ .ft-typography--breadcrumb {
123
+ font-family: var(--ft-typography-breadcrumb-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
124
+ font-size: var(--ft-typography-breadcrumb-font-size, var(--ft-typography-font-size, 10px));
125
+ font-weight: var(--ft-typography-breadcrumb-font-weight, var(--ft-typography-font-weight, normal));
126
+ letter-spacing: var(--ft-typography-breadcrumb-letter-spacing, var(--ft-typography-letter-spacing, 0.33px));
127
+ line-height: var(--ft-typography-breadcrumb-line-height, var(--ft-typography-line-height, 16px));
128
+ text-transform: var(--ft-typography-breadcrumb-text-transform, var(--ft-typography-text-transform, inherit));
129
+ }
130
+ `,xt=o`
131
+ .ft-typography--overline {
132
+ font-family: var(--ft-typography-overline-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
133
+ font-size: var(--ft-typography-overline-font-size, var(--ft-typography-font-size, 10px));
134
+ font-weight: var(--ft-typography-overline-font-weight, var(--ft-typography-font-weight, normal));
135
+ letter-spacing: var(--ft-typography-overline-letter-spacing, var(--ft-typography-letter-spacing, 1.5px));
136
+ line-height: var(--ft-typography-overline-line-height, var(--ft-typography-line-height, 16px));
137
+ text-transform: var(--ft-typography-overline-text-transform, var(--ft-typography-text-transform, uppercase));
138
+ }
139
+ `,St=o`
140
+ .ft-typography--button {
141
+ font-family: var(--ft-typography-button-font-family, var(--ft-typography-font-family, var(--ft-content-font, 'Open Sans'))), system-ui, sans-serif;
142
+ font-size: var(--ft-typography-button-font-size, var(--ft-typography-font-size, 14px));
143
+ font-weight: var(--ft-typography-button-font-weight, var(--ft-typography-font-weight, 600));
144
+ letter-spacing: var(--ft-typography-button-letter-spacing, var(--ft-typography-letter-spacing, 1.246px));
145
+ line-height: var(--ft-typography-button-line-height, var(--ft-typography-line-height, 16px));
146
+ text-transform: var(--ft-typography-button-text-transform, var(--ft-typography-text-transform, uppercase));
147
+ }
148
+ `;var $t;t.FtTypography=class extends st{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}getStyles(){return[ct,yt,vt,dt,gt,mt,wt,bt,xt,St]}getTemplate(){return this.element?et`
149
+ <${tt(this.element)}
150
+ class="ft-typography ft-typography--${this.variant}">
151
+ <slot></slot>
152
+ </${tt(this.element)}>
153
+ `:et`
154
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
155
+ `}},ut([rt()],t.FtTypography.prototype,"element",void 0),ut([rt()],t.FtTypography.prototype,"variant",void 0),t.FtTypography=ut([($t="ft-typography",t=>{window.customElements.get($t)||window.customElements.define($t,t)})],t.FtTypography),t.FtTypographyBody1=gt,t.FtTypographyBody2=mt,t.FtTypographyBreadcrumb=bt,t.FtTypographyButton=St,t.FtTypographyCaption=wt,t.FtTypographyOverline=xt,t.FtTypographySubtitle1=vt,t.FtTypographySubtitle2=dt,t.FtTypographyTitle=ct,t.FtTypographyTitleDense=yt,Object.defineProperty(t,"t",{value:!0})}({});
@@ -0,0 +1,158 @@
1
+ export declare enum FtIcons {
2
+ THIN_ARROW_LEFT = "&#xe956;",
3
+ THIN_ARROW_RIGHT = "&#xe957;",
4
+ MY_COLLECTIONS = "&#xe955;",
5
+ OFFLINE_SETTINGS = "&#xe954;",
6
+ MY_LIBRARY = "&#xe959;",
7
+ RATE_PLAIN = "&#xe952;",
8
+ RATE = "&#xe953;",
9
+ FEEDBACK_PLAIN = "&#xe951;",
10
+ STAR_PLAIN = "&#xe94b;",
11
+ STAR = "&#xe94c;",
12
+ THUMBS_DOWN_PLAIN = "&#xe94d;",
13
+ THUMBS_DOWN = "&#xe94e;",
14
+ THUMBS_UP_PLAIN = "&#xe94f;",
15
+ THUMBS_UP = "&#xe950;",
16
+ PAUSE = "&#xe949;",
17
+ PLAY = "&#xe94a;",
18
+ RELATIVES_PLAIN = "&#xe947;",
19
+ RELATIVES = "&#xe948;",
20
+ SHORTCUT_MENU = "&#xe946;",
21
+ PRINT = "&#xe944;",
22
+ DEFAULT_ROLES = "&#xe945;",
23
+ ACCOUNT_SETTINGS = "&#xe943;",
24
+ ONLINE = "&#xe941;",
25
+ OFFLINE = "&#xe816;",
26
+ UPLOAD = "&#xe940;",
27
+ BOOK_PLAIN = "&#xe93f;",
28
+ SYNC = "&#xe93d;",
29
+ SHARED_PBK = "&#xe931;",
30
+ COLLECTIONS = "&#xe92a;",
31
+ SEARCH_IN_PUBLICATION = "&#xe92f;",
32
+ BOOKS = "&#xe806;",
33
+ LOCKER = "&#xe93b;",
34
+ ARROW_DOWN = "&#xe92b;",
35
+ ARROW_LEFT = "&#xe92c;",
36
+ ARROW_RIGHT = "&#xe92d;",
37
+ ARROW_UP = "&#xe92e;",
38
+ SAVE = "&#xe93a;",
39
+ MAILS_AND_NOTIFICATIONS = "&#xe939;",
40
+ DOT = "&#xe936;",
41
+ MINUS = "&#xe937;",
42
+ PLUS = "&#xe938;",
43
+ FILTERS = "&#xe935;",
44
+ STRIPE_ARROW_RIGHT = "&#xe934;",
45
+ STRIPE_ARROW_LEFT = "&#xe933;",
46
+ ATTACHMENTS = "&#xe932;",
47
+ ADD_BOOKMARK = "&#xe804;",
48
+ BOOKMARK = "&#xe805;",
49
+ EXPORT = "&#xe80f;",
50
+ MENU = "&#xe807;",
51
+ TAG = "&#xe93e;",
52
+ TAG_PLAIN = "&#xe942;",
53
+ COPY_TO_CLIPBOARD = "&#xe930;",
54
+ COLUMNS = "&#xe928;",
55
+ ARTICLE = "&#xe927;",
56
+ CLOSE_PLAIN = "&#xe925;",
57
+ CHECK_PLAIN = "&#xe926;",
58
+ LOGOUT = "&#xe923;",
59
+ SIGN_IN = "&#xe922;",
60
+ THIN_ARROW = "&#xe921;",
61
+ TRIANGLE_BOTTOM = "&#xe91d;",
62
+ TRIANGLE_LEFT = "&#xe91e;",
63
+ TRIANGLE_RIGHT = "&#xe91f;",
64
+ TRIANGLE_TOP = "&#xe920;",
65
+ FACET_HAS_DESCENDANT = "&#xe91c;",
66
+ MINUS_PLAIN = "&#xe91a;",
67
+ PLUS_PLAIN = "&#xe91b;",
68
+ INFO = "&#xe919;",
69
+ ICON_EXPAND = "&#xe917;",
70
+ ICON_COLLAPSE = "&#xe918;",
71
+ ADD_TO_PBK = "&#xe800;",
72
+ ALERT = "&#xe801;",
73
+ ADD_ALERT = "&#xe802;",
74
+ BACK_TO_SEARCH = "&#xe803;",
75
+ DOWNLOAD = "&#xe808;",
76
+ EDIT = "&#xe809;",
77
+ FEEDBACK = "&#xe80a;",
78
+ MODIFY_PBK = "&#xe80c;",
79
+ SCHEDULED = "&#xe80d;",
80
+ SEARCH = "&#xe80e;",
81
+ SHARE = "&#xe80f1;",
82
+ TOC = "&#xe810;",
83
+ WRITE_UGC = "&#xe811;",
84
+ TRASH = "&#xe812;",
85
+ EXTLINK = "&#xe814;",
86
+ CALENDAR = "&#xe815;",
87
+ BOOK = "&#xe817;",
88
+ DOWNLOAD_PLAIN = "&#xe818;",
89
+ CHECK = "&#xe819;",
90
+ TOPICS = "&#xe900;",
91
+ EYE = "\f06e",
92
+ DISC = "&#xe901;",
93
+ CIRCLE = "&#xe903;",
94
+ SHARED = "&#xe904;",
95
+ SORT_UNSORTED = "&#xe905;",
96
+ SORT_UP = "&#xe906;",
97
+ SORT_DOWN = "&#xe907;",
98
+ WORKING = "&#xe908;",
99
+ CLOSE = "&#xe909;",
100
+ ZOOM_OUT = "&#xe90a;",
101
+ ZOOM_IN = "&#xe90b;",
102
+ ZOOM_REALSIZE = "&#xe90c;",
103
+ ZOOM_FULLSCREEN = "&#xe90d;",
104
+ ADMIN_RESTRICTED = "&#xe90e;",
105
+ ADMIN_THEME = "&#xe911;",
106
+ WARNING = "&#xe913;",
107
+ CONTEXT = "&#xe914;",
108
+ SEARCH_HOME = "&#xe915;",
109
+ STEPS = "&#xe916;",
110
+ HOME = "&#xe80b;",
111
+ TRANSLATE = "&#xe924;",
112
+ USER = "&#xe813;",
113
+ ADMIN = "&#xe902;",
114
+ ANALYTICS = "&#xe929;",
115
+ ADMIN_KHUB = "&#xe90f;",
116
+ ADMIN_USERS = "&#xe910;",
117
+ ADMIN_INTEGRATION = "&#xe93c;",
118
+ ADMIN_PORTAL = "&#xe912;"
119
+ }
120
+ export declare enum FtFileFormatIcons {
121
+ UNKNOWN = "&#xe90a;",
122
+ ABW = "&#xe900;",
123
+ AUDIO = "&#xe901;",
124
+ AVI = "&#xe902;",
125
+ CHM = "&#xe904;",
126
+ CODE = "&#xe905;",
127
+ CSV = "&#xe903;",
128
+ DITA = "&#xe906;",
129
+ EPUB = "&#xe907;",
130
+ EXCEL = "&#xe908;",
131
+ FLAC = "&#xe909;",
132
+ GIF = "&#xe90b;",
133
+ GZIP = "&#xe90c;",
134
+ HTML = "&#xe90d;",
135
+ IMAGE = "&#xe90e;",
136
+ JPEG = "&#xe90f;",
137
+ JSON = "&#xe910;",
138
+ M4A = "&#xe911;",
139
+ MOV = "&#xe912;",
140
+ MP3 = "&#xe913;",
141
+ MP4 = "&#xe914;",
142
+ OGG = "&#xe915;",
143
+ PDF = "&#xe916;",
144
+ PNG = "&#xe917;",
145
+ POWERPOINT = "&#xe918;",
146
+ RAR = "&#xe91a;",
147
+ STP = "&#xe91b;",
148
+ TEXT = "&#xe91c;",
149
+ VIDEO = "&#xe91e;",
150
+ WAV = "&#xe91f;",
151
+ WMA = "&#xe920;",
152
+ WORD = "&#xe921;",
153
+ XML = "&#xe922;",
154
+ YAML = "&#xe919;",
155
+ ZIP = "&#xe923;"
156
+ }
157
+ export declare function resolveFileFormatIcon(mimeType: string, extension: string): FtFileFormatIcons;
158
+ //# sourceMappingURL=icons.d.ts.map
package/build/icons.js ADDED
@@ -0,0 +1,223 @@
1
+ export var FtIcons;
2
+ (function (FtIcons) {
3
+ FtIcons["THIN_ARROW_LEFT"] = "&#xe956;";
4
+ FtIcons["THIN_ARROW_RIGHT"] = "&#xe957;";
5
+ FtIcons["MY_COLLECTIONS"] = "&#xe955;";
6
+ FtIcons["OFFLINE_SETTINGS"] = "&#xe954;";
7
+ FtIcons["MY_LIBRARY"] = "&#xe959;";
8
+ FtIcons["RATE_PLAIN"] = "&#xe952;";
9
+ FtIcons["RATE"] = "&#xe953;";
10
+ FtIcons["FEEDBACK_PLAIN"] = "&#xe951;";
11
+ FtIcons["STAR_PLAIN"] = "&#xe94b;";
12
+ FtIcons["STAR"] = "&#xe94c;";
13
+ FtIcons["THUMBS_DOWN_PLAIN"] = "&#xe94d;";
14
+ FtIcons["THUMBS_DOWN"] = "&#xe94e;";
15
+ FtIcons["THUMBS_UP_PLAIN"] = "&#xe94f;";
16
+ FtIcons["THUMBS_UP"] = "&#xe950;";
17
+ FtIcons["PAUSE"] = "&#xe949;";
18
+ FtIcons["PLAY"] = "&#xe94a;";
19
+ FtIcons["RELATIVES_PLAIN"] = "&#xe947;";
20
+ FtIcons["RELATIVES"] = "&#xe948;";
21
+ FtIcons["SHORTCUT_MENU"] = "&#xe946;";
22
+ FtIcons["PRINT"] = "&#xe944;";
23
+ FtIcons["DEFAULT_ROLES"] = "&#xe945;";
24
+ FtIcons["ACCOUNT_SETTINGS"] = "&#xe943;";
25
+ FtIcons["ONLINE"] = "&#xe941;";
26
+ FtIcons["OFFLINE"] = "&#xe816;";
27
+ FtIcons["UPLOAD"] = "&#xe940;";
28
+ FtIcons["BOOK_PLAIN"] = "&#xe93f;";
29
+ FtIcons["SYNC"] = "&#xe93d;";
30
+ FtIcons["SHARED_PBK"] = "&#xe931;";
31
+ FtIcons["COLLECTIONS"] = "&#xe92a;";
32
+ FtIcons["SEARCH_IN_PUBLICATION"] = "&#xe92f;";
33
+ FtIcons["BOOKS"] = "&#xe806;";
34
+ FtIcons["LOCKER"] = "&#xe93b;";
35
+ FtIcons["ARROW_DOWN"] = "&#xe92b;";
36
+ FtIcons["ARROW_LEFT"] = "&#xe92c;";
37
+ FtIcons["ARROW_RIGHT"] = "&#xe92d;";
38
+ FtIcons["ARROW_UP"] = "&#xe92e;";
39
+ FtIcons["SAVE"] = "&#xe93a;";
40
+ FtIcons["MAILS_AND_NOTIFICATIONS"] = "&#xe939;";
41
+ FtIcons["DOT"] = "&#xe936;";
42
+ FtIcons["MINUS"] = "&#xe937;";
43
+ FtIcons["PLUS"] = "&#xe938;";
44
+ FtIcons["FILTERS"] = "&#xe935;";
45
+ FtIcons["STRIPE_ARROW_RIGHT"] = "&#xe934;";
46
+ FtIcons["STRIPE_ARROW_LEFT"] = "&#xe933;";
47
+ FtIcons["ATTACHMENTS"] = "&#xe932;";
48
+ FtIcons["ADD_BOOKMARK"] = "&#xe804;";
49
+ FtIcons["BOOKMARK"] = "&#xe805;";
50
+ FtIcons["EXPORT"] = "&#xe80f;";
51
+ FtIcons["MENU"] = "&#xe807;";
52
+ FtIcons["TAG"] = "&#xe93e;";
53
+ FtIcons["TAG_PLAIN"] = "&#xe942;";
54
+ FtIcons["COPY_TO_CLIPBOARD"] = "&#xe930;";
55
+ FtIcons["COLUMNS"] = "&#xe928;";
56
+ FtIcons["ARTICLE"] = "&#xe927;";
57
+ FtIcons["CLOSE_PLAIN"] = "&#xe925;";
58
+ FtIcons["CHECK_PLAIN"] = "&#xe926;";
59
+ FtIcons["LOGOUT"] = "&#xe923;";
60
+ FtIcons["SIGN_IN"] = "&#xe922;";
61
+ FtIcons["THIN_ARROW"] = "&#xe921;";
62
+ FtIcons["TRIANGLE_BOTTOM"] = "&#xe91d;";
63
+ FtIcons["TRIANGLE_LEFT"] = "&#xe91e;";
64
+ FtIcons["TRIANGLE_RIGHT"] = "&#xe91f;";
65
+ FtIcons["TRIANGLE_TOP"] = "&#xe920;";
66
+ FtIcons["FACET_HAS_DESCENDANT"] = "&#xe91c;";
67
+ FtIcons["MINUS_PLAIN"] = "&#xe91a;";
68
+ FtIcons["PLUS_PLAIN"] = "&#xe91b;";
69
+ FtIcons["INFO"] = "&#xe919;";
70
+ FtIcons["ICON_EXPAND"] = "&#xe917;";
71
+ FtIcons["ICON_COLLAPSE"] = "&#xe918;";
72
+ FtIcons["ADD_TO_PBK"] = "&#xe800;";
73
+ FtIcons["ALERT"] = "&#xe801;";
74
+ FtIcons["ADD_ALERT"] = "&#xe802;";
75
+ FtIcons["BACK_TO_SEARCH"] = "&#xe803;";
76
+ FtIcons["DOWNLOAD"] = "&#xe808;";
77
+ FtIcons["EDIT"] = "&#xe809;";
78
+ FtIcons["FEEDBACK"] = "&#xe80a;";
79
+ FtIcons["MODIFY_PBK"] = "&#xe80c;";
80
+ FtIcons["SCHEDULED"] = "&#xe80d;";
81
+ FtIcons["SEARCH"] = "&#xe80e;";
82
+ FtIcons["SHARE"] = "&#xe80f1;";
83
+ FtIcons["TOC"] = "&#xe810;";
84
+ FtIcons["WRITE_UGC"] = "&#xe811;";
85
+ FtIcons["TRASH"] = "&#xe812;";
86
+ FtIcons["EXTLINK"] = "&#xe814;";
87
+ FtIcons["CALENDAR"] = "&#xe815;";
88
+ FtIcons["BOOK"] = "&#xe817;";
89
+ FtIcons["DOWNLOAD_PLAIN"] = "&#xe818;";
90
+ FtIcons["CHECK"] = "&#xe819;";
91
+ FtIcons["TOPICS"] = "&#xe900;";
92
+ FtIcons["EYE"] = "\f06e";
93
+ FtIcons["DISC"] = "&#xe901;";
94
+ FtIcons["CIRCLE"] = "&#xe903;";
95
+ FtIcons["SHARED"] = "&#xe904;";
96
+ FtIcons["SORT_UNSORTED"] = "&#xe905;";
97
+ FtIcons["SORT_UP"] = "&#xe906;";
98
+ FtIcons["SORT_DOWN"] = "&#xe907;";
99
+ FtIcons["WORKING"] = "&#xe908;";
100
+ FtIcons["CLOSE"] = "&#xe909;";
101
+ FtIcons["ZOOM_OUT"] = "&#xe90a;";
102
+ FtIcons["ZOOM_IN"] = "&#xe90b;";
103
+ FtIcons["ZOOM_REALSIZE"] = "&#xe90c;";
104
+ FtIcons["ZOOM_FULLSCREEN"] = "&#xe90d;";
105
+ FtIcons["ADMIN_RESTRICTED"] = "&#xe90e;";
106
+ FtIcons["ADMIN_THEME"] = "&#xe911;";
107
+ FtIcons["WARNING"] = "&#xe913;";
108
+ FtIcons["CONTEXT"] = "&#xe914;";
109
+ FtIcons["SEARCH_HOME"] = "&#xe915;";
110
+ FtIcons["STEPS"] = "&#xe916;";
111
+ FtIcons["HOME"] = "&#xe80b;";
112
+ FtIcons["TRANSLATE"] = "&#xe924;";
113
+ FtIcons["USER"] = "&#xe813;";
114
+ FtIcons["ADMIN"] = "&#xe902;";
115
+ FtIcons["ANALYTICS"] = "&#xe929;";
116
+ FtIcons["ADMIN_KHUB"] = "&#xe90f;";
117
+ FtIcons["ADMIN_USERS"] = "&#xe910;";
118
+ FtIcons["ADMIN_INTEGRATION"] = "&#xe93c;";
119
+ FtIcons["ADMIN_PORTAL"] = "&#xe912;";
120
+ })(FtIcons || (FtIcons = {}));
121
+ export var FtFileFormatIcons;
122
+ (function (FtFileFormatIcons) {
123
+ FtFileFormatIcons["UNKNOWN"] = "&#xe90a;";
124
+ FtFileFormatIcons["ABW"] = "&#xe900;";
125
+ FtFileFormatIcons["AUDIO"] = "&#xe901;";
126
+ FtFileFormatIcons["AVI"] = "&#xe902;";
127
+ FtFileFormatIcons["CHM"] = "&#xe904;";
128
+ FtFileFormatIcons["CODE"] = "&#xe905;";
129
+ FtFileFormatIcons["CSV"] = "&#xe903;";
130
+ FtFileFormatIcons["DITA"] = "&#xe906;";
131
+ FtFileFormatIcons["EPUB"] = "&#xe907;";
132
+ FtFileFormatIcons["EXCEL"] = "&#xe908;";
133
+ FtFileFormatIcons["FLAC"] = "&#xe909;";
134
+ FtFileFormatIcons["GIF"] = "&#xe90b;";
135
+ FtFileFormatIcons["GZIP"] = "&#xe90c;";
136
+ FtFileFormatIcons["HTML"] = "&#xe90d;";
137
+ FtFileFormatIcons["IMAGE"] = "&#xe90e;";
138
+ FtFileFormatIcons["JPEG"] = "&#xe90f;";
139
+ FtFileFormatIcons["JSON"] = "&#xe910;";
140
+ FtFileFormatIcons["M4A"] = "&#xe911;";
141
+ FtFileFormatIcons["MOV"] = "&#xe912;";
142
+ FtFileFormatIcons["MP3"] = "&#xe913;";
143
+ FtFileFormatIcons["MP4"] = "&#xe914;";
144
+ FtFileFormatIcons["OGG"] = "&#xe915;";
145
+ FtFileFormatIcons["PDF"] = "&#xe916;";
146
+ FtFileFormatIcons["PNG"] = "&#xe917;";
147
+ FtFileFormatIcons["POWERPOINT"] = "&#xe918;";
148
+ FtFileFormatIcons["RAR"] = "&#xe91a;";
149
+ FtFileFormatIcons["STP"] = "&#xe91b;";
150
+ FtFileFormatIcons["TEXT"] = "&#xe91c;";
151
+ FtFileFormatIcons["VIDEO"] = "&#xe91e;";
152
+ FtFileFormatIcons["WAV"] = "&#xe91f;";
153
+ FtFileFormatIcons["WMA"] = "&#xe920;";
154
+ FtFileFormatIcons["WORD"] = "&#xe921;";
155
+ FtFileFormatIcons["XML"] = "&#xe922;";
156
+ FtFileFormatIcons["YAML"] = "&#xe919;";
157
+ FtFileFormatIcons["ZIP"] = "&#xe923;";
158
+ })(FtFileFormatIcons || (FtFileFormatIcons = {}));
159
+ const resolutions = new Map([
160
+ ...["abw"].map(ext => [ext, FtFileFormatIcons.ABW]),
161
+ ...["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(ext => [ext, FtFileFormatIcons.AUDIO]),
162
+ ...["avi"].map(ext => [ext, FtFileFormatIcons.AVI]),
163
+ ...["chm", "xhs"].map(ext => [ext, FtFileFormatIcons.CHM]),
164
+ ...["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(ext => [ext, FtFileFormatIcons.CODE]),
165
+ ...["csv"].map(ext => [ext, FtFileFormatIcons.CSV]),
166
+ ...["dita", "ditamap", "ditaval"].map(ext => [ext, FtFileFormatIcons.DITA]),
167
+ ...["epub"].map(ext => [ext, FtFileFormatIcons.EPUB]),
168
+ ...["xls", "xlt", "xlm", "xlsx", "xlsm", "xltx", "xltm", "xlsb", "xla", "xlam", "xll", "xlw"].map(ext => [ext, FtFileFormatIcons.EXCEL]),
169
+ ...["flac"].map(ext => [ext, FtFileFormatIcons.FLAC]),
170
+ ...["gif"].map(ext => [ext, FtFileFormatIcons.GIF]),
171
+ ...["gzip", "x-gzip", "giz", "gz", "tgz"].map(ext => [ext, FtFileFormatIcons.GZIP]),
172
+ ...["html", "htm", "xhtml"].map(ext => [ext, FtFileFormatIcons.HTML]),
173
+ ...["ai", "vml", "xps", "img", "cpt", "psd", "psp", "xcf", "svg", "svg+xml", "bmp", "bpg", "ppm", "pgm", "pbm", "pnm", "rif", "tif", "tiff", "webp", "wmf"].map(ext => [ext, FtFileFormatIcons.IMAGE]),
174
+ ...["jpeg", "jpg", "jpe"].map(ext => [ext, FtFileFormatIcons.JPEG]),
175
+ ...["json"].map(ext => [ext, FtFileFormatIcons.JSON]),
176
+ ...["m4a", "m4p"].map(ext => [ext, FtFileFormatIcons.M4A]),
177
+ ...["mov", "qt"].map(ext => [ext, FtFileFormatIcons.MOV]),
178
+ ...["mp3"].map(ext => [ext, FtFileFormatIcons.MP3]),
179
+ ...["mp4", "m4v"].map(ext => [ext, FtFileFormatIcons.MP4]),
180
+ ...["ogg", "oga"].map(ext => [ext, FtFileFormatIcons.OGG]),
181
+ ...["pdf", "ps"].map(ext => [ext, FtFileFormatIcons.PDF]),
182
+ ...["png"].map(ext => [ext, FtFileFormatIcons.PNG]),
183
+ ...["ppt", "pot", "pps", "pptx", "pptm", "potx", "potm", "ppam", "ppsx", "ppsm", "sldx", "sldm"].map(ext => [ext, FtFileFormatIcons.POWERPOINT]),
184
+ ...["rar"].map(ext => [ext, FtFileFormatIcons.RAR]),
185
+ ...["stp"].map(ext => [ext, FtFileFormatIcons.STP]),
186
+ ...["txt", "rtf", "md", "mdown"].map(ext => [ext, FtFileFormatIcons.TEXT]),
187
+ ...["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(ext => [ext, FtFileFormatIcons.VIDEO]),
188
+ ...["wav"].map(ext => [ext, FtFileFormatIcons.WAV]),
189
+ ...["wma"].map(ext => [ext, FtFileFormatIcons.WMA]),
190
+ ...["doc", "dot", "docx", "docm", "dotx", "dotm", "docb"].map(ext => [ext, FtFileFormatIcons.WORD]),
191
+ ...["xml", "xsl", "rdf"].map(ext => [ext, FtFileFormatIcons.XML]),
192
+ ...["yaml", "yml", "x-yaml"].map(ext => [ext, FtFileFormatIcons.YAML]),
193
+ ...["zip"].map(ext => [ext, FtFileFormatIcons.ZIP]),
194
+ ]);
195
+ const simplifier = new Map([
196
+ ["application/msword", "application/doc"],
197
+ ["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/docx"],
198
+ ["application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/dotx"],
199
+ ["application/vnd.ms-word.document.macroEnabled.12", "application/docm"],
200
+ ["application/vnd.ms-word.template.macroEnabled.12", "application/dotm"],
201
+ ["application/vnd.ms-excel", "application/xls"],
202
+ ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/xlsx"],
203
+ ["application/vnd.openxmlformats-officedocument.spreadsheetml.template", "application/xltx"],
204
+ ["application/vnd.ms-excel.sheet.macroEnabled.12", "application/xlsm"],
205
+ ["application/vnd.ms-excel.template.macroEnabled.12", "application/xltm"],
206
+ ["application/vnd.ms-excel.addin.macroEnabled.12", "application/xlam"],
207
+ ["application/vnd.ms-excel.sheet.binary.macroEnabled.12", "application/xlsb"],
208
+ ["application/vnd.ms-powerpoint", "application/ppt"],
209
+ ["application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/pptx"],
210
+ ["application/vnd.openxmlformats-officedocument.presentationml.template", "application/potx"],
211
+ ["application/vnd.openxmlformats-officedocument.presentationml.slideshow", "application/ppsx"],
212
+ ["application/vnd.ms-powerpoint.addin.macroEnabled.12", "application/ppam"],
213
+ ["application/vnd.ms-powerpoint.presentation.macroEnabled.12", "application/pptm"],
214
+ ["application/vnd.ms-powerpoint.template.macroEnabled.12", "application/potm"],
215
+ ["application/vnd.ms-powerpoint.slideshow.macroEnabled.12", "application/ppsm"],
216
+ ["application/vnd.ms-access", "application/mdb"],
217
+ ]);
218
+ export function resolveFileFormatIcon(mimeType, extension) {
219
+ var _a, _b, _c, _d;
220
+ const [type, subType] = (((_a = simplifier.get(mimeType)) !== null && _a !== void 0 ? _a : mimeType) + "/").split("/");
221
+ return (_d = (_c = (_b = resolutions.get(subType)) !== null && _b !== void 0 ? _b : resolutions.get(extension)) !== null && _c !== void 0 ? _c : resolutions.get(type)) !== null && _d !== void 0 ? _d : FtFileFormatIcons.UNKNOWN;
222
+ }
223
+ //# sourceMappingURL=icons.js.map
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@fluid-topics/ft-typography",
3
+ "version": "0.0.88",
4
+ "description": "Typography components",
5
+ "keywords": [
6
+ "Lit"
7
+ ],
8
+ "author": "Fluid Topics <devtopics@antidot.net>",
9
+ "license": "ISC",
10
+ "main": "build/ft-typography.js",
11
+ "web": "build/ft-typography.min.js",
12
+ "typings": "build/ft-typography",
13
+ "files": [
14
+ "build/*.ts",
15
+ "build/*.js"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
+ },
21
+ "dependencies": {
22
+ "@fluid-topics/ft-wc-utils": "^0.0.88",
23
+ "lit": "^2.0.2"
24
+ },
25
+ "gitHead": "220e53dba55dfa1de1560abbc30067555f72198c"
26
+ }