@fluid-topics/ft-icon 0.3.57 → 0.3.60
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-icon.d.ts +1 -1
- package/build/ft-icon.js +8 -6
- package/build/ft-icon.light.js +4 -4
- package/build/ft-icon.min.js +29 -29
- package/package.json +3 -3
package/build/ft-icon.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FtIconProperties, FtIconVariants } from "./ft-icon.properties";
|
|
|
4
4
|
export declare class FtIcon extends FtLitElement implements FtIconProperties {
|
|
5
5
|
static elementDefinitions: ElementDefinitionsMap;
|
|
6
6
|
static styles: import("lit").CSSResult;
|
|
7
|
-
variant
|
|
7
|
+
variant?: FtIconVariants;
|
|
8
8
|
value?: string;
|
|
9
9
|
private resolvedIcon;
|
|
10
10
|
private slottedContent?;
|
package/build/ft-icon.js
CHANGED
|
@@ -14,13 +14,14 @@ import { FtIconVariants } from "./ft-icon.properties";
|
|
|
14
14
|
export class FtIcon extends FtLitElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
this.variant = FtIconVariants.fluid_topics;
|
|
18
17
|
this.resolvedIcon = nothing;
|
|
19
18
|
}
|
|
20
19
|
render() {
|
|
21
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
const variant = (_a = this.variant) !== null && _a !== void 0 ? _a : FtIconVariants.fluid_topics;
|
|
22
|
+
const slotHidden = variant !== "material" || this.value;
|
|
22
23
|
return html `
|
|
23
|
-
<i class="ft-icon ${"ft-icon--" +
|
|
24
|
+
<i class="ft-icon ${"ft-icon--" + variant}">
|
|
24
25
|
${unsafeHTML(this.resolvedIcon)}
|
|
25
26
|
<slot ?hidden=${slotHidden}></slot>
|
|
26
27
|
</i>
|
|
@@ -43,11 +44,12 @@ export class FtIcon extends FtLitElement {
|
|
|
43
44
|
case FtIconVariants.file_format:
|
|
44
45
|
this.resolvedIcon = (_a = FtFileFormatIcons[content.replace("-", "_").toUpperCase()]) !== null && _a !== void 0 ? _a : content;
|
|
45
46
|
break;
|
|
46
|
-
case FtIconVariants.
|
|
47
|
-
this.resolvedIcon =
|
|
47
|
+
case FtIconVariants.material:
|
|
48
|
+
this.resolvedIcon = this.value || nothing;
|
|
48
49
|
break;
|
|
49
50
|
default:
|
|
50
|
-
this.resolvedIcon =
|
|
51
|
+
this.resolvedIcon = (_b = FtIcons[content.replace("-", "_").toUpperCase()]) !== null && _b !== void 0 ? _b : content;
|
|
52
|
+
break;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
firstUpdated(_changedProperties) {
|
package/build/ft-icon.light.js
CHANGED
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
.ft-icon--material {
|
|
46
46
|
font-family: ${s.materialFontFamily}, "Material Icons", sans-serif;
|
|
47
47
|
}
|
|
48
|
-
`;var m;e.FtIconVariants=void 0,(m=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",m.file_format="file-format",m.material="material";var f=function(e,t,a,i){for(var o,x=arguments.length,n=x<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i,p=e.length-1;p>=0;p--)(o=e[p])&&(n=(x<3?o(n):x>3?o(t,a,n):o(t,a))||n);return x>3&&n&&Object.defineProperty(t,a,n),n};class d extends t.FtLitElement{constructor(){super(...arguments),this.
|
|
49
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
48
|
+
`;var m;e.FtIconVariants=void 0,(m=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",m.file_format="file-format",m.material="material";var f=function(e,t,a,i){for(var o,x=arguments.length,n=x<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i,p=e.length-1;p>=0;p--)(o=e[p])&&(n=(x<3?o(n):x>3?o(t,a,n):o(t,a))||n);return x>3&&n&&Object.defineProperty(t,a,n),n};class d extends t.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=a.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:e.FtIconVariants.fluid_topics,x="material"!==i||this.value;return a.html`
|
|
49
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
50
50
|
${o.unsafeHTML(this.resolvedIcon)}
|
|
51
|
-
<slot ?hidden=${
|
|
51
|
+
<slot ?hidden=${x}></slot>
|
|
52
52
|
</i>
|
|
53
|
-
`}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case e.FtIconVariants.
|
|
53
|
+
`}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case e.FtIconVariants.material:this.resolvedIcon=this.value||a.nothing;break;default:this.resolvedIcon=null!==(i=e.FtIcons[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>this.resolveIcon()))}}d.elementDefinitions={},d.styles=c,f([i.property()],d.prototype,"variant",void 0),f([i.property()],d.prototype,"value",void 0),f([i.state()],d.prototype,"resolvedIcon",void 0),f([i.query("slot")],d.prototype,"slottedContent",void 0),t.customElement("ft-icon")(d),e.FtIcon=d,e.FtIconCssVariables=s,e.resolveFileFormatIcon=function(t,a){var i,o,x,n;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[s,c]=((null!==(i=l.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(x=null!==(o=p.get(c))&&void 0!==o?o:p.get(a))&&void 0!==x?x:p.get(s))&&void 0!==n?n:e.FtFileFormatIcons.UNKNOWN},e.styles=c,Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
package/build/ft-icon.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,s=window.customElements,o=new WeakMap,n=new WeakMap,r=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,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);d(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(s,t);h||(h=p(t),e.call(s,t,h)),this===window.customElements&&(r.set(o,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,s=window.customElements,o=new WeakMap,n=new WeakMap,r=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,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);d(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(s,t);h||(h=p(t),e.call(s,t,h)),this===window.customElements&&(r.set(o,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),f(t,c,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){v.push(this),s.upgrade.apply(s,arguments),v.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 s=this._awaitingUpgrade.get(e);s||this._awaitingUpgrade.set(e,s=new Set),i?s.add(t):s.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.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),o.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=v[v.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 s=h(i)||window.customElements,o=s._getDefinition(e);return o?f(i,o):n.set(i,s),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){o.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const s=t.prototype.setAttribute;s&&(t.prototype.setAttribute=function(t,o){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);s.call(this,n,o),i.call(this,n,t,o)}else s.call(this,n,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s),i.call(this,s,t,null)}else o.call(this,s)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},f=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){u(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)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const m=(t,e,i)=>{const s=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=s.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};m(ShadowRoot,"createElement",document),m(ShadowRoot,"importNode",document),m(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(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 s=e.call(this,...i);return t.set(s,this),s},i.forEach((e=>{const i=window.ElementInternals.prototype,s=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${s} on 'ElementInternals': The target element is not a form-associated custom element.`);s?.call(this,...e)}}));class s extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const s=t.getAttribute("name"),o=e.get(s)||[];this[+i]=t,o.push(t),e.set(s,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new s(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(vt){const t=window.customElements.define;window.customElements.define=(e,i,s)=>{try{t.bind(window.customElements)(e,i,s)}catch(t){console.info(e,i,s,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const s=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void s(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -30,41 +30,41 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
30
30
|
* Copyright 2021 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElements;
|
|
33
|
+
var o;function n(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,s,o;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(s=i;0!=s--;)if(!n(t[s],e[s]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s of t.entries())if(!e.has(s[0]))return!1;for(s of t.entries())if(!n(s[1],e.get(s[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s of t.entries())if(!e.has(s[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(o=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(s=i;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,o[s]))return!1;for(s=i;0!=s--;){var r=o[s];if(!n(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElements;
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2019 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const r=window,a=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&c.set(e,t))}return t}toString(){return this.cssText}}const p=t=>new h("string"==typeof t?t:t+"",void 0,l),d=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(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.")})(i)+t[s+1]),t[0]);return new h(i,t,l)},u=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),s=r.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=e.cssText,t.appendChild(i)}))},f=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return p(e)})(t):t
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/;var x;const
|
|
44
|
+
*/;var x;const v=window,m=v.trustedTypes,b=m?m.emptyScript:"",g=v.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},y=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:y};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),t}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||O}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._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=O){var s;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const n=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:w;this._$El=o,this[o]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||y)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}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._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var N
|
|
50
|
+
var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:N}),(null!==(x=v.reactiveElementVersions)&&void 0!==x?x:v.reactiveElementVersions=[]).push("1.4.1");const $=window,R=$.trustedTypes,C=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,k="?"+M,S=`<${k}>`,U=document,j=(t="")=>U.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,T=/>/g,B=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,z=/"/g,K=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),P=new WeakMap,Z=U.createTreeWalker(U,129,null,!1),J=(t,e)=>{const i=t.length-1,s=[];let o,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===L?"!--"===l[1]?r=_:void 0!==l[1]?r=T:void 0!==l[2]?(K.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=B):void 0!==l[3]&&(r=B):r===B?">"===l[0]?(r=null!=o?o:L,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?B:'"'===l[3]?z:W):r===z||r===W?r=B:r===_||r===T?r=L:(r=B,o=void 0);const p=r===B&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+S:c>=0?(s.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+M+p):i+M+(-2===c?(s.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,s]};class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const r=t.length-1,a=this.parts,[l,c]=J(t,e);if(this.el=V.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=Z.nextNode())&&a.length<r;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=c[n++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?et:"@"===e[1]?it:Q})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(K.test(s.tagName)){const t=s.textContent.split(M),e=t.length-1;if(e>0){s.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],j()),Z.nextNode(),a.push({type:2,index:++o});s.append(t[e],j())}}}else if(8===s.nodeType)if(s.data===k)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(M,t+1));)a.push({type:7,index:o}),t+=M.length-1}o++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,s){var o,n,r,a;if(e===D)return e;let l=void 0!==s?null===(o=i._$Co)||void 0===o?void 0:o[s]:i._$Cl;const c=F(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,s)),void 0!==s?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=q(t,l._$AS(t,e.values),l,s)),e}class X{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:U).importNode(i,!0);Z.currentNode=o;let n=Z.nextNode(),r=0,a=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new G(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new st(n,this,t)),this.u.push(e),l=s[++a]}r!==(null==l?void 0:l.index)&&(n=Z.nextNode(),r++)}return o}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class G{constructor(t,e,i,s){var o;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}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=q(this,t,e),F(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==D&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==H&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new X(o,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=P.get(t.strings);return void 0===e&&P.set(t.strings,e=new V(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new G(this.O(j()),this.O(j()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,s,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(void 0===o)t=q(this,t,e,0),n=!F(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const s=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=q(this,s[i+r],e,r),a===D&&(a=this._$AH[r]),n||(n=!F(a)||a!==this._$AH[r]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}n&&!s&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const tt=R?R.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends Q{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:H)===D)return;const s=this._$AH,o=t===H&&s!==H||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==H&&(s===H||o);o&&this.element.removeEventListener(this.name,this,s),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 st{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){q(this,t)}}const ot=$.litHtmlPolyfillSupport;null==ot||ot(V,G),(null!==(E=$.litHtmlVersions)&&void 0!==E?E:$.litHtmlVersions=[]).push("2.4.0");
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
56
|
+
var nt,rt;class at extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var s,o;const n=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let r=n._$litPart$;if(void 0===r){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=r=new G(e.insertBefore(j(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return D}}at.finalized=!0,at._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:at});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:at}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,e,i){let s=t=>p(null!=t?t:i),o=d`var(${p(t)}, ${s(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=s,o.get=e=>d`var(${p(t)}, ${s(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let s=t=>e.get(null!=t?t:i),o=d`var(${p(t)}, ${s(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=s,o.get=e=>d`var(${p(t)}, ${s(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):p(null!=e?e:t.defaultValue),s=d`var(${p(t.name)}, ${i(t.defaultValue)})`;return s.name=t.name,s.category=t.category,s.fallbackVariable=t.fallbackVariable,s.defaultValue=t.defaultValue,s.context=e,s.defaultCssValue=i,s.get=e=>d`var(${p(t.name)}, ${i(e)})`,s.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],s.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},s}}ct.create("--ft-color-primary","COLOR","#2196F3"),ct.create("--ft-color-primary-variant","COLOR","#1976D2"),ct.create("--ft-color-secondary","COLOR","#FFCC80"),ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),ct.create("--ft-color-surface","COLOR","#FFFFFF"),ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),ct.create("--ft-color-error","COLOR","#B00020"),ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),ct.create("--ft-color-opacity-high","NUMBER","1"),ct.create("--ft-color-opacity-medium","NUMBER","0.74"),ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),ct.create("--ft-border-radius-S","SIZE","4px"),ct.create("--ft-border-radius-M","SIZE","8px"),ct.create("--ft-border-radius-L","SIZE","12px"),ct.create("--ft-border-radius-XL","SIZE","16px"),ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),ct.create("--ft-transition-duration","UNKNOWN","250ms"),ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out");var ht,pt,dt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ut extends(
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
61
|
*/
|
|
62
|
-
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:s}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...s,customElements:t.registry});return
|
|
63
|
-
${t.map((t=>
|
|
62
|
+
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:s}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...s,customElements:t.registry});return u(o,this.constructor.elementStyles),o}}}(at)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),I`
|
|
63
|
+
${t.map((t=>I`
|
|
64
64
|
<style>${t}</style>
|
|
65
65
|
`))}
|
|
66
66
|
${this.getTemplate()}
|
|
67
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,s,o,n,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(s=t.getAttribute("part"))||void 0===s?void 0:s.split(" "))&&void 0!==o?o:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}
|
|
67
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,s,o,n,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(s=t.getAttribute("part"))||void 0===s?void 0:s.split(" "))&&void 0!==o?o:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}dt([s()],ut.prototype,"exportpartsPrefix",void 0),dt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!n(t,e),...null!=e?e:{}})}([])],ut.prototype,"exportpartsPrefixes",void 0),dt([s()],ut.prototype,"customStylesheet",void 0),d`
|
|
68
68
|
.ft-no-text-select {
|
|
69
69
|
-webkit-touch-callout: none;
|
|
70
70
|
-webkit-user-select: none;
|
|
@@ -73,7 +73,7 @@ function(t){return class extends t{createRenderRoot(){const t=this.constructor,{
|
|
|
73
73
|
-ms-user-select: none;
|
|
74
74
|
user-select: none;
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,d`
|
|
77
77
|
.ft-word-wrap {
|
|
78
78
|
white-space: normal;
|
|
79
79
|
word-wrap: break-word;
|
|
@@ -85,7 +85,7 @@ function(t){return class extends t{createRenderRoot(){const t=this.constructor,{
|
|
|
85
85
|
-webkit-hyphens: auto;
|
|
86
86
|
hyphens: auto
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`,d`
|
|
89
89
|
.ft-safari-ellipsis-fix {
|
|
90
90
|
margin-right: 0;
|
|
91
91
|
|
|
@@ -96,18 +96,18 @@ function(t){return class extends t{createRenderRoot(){const t=this.constructor,{
|
|
|
96
96
|
display: inline-block;
|
|
97
97
|
width: 0;
|
|
98
98
|
}
|
|
99
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
99
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(pt=null===(ht=window.safari)||void 0===ht?void 0:ht.pushNotification)||void 0===pt||pt.toString());
|
|
100
100
|
/**
|
|
101
101
|
* @license
|
|
102
102
|
* Copyright 2017 Google LLC
|
|
103
103
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
104
|
*/
|
|
105
|
-
const
|
|
105
|
+
const ft=2;class xt{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)}}
|
|
106
106
|
/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright 2017 Google LLC
|
|
109
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/class
|
|
110
|
+
*/class vt extends xt{constructor(t){if(super(t),this.it=H,t.type!==ft)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this._t=void 0,this.it=t;if(t===D)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:[]}}}vt.directiveName="unsafeHTML",vt.resultType=1;const mt=(t=>(...e)=>({_$litDirective$:t,values:e}))(vt);var bt,gt;t.FtIcons=void 0,(bt=t.FtIcons||(t.FtIcons={})).THUMBS_DOWN="",bt.THUMBS_DOWN_PLAIN="",bt.THUMBS_UP="",bt.THUMBS_UP_PLAIN="",bt.STAR="",bt.STAR_PLAIN="",bt.DESKTOP="",bt.TABLET_LANDSCAPE="",bt.TABLET_PORTRAIT="",bt.MOBILE_LANDSCAPE="",bt.MOBILE_PORTRAIT="",bt.ARROW_RIGHT_TO_LINE="",bt.THIN_ARROW_UP="",bt.CONTEXTUAL="",bt.UNSTRUCTURED_DOC="",bt.RESET="",bt.THIN_ARROW_LEFT="",bt.THIN_ARROW_RIGHT="",bt.MY_COLLECTIONS="",bt.OFFLINE_SETTINGS="",bt.MY_LIBRARY="",bt.RATE_PLAIN="",bt.RATE="",bt.FEEDBACK_PLAIN="",bt.PAUSE="",bt.PLAY="",bt.RELATIVES_PLAIN="",bt.RELATIVES="",bt.SHORTCUT_MENU="",bt.PRINT="",bt.DEFAULT_ROLES="",bt.ACCOUNT_SETTINGS="",bt.ONLINE="",bt.OFFLINE="",bt.UPLOAD="",bt.BOOK_PLAIN="",bt.SYNC="",bt.SHARED_PBK="",bt.COLLECTIONS="",bt.SEARCH_IN_PUBLICATION="",bt.BOOKS="",bt.LOCKER="",bt.ARROW_DOWN="",bt.ARROW_LEFT="",bt.ARROW_RIGHT="",bt.ARROW_UP="",bt.SAVE="",bt.MAILS_AND_NOTIFICATIONS="",bt.DOT="",bt.MINUS="",bt.PLUS="",bt.FILTERS="",bt.STRIPE_ARROW_RIGHT="",bt.STRIPE_ARROW_LEFT="",bt.ATTACHMENTS="",bt.ADD_BOOKMARK="",bt.BOOKMARK="",bt.EXPORT="",bt.MENU="",bt.TAG="",bt.TAG_PLAIN="",bt.COPY_TO_CLIPBOARD="",bt.COLUMNS="",bt.ARTICLE="",bt.CLOSE_PLAIN="",bt.CHECK_PLAIN="",bt.LOGOUT="",bt.SIGN_IN="",bt.THIN_ARROW="",bt.TRIANGLE_BOTTOM="",bt.TRIANGLE_LEFT="",bt.TRIANGLE_RIGHT="",bt.TRIANGLE_TOP="",bt.FACET_HAS_DESCENDANT="",bt.MINUS_PLAIN="",bt.PLUS_PLAIN="",bt.INFO="",bt.ICON_EXPAND="",bt.ICON_COLLAPSE="",bt.ADD_TO_PBK="",bt.ALERT="",bt.ADD_ALERT="",bt.BACK_TO_SEARCH="",bt.DOWNLOAD="",bt.EDIT="",bt.FEEDBACK="",bt.MODIFY_PBK="",bt.SCHEDULED="",bt.SEARCH="",bt.SHARE="󨃱",bt.TOC="",bt.WRITE_UGC="",bt.TRASH="",bt.EXTLINK="",bt.CALENDAR="",bt.BOOK="",bt.DOWNLOAD_PLAIN="",bt.CHECK="",bt.TOPICS="",bt.EYE="",bt.DISC="",bt.CIRCLE="",bt.SHARED="",bt.SORT_UNSORTED="",bt.SORT_UP="",bt.SORT_DOWN="",bt.WORKING="",bt.CLOSE="",bt.ZOOM_OUT="",bt.ZOOM_IN="",bt.ZOOM_REALSIZE="",bt.ZOOM_FULLSCREEN="",bt.ADMIN_RESTRICTED="",bt.ADMIN_THEME="",bt.WARNING="",bt.CONTEXT="",bt.SEARCH_HOME="",bt.STEPS="",bt.HOME="",bt.TRANSLATE="",bt.USER="",bt.ADMIN="",bt.ANALYTICS="",bt.ADMIN_KHUB="",bt.ADMIN_USERS="",bt.ADMIN_INTEGRATION="",bt.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(gt=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",gt.ABW="",gt.AUDIO="",gt.AVI="",gt.CHM="",gt.CODE="",gt.CSV="",gt.DITA="",gt.EPUB="",gt.EXCEL="",gt.FLAC="",gt.GIF="",gt.GZIP="",gt.HTML="",gt.IMAGE="",gt.JPEG="",gt.JSON="",gt.M4A="",gt.MOV="",gt.MP3="",gt.MP4="",gt.OGG="",gt.PDF="",gt.PNG="",gt.POWERPOINT="",gt.RAR="",gt.STP="",gt.TEXT="",gt.VIDEO="",gt.WAV="",gt.WMA="",gt.WORD="",gt.XML="",gt.YAML="",gt.ZIP="";const wt=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),yt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ot={size:ct.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ct.create("--ft-icon-vertical-align","UNKNOWN","unset")},Nt=d`
|
|
111
111
|
:host, i.ft-icon {
|
|
112
112
|
display: inline-flex;
|
|
113
113
|
align-items: center;
|
|
@@ -116,14 +116,14 @@ const ut=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
:host {
|
|
119
|
-
width: ${
|
|
120
|
-
height: ${
|
|
119
|
+
width: ${Ot.size};
|
|
120
|
+
height: ${Ot.size};
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
i.ft-icon {
|
|
124
124
|
width: 100%;
|
|
125
125
|
height: 100%;
|
|
126
|
-
font-size: ${
|
|
126
|
+
font-size: ${Ot.size};
|
|
127
127
|
line-height: 1;
|
|
128
128
|
font-weight: normal;
|
|
129
129
|
text-transform: none;
|
|
@@ -134,40 +134,40 @@ const ut=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
134
134
|
text-rendering: auto;
|
|
135
135
|
-webkit-font-smoothing: antialiased;
|
|
136
136
|
-moz-osx-font-smoothing: grayscale;
|
|
137
|
-
vertical-align: ${
|
|
137
|
+
vertical-align: ${Ot.verticalAlign};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
i.ft-icon.ft-icon--fluid-topics {
|
|
141
|
-
font-family: ${
|
|
141
|
+
font-family: ${Ot.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
142
142
|
|
|
143
143
|
/* Ugly fix because font is broken */
|
|
144
|
-
font-size: calc(0.9 * ${
|
|
144
|
+
font-size: calc(0.9 * ${Ot.size});
|
|
145
145
|
position: relative;
|
|
146
146
|
top: -5%;
|
|
147
147
|
justify-content: center;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.ft-icon--file-format {
|
|
151
|
-
font-family: ${
|
|
151
|
+
font-family: ${Ot.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.ft-icon--material {
|
|
155
|
-
font-family: ${
|
|
155
|
+
font-family: ${Ot.materialFontFamily}, "Material Icons", sans-serif;
|
|
156
156
|
}
|
|
157
|
-
`;var
|
|
158
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
159
|
-
${
|
|
160
|
-
<slot ?hidden=${
|
|
157
|
+
`;var Et;t.FtIconVariants=void 0,(Et=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",Et.file_format="file-format",Et.material="material";var $t,Rt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ct extends ut{constructor(){super(...arguments),this.resolvedIcon=H}render(){var e;const i=null!==(e=this.variant)&&void 0!==e?e:t.FtIconVariants.fluid_topics,s="material"!==i||this.value;return I`
|
|
158
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
159
|
+
${mt(this.resolvedIcon)}
|
|
160
|
+
<slot ?hidden=${s}></slot>
|
|
161
161
|
</i>
|
|
162
|
-
`}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 e,i;let s=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(e=t.FtFileFormatIcons[s.replace("-","_").toUpperCase()])&&void 0!==e?e:s;break;case t.FtIconVariants.
|
|
162
|
+
`}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 e,i;let s=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(e=t.FtFileFormatIcons[s.replace("-","_").toUpperCase()])&&void 0!==e?e:s;break;case t.FtIconVariants.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=null!==(i=t.FtIcons[s.replace("-","_").toUpperCase()])&&void 0!==i?i:s}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ct.elementDefinitions={},Ct.styles=Nt,Rt([s()],Ct.prototype,"variant",void 0),Rt([s()],Ct.prototype,"value",void 0),Rt([function(t){return s({...t,state:!0})}
|
|
163
163
|
/**
|
|
164
164
|
* @license
|
|
165
165
|
* Copyright 2017 Google LLC
|
|
166
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
|
-
*/()],
|
|
167
|
+
*/()],Ct.prototype,"resolvedIcon",void 0),Rt([
|
|
168
168
|
/**
|
|
169
169
|
* @license
|
|
170
170
|
* Copyright 2017 Google LLC
|
|
171
171
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
172
172
|
*/
|
|
173
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(n.finisher=function(e){t(e,s)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={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;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}("slot")],
|
|
173
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(n.finisher=function(e){t(e,s)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={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;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}("slot")],Ct.prototype,"slottedContent",void 0),($t="ft-icon",t=>{window.customElements.get($t)||window.customElements.define($t,t)})(Ct),t.FtIcon=Ct,t.FtIconCssVariables=Ot,t.resolveFileFormatIcon=function(e,i){var s,o,n,r;e=(null!=e?e:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[a,l]=((null!==(s=yt.get(e))&&void 0!==s?s:e)+"/").split("/");return null!==(r=null!==(n=null!==(o=wt.get(l))&&void 0!==o?o:wt.get(i))&&void 0!==n?n:wt.get(a))&&void 0!==r?r:t.FtFileFormatIcons.UNKNOWN},t.styles=Nt,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-icon",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.60",
|
|
4
4
|
"description": "Typography components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "0.3.60",
|
|
23
23
|
"lit": "2.2.8"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "43e7dcf7c9d88ea2c23f4425629f013d704c5111"
|
|
26
26
|
}
|