@fluid-topics/ft-icon 1.1.36 → 1.1.38
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.min.js +14 -14
- package/package.json +3 -3
package/build/ft-icon.min.js
CHANGED
|
@@ -50,7 +50,7 @@ const E=(t,o,e)=>(e.configurable=!0,e.enumerable=!0,e)
|
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
const R=globalThis,W=R.trustedTypes,I=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,K="?"+k,Z=`<${K}>`,A=document,$=()=>A.createComment(""),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,M="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,P=/>/g,_=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,H=/"/g,
|
|
53
|
+
const R=globalThis,W=R.trustedTypes,I=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,K="?"+k,Z=`<${K}>`,A=document,$=()=>A.createComment(""),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,M="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,P=/>/g,_=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,H=/"/g,G=/^(?:script|style|textarea|title)$/i,T=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),J=new WeakMap,q=A.createTreeWalker(A,129);function V(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(o):o}let X=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let a=0,n=0;const s=o.length-1,c=this.parts,[l,p]=((t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=z;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,p=0;for(;p<e.length&&(n.lastIndex=p,c=n.exec(e),null!==c);)p=n.lastIndex,n===z?"!--"===c[1]?n=D:void 0!==c[1]?n=P:void 0!==c[2]?(G.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=_):void 0!==c[3]&&(n=_):n===_?">"===c[0]?(n=i??z,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?_:'"'===c[3]?H:j):n===H||n===j?n=_:n===D||n===P?n=z:(n=_,i=void 0);const f=n===_&&t[o+1].startsWith("/>")?" ":"";a+=n===z?e+Z:l>=0?(r.push(s),e.slice(0,l)+L+e.slice(l)+k+f):e+k+(-2===l?o:f)}return[V(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(l,r),q.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=q.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(L)){const o=p[n++],e=i.getAttribute(t).split(k),r=/([.?@])?(.*)/.exec(o);c.push({type:1,index:a,name:r[2],strings:e,ctor:"."===r[1]?et:"?"===r[1]?rt:"@"===r[1]?it:ot}),i.removeAttribute(t)}else t.startsWith(k)&&(c.push({type:6,index:a}),i.removeAttribute(t));if(G.test(i.tagName)){const t=i.textContent.split(k),o=t.length-1;if(o>0){i.textContent=W?W.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],$()),q.nextNode(),c.push({type:2,index:++a});i.append(t[o],$())}}}else if(8===i.nodeType)if(i.data===K)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=i.data.indexOf(k,t+1));)c.push({type:7,index:a}),t+=k.length-1}a++}}static createElement(t,o){const e=A.createElement("template");return e.innerHTML=t,e}};function Q(t,o,e=t,r){if(o===T)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=F(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=Q(t,i._$AS(t,o.values),i,r)),o}let tt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Q(this,t,o),F(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&F(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=X.createElement(V(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??A).importNode(o,!0);q.currentNode=r;let i=q.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new tt(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new at(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=q.nextNode(),a++)}return q.currentNode=A,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=J.get(t.strings);return void 0===o&&J.set(t.strings,o=new X(t)),o}T(o){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const a of o)i===e.length?e.push(r=new t(this.k($()),this.k($()),this,this.options)):r=e[i],r._$AI(a),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ot=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=Q(this,t,o,0),a=!F(t)||t!==this._$AH&&t!==T,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=Q(this,r[e+n],o,n),s===T&&(s=this._$AH[n]),a||=!F(s)||s!==this._$AH[n],s===Y?t=Y:t!==Y&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends ot{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Y?void 0:t}},rt=class extends ot{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Y)}},it=class extends ot{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=Q(this,t,o,0)??Y)===T)return;const e=this._$AH,r=t===Y&&e!==Y||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Y&&(e===Y||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}};const nt=R.litHtmlPolyfillSupport;nt?.(X,tt),(R.litHtmlVersions??=[]).push("3.1.0");
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2019 Google LLC
|
|
@@ -67,7 +67,7 @@ const st=globalThis,ct=st.ShadowRoot&&(void 0===st.ShadyCSS||st.ShadyCSS.nativeS
|
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
const It=globalThis,Lt=It.trustedTypes,kt=Lt?Lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Zt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Zt,$t=`<${At}>`,Ft=document,Bt=()=>Ft.createComment(""),Mt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,zt=Array.isArray,Dt="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,jt=/>/g,Ht=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
70
|
+
const It=globalThis,Lt=It.trustedTypes,kt=Lt?Lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Zt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Zt,$t=`<${At}>`,Ft=document,Bt=()=>Ft.createComment(""),Mt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,zt=Array.isArray,Dt="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,jt=/>/g,Ht=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Tt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Jt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),qt=Symbol.for("lit-noChange"),Vt=Symbol.for("lit-nothing"),Xt=new WeakMap,Qt=Ft.createTreeWalker(Ft,129);function to(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==kt?kt.createHTML(o):o}const oo=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=Pt;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,p=0;for(;p<e.length&&(n.lastIndex=p,c=n.exec(e),null!==c);)p=n.lastIndex,n===Pt?"!--"===c[1]?n=_t:void 0!==c[1]?n=jt:void 0!==c[2]?(Yt.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=Ht):void 0!==c[3]&&(n=Ht):n===Ht?">"===c[0]?(n=i??Pt,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?Ht:'"'===c[3]?Tt:Gt):n===Tt||n===Gt?n=Ht:n===_t||n===jt?n=Pt:(n=Ht,i=void 0);const f=n===Ht&&t[o+1].startsWith("/>")?" ":"";a+=n===Pt?e+$t:l>=0?(r.push(s),e.slice(0,l)+Kt+e.slice(l)+Zt+f):e+Zt+(-2===l?o:f)}return[to(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class eo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,s=this.parts,[c,l]=oo(t,o);if(this.el=eo.createElement(c,e),Qt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Qt.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Kt)){const o=l[a++],e=r.getAttribute(t).split(Zt),n=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:n[2],strings:e,ctor:"."===n[1]?no:"?"===n[1]?so:"@"===n[1]?co:ao}),r.removeAttribute(t)}else t.startsWith(Zt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Yt.test(r.tagName)){const t=r.textContent.split(Zt),o=t.length-1;if(o>0){r.textContent=Lt?Lt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Bt()),Qt.nextNode(),s.push({type:2,index:++i});r.append(t[o],Bt())}}}else if(8===r.nodeType)if(r.data===At)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Zt,t+1));)s.push({type:7,index:i}),t+=Zt.length-1}i++}}static createElement(t,o){const e=Ft.createElement("template");return e.innerHTML=t,e}}function ro(t,o,e=t,r){if(o===qt)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=Mt(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=ro(t,i._$AS(t,o.values),i,r)),o}class io{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Vt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=ro(this,t,o),Mt(t)?t===Vt||null==t||""===t?(this._$AH!==Vt&&this._$AR(),this._$AH=Vt):t!==this._$AH&&t!==qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>zt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Vt&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ft.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=eo.createElement(to(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??Ft).importNode(o,!0);Qt.currentNode=r;let i=Qt.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new io(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new lo(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=Qt.nextNode(),a++)}return Qt.currentNode=Ft,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Xt.get(t.strings);return void 0===o&&Xt.set(t.strings,o=new eo(t)),o}T(t){zt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new io(this.k(Bt()),this.k(Bt()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ao{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Vt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Vt}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=ro(this,t,o,0),a=!Mt(t)||t!==this._$AH&&t!==qt,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=ro(this,r[e+n],o,n),s===qt&&(s=this._$AH[n]),a||=!Mt(s)||s!==this._$AH[n],s===Vt?t=Vt:t!==Vt&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===Vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class no extends ao{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Vt?void 0:t}}class so extends ao{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Vt)}}class co extends ao{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=ro(this,t,o,0)??Vt)===qt)return;const e=this._$AH,r=t===Vt&&e!==Vt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Vt&&(e===Vt||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class lo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){ro(this,t)}}const po=It.litHtmlPolyfillSupport;po?.(eo,io),(It.litHtmlVersions??=[]).push("3.1.0");
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright 2017 Google LLC
|
|
@@ -79,7 +79,7 @@ class fo extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
79
79
|
* Copyright 2019 Google LLC
|
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
81
|
*/
|
|
82
|
-
const mo=window,xo=mo.ShadowRoot&&(void 0===mo.ShadyCSS||mo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Oo extends fo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{xo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=mo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var No,vo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const So=Symbol("constructorPrototype"),wo=Symbol("constructorName"),Co=Symbol("exportpartsDebouncer");class Eo extends Oo{constructor(){super(),this[No]=new o(5),this[wo]=this.constructor.name,this[So]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wo]&&Object.setPrototypeOf(this,this[So])}updated(t){super.updated(t),
|
|
82
|
+
const mo=window,xo=mo.ShadowRoot&&(void 0===mo.ShadyCSS||mo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Oo extends fo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{xo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=mo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var No,vo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const So=Symbol("constructorPrototype"),wo=Symbol("constructorName"),Co=Symbol("exportpartsDebouncer");class Eo extends Oo{constructor(){super(),this[No]=new o(5),this[wo]=this.constructor.name,this[So]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wo]&&Object.setPrototypeOf(this,this[So])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,o;if((null!==(o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,o,e;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(e=null===(o=this.exportpartsPrefixes)||void 0===o?void 0:o.length)&&void 0!==e&&e)&&this[Co].run((()=>{var t,o;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(o=this.exportpartsPrefixes)||void 0===o?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}No=Co,vo([C()],Eo.prototype,"exportpartsPrefix",void 0),vo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Eo.prototype,"exportpartsPrefixes",void 0),vo([C()],Eo.prototype,"customStylesheet",void 0);const Uo=go.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function Ro(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Wo,Io,Lo;dt`
|
|
83
83
|
.highlight-html-match {
|
|
84
84
|
background: ${Uo};
|
|
85
85
|
}
|
|
@@ -126,7 +126,7 @@ const Bo=2;class Mo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
126
126
|
* @license
|
|
127
127
|
* Copyright 2017 Google LLC
|
|
128
128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
-
*/class zo extends Mo{constructor(t){if(super(t),this.et=Y,t.type!==Bo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.vt=void 0,this.et=t;if(t===G)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}zo.directiveName="unsafeHTML",zo.resultType=1;const Do=(t=>(...o)=>({_$litDirective$:t,values:o}))(zo);var Po,_o;t.FtIcons=void 0,(Po=t.FtIcons||(t.FtIcons={})).THUMBS_DOWN="",Po.THUMBS_DOWN_PLAIN="",Po.THUMBS_UP="",Po.THUMBS_UP_PLAIN="",Po.STAR="",Po.STAR_PLAIN="",Po.DESKTOP="",Po.LIFE_RING="",Po.GLOBE="",Po.PIGGY_BANK="",Po.TABLET_LANDSCAPE="",Po.TABLET_PORTRAIT="",Po.MOBILE_LANDSCAPE="",Po.MOBILE_PORTRAIT="",Po.ARROW_RIGHT_TO_LINE="",Po.THIN_ARROW_UP="",Po.CONTEXTUAL="",Po.CHART_SIMPLE="",Po.BARS_PROGRESS="",Po.LINE_CHART="",Po.STACKED_CHART="",Po.CHART_BAR_NORMALIZED="",Po.BOOK_OPEN_GEAR="",Po.BOOK_OPEN_GEAR_SLASH="",Po.DIAGRAM_SUNBURST="",Po.DIAGRAM_SANKEY="",Po.UNSTRUCTURED_DOC="",Po.RESET="",Po.THIN_ARROW_LEFT="",Po.THIN_ARROW_RIGHT="",Po.MY_COLLECTIONS="",Po.OFFLINE_SETTINGS="",Po.MY_LIBRARY="",Po.RATE_PLAIN="",Po.RATE="",Po.FEEDBACK_PLAIN="",Po.PAUSE="",Po.PLAY="",Po.RELATIVES_PLAIN="",Po.RELATIVES="",Po.SHORTCUT_MENU="",Po.PRINT="",Po.DEFAULT_ROLES="",Po.ACCOUNT_SETTINGS="",Po.ONLINE="",Po.OFFLINE="",Po.UPLOAD="",Po.BOOK_PLAIN="",Po.SYNC="",Po.SHARED_PBK="",Po.COLLECTIONS="",Po.SEARCH_IN_PUBLICATION="",Po.BOOKS="",Po.LOCKER="",Po.ARROW_DOWN="",Po.ARROW_LEFT="",Po.ARROW_RIGHT="",Po.ARROW_UP="",Po.SAVE="",Po.MAILS_AND_NOTIFICATIONS="",Po.DOT="",Po.MINUS="",Po.PLUS="",Po.FILTERS="",Po.STRIPE_ARROW_RIGHT="",Po.STRIPE_ARROW_LEFT="",Po.ATTACHMENTS="",Po.ADD_BOOKMARK="",Po.BOOKMARK="",Po.EXPORT="",Po.MENU="",Po.TAG="",Po.TAG_PLAIN="",Po.COPY_TO_CLIPBOARD="",Po.COLUMNS="",Po.ARTICLE="",Po.CLOSE_PLAIN="",Po.CHECK_PLAIN="",Po.LOGOUT="",Po.SIGN_IN="",Po.THIN_ARROW="",Po.TRIANGLE_BOTTOM="",Po.TRIANGLE_LEFT="",Po.TRIANGLE_RIGHT="",Po.TRIANGLE_TOP="",Po.FACET_HAS_DESCENDANT="",Po.MINUS_PLAIN="",Po.PLUS_PLAIN="",Po.INFO="",Po.ICON_EXPAND="",Po.ICON_COLLAPSE="",Po.ADD_TO_PBK="",Po.ALERT="",Po.ADD_ALERT="",Po.BACK_TO_SEARCH="",Po.DOWNLOAD="",Po.EDIT="",Po.FEEDBACK="",Po.MODIFY_PBK="",Po.SCHEDULED="",Po.SEARCH="",Po.SHARE="󨃱",Po.TOC="",Po.WRITE_UGC="",Po.TRASH="",Po.EXTLINK="",Po.EXTLINK_LIGHT="",Po.CALENDAR="",Po.BOOK="",Po.DOWNLOAD_PLAIN="",Po.CHECK="",Po.TOPICS="",Po.EYE="",Po.EYE_SLASH="",Po.DISC="",Po.CIRCLE="",Po.SHARED="",Po.SORT_UNSORTED="",Po.SORT_UP="",Po.SORT_DOWN="",Po.WORKING="",Po.CLOSE="",Po.ZOOM_OUT="",Po.ZOOM_IN="",Po.ZOOM_REALSIZE="",Po.ZOOM_FULLSCREEN="",Po.ADMIN_RESTRICTED="",Po.ADMIN_THEME="",Po.WARNING="",Po.CONTEXT="",Po.SEARCH_HOME="",Po.STEPS="",Po.HOME="",Po.TRANSLATE="",Po.USER="",Po.ADMIN="",Po.ANALYTICS="",Po.ADMIN_KHUB="",Po.ADMIN_USERS="",Po.ADMIN_INTEGRATION="",Po.ADMIN_PORTAL="",Po.COMMENT_QUESTION="",Po.COMMENT_QUESTION_PLAIN="",Po.MESSAGE_BOT="",Po.PIP="",Po.PIP_WIDE="",Po.EXPAND_WIDE="",Po.X_MARK="",Po.CLONE="",Po.CLONE_LINK_SIMPLE="",t.FtFileFormatIcons=void 0,(_o=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",_o.ABW="",_o.AUDIO="",_o.AVI="",_o.CHM="",_o.CODE="",_o.CSV="",_o.DITA="",_o.EPUB="",_o.EXCEL="",_o.FLAC="",_o.GIF="",_o.GZIP="",_o.HTML="",_o.IMAGE="",_o.JPEG="",_o.JSON="",_o.M4A="",_o.MOV="",_o.MP3="",_o.MP4="",_o.OGG="",_o.PDF="",_o.PNG="",_o.POWERPOINT="",_o.RAR="",_o.STP="",_o.TEXT="",_o.VIDEO="",_o.WAV="",_o.WMA="",_o.WORD="",_o.XML="",_o.YAML="",_o.ZIP="";const jo=new Map([...["abw"].map((o=>[o,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((o=>[o,t.FtFileFormatIcons.AUDIO])),...["avi"].map((o=>[o,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((o=>[o,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((o=>[o,t.FtFileFormatIcons.CODE])),...["csv"].map((o=>[o,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((o=>[o,t.FtFileFormatIcons.DITA])),...["epub"].map((o=>[o,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((o=>[o,t.FtFileFormatIcons.EXCEL])),...["flac"].map((o=>[o,t.FtFileFormatIcons.FLAC])),...["gif"].map((o=>[o,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((o=>[o,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((o=>[o,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","ico"].map((o=>[o,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((o=>[o,t.FtFileFormatIcons.JPEG])),...["json"].map((o=>[o,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((o=>[o,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((o=>[o,t.FtFileFormatIcons.MOV])),...["mp3"].map((o=>[o,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((o=>[o,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((o=>[o,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((o=>[o,t.FtFileFormatIcons.PDF])),...["png"].map((o=>[o,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((o=>[o,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((o=>[o,t.FtFileFormatIcons.RAR])),...["stp"].map((o=>[o,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((o=>[o,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((o=>[o,t.FtFileFormatIcons.VIDEO])),...["wav"].map((o=>[o,t.FtFileFormatIcons.WAV])),...["wma"].map((o=>[o,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((o=>[o,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((o=>[o,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((o=>[o,t.FtFileFormatIcons.YAML])),...["zip"].map((o=>[o,t.FtFileFormatIcons.ZIP]))]),Ho=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const To={[t.FtFileFormatIcons.ABW]:"#91ABC6",[t.FtFileFormatIcons.AUDIO]:"#1795E3",[t.FtFileFormatIcons.AVI]:"#E63324",[t.FtFileFormatIcons.CHM]:"#71C3EB",[t.FtFileFormatIcons.CODE]:"#71C3EB",[t.FtFileFormatIcons.CSV]:"#1F7345",[t.FtFileFormatIcons.DITA]:"#71C3EB",[t.FtFileFormatIcons.EPUB]:"#85B926",[t.FtFileFormatIcons.EXCEL]:"#1F7345",[t.FtFileFormatIcons.FLAC]:"#1795E3",[t.FtFileFormatIcons.GIF]:"#59B031",[t.FtFileFormatIcons.GZIP]:"#F8AB36",[t.FtFileFormatIcons.HTML]:"#71C3EB",[t.FtFileFormatIcons.IMAGE]:"#59B031",[t.FtFileFormatIcons.JPEG]:"#59B031",[t.FtFileFormatIcons.JSON]:"#71C3EB",[t.FtFileFormatIcons.M4A]:"#1795E3",[t.FtFileFormatIcons.MOV]:"#E63324",[t.FtFileFormatIcons.MP3]:"#1795E3",[t.FtFileFormatIcons.MP4]:"#E63324",[t.FtFileFormatIcons.OGG]:"#1795E3",[t.FtFileFormatIcons.PDF]:"#E44948",[t.FtFileFormatIcons.PNG]:"#59B031",[t.FtFileFormatIcons.POWERPOINT]:"#B54A2B",[t.FtFileFormatIcons.RAR]:"#F8AB36",[t.FtFileFormatIcons.STP]:"#3764B1",[t.FtFileFormatIcons.TEXT]:"#3162AB",[t.FtFileFormatIcons.UNKNOWN]:"#999999",[t.FtFileFormatIcons.VIDEO]:"#E63324",[t.FtFileFormatIcons.WAV]:"#1795E3",[t.FtFileFormatIcons.WMA]:"#1795E3",[t.FtFileFormatIcons.WORD]:"#3162AB",[t.FtFileFormatIcons.XML]:"#71C3EB",[t.FtFileFormatIcons.YAML]:"#71C3EB",[t.FtFileFormatIcons.ZIP]:"#F8AB36"},Go={size:go.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:go.extend("--ft-icon-fluid-topics-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:go.extend("--ft-icon-file-format-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:go.extend("--ft-icon-material-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:go.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Yo=dt`
|
|
129
|
+
*/class zo extends Mo{constructor(t){if(super(t),this.et=Y,t.type!==Bo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.vt=void 0,this.et=t;if(t===T)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}zo.directiveName="unsafeHTML",zo.resultType=1;const Do=(t=>(...o)=>({_$litDirective$:t,values:o}))(zo);var Po,_o;t.FtIcons=void 0,(Po=t.FtIcons||(t.FtIcons={})).THUMBS_DOWN="",Po.THUMBS_DOWN_PLAIN="",Po.THUMBS_UP="",Po.THUMBS_UP_PLAIN="",Po.STAR="",Po.STAR_PLAIN="",Po.DESKTOP="",Po.LIFE_RING="",Po.GLOBE="",Po.PIGGY_BANK="",Po.TABLET_LANDSCAPE="",Po.TABLET_PORTRAIT="",Po.MOBILE_LANDSCAPE="",Po.MOBILE_PORTRAIT="",Po.ARROW_RIGHT_TO_LINE="",Po.THIN_ARROW_UP="",Po.CONTEXTUAL="",Po.CHART_SIMPLE="",Po.BARS_PROGRESS="",Po.LINE_CHART="",Po.STACKED_CHART="",Po.CHART_BAR_NORMALIZED="",Po.BOOK_OPEN_GEAR="",Po.BOOK_OPEN_GEAR_SLASH="",Po.DIAGRAM_SUNBURST="",Po.DIAGRAM_SANKEY="",Po.UNSTRUCTURED_DOC="",Po.RESET="",Po.THIN_ARROW_LEFT="",Po.THIN_ARROW_RIGHT="",Po.MY_COLLECTIONS="",Po.OFFLINE_SETTINGS="",Po.MY_LIBRARY="",Po.RATE_PLAIN="",Po.RATE="",Po.FEEDBACK_PLAIN="",Po.PAUSE="",Po.PLAY="",Po.RELATIVES_PLAIN="",Po.RELATIVES="",Po.SHORTCUT_MENU="",Po.PRINT="",Po.DEFAULT_ROLES="",Po.ACCOUNT_SETTINGS="",Po.ONLINE="",Po.OFFLINE="",Po.UPLOAD="",Po.BOOK_PLAIN="",Po.SYNC="",Po.SHARED_PBK="",Po.COLLECTIONS="",Po.SEARCH_IN_PUBLICATION="",Po.BOOKS="",Po.LOCKER="",Po.ARROW_DOWN="",Po.ARROW_LEFT="",Po.ARROW_RIGHT="",Po.ARROW_UP="",Po.SAVE="",Po.MAILS_AND_NOTIFICATIONS="",Po.DOT="",Po.MINUS="",Po.PLUS="",Po.FILTERS="",Po.STRIPE_ARROW_RIGHT="",Po.STRIPE_ARROW_LEFT="",Po.ATTACHMENTS="",Po.ADD_BOOKMARK="",Po.BOOKMARK="",Po.EXPORT="",Po.MENU="",Po.TAG="",Po.TAG_PLAIN="",Po.COPY_TO_CLIPBOARD="",Po.COLUMNS="",Po.ARTICLE="",Po.CLOSE_PLAIN="",Po.CHECK_PLAIN="",Po.LOGOUT="",Po.SIGN_IN="",Po.THIN_ARROW="",Po.TRIANGLE_BOTTOM="",Po.TRIANGLE_LEFT="",Po.TRIANGLE_RIGHT="",Po.TRIANGLE_TOP="",Po.FACET_HAS_DESCENDANT="",Po.MINUS_PLAIN="",Po.PLUS_PLAIN="",Po.INFO="",Po.ICON_EXPAND="",Po.ICON_COLLAPSE="",Po.ADD_TO_PBK="",Po.ALERT="",Po.ADD_ALERT="",Po.BACK_TO_SEARCH="",Po.DOWNLOAD="",Po.EDIT="",Po.FEEDBACK="",Po.MODIFY_PBK="",Po.SCHEDULED="",Po.SEARCH="",Po.SHARE="󨃱",Po.TOC="",Po.WRITE_UGC="",Po.TRASH="",Po.EXTLINK="",Po.EXTLINK_LIGHT="",Po.CALENDAR="",Po.BOOK="",Po.DOWNLOAD_PLAIN="",Po.CHECK="",Po.TOPICS="",Po.EYE="",Po.EYE_SLASH="",Po.DISC="",Po.CIRCLE="",Po.SHARED="",Po.SORT_UNSORTED="",Po.SORT_UP="",Po.SORT_DOWN="",Po.WORKING="",Po.CLOSE="",Po.ZOOM_OUT="",Po.ZOOM_IN="",Po.ZOOM_REALSIZE="",Po.ZOOM_FULLSCREEN="",Po.ADMIN_RESTRICTED="",Po.ADMIN_THEME="",Po.WARNING="",Po.CONTEXT="",Po.SEARCH_HOME="",Po.STEPS="",Po.HOME="",Po.TRANSLATE="",Po.USER="",Po.ADMIN="",Po.ANALYTICS="",Po.ADMIN_KHUB="",Po.ADMIN_USERS="",Po.ADMIN_INTEGRATION="",Po.ADMIN_PORTAL="",Po.COMMENT_QUESTION="",Po.COMMENT_QUESTION_PLAIN="",Po.MESSAGE_BOT="",Po.PIP="",Po.PIP_WIDE="",Po.EXPAND_WIDE="",Po.X_MARK="",Po.CLONE="",Po.CLONE_LINK_SIMPLE="",t.FtFileFormatIcons=void 0,(_o=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",_o.ABW="",_o.AUDIO="",_o.AVI="",_o.CHM="",_o.CODE="",_o.CSV="",_o.DITA="",_o.EPUB="",_o.EXCEL="",_o.FLAC="",_o.GIF="",_o.GZIP="",_o.HTML="",_o.IMAGE="",_o.JPEG="",_o.JSON="",_o.M4A="",_o.MOV="",_o.MP3="",_o.MP4="",_o.OGG="",_o.PDF="",_o.PNG="",_o.POWERPOINT="",_o.RAR="",_o.STP="",_o.TEXT="",_o.VIDEO="",_o.WAV="",_o.WMA="",_o.WORD="",_o.XML="",_o.YAML="",_o.ZIP="";const jo=new Map([...["abw"].map((o=>[o,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((o=>[o,t.FtFileFormatIcons.AUDIO])),...["avi"].map((o=>[o,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((o=>[o,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((o=>[o,t.FtFileFormatIcons.CODE])),...["csv"].map((o=>[o,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((o=>[o,t.FtFileFormatIcons.DITA])),...["epub"].map((o=>[o,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((o=>[o,t.FtFileFormatIcons.EXCEL])),...["flac"].map((o=>[o,t.FtFileFormatIcons.FLAC])),...["gif"].map((o=>[o,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((o=>[o,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((o=>[o,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","ico"].map((o=>[o,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((o=>[o,t.FtFileFormatIcons.JPEG])),...["json"].map((o=>[o,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((o=>[o,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((o=>[o,t.FtFileFormatIcons.MOV])),...["mp3"].map((o=>[o,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((o=>[o,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((o=>[o,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((o=>[o,t.FtFileFormatIcons.PDF])),...["png"].map((o=>[o,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((o=>[o,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((o=>[o,t.FtFileFormatIcons.RAR])),...["stp"].map((o=>[o,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((o=>[o,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((o=>[o,t.FtFileFormatIcons.VIDEO])),...["wav"].map((o=>[o,t.FtFileFormatIcons.WAV])),...["wma"].map((o=>[o,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((o=>[o,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((o=>[o,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((o=>[o,t.FtFileFormatIcons.YAML])),...["zip"].map((o=>[o,t.FtFileFormatIcons.ZIP]))]),Ho=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Go={[t.FtFileFormatIcons.ABW]:"#91ABC6",[t.FtFileFormatIcons.AUDIO]:"#1795E3",[t.FtFileFormatIcons.AVI]:"#E63324",[t.FtFileFormatIcons.CHM]:"#71C3EB",[t.FtFileFormatIcons.CODE]:"#71C3EB",[t.FtFileFormatIcons.CSV]:"#1F7345",[t.FtFileFormatIcons.DITA]:"#71C3EB",[t.FtFileFormatIcons.EPUB]:"#85B926",[t.FtFileFormatIcons.EXCEL]:"#1F7345",[t.FtFileFormatIcons.FLAC]:"#1795E3",[t.FtFileFormatIcons.GIF]:"#59B031",[t.FtFileFormatIcons.GZIP]:"#F8AB36",[t.FtFileFormatIcons.HTML]:"#71C3EB",[t.FtFileFormatIcons.IMAGE]:"#59B031",[t.FtFileFormatIcons.JPEG]:"#59B031",[t.FtFileFormatIcons.JSON]:"#71C3EB",[t.FtFileFormatIcons.M4A]:"#1795E3",[t.FtFileFormatIcons.MOV]:"#E63324",[t.FtFileFormatIcons.MP3]:"#1795E3",[t.FtFileFormatIcons.MP4]:"#E63324",[t.FtFileFormatIcons.OGG]:"#1795E3",[t.FtFileFormatIcons.PDF]:"#E44948",[t.FtFileFormatIcons.PNG]:"#59B031",[t.FtFileFormatIcons.POWERPOINT]:"#B54A2B",[t.FtFileFormatIcons.RAR]:"#F8AB36",[t.FtFileFormatIcons.STP]:"#3764B1",[t.FtFileFormatIcons.TEXT]:"#3162AB",[t.FtFileFormatIcons.UNKNOWN]:"#999999",[t.FtFileFormatIcons.VIDEO]:"#E63324",[t.FtFileFormatIcons.WAV]:"#1795E3",[t.FtFileFormatIcons.WMA]:"#1795E3",[t.FtFileFormatIcons.WORD]:"#3162AB",[t.FtFileFormatIcons.XML]:"#71C3EB",[t.FtFileFormatIcons.YAML]:"#71C3EB",[t.FtFileFormatIcons.ZIP]:"#F8AB36"},To={size:go.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:go.extend("--ft-icon-fluid-topics-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:go.extend("--ft-icon-file-format-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:go.extend("--ft-icon-material-font-family","",go.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:go.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Yo=dt`
|
|
130
130
|
:host, i.ft-icon {
|
|
131
131
|
display: inline-flex;
|
|
132
132
|
align-items: center;
|
|
@@ -135,14 +135,14 @@ const Bo=2;class Mo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
:host {
|
|
138
|
-
width: ${
|
|
139
|
-
height: ${
|
|
138
|
+
width: ${To.size};
|
|
139
|
+
height: ${To.size};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
i.ft-icon {
|
|
143
143
|
width: 100%;
|
|
144
144
|
height: 100%;
|
|
145
|
-
font-size: ${
|
|
145
|
+
font-size: ${To.size};
|
|
146
146
|
line-height: 1;
|
|
147
147
|
font-weight: normal;
|
|
148
148
|
text-transform: none;
|
|
@@ -153,30 +153,30 @@ const Bo=2;class Mo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
153
153
|
text-rendering: auto;
|
|
154
154
|
-webkit-font-smoothing: antialiased;
|
|
155
155
|
-moz-osx-font-smoothing: grayscale;
|
|
156
|
-
vertical-align: ${
|
|
156
|
+
vertical-align: ${To.verticalAlign};
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
i.ft-icon.ft-icon--fluid-topics {
|
|
160
|
-
font-family: ${
|
|
160
|
+
font-family: ${To.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
161
161
|
|
|
162
162
|
/* Ugly fix because font is broken */
|
|
163
|
-
font-size: calc(0.75 * ${
|
|
164
|
-
line-height: ${
|
|
163
|
+
font-size: calc(0.75 * ${To.size});
|
|
164
|
+
line-height: ${To.size};
|
|
165
165
|
position: relative;
|
|
166
166
|
top: -4%;
|
|
167
167
|
justify-content: center;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.ft-icon--file-format {
|
|
171
|
-
font-family: ${
|
|
171
|
+
font-family: ${To.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.ft-icon--material {
|
|
175
|
-
font-family: ${
|
|
175
|
+
font-family: ${To.materialFontFamily}, "Material Icons", sans-serif;
|
|
176
176
|
}
|
|
177
177
|
`;var Jo;t.FtIconVariants=void 0,(Jo=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",Jo.file_format="file-format",Jo.material="material";var qo,Vo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Xo extends Eo{constructor(){super(...arguments),this.resolvedIcon=Vt}render(){const o=this.variant&&Object.values(t.FtIconVariants).includes(this.variant)?this.variant:t.FtIconVariants.fluid_topics,e=o!==t.FtIconVariants.material||!!this.value;return Jt`
|
|
178
178
|
<i class="ft-icon ft-icon--${o}" part="icon icon-${o}">
|
|
179
179
|
${Do(this.resolvedIcon)}
|
|
180
180
|
<slot ?hidden=${e}></slot>
|
|
181
181
|
</i>
|
|
182
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var o,e;let r=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(o=t.FtFileFormatIcons[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r;break;case t.FtIconVariants.material:this.resolvedIcon=this.value||Vt;break;default:this.resolvedIcon=null!==(e=t.FtIcons[r.replace("-","_").toUpperCase()])&&void 0!==e?e:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Xo.elementDefinitions={},Xo.styles=Yo,Vo([C()],Xo.prototype,"variant",void 0),Vo([C()],Xo.prototype,"value",void 0),Vo([function(t){return C({...t,state:!0,attribute:!1})}()],Xo.prototype,"resolvedIcon",void 0),Vo([function(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return E(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return E(0,0,{get(){return a(this)}})}}("slot")],Xo.prototype,"slottedContent",void 0),(qo="ft-icon",t=>{window.customElements.get(qo)||window.customElements.define(qo,t)})(Xo),t.FtIcon=Xo,t.FtIconCssVariables=
|
|
182
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var o,e;let r=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(o=t.FtFileFormatIcons[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r;break;case t.FtIconVariants.material:this.resolvedIcon=this.value||Vt;break;default:this.resolvedIcon=null!==(e=t.FtIcons[r.replace("-","_").toUpperCase()])&&void 0!==e?e:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Xo.elementDefinitions={},Xo.styles=Yo,Vo([C()],Xo.prototype,"variant",void 0),Vo([C()],Xo.prototype,"value",void 0),Vo([function(t){return C({...t,state:!0,attribute:!1})}()],Xo.prototype,"resolvedIcon",void 0),Vo([function(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return E(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return E(0,0,{get(){return a(this)}})}}("slot")],Xo.prototype,"slottedContent",void 0),(qo="ft-icon",t=>{window.customElements.get(qo)||window.customElements.define(qo,t)})(Xo),t.FtIcon=Xo,t.FtIconCssVariables=To,t.fileFormatColors=Go,t.resolveFileFormatIcon=function(o,e){var r,i,a,n;o=(null!=o?o:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,c]=((null!==(r=Ho.get(o))&&void 0!==r?r:o)+"/").split("/");return null!==(n=null!==(a=null!==(i=jo.get(c))&&void 0!==i?i:jo.get(e))&&void 0!==a?a:jo.get(s))&&void 0!==n?n:t.FtFileFormatIcons.UNKNOWN},t.styles=Yo}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-icon",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.38",
|
|
4
4
|
"description": "Typography components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.38",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d4b337b18935ad7a7d9f20e856f84e92225a9192"
|
|
27
27
|
}
|