@fluid-topics/ft-reader-title 0.3.15 → 0.3.16

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.
@@ -46,7 +46,7 @@ var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElement
46
46
  * Copyright 2017 Google LLC
47
47
  * SPDX-License-Identifier: BSD-3-Clause
48
48
  */
49
- var O;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:w}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.4");const $=globalThis.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,C="?"+N,E=`<${C}>`,R=document,M=(t="")=>R.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,A=/>/g,L=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,z=/"/g,T=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),D=new WeakMap,H=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=k;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===k?"!--"===l[1]?s=j:void 0!==l[1]?s=A:void 0!==l[2]?(T.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=r?r:k,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?z:P):s===z||s===P?s=L:s===j||s===A?s=k:(s=L,r=void 0);const p=s===L&&t[e+1].startsWith("/>")?" ":"";n+=s===k?i+E:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+N+p):i+N+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,h]=K(t,e);if(this.el=I.createElement(l,i),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=H.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?Q:"@"===e[1]?Y:X})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(T.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),H.nextNode(),a.push({type:2,index:++r});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===C)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var r,n,s,a;if(e===_)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const h=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=Z(t,l._$AS(t,e.values),l,o)),e}class V{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);H.currentNode=r;let n=H.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new J(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new tt(n,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=H.nextNode(),s++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,o){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==_&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>F(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new V(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new I(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new J(this.j(M()),this.j(M()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class X{constructor(t,e,i,o,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=Z(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=Z(this,o[i+s],e,s),a===_&&(a=this._$AH[s]),n||(n=!U(a)||a!==this._$AH[s]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.P(t)}P(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends X{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===W?void 0:t}}const G=$?$.emptyScript:"";class Q extends X{constructor(){super(...arguments),this.type=4}P(t){t&&t!==W?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class Y extends X{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:W)===_)return;const o=this._$AH,r=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const et=window.litHtmlPolyfillSupport;
49
+ var O;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:w}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.4");const $=globalThis.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,C="?"+N,E=`<${C}>`,R=document,M=(t="")=>R.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,A=/>/g,L=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,z=/"/g,T=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),D=new WeakMap,H=R.createTreeWalker(R,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=F;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===F?"!--"===l[1]?s=j:void 0!==l[1]?s=A:void 0!==l[2]?(T.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=r?r:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?z:P):s===z||s===P?s=L:s===j||s===A?s=F:(s=L,r=void 0);const p=s===L&&t[e+1].startsWith("/>")?" ":"";n+=s===F?i+E:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+N+p):i+N+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,h]=K(t,e);if(this.el=I.createElement(l,i),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=H.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?Q:"@"===e[1]?Y:X})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(T.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),H.nextNode(),a.push({type:2,index:++r});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===C)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var r,n,s,a;if(e===_)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const h=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=Z(t,l._$AS(t,e.values),l,o)),e}class V{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);H.currentNode=r;let n=H.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new J(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new tt(n,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=H.nextNode(),s++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,o){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==_&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new V(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new I(t)),e}S(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new J(this.j(M()),this.j(M()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class X{constructor(t,e,i,o,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=Z(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=Z(this,o[i+s],e,s),a===_&&(a=this._$AH[s]),n||(n=!U(a)||a!==this._$AH[s]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.P(t)}P(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends X{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===W?void 0:t}}const G=$?$.emptyScript:"";class Q extends X{constructor(){super(...arguments),this.type=4}P(t){t&&t!==W?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class Y extends X{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:W)===_)return;const o=this._$AH,r=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const et=window.litHtmlPolyfillSupport;
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2017 Google LLC
@@ -71,13 +71,25 @@ var it,ot;null==et||et(I,J),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O
71
71
  -ms-user-select: none;
72
72
  user-select: none;
73
73
  }
74
+ `,p`
75
+ .ft-word-wrap {
76
+ white-space: normal;
77
+ word-wrap: break-word;
78
+ -ms-word-break: break-all;
79
+ word-break: break-all;
80
+ word-break: break-word;
81
+ -ms-hyphens: auto;
82
+ -moz-hyphens: auto;
83
+ -webkit-hyphens: auto;
84
+ hyphens: auto
85
+ }
74
86
  `;class ct extends ht{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var pt,ft;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===ft||ft.toString());var ut=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class dt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class yt extends ct{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new dt)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}ut([function(t){return i({...t,state:!0})}()],yt.prototype,"stateManager",void 0);
75
87
  /**
76
88
  * @license
77
89
  * Copyright 2020 Google LLC
78
90
  * SPDX-License-Identifier: BSD-3-Clause
79
91
  */
80
- const gt=Symbol.for(""),vt=t=>{if((null==t?void 0:t.r)===gt)return null==t?void 0:t._$litStatic$},bt=t=>({_$litStatic$:t,r:gt}),mt=new Map,xt=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],r=vt(n));)l+=r+e[++h],c=!0;a.push(n),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=mt.get(t))&&(s.raw=s,mt.set(t,e=s)),i=a}return t(e,...i)})(B);var wt;!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"}(wt||(wt={}));const Ot=st.extend("--ft-typography-font-family",at.titleFont),$t=st.extend("--ft-typography-font-family",at.contentFont),St={fontFamily:$t,fontSize:st.create("--ft-typography-font-size","SIZE","16px"),fontWeight:st.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:st.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:st.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:st.create("--ft-typography-text-transform","UNKNOWN","inherit")},Nt={fontFamily:st.extend("--ft-typography-title-font-family",Ot),fontSize:st.extend("--ft-typography-title-font-size",St.fontSize,"20px"),fontWeight:st.extend("--ft-typography-title-font-weight",St.fontWeight,"normal"),letterSpacing:st.extend("--ft-typography-title-letter-spacing",St.letterSpacing,"0.15px"),lineHeight:st.extend("--ft-typography-title-line-height",St.lineHeight,"1.2"),textTransform:st.extend("--ft-typography-title-text-transform",St.textTransform,"inherit")},Ct=st.extend("--ft-typography-title-dense-font-family",Ot),Et=st.extend("--ft-typography-title-dense-font-size",St.fontSize,"14px"),Rt=st.extend("--ft-typography-title-dense-font-weight",St.fontWeight,"normal"),Mt=st.extend("--ft-typography-title-dense-letter-spacing",St.letterSpacing,"0.105px"),Ut=st.extend("--ft-typography-title-dense-line-height",St.lineHeight,"1.7"),Ft=st.extend("--ft-typography-title-dense-text-transform",St.textTransform,"inherit"),kt=st.extend("--ft-typography-subtitle1-font-family",$t),jt=st.extend("--ft-typography-subtitle1-font-size",St.fontSize,"16px"),At=st.extend("--ft-typography-subtitle1-font-weight",St.fontWeight,"600"),Lt=st.extend("--ft-typography-subtitle1-letter-spacing",St.letterSpacing,"0.144px"),Pt=st.extend("--ft-typography-subtitle1-line-height",St.lineHeight,"1.5"),zt=st.extend("--ft-typography-subtitle1-text-transform",St.textTransform,"inherit"),Tt=st.extend("--ft-typography-subtitle2-font-family",$t),Bt=st.extend("--ft-typography-subtitle2-font-size",St.fontSize,"14px"),_t=st.extend("--ft-typography-subtitle2-font-weight",St.fontWeight,"normal"),Wt=st.extend("--ft-typography-subtitle2-letter-spacing",St.letterSpacing,"0.098px"),Dt=st.extend("--ft-typography-subtitle2-line-height",St.lineHeight,"1.7"),Ht=st.extend("--ft-typography-subtitle2-text-transform",St.textTransform,"inherit"),Kt=st.extend("--ft-typography-body1-font-family",$t),It=st.extend("--ft-typography-body1-font-size",St.fontSize,"16px"),Zt=st.extend("--ft-typography-body1-font-weight",St.fontWeight,"normal"),Vt=st.extend("--ft-typography-body1-letter-spacing",St.letterSpacing,"0.496px"),Jt=st.extend("--ft-typography-body1-line-height",St.lineHeight,"1.5"),Xt=st.extend("--ft-typography-body1-text-transform",St.textTransform,"inherit"),qt=st.extend("--ft-typography-body2-font-family",$t),Gt=st.extend("--ft-typography-body2-font-size",St.fontSize,"14px"),Qt=st.extend("--ft-typography-body2-font-weight",St.fontWeight,"normal"),Yt=st.extend("--ft-typography-body2-letter-spacing",St.letterSpacing,"0.252px"),te=st.extend("--ft-typography-body2-line-height",St.lineHeight,"1.4"),ee=st.extend("--ft-typography-body2-text-transform",St.textTransform,"inherit"),ie=st.extend("--ft-typography-caption-font-family",$t),oe=st.extend("--ft-typography-caption-font-size",St.fontSize,"12px"),re=st.extend("--ft-typography-caption-font-weight",St.fontWeight,"normal"),ne=st.extend("--ft-typography-caption-letter-spacing",St.letterSpacing,"0.396px"),se=st.extend("--ft-typography-caption-line-height",St.lineHeight,"1.33"),ae=st.extend("--ft-typography-caption-text-transform",St.textTransform,"inherit"),le=st.extend("--ft-typography-breadcrumb-font-family",$t),he=st.extend("--ft-typography-breadcrumb-font-size",St.fontSize,"10px"),ce=st.extend("--ft-typography-breadcrumb-font-weight",St.fontWeight,"normal"),pe=st.extend("--ft-typography-breadcrumb-letter-spacing",St.letterSpacing,"0.33px"),fe=st.extend("--ft-typography-breadcrumb-line-height",St.lineHeight,"1.6"),ue=st.extend("--ft-typography-breadcrumb-text-transform",St.textTransform,"inherit"),de=st.extend("--ft-typography-overline-font-family",$t),ye=st.extend("--ft-typography-overline-font-size",St.fontSize,"10px"),ge=st.extend("--ft-typography-overline-font-weight",St.fontWeight,"normal"),ve=st.extend("--ft-typography-overline-letter-spacing",St.letterSpacing,"1.5px"),be=st.extend("--ft-typography-overline-line-height",St.lineHeight,"1.6"),me=st.extend("--ft-typography-overline-text-transform",St.textTransform,"uppercase"),xe=st.extend("--ft-typography-button-font-family",$t),we=st.extend("--ft-typography-button-font-size",St.fontSize,"14px"),Oe=st.extend("--ft-typography-button-font-weight",St.fontWeight,"600"),$e=st.extend("--ft-typography-button-letter-spacing",St.letterSpacing,"1.246px"),Se=st.extend("--ft-typography-button-line-height",St.lineHeight,"1.15"),Ne=st.extend("--ft-typography-button-text-transform",St.textTransform,"uppercase"),Ce=p`
92
+ const gt=Symbol.for(""),vt=t=>{if((null==t?void 0:t.r)===gt)return null==t?void 0:t._$litStatic$},bt=t=>({_$litStatic$:t,r:gt}),mt=new Map,xt=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],r=vt(n));)l+=r+e[++h],c=!0;a.push(n),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=mt.get(t))&&(s.raw=s,mt.set(t,e=s)),i=a}return t(e,...i)})(B);var wt;!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"}(wt||(wt={}));const Ot=st.extend("--ft-typography-font-family",at.titleFont),$t=st.extend("--ft-typography-font-family",at.contentFont),St={fontFamily:$t,fontSize:st.create("--ft-typography-font-size","SIZE","16px"),fontWeight:st.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:st.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:st.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:st.create("--ft-typography-text-transform","UNKNOWN","inherit")},Nt={fontFamily:st.extend("--ft-typography-title-font-family",Ot),fontSize:st.extend("--ft-typography-title-font-size",St.fontSize,"20px"),fontWeight:st.extend("--ft-typography-title-font-weight",St.fontWeight,"normal"),letterSpacing:st.extend("--ft-typography-title-letter-spacing",St.letterSpacing,"0.15px"),lineHeight:st.extend("--ft-typography-title-line-height",St.lineHeight,"1.2"),textTransform:st.extend("--ft-typography-title-text-transform",St.textTransform,"inherit")},Ct=st.extend("--ft-typography-title-dense-font-family",Ot),Et=st.extend("--ft-typography-title-dense-font-size",St.fontSize,"14px"),Rt=st.extend("--ft-typography-title-dense-font-weight",St.fontWeight,"normal"),Mt=st.extend("--ft-typography-title-dense-letter-spacing",St.letterSpacing,"0.105px"),Ut=st.extend("--ft-typography-title-dense-line-height",St.lineHeight,"1.7"),kt=st.extend("--ft-typography-title-dense-text-transform",St.textTransform,"inherit"),Ft=st.extend("--ft-typography-subtitle1-font-family",$t),jt=st.extend("--ft-typography-subtitle1-font-size",St.fontSize,"16px"),At=st.extend("--ft-typography-subtitle1-font-weight",St.fontWeight,"600"),Lt=st.extend("--ft-typography-subtitle1-letter-spacing",St.letterSpacing,"0.144px"),Pt=st.extend("--ft-typography-subtitle1-line-height",St.lineHeight,"1.5"),zt=st.extend("--ft-typography-subtitle1-text-transform",St.textTransform,"inherit"),Tt=st.extend("--ft-typography-subtitle2-font-family",$t),Bt=st.extend("--ft-typography-subtitle2-font-size",St.fontSize,"14px"),_t=st.extend("--ft-typography-subtitle2-font-weight",St.fontWeight,"normal"),Wt=st.extend("--ft-typography-subtitle2-letter-spacing",St.letterSpacing,"0.098px"),Dt=st.extend("--ft-typography-subtitle2-line-height",St.lineHeight,"1.7"),Ht=st.extend("--ft-typography-subtitle2-text-transform",St.textTransform,"inherit"),Kt=st.extend("--ft-typography-body1-font-family",$t),It=st.extend("--ft-typography-body1-font-size",St.fontSize,"16px"),Zt=st.extend("--ft-typography-body1-font-weight",St.fontWeight,"normal"),Vt=st.extend("--ft-typography-body1-letter-spacing",St.letterSpacing,"0.496px"),Jt=st.extend("--ft-typography-body1-line-height",St.lineHeight,"1.5"),Xt=st.extend("--ft-typography-body1-text-transform",St.textTransform,"inherit"),qt=st.extend("--ft-typography-body2-font-family",$t),Gt=st.extend("--ft-typography-body2-font-size",St.fontSize,"14px"),Qt=st.extend("--ft-typography-body2-font-weight",St.fontWeight,"normal"),Yt=st.extend("--ft-typography-body2-letter-spacing",St.letterSpacing,"0.252px"),te=st.extend("--ft-typography-body2-line-height",St.lineHeight,"1.4"),ee=st.extend("--ft-typography-body2-text-transform",St.textTransform,"inherit"),ie=st.extend("--ft-typography-caption-font-family",$t),oe=st.extend("--ft-typography-caption-font-size",St.fontSize,"12px"),re=st.extend("--ft-typography-caption-font-weight",St.fontWeight,"normal"),ne=st.extend("--ft-typography-caption-letter-spacing",St.letterSpacing,"0.396px"),se=st.extend("--ft-typography-caption-line-height",St.lineHeight,"1.33"),ae=st.extend("--ft-typography-caption-text-transform",St.textTransform,"inherit"),le=st.extend("--ft-typography-breadcrumb-font-family",$t),he=st.extend("--ft-typography-breadcrumb-font-size",St.fontSize,"10px"),ce=st.extend("--ft-typography-breadcrumb-font-weight",St.fontWeight,"normal"),pe=st.extend("--ft-typography-breadcrumb-letter-spacing",St.letterSpacing,"0.33px"),fe=st.extend("--ft-typography-breadcrumb-line-height",St.lineHeight,"1.6"),ue=st.extend("--ft-typography-breadcrumb-text-transform",St.textTransform,"inherit"),de=st.extend("--ft-typography-overline-font-family",$t),ye=st.extend("--ft-typography-overline-font-size",St.fontSize,"10px"),ge=st.extend("--ft-typography-overline-font-weight",St.fontWeight,"normal"),ve=st.extend("--ft-typography-overline-letter-spacing",St.letterSpacing,"1.5px"),be=st.extend("--ft-typography-overline-line-height",St.lineHeight,"1.6"),me=st.extend("--ft-typography-overline-text-transform",St.textTransform,"uppercase"),xe=st.extend("--ft-typography-button-font-family",$t),we=st.extend("--ft-typography-button-font-size",St.fontSize,"14px"),Oe=st.extend("--ft-typography-button-font-weight",St.fontWeight,"600"),$e=st.extend("--ft-typography-button-letter-spacing",St.letterSpacing,"1.246px"),Se=st.extend("--ft-typography-button-line-height",St.lineHeight,"1.15"),Ne=st.extend("--ft-typography-button-text-transform",St.textTransform,"uppercase"),Ce=p`
81
93
  .ft-typography--title {
82
94
  font-family: ${Nt.fontFamily};
83
95
  font-size: ${Nt.fontSize};
@@ -93,11 +105,11 @@ const gt=Symbol.for(""),vt=t=>{if((null==t?void 0:t.r)===gt)return null==t?void
93
105
  font-weight: ${Rt};
94
106
  letter-spacing: ${Mt};
95
107
  line-height: ${Ut};
96
- text-transform: ${Ft};
108
+ text-transform: ${kt};
97
109
  }
98
110
  `,Re=p`
99
111
  .ft-typography--subtitle1 {
100
- font-family: ${kt};
112
+ font-family: ${Ft};
101
113
  font-size: ${jt};
102
114
  font-weight: ${At};
103
115
  letter-spacing: ${Lt};
@@ -123,7 +135,7 @@ const gt=Symbol.for(""),vt=t=>{if((null==t?void 0:t.r)===gt)return null==t?void
123
135
  line-height: ${Jt};
124
136
  text-transform: ${Xt};
125
137
  }
126
- `,Fe=p`
138
+ `,ke=p`
127
139
  .ft-typography--body2 {
128
140
  font-family: ${qt};
129
141
  font-size: ${Gt};
@@ -132,7 +144,7 @@ const gt=Symbol.for(""),vt=t=>{if((null==t?void 0:t.r)===gt)return null==t?void
132
144
  line-height: ${te};
133
145
  text-transform: ${ee};
134
146
  }
135
- `,ke=p`
147
+ `,Fe=p`
136
148
  .ft-typography--caption {
137
149
  font-family: ${ie};
138
150
  font-size: ${oe};
@@ -179,5 +191,5 @@ const gt=Symbol.for(""),vt=t=>{if((null==t?void 0:t.r)===gt)return null==t?void
179
191
  </${bt(this.element)}>
180
192
  `:xt`
181
193
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
182
- `}}Te.styles=[Ce,Ee,Re,Me,Ue,Fe,ke,je,Ae,Le,Pe],ze([i()],Te.prototype,"element",void 0),ze([i()],Te.prototype,"variant",void 0),r("ft-typography")(Te);var Be,_e,We=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class De extends yt{render(){if(this.map){let t=this.maxLength?this.map.title.substring(0,this.maxLength)+"...":this.map.title;return B`
194
+ `}}Te.styles=[Ce,Ee,Re,Me,Ue,ke,Fe,je,Ae,Le,Pe],ze([i()],Te.prototype,"element",void 0),ze([i()],Te.prototype,"variant",void 0),r("ft-typography")(Te);var Be,_e,We=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class De extends yt{render(){if(this.map){let t=this.maxLength?this.map.title.substring(0,this.maxLength)+"...":this.map.title;return B`
183
195
  <ft-typography variant="title" part="text">${t}</ft-typography>`}return W}}De.elementDefinitions={"ft-typography":Te},We([i({attribute:"max-length"})],De.prototype,"maxLength",void 0),We([(t,e)=>{t.constructor.createProperty(e,{attribute:!1,hasChanged:null!=_e?_e:(t,e)=>!n(t,e)});const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,null!=Be?Be:t=>t[e])}],De.prototype,"map",void 0);const He={fontSize:st.extend("--ft-reader-metadata-font-size",Nt.fontSize)};r("ft-reader-title")(De),t.FtReaderTitle=De,t.FtReaderTitleCssVariables=He,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-title",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Title for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-reader-context": "0.3.15",
23
- "@fluid-topics/ft-wc-utils": "0.3.15",
22
+ "@fluid-topics/ft-reader-context": "0.3.16",
23
+ "@fluid-topics/ft-wc-utils": "0.3.16",
24
24
  "lit": "2.2.8"
25
25
  },
26
- "gitHead": "067add51b15dae11774878d4fcee1dfc734d00fa"
26
+ "gitHead": "0d05a101f09cb5819ee10930772a873e7e0cc87b"
27
27
  }