@fluid-topics/ft-reader-internal-link 1.0.49 → 1.0.51

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.
@@ -33,9 +33,7 @@ class FtReaderInternalLink extends FtReaderComponent {
33
33
  if (!e.ctrlKey && !e.metaKey) {
34
34
  e.stopPropagation();
35
35
  e.preventDefault();
36
- if (this.tocId) {
37
- (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.navigateToTopic(this.tocId, this.section, this.pageNumber);
38
- }
36
+ (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.navigateToTopic(this.tocId, this.section, this.pageNumber);
39
37
  this.click();
40
38
  }
41
39
  }
@@ -11,10 +11,10 @@
11
11
  text-decoration: none;
12
12
  color: inherit;
13
13
  }
14
- `;var h=function(t,e,r,s){for(var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class u extends a{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=o.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return r.html`
14
+ `;var u=function(t,e,r,s){for(var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class h extends a{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=o.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return r.html`
15
15
  <a class=${e}
16
16
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
17
17
  @click=${t=>this.onLinkClick(t)}>
18
18
  <slot></slot>
19
19
  </a>
20
- `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}u.styles=d,h([s.property()],u.prototype,"tocId",void 0),h([s.property()],u.prototype,"section",void 0),h([s.property({type:Number})],u.prototype,"pageNumber",void 0),h([s.property({type:Boolean})],u.prototype,"removeStyle",void 0),e.customElement("ft-reader-internal-link")(u),t.FtReaderInternalLink=u,t.FtReaderInternalLinkCssVariables=c,t.styles=d}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
20
+ `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}h.styles=d,u([s.property()],h.prototype,"tocId",void 0),u([s.property()],h.prototype,"section",void 0),u([s.property({type:Number})],h.prototype,"pageNumber",void 0),u([s.property({type:Boolean})],h.prototype,"removeStyle",void 0),e.customElement("ft-reader-internal-link")(h),t.FtReaderInternalLink=h,t.FtReaderInternalLinkCssVariables=c,t.styles=d}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
@@ -114,4 +114,4 @@ const Ut=1;class Ft{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
114
114
  @click=${t=>this.onLinkClick(t)}>
115
115
  <slot></slot>
116
116
  </a>
117
- `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}Ht.styles=Bt,Wt([s()],Ht.prototype,"tocId",void 0),Wt([s()],Ht.prototype,"section",void 0),Wt([s({type:Number})],Ht.prototype,"pageNumber",void 0),Wt([s({type:Boolean})],Ht.prototype,"removeStyle",void 0),(Dt="ft-reader-internal-link",t=>{window.customElements.get(Dt)||window.customElements.define(Dt,t)})(Ht),t.FtReaderInternalLink=Ht,t.FtReaderInternalLinkCssVariables=_t,t.styles=Bt}({});
117
+ `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Ht.styles=Bt,Wt([s()],Ht.prototype,"tocId",void 0),Wt([s()],Ht.prototype,"section",void 0),Wt([s({type:Number})],Ht.prototype,"pageNumber",void 0),Wt([s({type:Boolean})],Ht.prototype,"removeStyle",void 0),(Dt="ft-reader-internal-link",t=>{window.customElements.get(Dt)||window.customElements.define(Dt,t)})(Ht),t.FtReaderInternalLink=Ht,t.FtReaderInternalLinkCssVariables=_t,t.styles=Bt}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-internal-link",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Reader internal link for 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.49",
22
+ "@fluid-topics/ft-wc-utils": "1.0.51",
23
23
  "lit": "2.7.2"
24
24
  },
25
- "gitHead": "77eac237aeec17a50f5bcc09890746d9a9f097f0"
25
+ "gitHead": "ea2d0683e542dd824889f183d48d0ed68fca794a"
26
26
  }