@fluid-topics/ft-reader-topic-metadata 1.0.28 → 1.0.29
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.
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
5
|
-
`;var
|
|
5
|
+
`;var a=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const p=Symbol("registerInterval");class h extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[p]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[p]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=p,a([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var f=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class c extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const d=Symbol("registerInterval");class u extends(function(t){var i;class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[i]=0}connectedCallback(){super.connectedCallback(),this[d]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[d]):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return i=d,f([o.state()],e.prototype,"tocNode",void 0),f([o.state()],e.prototype,"disableContextInteractions",void 0),e}(h)){}
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
8
8
|
* Copyright 2017 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
|
-
*/var g;const x=window,v=x.trustedTypes,b=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,y="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,$="?"+m,w=`<${$}>`,k=document,z=()=>k.createComment(""),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,I="[ \t\n\f\r]",O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,E=/>/g,N=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,B=/"/g,Z=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),_=new WeakMap,U=k.createTreeWalker(k,129,null,!1),R=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=O;for(let i=0;i<e;i++){const e=t[i];let l,
|
|
10
|
+
*/var g;const x=window,v=x.trustedTypes,b=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,y="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,$="?"+m,w=`<${$}>`,k=document,z=()=>k.createComment(""),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,I="[ \t\n\f\r]",O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,E=/>/g,N=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,B=/"/g,Z=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),_=new WeakMap,U=k.createTreeWalker(k,129,null,!1),R=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=O;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===O?"!--"===l[1]?s=j:void 0!==l[1]?s=E:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=N):void 0!==l[3]&&(s=N):s===N?">"===l[0]?(s=null!=n?n:O,p=-1):void 0===l[1]?p=-2:(p=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?N:'"'===l[3]?B:T):s===B||s===T?s=N:s===j||s===E?s=O:(s=N,n=void 0);const f=s===N&&t[i+1].startsWith("/>")?" ":"";r+=s===O?e+w:p>=0?(o.push(a),e.slice(0,p)+y+e.slice(p)+m+f):e+m+(-2===p?(o.push(void 0),i):f)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(a):a,o]};class D{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,p]=R(t,i);if(this.el=D.createElement(l,e),U.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=U.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(y)||i.startsWith(m)){const e=p[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+y).split(m),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?V:"@"===i[1]?q:P})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(m),i=t.length-1;if(i>0){o.textContent=v?v.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),U.nextNode(),a.push({type:2,index:++n});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===$)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)a.push({type:7,index:n}),t+=m.length-1}n++}}static createElement(t,i){const e=k.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var n,r,s,a;if(i===F)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=S(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=W(t,l._$AS(t,i.values),l,o)),i}class K{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:k).importNode(e,!0);U.currentNode=n;let r=U.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new L(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new X(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=U.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var n;this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=W(this,t,i),S(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>C(t)||"function"==typeof(null==t?void 0: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!==M&&S(this._$AH)?this._$AA.nextSibling.data=t:this.$(k.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=D.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new K(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=_.get(t.strings);return void 0===i&&_.set(t.strings,i=new D(t)),i}T(t){C(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new L(this.k(z()),this.k(z()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class P{constructor(t,i,e,o,n){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=W(this,t,i,0),r=!S(t)||t!==this._$AH&&t!==F,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=W(this,o[e+s],i,s),a===F&&(a=this._$AH[s]),r||(r=!S(a)||a!==this._$AH[s]),a===M?t=M:t!==M&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}const G=v?v.emptyScript:"";class V extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==M?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class q extends P{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:M)===F)return;const o=this._$AH,n=t===M&&o!==M||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==M&&(o===M||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 X{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){W(this,t)}}const Y=x.litHtmlPolyfillSupport;null==Y||Y(D,L),(null!==(g=x.litHtmlVersions)&&void 0!==g?g:x.litHtmlVersions=[]).push("2.7.3");
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2020 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
15
|
*/
|
|
16
|
-
const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},tt=t=>({_$litStatic$:t,r:J}),it=new Map,et=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],
|
|
16
|
+
const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},tt=t=>({_$litStatic$:t,r:J}),it=new Map,et=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(r=e[p],n=Q(r));)l+=n+i[++p],h=!0;p!==o&&a.push(r),s.push(l),p++}if(p===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=it.get(t))&&(s.raw=s,it.set(t,i=s)),e=a}return t(i,...e)})(A);var ot;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ot||(ot={}));const nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),st={fontFamily:rt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},at=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",nt),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",st.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",st.fontWeight,"normal"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",st.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",st.lineHeight,"1.2"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",st.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",nt),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",st.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",st.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",st.letterSpacing,"0.105px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",st.lineHeight,"1.7"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",st.textTransform,"inherit"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",rt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",st.fontSize,"16px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",st.fontWeight,"600"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",st.letterSpacing,"0.144px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",st.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",st.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",rt),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",st.fontSize,"14px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",st.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",st.letterSpacing,"0.098px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",st.lineHeight,"1.7"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",st.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",rt),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",st.fontSize,"16px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",st.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",st.letterSpacing,"0.496px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",st.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",st.textTransform,"inherit"),Mt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",rt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",st.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",st.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",st.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",st.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",st.textTransform,"inherit")},_t=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",rt),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",st.fontSize,"12px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",st.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",st.letterSpacing,"0.396px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",st.lineHeight,"1.33"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",st.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",rt),Pt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",st.fontSize,"10px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",st.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",st.letterSpacing,"0.33px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",st.lineHeight,"1.6"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",st.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",rt),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",st.fontSize,"10px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",st.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",st.letterSpacing,"1.5px"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",st.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",st.textTransform,"uppercase"),ei={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",rt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",st.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",st.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",st.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",st.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",st.textTransform,"uppercase")},oi=e.css`
|
|
17
17
|
.ft-typography--title {
|
|
18
|
-
font-family: ${
|
|
19
|
-
font-size: ${
|
|
18
|
+
font-family: ${at};
|
|
19
|
+
font-size: ${lt};
|
|
20
20
|
font-weight: ${pt};
|
|
21
21
|
letter-spacing: ${ht};
|
|
22
22
|
line-height: ${ft};
|
|
@@ -50,7 +50,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
50
50
|
text-transform: ${Et};
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
`,
|
|
53
|
+
`,ai=e.css`
|
|
54
54
|
.ft-typography--body1 {
|
|
55
55
|
font-family: ${Nt};
|
|
56
56
|
font-size: ${Tt};
|
|
@@ -59,7 +59,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
59
59
|
line-height: ${At};
|
|
60
60
|
text-transform: ${Ft};
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,li=e.css`
|
|
63
63
|
.ft-typography--body2 {
|
|
64
64
|
font-family: ${Mt.fontFamily};
|
|
65
65
|
font-size: ${Mt.fontSize};
|
|
@@ -108,14 +108,14 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
108
108
|
.ft-typography {
|
|
109
109
|
vertical-align: inherit;
|
|
110
110
|
}
|
|
111
|
-
`;var ui=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
111
|
+
`;var ui=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class gi extends i.FtLitElement{constructor(){super(...arguments),this.variant=ot.body1}render(){return this.element?et`
|
|
112
112
|
<${tt(this.element)}
|
|
113
113
|
class="ft-typography ft-typography--${this.variant}">
|
|
114
114
|
<slot></slot>
|
|
115
115
|
</${tt(this.element)}>
|
|
116
116
|
`:et`
|
|
117
117
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
118
|
-
`}}gi.styles=[oi,ni,ri,si,li,
|
|
118
|
+
`}}gi.styles=[oi,ni,ri,si,ai,li,pi,hi,fi,ci,di],ui([o.property()],gi.prototype,"element",void 0),ui([o.property()],gi.prototype,"variant",void 0),i.customElement("ft-typography")(gi);const xi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),vi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),yi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),mi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),$i=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),wi=e.css`
|
|
119
119
|
.ft-tooltip--container {
|
|
120
120
|
display: block;
|
|
121
121
|
position: relative;
|
|
@@ -147,7 +147,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
147
147
|
position: relative;
|
|
148
148
|
word-break: break-word;
|
|
149
149
|
}
|
|
150
|
-
`;var ki=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
150
|
+
`;var ki=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class zi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
151
151
|
<div part="container"
|
|
152
152
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
153
153
|
@mouseenter=${this.onHover}
|
|
@@ -255,7 +255,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
255
255
|
opacity: ${Ci.opacityContentOnSurfacePressed};
|
|
256
256
|
transform: translate(-50%, -50%) scale(1);
|
|
257
257
|
}
|
|
258
|
-
`;var Zi,Ai,Fi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
258
|
+
`;var Zi,Ai,Fi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Mi extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
259
259
|
<style>
|
|
260
260
|
.ft-ripple .ft-ripple--effect,
|
|
261
261
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -272,7 +272,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
272
272
|
<div class="ft-ripple--background"></div>
|
|
273
273
|
<div class="ft-ripple--effect"></div>
|
|
274
274
|
</div>
|
|
275
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Mi.elementDefinitions={},Mi.styles=Bi,Fi([o.property({type:Boolean})],Mi.prototype,"primary",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"secondary",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"unbounded",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"activated",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"selected",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"disabled",void 0),Fi([o.state()],Mi.prototype,"hovered",void 0),Fi([o.state()],Mi.prototype,"focused",void 0),Fi([o.state()],Mi.prototype,"pressed",void 0),Fi([o.state()],Mi.prototype,"rippling",void 0),Fi([o.state()],Mi.prototype,"rippleSize",void 0),Fi([o.state()],Mi.prototype,"originX",void 0),Fi([o.state()],Mi.prototype,"originY",void 0),Fi([o.query(".ft-ripple")],Mi.prototype,"ripple",void 0),Fi([o.query(".ft-ripple--effect")],Mi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Mi),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_BAR_STACKED="",t.CHART_HEATMAP="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT=""}(Zi||(Zi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ai||(Ai={})),new Map([...["abw"].map((t=>[t,Ai.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ai.AUDIO])),...["avi"].map((t=>[t,Ai.AVI])),...["chm","xhs"].map((t=>[t,Ai.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ai.CODE])),...["csv"].map((t=>[t,Ai.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ai.DITA])),...["epub"].map((t=>[t,Ai.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ai.EXCEL])),...["flac"].map((t=>[t,Ai.FLAC])),...["gif"].map((t=>[t,Ai.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ai.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ai.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ai.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ai.JPEG])),...["json"].map((t=>[t,Ai.JSON])),...["m4a","m4p"].map((t=>[t,Ai.M4A])),...["mov","qt"].map((t=>[t,Ai.MOV])),...["mp3"].map((t=>[t,Ai.MP3])),...["mp4","m4v"].map((t=>[t,Ai.MP4])),...["ogg","oga"].map((t=>[t,Ai.OGG])),...["pdf","ps"].map((t=>[t,Ai.PDF])),...["png"].map((t=>[t,Ai.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ai.POWERPOINT])),...["rar"].map((t=>[t,Ai.RAR])),...["stp"].map((t=>[t,Ai.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ai.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ai.VIDEO])),...["wav"].map((t=>[t,Ai.WAV])),...["wma"].map((t=>[t,Ai.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ai.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ai.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ai.YAML])),...["zip"].map((t=>[t,Ai.ZIP]))]);const _i={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ui=e.css`
|
|
275
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Mi.elementDefinitions={},Mi.styles=Bi,Fi([o.property({type:Boolean})],Mi.prototype,"primary",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"secondary",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"unbounded",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"activated",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"selected",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"disabled",void 0),Fi([o.state()],Mi.prototype,"hovered",void 0),Fi([o.state()],Mi.prototype,"focused",void 0),Fi([o.state()],Mi.prototype,"pressed",void 0),Fi([o.state()],Mi.prototype,"rippling",void 0),Fi([o.state()],Mi.prototype,"rippleSize",void 0),Fi([o.state()],Mi.prototype,"originX",void 0),Fi([o.state()],Mi.prototype,"originY",void 0),Fi([o.query(".ft-ripple")],Mi.prototype,"ripple",void 0),Fi([o.query(".ft-ripple--effect")],Mi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Mi),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT=""}(Zi||(Zi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ai||(Ai={})),new Map([...["abw"].map((t=>[t,Ai.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ai.AUDIO])),...["avi"].map((t=>[t,Ai.AVI])),...["chm","xhs"].map((t=>[t,Ai.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ai.CODE])),...["csv"].map((t=>[t,Ai.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ai.DITA])),...["epub"].map((t=>[t,Ai.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ai.EXCEL])),...["flac"].map((t=>[t,Ai.FLAC])),...["gif"].map((t=>[t,Ai.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ai.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ai.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ai.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ai.JPEG])),...["json"].map((t=>[t,Ai.JSON])),...["m4a","m4p"].map((t=>[t,Ai.M4A])),...["mov","qt"].map((t=>[t,Ai.MOV])),...["mp3"].map((t=>[t,Ai.MP3])),...["mp4","m4v"].map((t=>[t,Ai.MP4])),...["ogg","oga"].map((t=>[t,Ai.OGG])),...["pdf","ps"].map((t=>[t,Ai.PDF])),...["png"].map((t=>[t,Ai.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ai.POWERPOINT])),...["rar"].map((t=>[t,Ai.RAR])),...["stp"].map((t=>[t,Ai.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ai.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ai.VIDEO])),...["wav"].map((t=>[t,Ai.WAV])),...["wma"].map((t=>[t,Ai.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ai.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ai.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ai.YAML])),...["zip"].map((t=>[t,Ai.ZIP]))]);const _i={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ui=e.css`
|
|
276
276
|
:host, i.ft-icon {
|
|
277
277
|
display: inline-flex;
|
|
278
278
|
align-items: center;
|
|
@@ -320,7 +320,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
320
320
|
.ft-icon--material {
|
|
321
321
|
font-family: ${_i.materialFontFamily}, "Material Icons", sans-serif;
|
|
322
322
|
}
|
|
323
|
-
`;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Di=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
323
|
+
`;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Di=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Wi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ri).includes(this.variant)?this.variant:Ri.fluid_topics,i=t!==Ri.material||!!this.value;return e.html`
|
|
324
324
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
325
325
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
326
326
|
<slot ?hidden=${i}></slot>
|
|
@@ -538,7 +538,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
538
538
|
${i.setVariable(Ki.size,Gi.iconSize)};
|
|
539
539
|
${i.setVariable(Ki.color,"var(--ft-button-internal-color)")};
|
|
540
540
|
}
|
|
541
|
-
`,i.noTextSelect];var ie=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
541
|
+
`,i.noTextSelect];var ie=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ee extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
|
|
542
542
|
<button part="button"
|
|
543
543
|
class="${n.classMap(t)}"
|
|
544
544
|
aria-label="${this.getLabel()}"
|
|
@@ -561,7 +561,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
561
561
|
</ft-tooltip>
|
|
562
562
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
563
563
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
564
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ee.elementDefinitions={"ft-ripple":Mi,"ft-tooltip":zi,"ft-typography":gi,"ft-icon":Wi,"ft-loader":Pi},ee.styles=[i.safariEllipsisFix,te],ie([o.property({type:String,reflect:!0})],ee.prototype,"role",void 0),ie([o.property({type:Boolean})],ee.prototype,"primary",void 0),ie([o.property({type:Boolean})],ee.prototype,"outlined",void 0),ie([o.property({type:Boolean})],ee.prototype,"disabled",void 0),ie([o.property({type:Boolean})],ee.prototype,"dense",void 0),ie([o.property({type:Boolean})],ee.prototype,"round",void 0),ie([o.property()],ee.prototype,"label",void 0),ie([o.property()],ee.prototype,"icon",void 0),ie([o.property()],ee.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),ie([o.property({type:Boolean})],ee.prototype,"loading",void 0),ie([o.property()],ee.prototype,"tooltipPosition",void 0),ie([o.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),ie([o.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),ie([o.query(".ft-button")],ee.prototype,"button",void 0),ie([o.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0),i.customElement("ft-button")(ee);const oe=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ne={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:oe,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Mt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",oe),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},re=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),se={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:re,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",re)},
|
|
564
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ee.elementDefinitions={"ft-ripple":Mi,"ft-tooltip":zi,"ft-typography":gi,"ft-icon":Wi,"ft-loader":Pi},ee.styles=[i.safariEllipsisFix,te],ie([o.property({type:String,reflect:!0})],ee.prototype,"role",void 0),ie([o.property({type:Boolean})],ee.prototype,"primary",void 0),ie([o.property({type:Boolean})],ee.prototype,"outlined",void 0),ie([o.property({type:Boolean})],ee.prototype,"disabled",void 0),ie([o.property({type:Boolean})],ee.prototype,"dense",void 0),ie([o.property({type:Boolean})],ee.prototype,"round",void 0),ie([o.property()],ee.prototype,"label",void 0),ie([o.property()],ee.prototype,"icon",void 0),ie([o.property()],ee.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),ie([o.property({type:Boolean})],ee.prototype,"loading",void 0),ie([o.property()],ee.prototype,"tooltipPosition",void 0),ie([o.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),ie([o.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),ie([o.query(".ft-button")],ee.prototype,"button",void 0),ie([o.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0),i.customElement("ft-button")(ee);const oe=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ne={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:oe,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Mt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",oe),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},re=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),se={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:re,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",re)},ae=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),le=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),pe=[i.noTextSelect,e.css`
|
|
565
565
|
:host {
|
|
566
566
|
display: inline-block;
|
|
567
567
|
max-width: 100%;
|
|
@@ -600,8 +600,8 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
600
600
|
|
|
601
601
|
.ft-chip--dense {
|
|
602
602
|
--ft-chip-internal-icon-padding: 3px;
|
|
603
|
-
--ft-chip-internal-vertical-padding: ${
|
|
604
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
603
|
+
--ft-chip-internal-vertical-padding: ${le};
|
|
604
|
+
--ft-chip-internal-horizontal-padding: ${ae};
|
|
605
605
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
606
606
|
}
|
|
607
607
|
|
|
@@ -698,7 +698,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
698
698
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
699
699
|
order: -1;
|
|
700
700
|
}
|
|
701
|
-
`];var he=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
701
|
+
`];var he=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class fe extends CustomEvent{constructor(){super("icon-click")}}class ce extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":i.isSafari};return e.html`
|
|
702
702
|
<div class="${n.classMap(t)}"
|
|
703
703
|
aria-label="${this.getLabel()}"
|
|
704
704
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -721,7 +721,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
721
721
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
722
722
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
723
723
|
</div>
|
|
724
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new fe))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new fe))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ce.elementDefinitions={"ft-ripple":Mi,"ft-typography":gi,"ft-icon":Wi,"ft-button":ee},ce.styles=pe,he([o.property({type:Boolean})],ce.prototype,"highlighted",void 0),he([o.property({type:Boolean})],ce.prototype,"removable",void 0),he([o.property({type:Boolean})],ce.prototype,"disabled",void 0),he([o.property({type:Boolean})],ce.prototype,"clickable",void 0),he([o.property({type:Boolean})],ce.prototype,"iconClickable",void 0),he([o.property({type:Boolean})],ce.prototype,"dense",void 0),he([o.property({type:Boolean})],ce.prototype,"multiLine",void 0),he([o.property()],ce.prototype,"label",void 0),he([o.property()],ce.prototype,"iconLabel",void 0),he([o.property()],ce.prototype,"icon",void 0),he([o.property()],ce.prototype,"iconVariant",void 0),he([o.property({type:Boolean})],ce.prototype,"trailingIcon",void 0),he([o.query("ft-typography slot")],ce.prototype,"slottedContent",void 0),i.customElement("ft-chip")(ce);var de=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
724
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new fe))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new fe))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ce.elementDefinitions={"ft-ripple":Mi,"ft-typography":gi,"ft-icon":Wi,"ft-button":ee},ce.styles=pe,he([o.property({type:Boolean})],ce.prototype,"highlighted",void 0),he([o.property({type:Boolean})],ce.prototype,"removable",void 0),he([o.property({type:Boolean})],ce.prototype,"disabled",void 0),he([o.property({type:Boolean})],ce.prototype,"clickable",void 0),he([o.property({type:Boolean})],ce.prototype,"iconClickable",void 0),he([o.property({type:Boolean})],ce.prototype,"dense",void 0),he([o.property({type:Boolean})],ce.prototype,"multiLine",void 0),he([o.property()],ce.prototype,"label",void 0),he([o.property()],ce.prototype,"iconLabel",void 0),he([o.property()],ce.prototype,"icon",void 0),he([o.property()],ce.prototype,"iconVariant",void 0),he([o.property({type:Boolean})],ce.prototype,"trailingIcon",void 0),he([o.query("ft-typography slot")],ce.prototype,"slottedContent",void 0),i.customElement("ft-chip")(ce);var de=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ue extends u{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
|
|
725
725
|
<ft-tooltip text="${this.tooltipText}">
|
|
726
726
|
<ft-chip>
|
|
727
727
|
${this.renderContent()}
|
|
@@ -385,7 +385,7 @@ const xe=1,me=2,$e=t=>(...i)=>({_$litDirective$:t,values:i});class we{constructo
|
|
|
385
385
|
* Copyright 2017 Google LLC
|
|
386
386
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
387
387
|
*/
|
|
388
|
-
class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Be.directiveName="unsafeHTML",Be.resultType=1;const Te=$e(Be);var Ie,Ae;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.
|
|
388
|
+
class Be extends we{constructor(t){if(super(t),this.et=Y,t.type!==me)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Be.directiveName="unsafeHTML",Be.resultType=1;const Te=$e(Be);var Ie,Ae;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT=""}(Ie||(Ie={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ae||(Ae={})),new Map([...["abw"].map((t=>[t,Ae.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ae.AUDIO])),...["avi"].map((t=>[t,Ae.AVI])),...["chm","xhs"].map((t=>[t,Ae.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ae.CODE])),...["csv"].map((t=>[t,Ae.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ae.DITA])),...["epub"].map((t=>[t,Ae.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ae.EXCEL])),...["flac"].map((t=>[t,Ae.FLAC])),...["gif"].map((t=>[t,Ae.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ae.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ae.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ae.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ae.JPEG])),...["json"].map((t=>[t,Ae.JSON])),...["m4a","m4p"].map((t=>[t,Ae.M4A])),...["mov","qt"].map((t=>[t,Ae.MOV])),...["mp3"].map((t=>[t,Ae.MP3])),...["mp4","m4v"].map((t=>[t,Ae.MP4])),...["ogg","oga"].map((t=>[t,Ae.OGG])),...["pdf","ps"].map((t=>[t,Ae.PDF])),...["png"].map((t=>[t,Ae.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ae.POWERPOINT])),...["rar"].map((t=>[t,Ae.RAR])),...["stp"].map((t=>[t,Ae.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ae.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ae.VIDEO])),...["wav"].map((t=>[t,Ae.WAV])),...["wma"].map((t=>[t,Ae.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ae.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ae.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ae.YAML])),...["zip"].map((t=>[t,Ae.ZIP]))]);const Le={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pe=y`
|
|
389
389
|
:host, i.ft-icon {
|
|
390
390
|
display: inline-flex;
|
|
391
391
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-topic-metadata",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "Metadata of a topic in integrated reader.",
|
|
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": "1.0.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.0.29",
|
|
23
23
|
"lit": "2.7.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "42bc522b00a0462c9515187000553c7d120b22b5"
|
|
26
26
|
}
|