@fluid-topics/ft-typography 0.0.88 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/ft-typography.min.js +4 -4
- package/package.json +3 -3
- package/build/icons.d.ts +0 -158
- package/build/icons.js +0 -223
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ const i=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var d;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:v}),(null!==(h=globalThis.reactiveElementVersions)&&void 0!==h?h:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,b="?"+w,x=`<${b}>`,S=document,$=(t="")=>S.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,
|
|
18
|
+
var d;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:v}),(null!==(h=globalThis.reactiveElementVersions)&&void 0!==h?h:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,b="?"+w,x=`<${b}>`,S=document,$=(t="")=>S.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,z=/>/g,M=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,k=/"/g,T=/^(?:script|style|textarea|title)$/i,R=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),L=new WeakMap,H=S.createTreeWalker(S,129,null,!1),N=(t,i)=>{const e=t.length-1,n=[];let r,o=2===i?"<svg>":"",s=j;for(let i=0;i<e;i++){const e=t[i];let a,h,l=-1,f=0;for(;f<e.length&&(s.lastIndex=f,h=s.exec(e),null!==h);)f=s.lastIndex,s===j?"!--"===h[1]?s=C:void 0!==h[1]?s=z:void 0!==h[2]?(T.test(h[2])&&(r=RegExp("</"+h[2],"g")),s=M):void 0!==h[3]&&(s=M):s===M?">"===h[0]?(s=null!=r?r:j,l=-1):void 0===h[1]?l=-2:(l=s.lastIndex-h[2].length,a=h[1],s=void 0===h[3]?M:'"'===h[3]?k:A):s===k||s===A?s=M:s===C||s===z?s=j:(s=M,r=void 0);const p=s===M&&t[i+1].startsWith("/>")?" ":"";o+=s===j?e+x:l>=0?(n.push(a),e.slice(0,l)+"$lit$"+e.slice(l)+w+p):e+w+(-2===l?(n.push(void 0),i):p)}const a=o+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(a):a,n]};class D{constructor({strings:t,_$litType$:i},e){let n;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[h,l]=N(t,i);if(this.el=D.createElement(h,e),H.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(n=H.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const i of n.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=l[o++];if(t.push(i),void 0!==e){const t=n.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?J:"@"===i[1]?K:W})}else a.push({type:6,index:r})}for(const i of t)n.removeAttribute(i)}if(T.test(n.tagName)){const t=n.textContent.split(w),i=t.length-1;if(i>0){n.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)n.append(t[e],$()),H.nextNode(),a.push({type:2,index:++r});n.append(t[i],$())}}}else if(8===n.nodeType)if(n.data===b)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(w,t+1));)a.push({type:7,index:r}),t+=w.length-1}r++}}static createElement(t,i){const e=S.createElement("template");return e.innerHTML=t,e}}function F(t,i,e=t,n){var r,o,s,a;if(i===_)return i;let h=void 0!==n?null===(r=e._$Cl)||void 0===r?void 0:r[n]:e._$Cu;const l=O(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==l&&(null===(o=null==h?void 0:h._$AO)||void 0===o||o.call(h,!1),void 0===l?h=void 0:(h=new l(t),h._$AT(t,e,n)),void 0!==n?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[n]=h:e._$Cu=h),void 0!==h&&(i=F(t,h._$AS(t,i.values),h,n)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:n}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:S).importNode(e,!0);H.currentNode=r;let o=H.nextNode(),s=0,a=0,h=n[0];for(;void 0!==h;){if(s===h.index){let i;2===h.type?i=new P(o,o.nextSibling,this,t):1===h.type?i=new h.ctor(o,h.name,h.strings,this,t):6===h.type&&(i=new Z(o,this,t)),this.v.push(i),h=n[++a]}s!==(null==h?void 0:h.index)&&(o=H.nextNode(),s++)}return r}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class P{constructor(t,i,e,n){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=n,this._$Cg=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=F(this,t,i),O(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return E(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==U&&O(this._$AH)?this._$AA.nextSibling.data=t:this.S(S.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=D.createElement(n.h,this.options)),n);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.m(e);else{const t=new I(r,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=L.get(t.strings);return void 0===i&&L.set(t.strings,i=new D(t)),i}A(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,n=0;for(const r of t)n===i.length?i.push(e=new P(this.M($()),this.M($()),this,this.options)):e=i[n],e._$AI(r),n++;n<i.length&&(this._$AR(e&&e._$AB.nextSibling,n),i.length=n)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,n,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=i,this._$AM=n,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,n){const r=this.strings;let o=!1;if(void 0===r)t=F(this,t,i,0),o=!O(t)||t!==this._$AH&&t!==_,o&&(this._$AH=t);else{const n=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=F(this,n[e+s],i,s),a===_&&(a=this._$AH[s]),o||(o=!O(a)||a!==this._$AH[s]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!n&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const B=g?g.emptyScript:"";class J extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class K extends W{constructor(t,i,e,n,r){super(t,i,e,n,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=F(this,t,i,0))&&void 0!==e?e:U)===_)return;const n=this._$AH,r=t===U&&n!==U||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==U&&(n===U||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const q=window.litHtmlPolyfillSupport;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
@@ -37,18 +37,18 @@ const tt=t=>({_$litStatic$:t}),it=new Map,et=(t=>(i,...e)=>{var n;const r=e.leng
|
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright 2021 Google LLC
|
|
39
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
*/}var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,function(){function t(t){var i=0;return function(){return i<t.length?{done:!1,value:t[i++]}:{done:!0}}}function i(i){var e="undefined"!=typeof Symbol&&Symbol.iterator&&i[Symbol.iterator];return e?e.call(i):{next:t(i)}}function e(t){if(!(t instanceof Array)){t=i(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function i(){}return i.prototype=t,new i};var r,o=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<t.length;++i){var e=t[i];if(e&&e.Math==Math)return e}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(i,e,n){return i=t(i,e),n&&Reflect.setPrototypeOf(i,n.prototype),i}}return function(t,i,e){return void 0===e&&(e=t),e=n(e.prototype||Object.prototype),Function.prototype.apply.call(t,e,i)||e}}();if("function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var a;t:{var h={};try{h.__proto__={a:!0},a=h.a;break t}catch(t){}a=!1}r=a?function(t,i){if(t.__proto__=i,t.__proto__!==i)throw new TypeError(t+" is not extensible");return t}:null}var l=r;if(!ShadowRoot.prototype.createElement){var f,p=window.HTMLElement,u=window.customElements.define,c=window.customElements.get,y=window.customElements,v=new WeakMap,d=new WeakMap,g=new WeakMap,m=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,e){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(e))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=e.prototype.attributeChangedCallback,r=new Set(e.observedAttributes||[]);if(b(e,r,n),n={g:e,connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,adoptedCallback:e.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:e.formAssociated,formAssociatedCallback:e.prototype.formAssociatedCallback,formDisabledCallback:e.prototype.formDisabledCallback,formResetCallback:e.prototype.formResetCallback,formStateRestoreCallback:e.prototype.formStateRestoreCallback,observedAttributes:r},this.l.set(t,n),this.o.set(e,n),(r=c.call(y,t))||(r=w(t),u.call(y,t,r)),this===window.customElements&&(g.set(e,n),n.s=r),r=this.h.get(t)){this.h.delete(t);for(var o=(r=i(r)).next();!o.done;o=r.next())o=o.value,d.delete(o),S(o,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(e),this.i.delete(t)),e},window.CustomElementRegistry.prototype.upgrade=function(){O.push(this),y.upgrade.apply(y,arguments),O.pop()},window.CustomElementRegistry.prototype.get=function(t){var i;return null==(i=this.l.get(t))?void 0:i.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var i=this.j(t);if(void 0!==i)return Promise.resolve(i.g);var e=this.i.get(t);return void 0===e&&((e={}).promise=new Promise((function(t){return e.resolve=t})),this.i.set(t,e)),e.promise},window.CustomElementRegistry.prototype.m=function(t,i,e){var n=this.h.get(i);n||this.h.set(i,n=new Set),e?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=f;if(t)return f=void 0,t;var i=g.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],i.s),Object.setPrototypeOf(t,this.constructor.prototype),v.set(t,i),t},window.HTMLElement.prototype=p.prototype;var w=function(t){function i(){var i=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);t:{var e=i.getRootNode();if(!(e===document||e instanceof ShadowRoot)){if((e=O[O.length-1])instanceof CustomElementRegistry){var n=e;break t}(e=e.getRootNode())===document||e instanceof ShadowRoot||(e=(null==(n=m.get(e))?void 0:n.getRootNode())||document)}n=e.customElements}return(e=(n=n||window.customElements).j(t))?S(i,e):d.set(i,n),i}return o.Object.defineProperty(i,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),i.prototype.connectedCallback=function(){var i=v.get(this);i?i.connectedCallback&&i.connectedCallback.apply(this,arguments):d.get(this).m(this,t,!0)},i.prototype.disconnectedCallback=function(){var i=v.get(this);i?i.disconnectedCallback&&i.disconnectedCallback.apply(this,arguments):d.get(this).m(this,t,!1)},i.prototype.adoptedCallback=function(){var t,i;null==(t=v.get(this))||null==(i=t.adoptedCallback)||i.apply(this,arguments)},i.prototype.formAssociatedCallback=function(){var t,i=v.get(this);i&&i.formAssociated&&(null==i||null==(t=i.formAssociatedCallback)||t.apply(this,arguments))},i.prototype.formDisabledCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formDisabledCallback)||t.apply(this,arguments))},i.prototype.formResetCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formResetCallback)||t.apply(this,arguments))},i.prototype.formStateRestoreCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formStateRestoreCallback)||t.apply(this,arguments))},i},b=function(t,i,e){if(0!==i.size&&void 0!==e){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){if(t=t.toLowerCase(),i.has(t)){var o=this.getAttribute(t);n.call(this,t,r),e.call(this,t,o,r)}else n.call(this,t,r)});var r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),i.has(t)){var n=this.getAttribute(t);r.call(this,t),e.call(this,t,n,null)}else r.call(this,t)})}},x=function(t){var i=Object.getPrototypeOf(t);if(i!==window.HTMLElement)return i===p?Object.setPrototypeOf(t,window.HTMLElement):x(i)},S=function(t,i,e){e=void 0!==e&&e,Object.setPrototypeOf(t,i.g.prototype),v.set(t,i),f=t;try{new i.g}catch(t){x(i.g),new i.g}i.observedAttributes.forEach((function(e){t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var i=$.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};var O=[document],E=function(t,i,e){var n=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){O.push(this);var t=n.apply(e||this,arguments);return void 0!==t&&m.set(t,this),O.pop(),t}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");var j=function(t){var i=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},i,{set:function(t){O.push(this),i.set.call(this,t),O.pop()}}))};if(j(Element),j(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,
|
|
40
|
+
*/}var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,function(){function t(t){var i=0;return function(){return i<t.length?{done:!1,value:t[i++]}:{done:!0}}}function i(i){var e="undefined"!=typeof Symbol&&Symbol.iterator&&i[Symbol.iterator];return e?e.call(i):{next:t(i)}}function e(t){if(!(t instanceof Array)){t=i(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function i(){}return i.prototype=t,new i};var r,o=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<t.length;++i){var e=t[i];if(e&&e.Math==Math)return e}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(i,e,n){return i=t(i,e),n&&Reflect.setPrototypeOf(i,n.prototype),i}}return function(t,i,e){return void 0===e&&(e=t),e=n(e.prototype||Object.prototype),Function.prototype.apply.call(t,e,i)||e}}();if("function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var a;t:{var h={};try{h.__proto__={a:!0},a=h.a;break t}catch(t){}a=!1}r=a?function(t,i){if(t.__proto__=i,t.__proto__!==i)throw new TypeError(t+" is not extensible");return t}:null}var l=r;if(!ShadowRoot.prototype.createElement){var f,p=window.HTMLElement,u=window.customElements.define,c=window.customElements.get,y=window.customElements,v=new WeakMap,d=new WeakMap,g=new WeakMap,m=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,e){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(e))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=e.prototype.attributeChangedCallback,r=new Set(e.observedAttributes||[]);if(b(e,r,n),n={g:e,connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,adoptedCallback:e.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:e.formAssociated,formAssociatedCallback:e.prototype.formAssociatedCallback,formDisabledCallback:e.prototype.formDisabledCallback,formResetCallback:e.prototype.formResetCallback,formStateRestoreCallback:e.prototype.formStateRestoreCallback,observedAttributes:r},this.l.set(t,n),this.o.set(e,n),(r=c.call(y,t))||(r=w(t),u.call(y,t,r)),this===window.customElements&&(g.set(e,n),n.s=r),r=this.h.get(t)){this.h.delete(t);for(var o=(r=i(r)).next();!o.done;o=r.next())o=o.value,d.delete(o),S(o,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(e),this.i.delete(t)),e},window.CustomElementRegistry.prototype.upgrade=function(){O.push(this),y.upgrade.apply(y,arguments),O.pop()},window.CustomElementRegistry.prototype.get=function(t){var i;return null==(i=this.l.get(t))?void 0:i.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var i=this.j(t);if(void 0!==i)return Promise.resolve(i.g);var e=this.i.get(t);return void 0===e&&((e={}).promise=new Promise((function(t){return e.resolve=t})),this.i.set(t,e)),e.promise},window.CustomElementRegistry.prototype.m=function(t,i,e){var n=this.h.get(i);n||this.h.set(i,n=new Set),e?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=f;if(t)return f=void 0,t;var i=g.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],i.s),Object.setPrototypeOf(t,this.constructor.prototype),v.set(t,i),t},window.HTMLElement.prototype=p.prototype;var w=function(t){function i(){var i=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);t:{var e=i.getRootNode();if(!(e===document||e instanceof ShadowRoot)){if((e=O[O.length-1])instanceof CustomElementRegistry){var n=e;break t}(e=e.getRootNode())===document||e instanceof ShadowRoot||(e=(null==(n=m.get(e))?void 0:n.getRootNode())||document)}n=e.customElements}return(e=(n=n||window.customElements).j(t))?S(i,e):d.set(i,n),i}return o.Object.defineProperty(i,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),i.prototype.connectedCallback=function(){var i=v.get(this);i?i.connectedCallback&&i.connectedCallback.apply(this,arguments):d.get(this).m(this,t,!0)},i.prototype.disconnectedCallback=function(){var i=v.get(this);i?i.disconnectedCallback&&i.disconnectedCallback.apply(this,arguments):d.get(this).m(this,t,!1)},i.prototype.adoptedCallback=function(){var t,i;null==(t=v.get(this))||null==(i=t.adoptedCallback)||i.apply(this,arguments)},i.prototype.formAssociatedCallback=function(){var t,i=v.get(this);i&&i.formAssociated&&(null==i||null==(t=i.formAssociatedCallback)||t.apply(this,arguments))},i.prototype.formDisabledCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formDisabledCallback)||t.apply(this,arguments))},i.prototype.formResetCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formResetCallback)||t.apply(this,arguments))},i.prototype.formStateRestoreCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formStateRestoreCallback)||t.apply(this,arguments))},i},b=function(t,i,e){if(0!==i.size&&void 0!==e){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){if(t=t.toLowerCase(),i.has(t)){var o=this.getAttribute(t);n.call(this,t,r),e.call(this,t,o,r)}else n.call(this,t,r)});var r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),i.has(t)){var n=this.getAttribute(t);r.call(this,t),e.call(this,t,n,null)}else r.call(this,t)})}},x=function(t){var i=Object.getPrototypeOf(t);if(i!==window.HTMLElement)return i===p?Object.setPrototypeOf(t,window.HTMLElement):x(i)},S=function(t,i,e){e=void 0!==e&&e,Object.setPrototypeOf(t,i.g.prototype),v.set(t,i),f=t;try{new i.g}catch(t){x(i.g),new i.g}i.observedAttributes.forEach((function(e){t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var i=$.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};var O=[document],E=function(t,i,e){var n=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){O.push(this);var t=n.apply(e||this,arguments);return void 0!==t&&m.set(t,this),O.pop(),t}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");var j=function(t){var i=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},i,{set:function(t){O.push(this),i.set.call(this,t),O.pop()}}))};if(j(Element),j(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,z=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];return i=z.call.apply(z,[this].concat(e(i))),C.set(i,this),i},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var i=window.ElementInternals.prototype,n=i[t];i[t]=function(t){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];if(r=C.get(this),!0!==v.get(r).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(e(i)))}}));var M=function(t){var i=s(Array,[].concat(e(t)),this.constructor);return i.h=t,i},A=M,k=Array;if(A.prototype=n(k.prototype),A.prototype.constructor=A,l)l(A,k);else for(var T in k)if("prototype"!=T)if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(k,T);R&&Object.defineProperty(A,T,R)}else A[T]=k[T];A.u=k.prototype,o.Object.defineProperty(M.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var _=function(t){var i=this,e=new Map;t.forEach((function(t,n){var r=t.getAttribute("name"),o=e.get(r)||[];i[+n]=t,o.push(t),e.set(r,o)})),this.length=t.length,e.forEach((function(t,e){t&&(i[e]=1===t.length?t[0]:new M(t))}))};_.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),e=[],n=(t=i(t)).next();!n.done;n=t.next()){n=n.value;var r=v.get(n);r&&!0!==r.formAssociated||e.push(n)}return new _(e)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(ht){const t=window.customElements.define;window.customElements.define=(i,e,n)=>{try{t.bind(window.customElements)(i,e,n)}catch(t){console.warn(i,e,n,t)}}}class st extends(
|
|
41
41
|
/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2021 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
45
|
*/
|
|
46
|
-
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:n}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const r=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return s(r,this.constructor.elementStyles),r}}}(X)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),R`${t.map((t=>R`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}
|
|
46
|
+
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:n}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const r=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return s(r,this.constructor.elementStyles),r}}}(X)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),R`${t.map((t=>R`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}o`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
|
|
51
|
+
*/;const at=2;
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-typography",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
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.1.2",
|
|
23
23
|
"lit": "^2.0.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "45bcba88593eeafbe100e92f2ad27ca4d439f351"
|
|
26
26
|
}
|
package/build/icons.d.ts
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
export declare enum FtIcons {
|
|
2
|
-
THIN_ARROW_LEFT = "",
|
|
3
|
-
THIN_ARROW_RIGHT = "",
|
|
4
|
-
MY_COLLECTIONS = "",
|
|
5
|
-
OFFLINE_SETTINGS = "",
|
|
6
|
-
MY_LIBRARY = "",
|
|
7
|
-
RATE_PLAIN = "",
|
|
8
|
-
RATE = "",
|
|
9
|
-
FEEDBACK_PLAIN = "",
|
|
10
|
-
STAR_PLAIN = "",
|
|
11
|
-
STAR = "",
|
|
12
|
-
THUMBS_DOWN_PLAIN = "",
|
|
13
|
-
THUMBS_DOWN = "",
|
|
14
|
-
THUMBS_UP_PLAIN = "",
|
|
15
|
-
THUMBS_UP = "",
|
|
16
|
-
PAUSE = "",
|
|
17
|
-
PLAY = "",
|
|
18
|
-
RELATIVES_PLAIN = "",
|
|
19
|
-
RELATIVES = "",
|
|
20
|
-
SHORTCUT_MENU = "",
|
|
21
|
-
PRINT = "",
|
|
22
|
-
DEFAULT_ROLES = "",
|
|
23
|
-
ACCOUNT_SETTINGS = "",
|
|
24
|
-
ONLINE = "",
|
|
25
|
-
OFFLINE = "",
|
|
26
|
-
UPLOAD = "",
|
|
27
|
-
BOOK_PLAIN = "",
|
|
28
|
-
SYNC = "",
|
|
29
|
-
SHARED_PBK = "",
|
|
30
|
-
COLLECTIONS = "",
|
|
31
|
-
SEARCH_IN_PUBLICATION = "",
|
|
32
|
-
BOOKS = "",
|
|
33
|
-
LOCKER = "",
|
|
34
|
-
ARROW_DOWN = "",
|
|
35
|
-
ARROW_LEFT = "",
|
|
36
|
-
ARROW_RIGHT = "",
|
|
37
|
-
ARROW_UP = "",
|
|
38
|
-
SAVE = "",
|
|
39
|
-
MAILS_AND_NOTIFICATIONS = "",
|
|
40
|
-
DOT = "",
|
|
41
|
-
MINUS = "",
|
|
42
|
-
PLUS = "",
|
|
43
|
-
FILTERS = "",
|
|
44
|
-
STRIPE_ARROW_RIGHT = "",
|
|
45
|
-
STRIPE_ARROW_LEFT = "",
|
|
46
|
-
ATTACHMENTS = "",
|
|
47
|
-
ADD_BOOKMARK = "",
|
|
48
|
-
BOOKMARK = "",
|
|
49
|
-
EXPORT = "",
|
|
50
|
-
MENU = "",
|
|
51
|
-
TAG = "",
|
|
52
|
-
TAG_PLAIN = "",
|
|
53
|
-
COPY_TO_CLIPBOARD = "",
|
|
54
|
-
COLUMNS = "",
|
|
55
|
-
ARTICLE = "",
|
|
56
|
-
CLOSE_PLAIN = "",
|
|
57
|
-
CHECK_PLAIN = "",
|
|
58
|
-
LOGOUT = "",
|
|
59
|
-
SIGN_IN = "",
|
|
60
|
-
THIN_ARROW = "",
|
|
61
|
-
TRIANGLE_BOTTOM = "",
|
|
62
|
-
TRIANGLE_LEFT = "",
|
|
63
|
-
TRIANGLE_RIGHT = "",
|
|
64
|
-
TRIANGLE_TOP = "",
|
|
65
|
-
FACET_HAS_DESCENDANT = "",
|
|
66
|
-
MINUS_PLAIN = "",
|
|
67
|
-
PLUS_PLAIN = "",
|
|
68
|
-
INFO = "",
|
|
69
|
-
ICON_EXPAND = "",
|
|
70
|
-
ICON_COLLAPSE = "",
|
|
71
|
-
ADD_TO_PBK = "",
|
|
72
|
-
ALERT = "",
|
|
73
|
-
ADD_ALERT = "",
|
|
74
|
-
BACK_TO_SEARCH = "",
|
|
75
|
-
DOWNLOAD = "",
|
|
76
|
-
EDIT = "",
|
|
77
|
-
FEEDBACK = "",
|
|
78
|
-
MODIFY_PBK = "",
|
|
79
|
-
SCHEDULED = "",
|
|
80
|
-
SEARCH = "",
|
|
81
|
-
SHARE = "󨃱",
|
|
82
|
-
TOC = "",
|
|
83
|
-
WRITE_UGC = "",
|
|
84
|
-
TRASH = "",
|
|
85
|
-
EXTLINK = "",
|
|
86
|
-
CALENDAR = "",
|
|
87
|
-
BOOK = "",
|
|
88
|
-
DOWNLOAD_PLAIN = "",
|
|
89
|
-
CHECK = "",
|
|
90
|
-
TOPICS = "",
|
|
91
|
-
EYE = "\f06e",
|
|
92
|
-
DISC = "",
|
|
93
|
-
CIRCLE = "",
|
|
94
|
-
SHARED = "",
|
|
95
|
-
SORT_UNSORTED = "",
|
|
96
|
-
SORT_UP = "",
|
|
97
|
-
SORT_DOWN = "",
|
|
98
|
-
WORKING = "",
|
|
99
|
-
CLOSE = "",
|
|
100
|
-
ZOOM_OUT = "",
|
|
101
|
-
ZOOM_IN = "",
|
|
102
|
-
ZOOM_REALSIZE = "",
|
|
103
|
-
ZOOM_FULLSCREEN = "",
|
|
104
|
-
ADMIN_RESTRICTED = "",
|
|
105
|
-
ADMIN_THEME = "",
|
|
106
|
-
WARNING = "",
|
|
107
|
-
CONTEXT = "",
|
|
108
|
-
SEARCH_HOME = "",
|
|
109
|
-
STEPS = "",
|
|
110
|
-
HOME = "",
|
|
111
|
-
TRANSLATE = "",
|
|
112
|
-
USER = "",
|
|
113
|
-
ADMIN = "",
|
|
114
|
-
ANALYTICS = "",
|
|
115
|
-
ADMIN_KHUB = "",
|
|
116
|
-
ADMIN_USERS = "",
|
|
117
|
-
ADMIN_INTEGRATION = "",
|
|
118
|
-
ADMIN_PORTAL = ""
|
|
119
|
-
}
|
|
120
|
-
export declare enum FtFileFormatIcons {
|
|
121
|
-
UNKNOWN = "",
|
|
122
|
-
ABW = "",
|
|
123
|
-
AUDIO = "",
|
|
124
|
-
AVI = "",
|
|
125
|
-
CHM = "",
|
|
126
|
-
CODE = "",
|
|
127
|
-
CSV = "",
|
|
128
|
-
DITA = "",
|
|
129
|
-
EPUB = "",
|
|
130
|
-
EXCEL = "",
|
|
131
|
-
FLAC = "",
|
|
132
|
-
GIF = "",
|
|
133
|
-
GZIP = "",
|
|
134
|
-
HTML = "",
|
|
135
|
-
IMAGE = "",
|
|
136
|
-
JPEG = "",
|
|
137
|
-
JSON = "",
|
|
138
|
-
M4A = "",
|
|
139
|
-
MOV = "",
|
|
140
|
-
MP3 = "",
|
|
141
|
-
MP4 = "",
|
|
142
|
-
OGG = "",
|
|
143
|
-
PDF = "",
|
|
144
|
-
PNG = "",
|
|
145
|
-
POWERPOINT = "",
|
|
146
|
-
RAR = "",
|
|
147
|
-
STP = "",
|
|
148
|
-
TEXT = "",
|
|
149
|
-
VIDEO = "",
|
|
150
|
-
WAV = "",
|
|
151
|
-
WMA = "",
|
|
152
|
-
WORD = "",
|
|
153
|
-
XML = "",
|
|
154
|
-
YAML = "",
|
|
155
|
-
ZIP = ""
|
|
156
|
-
}
|
|
157
|
-
export declare function resolveFileFormatIcon(mimeType: string, extension: string): FtFileFormatIcons;
|
|
158
|
-
//# sourceMappingURL=icons.d.ts.map
|
package/build/icons.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
export var FtIcons;
|
|
2
|
-
(function (FtIcons) {
|
|
3
|
-
FtIcons["THIN_ARROW_LEFT"] = "";
|
|
4
|
-
FtIcons["THIN_ARROW_RIGHT"] = "";
|
|
5
|
-
FtIcons["MY_COLLECTIONS"] = "";
|
|
6
|
-
FtIcons["OFFLINE_SETTINGS"] = "";
|
|
7
|
-
FtIcons["MY_LIBRARY"] = "";
|
|
8
|
-
FtIcons["RATE_PLAIN"] = "";
|
|
9
|
-
FtIcons["RATE"] = "";
|
|
10
|
-
FtIcons["FEEDBACK_PLAIN"] = "";
|
|
11
|
-
FtIcons["STAR_PLAIN"] = "";
|
|
12
|
-
FtIcons["STAR"] = "";
|
|
13
|
-
FtIcons["THUMBS_DOWN_PLAIN"] = "";
|
|
14
|
-
FtIcons["THUMBS_DOWN"] = "";
|
|
15
|
-
FtIcons["THUMBS_UP_PLAIN"] = "";
|
|
16
|
-
FtIcons["THUMBS_UP"] = "";
|
|
17
|
-
FtIcons["PAUSE"] = "";
|
|
18
|
-
FtIcons["PLAY"] = "";
|
|
19
|
-
FtIcons["RELATIVES_PLAIN"] = "";
|
|
20
|
-
FtIcons["RELATIVES"] = "";
|
|
21
|
-
FtIcons["SHORTCUT_MENU"] = "";
|
|
22
|
-
FtIcons["PRINT"] = "";
|
|
23
|
-
FtIcons["DEFAULT_ROLES"] = "";
|
|
24
|
-
FtIcons["ACCOUNT_SETTINGS"] = "";
|
|
25
|
-
FtIcons["ONLINE"] = "";
|
|
26
|
-
FtIcons["OFFLINE"] = "";
|
|
27
|
-
FtIcons["UPLOAD"] = "";
|
|
28
|
-
FtIcons["BOOK_PLAIN"] = "";
|
|
29
|
-
FtIcons["SYNC"] = "";
|
|
30
|
-
FtIcons["SHARED_PBK"] = "";
|
|
31
|
-
FtIcons["COLLECTIONS"] = "";
|
|
32
|
-
FtIcons["SEARCH_IN_PUBLICATION"] = "";
|
|
33
|
-
FtIcons["BOOKS"] = "";
|
|
34
|
-
FtIcons["LOCKER"] = "";
|
|
35
|
-
FtIcons["ARROW_DOWN"] = "";
|
|
36
|
-
FtIcons["ARROW_LEFT"] = "";
|
|
37
|
-
FtIcons["ARROW_RIGHT"] = "";
|
|
38
|
-
FtIcons["ARROW_UP"] = "";
|
|
39
|
-
FtIcons["SAVE"] = "";
|
|
40
|
-
FtIcons["MAILS_AND_NOTIFICATIONS"] = "";
|
|
41
|
-
FtIcons["DOT"] = "";
|
|
42
|
-
FtIcons["MINUS"] = "";
|
|
43
|
-
FtIcons["PLUS"] = "";
|
|
44
|
-
FtIcons["FILTERS"] = "";
|
|
45
|
-
FtIcons["STRIPE_ARROW_RIGHT"] = "";
|
|
46
|
-
FtIcons["STRIPE_ARROW_LEFT"] = "";
|
|
47
|
-
FtIcons["ATTACHMENTS"] = "";
|
|
48
|
-
FtIcons["ADD_BOOKMARK"] = "";
|
|
49
|
-
FtIcons["BOOKMARK"] = "";
|
|
50
|
-
FtIcons["EXPORT"] = "";
|
|
51
|
-
FtIcons["MENU"] = "";
|
|
52
|
-
FtIcons["TAG"] = "";
|
|
53
|
-
FtIcons["TAG_PLAIN"] = "";
|
|
54
|
-
FtIcons["COPY_TO_CLIPBOARD"] = "";
|
|
55
|
-
FtIcons["COLUMNS"] = "";
|
|
56
|
-
FtIcons["ARTICLE"] = "";
|
|
57
|
-
FtIcons["CLOSE_PLAIN"] = "";
|
|
58
|
-
FtIcons["CHECK_PLAIN"] = "";
|
|
59
|
-
FtIcons["LOGOUT"] = "";
|
|
60
|
-
FtIcons["SIGN_IN"] = "";
|
|
61
|
-
FtIcons["THIN_ARROW"] = "";
|
|
62
|
-
FtIcons["TRIANGLE_BOTTOM"] = "";
|
|
63
|
-
FtIcons["TRIANGLE_LEFT"] = "";
|
|
64
|
-
FtIcons["TRIANGLE_RIGHT"] = "";
|
|
65
|
-
FtIcons["TRIANGLE_TOP"] = "";
|
|
66
|
-
FtIcons["FACET_HAS_DESCENDANT"] = "";
|
|
67
|
-
FtIcons["MINUS_PLAIN"] = "";
|
|
68
|
-
FtIcons["PLUS_PLAIN"] = "";
|
|
69
|
-
FtIcons["INFO"] = "";
|
|
70
|
-
FtIcons["ICON_EXPAND"] = "";
|
|
71
|
-
FtIcons["ICON_COLLAPSE"] = "";
|
|
72
|
-
FtIcons["ADD_TO_PBK"] = "";
|
|
73
|
-
FtIcons["ALERT"] = "";
|
|
74
|
-
FtIcons["ADD_ALERT"] = "";
|
|
75
|
-
FtIcons["BACK_TO_SEARCH"] = "";
|
|
76
|
-
FtIcons["DOWNLOAD"] = "";
|
|
77
|
-
FtIcons["EDIT"] = "";
|
|
78
|
-
FtIcons["FEEDBACK"] = "";
|
|
79
|
-
FtIcons["MODIFY_PBK"] = "";
|
|
80
|
-
FtIcons["SCHEDULED"] = "";
|
|
81
|
-
FtIcons["SEARCH"] = "";
|
|
82
|
-
FtIcons["SHARE"] = "󨃱";
|
|
83
|
-
FtIcons["TOC"] = "";
|
|
84
|
-
FtIcons["WRITE_UGC"] = "";
|
|
85
|
-
FtIcons["TRASH"] = "";
|
|
86
|
-
FtIcons["EXTLINK"] = "";
|
|
87
|
-
FtIcons["CALENDAR"] = "";
|
|
88
|
-
FtIcons["BOOK"] = "";
|
|
89
|
-
FtIcons["DOWNLOAD_PLAIN"] = "";
|
|
90
|
-
FtIcons["CHECK"] = "";
|
|
91
|
-
FtIcons["TOPICS"] = "";
|
|
92
|
-
FtIcons["EYE"] = "\f06e";
|
|
93
|
-
FtIcons["DISC"] = "";
|
|
94
|
-
FtIcons["CIRCLE"] = "";
|
|
95
|
-
FtIcons["SHARED"] = "";
|
|
96
|
-
FtIcons["SORT_UNSORTED"] = "";
|
|
97
|
-
FtIcons["SORT_UP"] = "";
|
|
98
|
-
FtIcons["SORT_DOWN"] = "";
|
|
99
|
-
FtIcons["WORKING"] = "";
|
|
100
|
-
FtIcons["CLOSE"] = "";
|
|
101
|
-
FtIcons["ZOOM_OUT"] = "";
|
|
102
|
-
FtIcons["ZOOM_IN"] = "";
|
|
103
|
-
FtIcons["ZOOM_REALSIZE"] = "";
|
|
104
|
-
FtIcons["ZOOM_FULLSCREEN"] = "";
|
|
105
|
-
FtIcons["ADMIN_RESTRICTED"] = "";
|
|
106
|
-
FtIcons["ADMIN_THEME"] = "";
|
|
107
|
-
FtIcons["WARNING"] = "";
|
|
108
|
-
FtIcons["CONTEXT"] = "";
|
|
109
|
-
FtIcons["SEARCH_HOME"] = "";
|
|
110
|
-
FtIcons["STEPS"] = "";
|
|
111
|
-
FtIcons["HOME"] = "";
|
|
112
|
-
FtIcons["TRANSLATE"] = "";
|
|
113
|
-
FtIcons["USER"] = "";
|
|
114
|
-
FtIcons["ADMIN"] = "";
|
|
115
|
-
FtIcons["ANALYTICS"] = "";
|
|
116
|
-
FtIcons["ADMIN_KHUB"] = "";
|
|
117
|
-
FtIcons["ADMIN_USERS"] = "";
|
|
118
|
-
FtIcons["ADMIN_INTEGRATION"] = "";
|
|
119
|
-
FtIcons["ADMIN_PORTAL"] = "";
|
|
120
|
-
})(FtIcons || (FtIcons = {}));
|
|
121
|
-
export var FtFileFormatIcons;
|
|
122
|
-
(function (FtFileFormatIcons) {
|
|
123
|
-
FtFileFormatIcons["UNKNOWN"] = "";
|
|
124
|
-
FtFileFormatIcons["ABW"] = "";
|
|
125
|
-
FtFileFormatIcons["AUDIO"] = "";
|
|
126
|
-
FtFileFormatIcons["AVI"] = "";
|
|
127
|
-
FtFileFormatIcons["CHM"] = "";
|
|
128
|
-
FtFileFormatIcons["CODE"] = "";
|
|
129
|
-
FtFileFormatIcons["CSV"] = "";
|
|
130
|
-
FtFileFormatIcons["DITA"] = "";
|
|
131
|
-
FtFileFormatIcons["EPUB"] = "";
|
|
132
|
-
FtFileFormatIcons["EXCEL"] = "";
|
|
133
|
-
FtFileFormatIcons["FLAC"] = "";
|
|
134
|
-
FtFileFormatIcons["GIF"] = "";
|
|
135
|
-
FtFileFormatIcons["GZIP"] = "";
|
|
136
|
-
FtFileFormatIcons["HTML"] = "";
|
|
137
|
-
FtFileFormatIcons["IMAGE"] = "";
|
|
138
|
-
FtFileFormatIcons["JPEG"] = "";
|
|
139
|
-
FtFileFormatIcons["JSON"] = "";
|
|
140
|
-
FtFileFormatIcons["M4A"] = "";
|
|
141
|
-
FtFileFormatIcons["MOV"] = "";
|
|
142
|
-
FtFileFormatIcons["MP3"] = "";
|
|
143
|
-
FtFileFormatIcons["MP4"] = "";
|
|
144
|
-
FtFileFormatIcons["OGG"] = "";
|
|
145
|
-
FtFileFormatIcons["PDF"] = "";
|
|
146
|
-
FtFileFormatIcons["PNG"] = "";
|
|
147
|
-
FtFileFormatIcons["POWERPOINT"] = "";
|
|
148
|
-
FtFileFormatIcons["RAR"] = "";
|
|
149
|
-
FtFileFormatIcons["STP"] = "";
|
|
150
|
-
FtFileFormatIcons["TEXT"] = "";
|
|
151
|
-
FtFileFormatIcons["VIDEO"] = "";
|
|
152
|
-
FtFileFormatIcons["WAV"] = "";
|
|
153
|
-
FtFileFormatIcons["WMA"] = "";
|
|
154
|
-
FtFileFormatIcons["WORD"] = "";
|
|
155
|
-
FtFileFormatIcons["XML"] = "";
|
|
156
|
-
FtFileFormatIcons["YAML"] = "";
|
|
157
|
-
FtFileFormatIcons["ZIP"] = "";
|
|
158
|
-
})(FtFileFormatIcons || (FtFileFormatIcons = {}));
|
|
159
|
-
const resolutions = new Map([
|
|
160
|
-
...["abw"].map(ext => [ext, FtFileFormatIcons.ABW]),
|
|
161
|
-
...["3gp", "act", "aiff", "aac", "amr", "au", "awb", "dct", "dss", "dvf", "gsm", "iklax", "ivs", "mmf", "mpc", "msv", "opus", "ra", "rm", "raw", "sln", "tta", "vox", "wv"].map(ext => [ext, FtFileFormatIcons.AUDIO]),
|
|
162
|
-
...["avi"].map(ext => [ext, FtFileFormatIcons.AVI]),
|
|
163
|
-
...["chm", "xhs"].map(ext => [ext, FtFileFormatIcons.CHM]),
|
|
164
|
-
...["java", "py", "php", "php3", "php4", "php5", "js", "javascript", "rb", "rbw", "c", "cpp", "cxx", "h", "hh", "hpp", "hxx", "sh", "bash", "zsh", "tcsh", "ksh", "csh", "vb", "scala", "pl", "prl", "perl", "groovy", "ceylon", "aspx", "jsp", "scpt", "applescript", "bas", "bat", "lua", "jsp", "mk", "cmake", "css", "sass", "less", "m", "mm", "xcodeproj"].map(ext => [ext, FtFileFormatIcons.CODE]),
|
|
165
|
-
...["csv"].map(ext => [ext, FtFileFormatIcons.CSV]),
|
|
166
|
-
...["dita", "ditamap", "ditaval"].map(ext => [ext, FtFileFormatIcons.DITA]),
|
|
167
|
-
...["epub"].map(ext => [ext, FtFileFormatIcons.EPUB]),
|
|
168
|
-
...["xls", "xlt", "xlm", "xlsx", "xlsm", "xltx", "xltm", "xlsb", "xla", "xlam", "xll", "xlw"].map(ext => [ext, FtFileFormatIcons.EXCEL]),
|
|
169
|
-
...["flac"].map(ext => [ext, FtFileFormatIcons.FLAC]),
|
|
170
|
-
...["gif"].map(ext => [ext, FtFileFormatIcons.GIF]),
|
|
171
|
-
...["gzip", "x-gzip", "giz", "gz", "tgz"].map(ext => [ext, FtFileFormatIcons.GZIP]),
|
|
172
|
-
...["html", "htm", "xhtml"].map(ext => [ext, FtFileFormatIcons.HTML]),
|
|
173
|
-
...["ai", "vml", "xps", "img", "cpt", "psd", "psp", "xcf", "svg", "svg+xml", "bmp", "bpg", "ppm", "pgm", "pbm", "pnm", "rif", "tif", "tiff", "webp", "wmf"].map(ext => [ext, FtFileFormatIcons.IMAGE]),
|
|
174
|
-
...["jpeg", "jpg", "jpe"].map(ext => [ext, FtFileFormatIcons.JPEG]),
|
|
175
|
-
...["json"].map(ext => [ext, FtFileFormatIcons.JSON]),
|
|
176
|
-
...["m4a", "m4p"].map(ext => [ext, FtFileFormatIcons.M4A]),
|
|
177
|
-
...["mov", "qt"].map(ext => [ext, FtFileFormatIcons.MOV]),
|
|
178
|
-
...["mp3"].map(ext => [ext, FtFileFormatIcons.MP3]),
|
|
179
|
-
...["mp4", "m4v"].map(ext => [ext, FtFileFormatIcons.MP4]),
|
|
180
|
-
...["ogg", "oga"].map(ext => [ext, FtFileFormatIcons.OGG]),
|
|
181
|
-
...["pdf", "ps"].map(ext => [ext, FtFileFormatIcons.PDF]),
|
|
182
|
-
...["png"].map(ext => [ext, FtFileFormatIcons.PNG]),
|
|
183
|
-
...["ppt", "pot", "pps", "pptx", "pptm", "potx", "potm", "ppam", "ppsx", "ppsm", "sldx", "sldm"].map(ext => [ext, FtFileFormatIcons.POWERPOINT]),
|
|
184
|
-
...["rar"].map(ext => [ext, FtFileFormatIcons.RAR]),
|
|
185
|
-
...["stp"].map(ext => [ext, FtFileFormatIcons.STP]),
|
|
186
|
-
...["txt", "rtf", "md", "mdown"].map(ext => [ext, FtFileFormatIcons.TEXT]),
|
|
187
|
-
...["webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "mng", "wmv", "yuv", "rm", "rmvb", "asf", "mpg", "mp2", "mpeg", "mpe", "mpv", "m2v", "svi", "3gp", "3g2", "mxf", "roq", "nsv"].map(ext => [ext, FtFileFormatIcons.VIDEO]),
|
|
188
|
-
...["wav"].map(ext => [ext, FtFileFormatIcons.WAV]),
|
|
189
|
-
...["wma"].map(ext => [ext, FtFileFormatIcons.WMA]),
|
|
190
|
-
...["doc", "dot", "docx", "docm", "dotx", "dotm", "docb"].map(ext => [ext, FtFileFormatIcons.WORD]),
|
|
191
|
-
...["xml", "xsl", "rdf"].map(ext => [ext, FtFileFormatIcons.XML]),
|
|
192
|
-
...["yaml", "yml", "x-yaml"].map(ext => [ext, FtFileFormatIcons.YAML]),
|
|
193
|
-
...["zip"].map(ext => [ext, FtFileFormatIcons.ZIP]),
|
|
194
|
-
]);
|
|
195
|
-
const simplifier = new Map([
|
|
196
|
-
["application/msword", "application/doc"],
|
|
197
|
-
["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/docx"],
|
|
198
|
-
["application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/dotx"],
|
|
199
|
-
["application/vnd.ms-word.document.macroEnabled.12", "application/docm"],
|
|
200
|
-
["application/vnd.ms-word.template.macroEnabled.12", "application/dotm"],
|
|
201
|
-
["application/vnd.ms-excel", "application/xls"],
|
|
202
|
-
["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/xlsx"],
|
|
203
|
-
["application/vnd.openxmlformats-officedocument.spreadsheetml.template", "application/xltx"],
|
|
204
|
-
["application/vnd.ms-excel.sheet.macroEnabled.12", "application/xlsm"],
|
|
205
|
-
["application/vnd.ms-excel.template.macroEnabled.12", "application/xltm"],
|
|
206
|
-
["application/vnd.ms-excel.addin.macroEnabled.12", "application/xlam"],
|
|
207
|
-
["application/vnd.ms-excel.sheet.binary.macroEnabled.12", "application/xlsb"],
|
|
208
|
-
["application/vnd.ms-powerpoint", "application/ppt"],
|
|
209
|
-
["application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/pptx"],
|
|
210
|
-
["application/vnd.openxmlformats-officedocument.presentationml.template", "application/potx"],
|
|
211
|
-
["application/vnd.openxmlformats-officedocument.presentationml.slideshow", "application/ppsx"],
|
|
212
|
-
["application/vnd.ms-powerpoint.addin.macroEnabled.12", "application/ppam"],
|
|
213
|
-
["application/vnd.ms-powerpoint.presentation.macroEnabled.12", "application/pptm"],
|
|
214
|
-
["application/vnd.ms-powerpoint.template.macroEnabled.12", "application/potm"],
|
|
215
|
-
["application/vnd.ms-powerpoint.slideshow.macroEnabled.12", "application/ppsm"],
|
|
216
|
-
["application/vnd.ms-access", "application/mdb"],
|
|
217
|
-
]);
|
|
218
|
-
export function resolveFileFormatIcon(mimeType, extension) {
|
|
219
|
-
var _a, _b, _c, _d;
|
|
220
|
-
const [type, subType] = (((_a = simplifier.get(mimeType)) !== null && _a !== void 0 ? _a : mimeType) + "/").split("/");
|
|
221
|
-
return (_d = (_c = (_b = resolutions.get(subType)) !== null && _b !== void 0 ? _b : resolutions.get(extension)) !== null && _c !== void 0 ? _c : resolutions.get(type)) !== null && _d !== void 0 ? _d : FtFileFormatIcons.UNKNOWN;
|
|
222
|
-
}
|
|
223
|
-
//# sourceMappingURL=icons.js.map
|