@fluid-topics/ft-icon 0.1.18 → 0.2.0
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 +4 -4
- package/build/ft-icon.inline-styles.js +46 -48
- package/build/ft-icon.js +48 -52
- package/build/ft-icon.light.js +39 -41
- package/build/ft-icon.min.js +43 -45
- package/package.json +3 -3
package/build/ft-icon.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ElementDefinitionsMap, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export declare enum FtIconVariants {
|
|
3
3
|
fluid_topics = "fluid-topics",
|
|
4
|
-
file_format = "file-format"
|
|
4
|
+
file_format = "file-format",
|
|
5
|
+
material = "material"
|
|
5
6
|
}
|
|
6
7
|
export interface FtIconProperties {
|
|
7
8
|
variant: FtIconVariants;
|
|
@@ -10,12 +11,11 @@ export declare const FtIconCssVariables: {
|
|
|
10
11
|
size: FtCssVariable;
|
|
11
12
|
fluidTopicsFontFamily: FtCssVariable;
|
|
12
13
|
fileFormatFontFamily: FtCssVariable;
|
|
14
|
+
materialFontFamily: FtCssVariable;
|
|
13
15
|
};
|
|
14
|
-
export declare const FtIconFluidTopics: import("lit").CSSResult;
|
|
15
|
-
export declare const FtIconFileFormat: import("lit").CSSResult;
|
|
16
16
|
export declare class FtIcon extends FtLitElement implements FtIconProperties {
|
|
17
17
|
static elementDefinitions: ElementDefinitionsMap;
|
|
18
|
-
static styles: import("lit").CSSResult
|
|
18
|
+
static styles: import("lit").CSSResult;
|
|
19
19
|
variant: FtIconVariants;
|
|
20
20
|
private slottedContent?;
|
|
21
21
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
@@ -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,n=new WeakMap,o=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,s=window.customElements,n=new WeakMap,o=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);d(n,a,l);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(s,t);h||(h=u(t),e.call(s,t,h)),this===window.customElements&&(r.set(n,c),c.standInClass=h);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)o.delete(t),x(t,c,!0)}const f=this._whenDefinedPromises.get(t);return void 0!==f&&(f.resolve(n),this._whenDefinedPromises.delete(t)),n}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=a;if(e)return a=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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},u=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,n=s._getDefinition(e);return n?x(i,n):o.set(i,s),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const s=t.prototype.setAttribute;s&&(t.prototype.setAttribute=function(t,n){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o,n),i.call(this,o,t,n)}else s.call(this,o,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);n.call(this,s),i.call(this,s,t,null)}else n.call(this,s)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},x=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){p(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)},f=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=f.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&&l.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!==n.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 o{constructor(t){const e=new Map;t.forEach(((t,i)=>{const s=t.getAttribute("name"),n=e.get(s)||[];this[+i]=t,n.push(t),e.set(s,n)})),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=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(lt){const t=window.customElements.define;window.customElements.define=(e,i,s)=>{try{t.bind(window.customElements)(e,i,s)}catch(t){console.warn(e,i,s,t)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -35,19 +35,19 @@ var e;null===(e=window.HTMLSlotElement)||void 0===e||e.prototype.assignedElement
|
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/;var h;const
|
|
38
|
+
*/;var h;const u=window.trustedTypes,d=u?u.emptyScript:"",p=window.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?d: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}},f=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:f};class m extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Eh(i,e);void 0!==s&&(this._$Eu.set(s,i),t.push(s))})),t}static createProperty(t,e=v){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 n=this[t];this[e]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}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,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(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).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._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.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 a(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||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)}_$ES(t,e,i=v){var s,n;const o=this.constructor._$Eh(t,i);if(void 0!==o&&!0===i.reflect){const r=(null!==(n=null===(s=i.converter)||void 0===s?void 0:s.toAttribute)&&void 0!==n?n:x.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Ei=null}}_$AK(t,e){var i,s,n;const o=this.constructor,r=o._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=o.getPropertyOptions(r),l=t.converter,a=null!==(n=null!==(s=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==s?s:"function"==typeof l?l:null)&&void 0!==n?n:x.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||f)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):s=!1),!this.isUpdatePending&&s&&(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,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||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._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||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)}_$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,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var b;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:m}),(null!==(h=globalThis.reactiveElementVersions)&&void 0!==h?h:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,y=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,O="?"+w,N=`<${O}>`,R=document,C=(t="")=>R.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,U=/>/g,k=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,F=/'/g,A=/"/g,L=/^(?:script|style|textarea|title)$/i,j=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),T=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),B=new WeakMap,W=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,s=[];let n,o=2===e?"<svg>":"",r=$;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===$?"!--"===a[1]?r=S:void 0!==a[1]?r=U:void 0!==a[2]?(L.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=k):void 0!==a[3]&&(r=k):r===k?">"===a[0]?(r=null!=n?n:$,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?k:'"'===a[3]?A:F):r===A||r===F?r=k:r===S||r===U?r=$:(r=k,n=void 0);const u=r===k&&t[e+1].startsWith("/>")?" ":"";o+=r===$?i+N:c>=0?(s.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+w+u):i+w+(-2===c?(s.push(void 0),e):u)}const l=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,s]};class z{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const r=t.length-1,l=this.parts,[a,c]=K(t,e);if(this.el=z.createElement(a,i),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=W.nextNode())&&l.length<r;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(w)){const i=c[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(w),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?q:"@"===e[1]?J:P})}else l.push({type:6,index:n})}for(const e of t)s.removeAttribute(e)}if(L.test(s.tagName)){const t=s.textContent.split(w),e=t.length-1;if(e>0){s.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],C()),W.nextNode(),l.push({type:2,index:++n});s.append(t[e],C())}}}else if(8===s.nodeType)if(s.data===O)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=s.data.indexOf(w,t+1));)l.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,s){var n,o,r,l;if(e===T)return e;let a=void 0!==s?null===(n=i._$Cl)||void 0===n?void 0:n[s]:i._$Cu;const c=E(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(o=null==a?void 0:a._$AO)||void 0===o||o.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,s)),void 0!==s?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[s]=a:i._$Cu=a),void 0!==a&&(e=I(t,a._$AS(t,e.values),a,s)),e}class D{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);W.currentNode=n;let o=W.nextNode(),r=0,l=0,a=s[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new H(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new X(o,this,t)),this.v.push(e),a=s[++l]}r!==(null==a?void 0:a.index)&&(o=W.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{constructor(t,e,i,s){var n;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=null===(n=null==s?void 0:s.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),E(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==T&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==_&&E(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,n="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=z.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new D(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new z(t)),e}A(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new H(this.M(C()),this.M(C()),this,this.options)):i=e[s],i._$AI(n),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class P{constructor(t,e,i,s,n){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(void 0===n)t=I(this,t,e,0),o=!E(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const s=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=I(this,s[i+r],e,r),l===T&&(l=this._$AH[r]),o||(o=!E(l)||l!==this._$AH[r]),l===_?t=_:t!==_&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}o&&!s&&this.k(t)}k(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends P{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===_?void 0:t}}const Z=g?g.emptyScript:"";class q extends P{constructor(){super(...arguments),this.type=4}k(t){t&&t!==_?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class J extends P{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:_)===T)return;const s=this._$AH,n=t===_&&s!==_||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==_&&(s===_||n);n&&this.element.removeEventListener(this.name,this,s),o&&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 X{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){I(this,t)}}const G=window.litHtmlPolyfillSupport;
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var Q,Y;null==G||G(
|
|
50
|
+
var Q,Y;null==G||G(z,H),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.1.3");class tt extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var s,n;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let r=o._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;o._$litPart$=r=new H(e.insertBefore(C(),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._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return T}}tt.finalized=!0,tt._$litElement$=!0,null===(Q=globalThis.litElementHydrateSupport)||void 0===Q||Q.call(globalThis,{LitElement:tt});const et=globalThis.litElementPolyfillSupport;null==et||et({LitElement:tt}),(null!==(Y=globalThis.litElementVersions)&&void 0!==Y?Y:globalThis.litElementVersions=[]).push("3.1.2");class it{constructor(t,e,i,s,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=s,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new it(t,e,void 0,i)}static extend(t,e,i){return new it(t,e.category,e,i)}static external(t,e){return new it(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return l`var(${r(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):r(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}it.create("--ft-color-primary","COLOR","#2196F3"),it.create("--ft-color-primary-variant","COLOR","#1976D2"),it.create("--ft-color-secondary","COLOR","#FFCC80"),it.create("--ft-color-secondary-variant","COLOR","#F57C00"),it.create("--ft-color-surface","COLOR","#FFFFFF"),it.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),it.create("--ft-color-error","COLOR","#B00020"),it.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),it.create("--ft-color-opacity-high","NUMBER","1"),it.create("--ft-color-opacity-medium","NUMBER","0.74"),it.create("--ft-color-opacity-disabled","NUMBER","0.38"),it.create("--ft-color-on-primary","COLOR","#FFFFFF"),it.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),it.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),it.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),it.create("--ft-color-on-secondary","COLOR","#FFFFFF"),it.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),it.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),it.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),it.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),it.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),it.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),it.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),it.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),it.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),it.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),it.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),it.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),it.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),it.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),it.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),it.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),it.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),it.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),it.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),it.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),it.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),it.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),it.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),it.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),it.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),it.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),it.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),it.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),it.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)"),it.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)"),it.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)"),it.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)"),it.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)"),it.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)"),it.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)"),it.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)"),it.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)"),it.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)"),it.create("--ft-border-radius-S","SIZE","4px"),it.create("--ft-border-radius-M","SIZE","8px"),it.create("--ft-border-radius-L","SIZE","12px"),it.create("--ft-border-radius-XL","SIZE","16px"),it.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),it.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),it.create("--ft-transition-duration","UNKNOWN","250ms"),it.create("--ft-transition-timing-function","UNKNOWN","ease-in-out");class st extends(
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2021 Google LLC
|
|
@@ -79,60 +79,58 @@ const rt=2;
|
|
|
79
79
|
* Copyright 2017 Google LLC
|
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
81
|
*/
|
|
82
|
-
class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=_,t.type!==rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===_||null==t)return this.vt=void 0,this.it=t;if(t===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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}lt.directiveName="unsafeHTML",lt.resultType=1;const at=(t=>(...e)=>({_$litDirective$:t,values:e}))(lt);var ct,ht;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ct||(ct={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ht||(ht={})),new Map([...["abw"].map((t=>[t,ht.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ht.AUDIO])),...["avi"].map((t=>[t,ht.AVI])),...["chm","xhs"].map((t=>[t,ht.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ht.CODE])),...["csv"].map((t=>[t,ht.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ht.DITA])),...["epub"].map((t=>[t,ht.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ht.EXCEL])),...["flac"].map((t=>[t,ht.FLAC])),...["gif"].map((t=>[t,ht.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ht.GZIP])),...["html","htm","xhtml"].map((t=>[t,ht.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ht.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ht.JPEG])),...["json"].map((t=>[t,ht.JSON])),...["m4a","m4p"].map((t=>[t,ht.M4A])),...["mov","qt"].map((t=>[t,ht.MOV])),...["mp3"].map((t=>[t,ht.MP3])),...["mp4","m4v"].map((t=>[t,ht.MP4])),...["ogg","oga"].map((t=>[t,ht.OGG])),...["pdf","ps"].map((t=>[t,ht.PDF])),...["png"].map((t=>[t,ht.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ht.POWERPOINT])),...["rar"].map((t=>[t,ht.RAR])),...["stp"].map((t=>[t,ht.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ht.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ht.VIDEO])),...["wav"].map((t=>[t,ht.WAV])),...["wma"].map((t=>[t,ht.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ht.WORD])),...["xml","xsl","rdf"].map((t=>[t,ht.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ht.YAML])),...["zip"].map((t=>[t,ht.ZIP]))]);var dt
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
`],ut([function(e){return(i,s)=>void 0!==s?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,s):t(e,i)
|
|
82
|
+
class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=_,t.type!==rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===_||null==t)return this.vt=void 0,this.it=t;if(t===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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}lt.directiveName="unsafeHTML",lt.resultType=1;const at=(t=>(...e)=>({_$litDirective$:t,values:e}))(lt);var ct,ht;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ct||(ct={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ht||(ht={})),new Map([...["abw"].map((t=>[t,ht.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ht.AUDIO])),...["avi"].map((t=>[t,ht.AVI])),...["chm","xhs"].map((t=>[t,ht.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ht.CODE])),...["csv"].map((t=>[t,ht.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ht.DITA])),...["epub"].map((t=>[t,ht.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ht.EXCEL])),...["flac"].map((t=>[t,ht.FLAC])),...["gif"].map((t=>[t,ht.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ht.GZIP])),...["html","htm","xhtml"].map((t=>[t,ht.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ht.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ht.JPEG])),...["json"].map((t=>[t,ht.JSON])),...["m4a","m4p"].map((t=>[t,ht.M4A])),...["mov","qt"].map((t=>[t,ht.MOV])),...["mp3"].map((t=>[t,ht.MP3])),...["mp4","m4v"].map((t=>[t,ht.MP4])),...["ogg","oga"].map((t=>[t,ht.OGG])),...["pdf","ps"].map((t=>[t,ht.PDF])),...["png"].map((t=>[t,ht.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ht.POWERPOINT])),...["rar"].map((t=>[t,ht.RAR])),...["stp"].map((t=>[t,ht.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ht.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ht.VIDEO])),...["wav"].map((t=>[t,ht.WAV])),...["wma"].map((t=>[t,ht.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ht.WORD])),...["xml","xsl","rdf"].map((t=>[t,ht.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ht.YAML])),...["zip"].map((t=>[t,ht.ZIP]))]);var ut,dt=function(t,e,i,s){for(var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ut||(ut={}));const pt=it.create("--ft-icon-font-size","SIZE","24px"),xt=it.extend("--ft-icon-fluid-topics-font-family",it.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ft=it.extend("--ft-icon-file-format-font-family",it.create("--ft-icon-font-family","UNKNOWN","ft-mime")),vt=it.extend("--ft-icon-material-font-family",it.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class mt extends st{constructor(){super(...arguments),this.variant=ut.fluid_topics}render(){return j`
|
|
83
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
84
|
+
${at(this.getIcon())}
|
|
85
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
86
|
+
</i>
|
|
87
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===ut.file_format?null!==(t=ht[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ut.fluid_topics?null!==(e=ct[i.toUpperCase()])&&void 0!==e?e:i:_}}var bt;mt.elementDefinitions={},mt.styles=l`
|
|
88
|
+
:host, i.ft-icon {
|
|
89
|
+
display: inline-block;
|
|
90
|
+
width: ${pt};
|
|
91
|
+
height: ${pt};
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
i.ft-icon {
|
|
96
|
+
font-size: ${pt};
|
|
97
|
+
line-height: 1;
|
|
98
|
+
font-weight: normal;
|
|
99
|
+
text-transform: none;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-variant: normal;
|
|
102
|
+
speak: none;
|
|
103
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
104
|
+
text-rendering: auto;
|
|
105
|
+
-webkit-font-smoothing: antialiased;
|
|
106
|
+
-moz-osx-font-smoothing: grayscale;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ft-icon--fluid-topics {
|
|
110
|
+
font-family: ${xt}, ft-icons, fticons, sans-serif;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ft-icon--file-format {
|
|
114
|
+
font-family: ${ft}, ft-mime, sans-serif;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ft-icon--material {
|
|
118
|
+
font-family: ${vt}, "Material Icons", sans-serif;
|
|
119
|
+
}
|
|
120
|
+
`,dt([function(e){return(i,s)=>void 0!==s?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,s):t(e,i)
|
|
123
121
|
/**
|
|
124
122
|
* @license
|
|
125
123
|
* Copyright 2017 Google LLC
|
|
126
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/}()],
|
|
125
|
+
*/}()],mt.prototype,"variant",void 0),dt([
|
|
128
126
|
/**
|
|
129
127
|
* @license
|
|
130
128
|
* Copyright 2017 Google LLC
|
|
131
129
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
130
|
*/
|
|
133
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var n;if(void 0===s){const s=null!==(n=i.originalKey)&&void 0!==n?n:i.key,o=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(o.finisher=function(e){t(e,s)}),o}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(n,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")],
|
|
131
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var n;if(void 0===s){const s=null!==(n=i.originalKey)&&void 0!==n?n:i.key,o=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(o.finisher=function(e){t(e,s)}),o}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(n,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")],mt.prototype,"slottedContent",void 0),(bt="ft-icon",t=>{window.customElements.get(bt)||window.customElements.define(bt,t)})(function t(e){var i;let s;if("elementDefinitions"in e){s={};const i=e.elementDefinitions;for(let e in i)s[e]=t(i[e])}return i=class extends e{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),j`
|
|
134
132
|
${i.map((t=>j`
|
|
135
133
|
<style>${t}</style>
|
|
136
134
|
`))}
|
|
137
135
|
${super.render()}
|
|
138
|
-
`}},i.styles=void 0,i.elementDefinitions=s,i}(
|
|
136
|
+
`}},i.styles=void 0,i.elementDefinitions=s,i}(mt))}();
|
package/build/ft-icon.js
CHANGED
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { css, html } from "lit";
|
|
7
|
+
import { css, html, nothing } from "lit";
|
|
8
8
|
import { property, query } from "lit/decorators.js";
|
|
9
9
|
import { FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
10
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
@@ -13,46 +13,14 @@ export var FtIconVariants;
|
|
|
13
13
|
(function (FtIconVariants) {
|
|
14
14
|
FtIconVariants["fluid_topics"] = "fluid-topics";
|
|
15
15
|
FtIconVariants["file_format"] = "file-format";
|
|
16
|
+
FtIconVariants["material"] = "material";
|
|
16
17
|
})(FtIconVariants || (FtIconVariants = {}));
|
|
17
18
|
export const FtIconCssVariables = {
|
|
18
19
|
size: FtCssVariable.create("--ft-icon-font-size", "SIZE", "24px"),
|
|
19
20
|
fluidTopicsFontFamily: FtCssVariable.extend("--ft-icon-fluid-topics-font-family", FtCssVariable.create("--ft-icon-font-family", "UNKNOWN", "ft-icons")),
|
|
20
21
|
fileFormatFontFamily: FtCssVariable.extend("--ft-icon-file-format-font-family", FtCssVariable.create("--ft-icon-font-family", "UNKNOWN", "ft-mime")),
|
|
22
|
+
materialFontFamily: FtCssVariable.extend("--ft-icon-material-font-family", FtCssVariable.create("--ft-icon-font-family", "UNKNOWN", "Material Icons")),
|
|
21
23
|
};
|
|
22
|
-
// language=CSS
|
|
23
|
-
export const FtIconFluidTopics = css `
|
|
24
|
-
.ft-icon--fluid-topics {
|
|
25
|
-
font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
26
|
-
font-size: ${FtIconCssVariables.size};
|
|
27
|
-
line-height: 1;
|
|
28
|
-
font-weight: normal;
|
|
29
|
-
text-transform: none;
|
|
30
|
-
font-style: normal;
|
|
31
|
-
font-variant: normal;
|
|
32
|
-
speak: none;
|
|
33
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
34
|
-
text-rendering: auto;
|
|
35
|
-
-webkit-font-smoothing: antialiased;
|
|
36
|
-
-moz-osx-font-smoothing: grayscale;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
// language=CSS
|
|
40
|
-
export const FtIconFileFormat = css `
|
|
41
|
-
.ft-icon--file-format {
|
|
42
|
-
font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
43
|
-
font-size: ${FtIconCssVariables.size};
|
|
44
|
-
line-height: 1;
|
|
45
|
-
font-weight: normal;
|
|
46
|
-
text-transform: none;
|
|
47
|
-
font-style: normal;
|
|
48
|
-
font-variant: normal;
|
|
49
|
-
speak: none;
|
|
50
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
51
|
-
text-rendering: auto;
|
|
52
|
-
-webkit-font-smoothing: antialiased;
|
|
53
|
-
-moz-osx-font-smoothing: grayscale;
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
56
24
|
export class FtIcon extends FtLitElement {
|
|
57
25
|
constructor() {
|
|
58
26
|
super(...arguments);
|
|
@@ -60,8 +28,10 @@ export class FtIcon extends FtLitElement {
|
|
|
60
28
|
}
|
|
61
29
|
render() {
|
|
62
30
|
return html `
|
|
63
|
-
<
|
|
64
|
-
|
|
31
|
+
<i class="ft-icon ${"ft-icon--" + this.variant}">
|
|
32
|
+
${unsafeHTML(this.getIcon())}
|
|
33
|
+
<slot @slotchange=${() => this.requestUpdate()} ?hidden=${this.variant !== "material"}></slot>
|
|
34
|
+
</i>
|
|
65
35
|
`;
|
|
66
36
|
}
|
|
67
37
|
get textContent() {
|
|
@@ -70,26 +40,52 @@ export class FtIcon extends FtLitElement {
|
|
|
70
40
|
}
|
|
71
41
|
getIcon() {
|
|
72
42
|
var _a, _b;
|
|
43
|
+
let content = this.textContent;
|
|
73
44
|
if (this.variant === FtIconVariants.file_format) {
|
|
74
|
-
return (_a = FtFileFormatIcons[
|
|
45
|
+
return (_a = FtFileFormatIcons[content.toUpperCase()]) !== null && _a !== void 0 ? _a : content;
|
|
75
46
|
}
|
|
76
|
-
|
|
47
|
+
if (this.variant === FtIconVariants.fluid_topics) {
|
|
48
|
+
return (_b = FtIcons[content.toUpperCase()]) !== null && _b !== void 0 ? _b : content;
|
|
49
|
+
}
|
|
50
|
+
return nothing;
|
|
77
51
|
}
|
|
78
52
|
}
|
|
79
53
|
FtIcon.elementDefinitions = {};
|
|
80
|
-
//
|
|
81
|
-
FtIcon.styles =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
54
|
+
//language=css
|
|
55
|
+
FtIcon.styles = css `
|
|
56
|
+
:host, i.ft-icon {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: ${FtIconCssVariables.size};
|
|
59
|
+
height: ${FtIconCssVariables.size};
|
|
60
|
+
text-align: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
i.ft-icon {
|
|
64
|
+
font-size: ${FtIconCssVariables.size};
|
|
65
|
+
line-height: 1;
|
|
66
|
+
font-weight: normal;
|
|
67
|
+
text-transform: none;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-variant: normal;
|
|
70
|
+
speak: none;
|
|
71
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
72
|
+
text-rendering: auto;
|
|
73
|
+
-webkit-font-smoothing: antialiased;
|
|
74
|
+
-moz-osx-font-smoothing: grayscale;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ft-icon--fluid-topics {
|
|
78
|
+
font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ft-icon--file-format {
|
|
82
|
+
font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ft-icon--material {
|
|
86
|
+
font-family: ${FtIconCssVariables.materialFontFamily}, "Material Icons", sans-serif;
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
93
89
|
__decorate([
|
|
94
90
|
property()
|
|
95
91
|
], FtIcon.prototype, "variant", void 0);
|
package/build/ft-icon.light.js
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
!function(e,t,o,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
`],m([a.property()],r.prototype,"variant",void 0),m([a.query("slot")],r.prototype,"slottedContent",void 0),t.customElement("ft-icon")(r),e.FtIcon=r,e.FtIconCssVariables=c,e.FtIconFileFormat=f,e.FtIconFluidTopics=d,e.resolveFileFormatIcon=function(t,o){var a,x,i,p;t=(null!=t?t:"").toLowerCase(),o=(null!=o?o:"").toLowerCase();const[s,m]=((null!==(a=l.get(t))&&void 0!==a?a:t)+"/").split("/");return null!==(p=null!==(i=null!==(x=n.get(m))&&void 0!==x?x:n.get(o))&&void 0!==i?i:n.get(s))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
|
1
|
+
!function(e,t,a,o,i){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).THIN_ARROW_LEFT="",x.THIN_ARROW_RIGHT="",x.MY_COLLECTIONS="",x.OFFLINE_SETTINGS="",x.MY_LIBRARY="",x.RATE_PLAIN="",x.RATE="",x.FEEDBACK_PLAIN="",x.STAR_PLAIN="",x.STAR="",x.THUMBS_DOWN_PLAIN="",x.THUMBS_DOWN="",x.THUMBS_UP_PLAIN="",x.THUMBS_UP="",x.PAUSE="",x.PLAY="",x.RELATIVES_PLAIN="",x.RELATIVES="",x.SHORTCUT_MENU="",x.PRINT="",x.DEFAULT_ROLES="",x.ACCOUNT_SETTINGS="",x.ONLINE="",x.OFFLINE="",x.UPLOAD="",x.BOOK_PLAIN="",x.SYNC="",x.SHARED_PBK="",x.COLLECTIONS="",x.SEARCH_IN_PUBLICATION="",x.BOOKS="",x.LOCKER="",x.ARROW_DOWN="",x.ARROW_LEFT="",x.ARROW_RIGHT="",x.ARROW_UP="",x.SAVE="",x.MAILS_AND_NOTIFICATIONS="",x.DOT="",x.MINUS="",x.PLUS="",x.FILTERS="",x.STRIPE_ARROW_RIGHT="",x.STRIPE_ARROW_LEFT="",x.ATTACHMENTS="",x.ADD_BOOKMARK="",x.BOOKMARK="",x.EXPORT="",x.MENU="",x.TAG="",x.TAG_PLAIN="",x.COPY_TO_CLIPBOARD="",x.COLUMNS="",x.ARTICLE="",x.CLOSE_PLAIN="",x.CHECK_PLAIN="",x.LOGOUT="",x.SIGN_IN="",x.THIN_ARROW="",x.TRIANGLE_BOTTOM="",x.TRIANGLE_LEFT="",x.TRIANGLE_RIGHT="",x.TRIANGLE_TOP="",x.FACET_HAS_DESCENDANT="",x.MINUS_PLAIN="",x.PLUS_PLAIN="",x.INFO="",x.ICON_EXPAND="",x.ICON_COLLAPSE="",x.ADD_TO_PBK="",x.ALERT="",x.ADD_ALERT="",x.BACK_TO_SEARCH="",x.DOWNLOAD="",x.EDIT="",x.FEEDBACK="",x.MODIFY_PBK="",x.SCHEDULED="",x.SEARCH="",x.SHARE="󨃱",x.TOC="",x.WRITE_UGC="",x.TRASH="",x.EXTLINK="",x.CALENDAR="",x.BOOK="",x.DOWNLOAD_PLAIN="",x.CHECK="",x.TOPICS="",x.EYE="\f06e",x.DISC="",x.CIRCLE="",x.SHARED="",x.SORT_UNSORTED="",x.SORT_UP="",x.SORT_DOWN="",x.WORKING="",x.CLOSE="",x.ZOOM_OUT="",x.ZOOM_IN="",x.ZOOM_REALSIZE="",x.ZOOM_FULLSCREEN="",x.ADMIN_RESTRICTED="",x.ADMIN_THEME="",x.WARNING="",x.CONTEXT="",x.SEARCH_HOME="",x.STEPS="",x.HOME="",x.TRANSLATE="",x.USER="",x.ADMIN="",x.ANALYTICS="",x.ADMIN_KHUB="",x.ADMIN_USERS="",x.ADMIN_INTEGRATION="",x.ADMIN_PORTAL="",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="",p.ABW="",p.AUDIO="",p.AVI="",p.CHM="",p.CODE="",p.CSV="",p.DITA="",p.EPUB="",p.EXCEL="",p.FLAC="",p.GIF="",p.GZIP="",p.HTML="",p.IMAGE="",p.JPEG="",p.JSON="",p.M4A="",p.MOV="",p.MP3="",p.MP4="",p.OGG="",p.PDF="",p.PNG="",p.POWERPOINT="",p.RAR="",p.STP="",p.TEXT="",p.VIDEO="",p.WAV="",p.WMA="",p.WORD="",p.XML="",p.YAML="",p.ZIP="";const n=new Map([...["abw"].map((t=>[t,e.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((t=>[t,e.FtFileFormatIcons.AUDIO])),...["avi"].map((t=>[t,e.FtFileFormatIcons.AVI])),...["chm","xhs"].map((t=>[t,e.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((t=>[t,e.FtFileFormatIcons.CODE])),...["csv"].map((t=>[t,e.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,e.FtFileFormatIcons.DITA])),...["epub"].map((t=>[t,e.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,e.FtFileFormatIcons.EXCEL])),...["flac"].map((t=>[t,e.FtFileFormatIcons.FLAC])),...["gif"].map((t=>[t,e.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,e.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((t=>[t,e.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((t=>[t,e.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,e.FtFileFormatIcons.JPEG])),...["json"].map((t=>[t,e.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((t=>[t,e.FtFileFormatIcons.M4A])),...["mov","qt"].map((t=>[t,e.FtFileFormatIcons.MOV])),...["mp3"].map((t=>[t,e.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((t=>[t,e.FtFileFormatIcons.MP4])),...["ogg","oga"].map((t=>[t,e.FtFileFormatIcons.OGG])),...["pdf","ps"].map((t=>[t,e.FtFileFormatIcons.PDF])),...["png"].map((t=>[t,e.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,e.FtFileFormatIcons.POWERPOINT])),...["rar"].map((t=>[t,e.FtFileFormatIcons.RAR])),...["stp"].map((t=>[t,e.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((t=>[t,e.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((t=>[t,e.FtFileFormatIcons.VIDEO])),...["wav"].map((t=>[t,e.FtFileFormatIcons.WAV])),...["wma"].map((t=>[t,e.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,e.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((t=>[t,e.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((t=>[t,e.FtFileFormatIcons.YAML])),...["zip"].map((t=>[t,e.FtFileFormatIcons.ZIP]))]),l=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"]]);var m,s=function(e,t,a,o){for(var i,x=arguments.length,p=x<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o,n=e.length-1;n>=0;n--)(i=e[n])&&(p=(x<3?i(p):x>3?i(t,a,p):i(t,a))||p);return x>3&&p&&Object.defineProperty(t,a,p),p};e.FtIconVariants=void 0,(m=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",m.file_format="file-format",m.material="material";const c={size:t.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:t.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:t.FtCssVariable.extend("--ft-icon-file-format-font-family",t.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:t.FtCssVariable.extend("--ft-icon-material-font-family",t.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class f extends t.FtLitElement{constructor(){super(...arguments),this.variant=e.FtIconVariants.fluid_topics}render(){return a.html`
|
|
2
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
3
|
+
${i.unsafeHTML(this.getIcon())}
|
|
4
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
5
|
+
</i>
|
|
6
|
+
`}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:""}getIcon(){var t,o;let i=this.textContent;return this.variant===e.FtIconVariants.file_format?null!==(t=e.FtFileFormatIcons[i.toUpperCase()])&&void 0!==t?t:i:this.variant===e.FtIconVariants.fluid_topics?null!==(o=e.FtIcons[i.toUpperCase()])&&void 0!==o?o:i:a.nothing}}f.elementDefinitions={},f.styles=a.css`
|
|
7
|
+
:host, i.ft-icon {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: ${c.size};
|
|
10
|
+
height: ${c.size};
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
i.ft-icon {
|
|
15
|
+
font-size: ${c.size};
|
|
16
|
+
line-height: 1;
|
|
17
|
+
font-weight: normal;
|
|
18
|
+
text-transform: none;
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-variant: normal;
|
|
21
|
+
speak: none;
|
|
22
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
23
|
+
text-rendering: auto;
|
|
24
|
+
-webkit-font-smoothing: antialiased;
|
|
25
|
+
-moz-osx-font-smoothing: grayscale;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ft-icon--fluid-topics {
|
|
29
|
+
font-family: ${c.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ft-icon--file-format {
|
|
33
|
+
font-family: ${c.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ft-icon--material {
|
|
37
|
+
font-family: ${c.materialFontFamily}, "Material Icons", sans-serif;
|
|
38
|
+
}
|
|
39
|
+
`,s([o.property()],f.prototype,"variant",void 0),s([o.query("slot")],f.prototype,"slottedContent",void 0),t.customElement("ft-icon")(f),e.FtIcon=f,e.FtIconCssVariables=c,e.resolveFileFormatIcon=function(t,a){var o,i,x,p;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[m,s]=((null!==(o=l.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(p=null!==(x=null!==(i=n.get(s))&&void 0!==i?i:n.get(a))&&void 0!==x?x:n.get(m))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
package/build/ft-icon.min.js
CHANGED
|
@@ -41,13 +41,13 @@ var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElement
|
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/
|
|
44
|
-
var g;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:b}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const w=globalThis.trustedTypes,y=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,N="?"+O,E=`<${N}>`,R=document,C=(t="")=>R.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,k=/>/g,F=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,L=/"/g,j=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),W=new WeakMap,z=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,s=[];let o,n=2===e?"<svg>":"",r=$;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[1]?r=U:void 0!==l[1]?r=k:void 0!==l[2]?(j.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=F):void 0!==l[3]&&(r=F):r===F?">"===l[0]?(r=null!=o?o:$,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?F:'"'===l[3]?L:A):r===L||r===A?r=F:r===U||r===k?r=$:(r=F,o=void 0);const p=r===F&&t[e+1].startsWith("/>")?" ":"";n+=r===$?i+E:c>=0?(s.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+O+p):i+O+(-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!==y?y.createHTML(a):a,s]};class
|
|
44
|
+
var g;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:b}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const w=globalThis.trustedTypes,y=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,N="?"+O,E=`<${N}>`,R=document,C=(t="")=>R.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,k=/>/g,F=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,L=/"/g,j=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),W=new WeakMap,z=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,s=[];let o,n=2===e?"<svg>":"",r=$;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[1]?r=U:void 0!==l[1]?r=k:void 0!==l[2]?(j.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=F):void 0!==l[3]&&(r=F):r===F?">"===l[0]?(r=null!=o?o:$,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?F:'"'===l[3]?L:A):r===L||r===A?r=F:r===U||r===k?r=$:(r=F,o=void 0);const p=r===F&&t[e+1].startsWith("/>")?" ":"";n+=r===$?i+E:c>=0?(s.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+O+p):i+O+(-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!==y?y.createHTML(a):a,s]};class I{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]=K(t,e);if(this.el=I.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(O)){const i=c[n++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?J:"@"===e[1]?X:V})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(j.test(s.tagName)){const t=s.textContent.split(O),e=t.length-1;if(e>0){s.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],C()),z.nextNode(),a.push({type:2,index:++o});s.append(t[e],C())}}}else if(8===s.nodeType)if(s.data===N)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(O,t+1));)a.push({type:7,index:o}),t+=O.length-1}o++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function D(t,e,i=t,s){var o,n,r,a;if(e===_)return e;let l=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const c=M(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)._$Cl)&&void 0!==r?r:a._$Cl=[])[s]=l:i._$Cu=l),void 0!==l&&(e=D(t,l._$AS(t,e.values),l,s)),e}class H{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).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 P(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new G(n,this,t)),this.v.push(e),l=s[++a]}r!==(null==l?void 0:l.index)&&(n=z.nextNode(),r++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class P{constructor(t,e,i,s){var o;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=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._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=D(this,t,e),M(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return S(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==B&&M(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=I.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new H(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new I(t)),e}A(t){S(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 P(this.M(C()),this.M(C()),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,s,o){this.type=1,this._$AH=B,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=B}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=D(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{const s=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=D(this,s[i+r],e,r),a===_&&(a=this._$AH[r]),n||(n=!M(a)||a!==this._$AH[r]),a===B?t=B:t!==B&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}n&&!s&&this.k(t)}k(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends V{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===B?void 0:t}}const q=w?w.emptyScript:"";class J extends V{constructor(){super(...arguments),this.type=4}k(t){t&&t!==B?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class X extends V{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=D(this,t,e,0))&&void 0!==i?i:B)===_)return;const s=this._$AH,o=t===B&&s!==B||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==B&&(s===B||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 G{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){D(this,t)}}const Q=window.litHtmlPolyfillSupport;
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var Y,tt;null==Q||Q(
|
|
50
|
+
var Y,tt;null==Q||Q(I,P),(null!==(g=globalThis.litHtmlVersions)&&void 0!==g?g:globalThis.litHtmlVersions=[]).push("2.1.3");class et extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((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 P(e.insertBefore(C(),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._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}et.finalized=!0,et._$litElement$=!0,null===(Y=globalThis.litElementHydrateSupport)||void 0===Y||Y.call(globalThis,{LitElement:et});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.1.2");class st{constructor(t,e,i,s,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=s,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new st(t,e,void 0,i)}static extend(t,e,i){return new st(t,e.category,e,i)}static external(t,e){return new st(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return l`var(${a(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):a(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}st.create("--ft-color-primary","COLOR","#2196F3"),st.create("--ft-color-primary-variant","COLOR","#1976D2"),st.create("--ft-color-secondary","COLOR","#FFCC80"),st.create("--ft-color-secondary-variant","COLOR","#F57C00"),st.create("--ft-color-surface","COLOR","#FFFFFF"),st.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),st.create("--ft-color-error","COLOR","#B00020"),st.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),st.create("--ft-color-opacity-high","NUMBER","1"),st.create("--ft-color-opacity-medium","NUMBER","0.74"),st.create("--ft-color-opacity-disabled","NUMBER","0.38"),st.create("--ft-color-on-primary","COLOR","#FFFFFF"),st.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),st.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),st.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),st.create("--ft-color-on-secondary","COLOR","#FFFFFF"),st.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),st.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),st.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),st.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),st.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),st.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),st.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),st.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),st.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),st.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),st.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),st.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),st.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),st.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),st.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),st.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),st.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),st.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),st.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),st.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),st.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),st.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),st.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),st.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),st.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),st.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),st.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),st.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),st.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)"),st.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)"),st.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)"),st.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)"),st.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)"),st.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)"),st.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)"),st.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)"),st.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)"),st.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)"),st.create("--ft-border-radius-S","SIZE","4px"),st.create("--ft-border-radius-M","SIZE","8px"),st.create("--ft-border-radius-L","SIZE","12px"),st.create("--ft-border-radius-XL","SIZE","16px"),st.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),st.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),st.create("--ft-transition-duration","UNKNOWN","250ms"),st.create("--ft-transition-timing-function","UNKNOWN","ease-in-out");class ot extends(
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2021 Google LLC
|
|
@@ -79,55 +79,53 @@ const at=2;
|
|
|
79
79
|
* Copyright 2017 Google LLC
|
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
81
|
*/
|
|
82
|
-
class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=B,t.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}lt.directiveName="unsafeHTML",lt.resultType=1;const ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(lt);var ht,pt;t.FtIcons=void 0,(ht=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="",ht.THIN_ARROW_RIGHT="",ht.MY_COLLECTIONS="",ht.OFFLINE_SETTINGS="",ht.MY_LIBRARY="",ht.RATE_PLAIN="",ht.RATE="",ht.FEEDBACK_PLAIN="",ht.STAR_PLAIN="",ht.STAR="",ht.THUMBS_DOWN_PLAIN="",ht.THUMBS_DOWN="",ht.THUMBS_UP_PLAIN="",ht.THUMBS_UP="",ht.PAUSE="",ht.PLAY="",ht.RELATIVES_PLAIN="",ht.RELATIVES="",ht.SHORTCUT_MENU="",ht.PRINT="",ht.DEFAULT_ROLES="",ht.ACCOUNT_SETTINGS="",ht.ONLINE="",ht.OFFLINE="",ht.UPLOAD="",ht.BOOK_PLAIN="",ht.SYNC="",ht.SHARED_PBK="",ht.COLLECTIONS="",ht.SEARCH_IN_PUBLICATION="",ht.BOOKS="",ht.LOCKER="",ht.ARROW_DOWN="",ht.ARROW_LEFT="",ht.ARROW_RIGHT="",ht.ARROW_UP="",ht.SAVE="",ht.MAILS_AND_NOTIFICATIONS="",ht.DOT="",ht.MINUS="",ht.PLUS="",ht.FILTERS="",ht.STRIPE_ARROW_RIGHT="",ht.STRIPE_ARROW_LEFT="",ht.ATTACHMENTS="",ht.ADD_BOOKMARK="",ht.BOOKMARK="",ht.EXPORT="",ht.MENU="",ht.TAG="",ht.TAG_PLAIN="",ht.COPY_TO_CLIPBOARD="",ht.COLUMNS="",ht.ARTICLE="",ht.CLOSE_PLAIN="",ht.CHECK_PLAIN="",ht.LOGOUT="",ht.SIGN_IN="",ht.THIN_ARROW="",ht.TRIANGLE_BOTTOM="",ht.TRIANGLE_LEFT="",ht.TRIANGLE_RIGHT="",ht.TRIANGLE_TOP="",ht.FACET_HAS_DESCENDANT="",ht.MINUS_PLAIN="",ht.PLUS_PLAIN="",ht.INFO="",ht.ICON_EXPAND="",ht.ICON_COLLAPSE="",ht.ADD_TO_PBK="",ht.ALERT="",ht.ADD_ALERT="",ht.BACK_TO_SEARCH="",ht.DOWNLOAD="",ht.EDIT="",ht.FEEDBACK="",ht.MODIFY_PBK="",ht.SCHEDULED="",ht.SEARCH="",ht.SHARE="󨃱",ht.TOC="",ht.WRITE_UGC="",ht.TRASH="",ht.EXTLINK="",ht.CALENDAR="",ht.BOOK="",ht.DOWNLOAD_PLAIN="",ht.CHECK="",ht.TOPICS="",ht.EYE="\f06e",ht.DISC="",ht.CIRCLE="",ht.SHARED="",ht.SORT_UNSORTED="",ht.SORT_UP="",ht.SORT_DOWN="",ht.WORKING="",ht.CLOSE="",ht.ZOOM_OUT="",ht.ZOOM_IN="",ht.ZOOM_REALSIZE="",ht.ZOOM_FULLSCREEN="",ht.ADMIN_RESTRICTED="",ht.ADMIN_THEME="",ht.WARNING="",ht.CONTEXT="",ht.SEARCH_HOME="",ht.STEPS="",ht.HOME="",ht.TRANSLATE="",ht.USER="",ht.ADMIN="",ht.ANALYTICS="",ht.ADMIN_KHUB="",ht.ADMIN_USERS="",ht.ADMIN_INTEGRATION="",ht.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(pt=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",pt.ABW="",pt.AUDIO="",pt.AVI="",pt.CHM="",pt.CODE="",pt.CSV="",pt.DITA="",pt.EPUB="",pt.EXCEL="",pt.FLAC="",pt.GIF="",pt.GZIP="",pt.HTML="",pt.IMAGE="",pt.JPEG="",pt.JSON="",pt.M4A="",pt.MOV="",pt.MP3="",pt.MP4="",pt.OGG="",pt.PDF="",pt.PNG="",pt.POWERPOINT="",pt.RAR="",pt.STP="",pt.TEXT="",pt.VIDEO="",pt.WAV="",pt.WMA="",pt.WORD="",pt.XML="",pt.YAML="",pt.ZIP="";const dt=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]))]),ut=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"]]);var xt,ft=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};t.FtIconVariants=void 0,(xt=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",xt.file_format="file-format";const mt={size:st.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:st.extend("--ft-icon-fluid-topics-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:st.extend("--ft-icon-file-format-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-mime"))},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
`],ft([function(t){return(i,s)=>void 0!==s?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,s):e(t,i)
|
|
82
|
+
class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=B,t.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}lt.directiveName="unsafeHTML",lt.resultType=1;const ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(lt);var ht,pt;t.FtIcons=void 0,(ht=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="",ht.THIN_ARROW_RIGHT="",ht.MY_COLLECTIONS="",ht.OFFLINE_SETTINGS="",ht.MY_LIBRARY="",ht.RATE_PLAIN="",ht.RATE="",ht.FEEDBACK_PLAIN="",ht.STAR_PLAIN="",ht.STAR="",ht.THUMBS_DOWN_PLAIN="",ht.THUMBS_DOWN="",ht.THUMBS_UP_PLAIN="",ht.THUMBS_UP="",ht.PAUSE="",ht.PLAY="",ht.RELATIVES_PLAIN="",ht.RELATIVES="",ht.SHORTCUT_MENU="",ht.PRINT="",ht.DEFAULT_ROLES="",ht.ACCOUNT_SETTINGS="",ht.ONLINE="",ht.OFFLINE="",ht.UPLOAD="",ht.BOOK_PLAIN="",ht.SYNC="",ht.SHARED_PBK="",ht.COLLECTIONS="",ht.SEARCH_IN_PUBLICATION="",ht.BOOKS="",ht.LOCKER="",ht.ARROW_DOWN="",ht.ARROW_LEFT="",ht.ARROW_RIGHT="",ht.ARROW_UP="",ht.SAVE="",ht.MAILS_AND_NOTIFICATIONS="",ht.DOT="",ht.MINUS="",ht.PLUS="",ht.FILTERS="",ht.STRIPE_ARROW_RIGHT="",ht.STRIPE_ARROW_LEFT="",ht.ATTACHMENTS="",ht.ADD_BOOKMARK="",ht.BOOKMARK="",ht.EXPORT="",ht.MENU="",ht.TAG="",ht.TAG_PLAIN="",ht.COPY_TO_CLIPBOARD="",ht.COLUMNS="",ht.ARTICLE="",ht.CLOSE_PLAIN="",ht.CHECK_PLAIN="",ht.LOGOUT="",ht.SIGN_IN="",ht.THIN_ARROW="",ht.TRIANGLE_BOTTOM="",ht.TRIANGLE_LEFT="",ht.TRIANGLE_RIGHT="",ht.TRIANGLE_TOP="",ht.FACET_HAS_DESCENDANT="",ht.MINUS_PLAIN="",ht.PLUS_PLAIN="",ht.INFO="",ht.ICON_EXPAND="",ht.ICON_COLLAPSE="",ht.ADD_TO_PBK="",ht.ALERT="",ht.ADD_ALERT="",ht.BACK_TO_SEARCH="",ht.DOWNLOAD="",ht.EDIT="",ht.FEEDBACK="",ht.MODIFY_PBK="",ht.SCHEDULED="",ht.SEARCH="",ht.SHARE="󨃱",ht.TOC="",ht.WRITE_UGC="",ht.TRASH="",ht.EXTLINK="",ht.CALENDAR="",ht.BOOK="",ht.DOWNLOAD_PLAIN="",ht.CHECK="",ht.TOPICS="",ht.EYE="\f06e",ht.DISC="",ht.CIRCLE="",ht.SHARED="",ht.SORT_UNSORTED="",ht.SORT_UP="",ht.SORT_DOWN="",ht.WORKING="",ht.CLOSE="",ht.ZOOM_OUT="",ht.ZOOM_IN="",ht.ZOOM_REALSIZE="",ht.ZOOM_FULLSCREEN="",ht.ADMIN_RESTRICTED="",ht.ADMIN_THEME="",ht.WARNING="",ht.CONTEXT="",ht.SEARCH_HOME="",ht.STEPS="",ht.HOME="",ht.TRANSLATE="",ht.USER="",ht.ADMIN="",ht.ANALYTICS="",ht.ADMIN_KHUB="",ht.ADMIN_USERS="",ht.ADMIN_INTEGRATION="",ht.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(pt=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",pt.ABW="",pt.AUDIO="",pt.AVI="",pt.CHM="",pt.CODE="",pt.CSV="",pt.DITA="",pt.EPUB="",pt.EXCEL="",pt.FLAC="",pt.GIF="",pt.GZIP="",pt.HTML="",pt.IMAGE="",pt.JPEG="",pt.JSON="",pt.M4A="",pt.MOV="",pt.MP3="",pt.MP4="",pt.OGG="",pt.PDF="",pt.PNG="",pt.POWERPOINT="",pt.RAR="",pt.STP="",pt.TEXT="",pt.VIDEO="",pt.WAV="",pt.WMA="",pt.WORD="",pt.XML="",pt.YAML="",pt.ZIP="";const dt=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]))]),ut=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"]]);var xt,ft=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};t.FtIconVariants=void 0,(xt=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",xt.file_format="file-format",xt.material="material";const mt={size:st.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:st.extend("--ft-icon-fluid-topics-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:st.extend("--ft-icon-file-format-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:st.extend("--ft-icon-material-font-family",st.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class vt extends ot{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics}render(){return T`
|
|
83
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
84
|
+
${ct(this.getIcon())}
|
|
85
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
86
|
+
</i>
|
|
87
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var e,i;let s=this.textContent;return this.variant===t.FtIconVariants.file_format?null!==(e=t.FtFileFormatIcons[s.toUpperCase()])&&void 0!==e?e:s:this.variant===t.FtIconVariants.fluid_topics?null!==(i=t.FtIcons[s.toUpperCase()])&&void 0!==i?i:s:B}}var bt;vt.elementDefinitions={},vt.styles=l`
|
|
88
|
+
:host, i.ft-icon {
|
|
89
|
+
display: inline-block;
|
|
90
|
+
width: ${mt.size};
|
|
91
|
+
height: ${mt.size};
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
i.ft-icon {
|
|
96
|
+
font-size: ${mt.size};
|
|
97
|
+
line-height: 1;
|
|
98
|
+
font-weight: normal;
|
|
99
|
+
text-transform: none;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-variant: normal;
|
|
102
|
+
speak: none;
|
|
103
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
104
|
+
text-rendering: auto;
|
|
105
|
+
-webkit-font-smoothing: antialiased;
|
|
106
|
+
-moz-osx-font-smoothing: grayscale;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ft-icon--fluid-topics {
|
|
110
|
+
font-family: ${mt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ft-icon--file-format {
|
|
114
|
+
font-family: ${mt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ft-icon--material {
|
|
118
|
+
font-family: ${mt.materialFontFamily}, "Material Icons", sans-serif;
|
|
119
|
+
}
|
|
120
|
+
`,ft([function(t){return(i,s)=>void 0!==s?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,s):e(t,i)
|
|
123
121
|
/**
|
|
124
122
|
* @license
|
|
125
123
|
* Copyright 2017 Google LLC
|
|
126
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/}()],
|
|
125
|
+
*/}()],vt.prototype,"variant",void 0),ft([
|
|
128
126
|
/**
|
|
129
127
|
* @license
|
|
130
128
|
* Copyright 2017 Google LLC
|
|
131
129
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
130
|
*/
|
|
133
|
-
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")],
|
|
131
|
+
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")],vt.prototype,"slottedContent",void 0),(bt="ft-icon",t=>{window.customElements.get(bt)||window.customElements.define(bt,t)})(vt),t.FtIcon=vt,t.FtIconCssVariables=mt,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=ut.get(e))&&void 0!==s?s:e)+"/").split("/");return null!==(r=null!==(n=null!==(o=dt.get(l))&&void 0!==o?o:dt.get(i))&&void 0!==n?n:dt.get(a))&&void 0!==r?r:t.FtFileFormatIcons.UNKNOWN},Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-icon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "^0.2.0",
|
|
23
23
|
"lit": "2.1.3"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "7464f2fbd7cc8b96e0974d0b2412ed4262e18b86"
|
|
26
26
|
}
|