@fluid-topics/ft-reader-internal-link 2.1.18 → 2.1.20

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.
@@ -16,12 +16,12 @@ export class FtReaderInternalLink extends FtReaderComponent {
16
16
  }
17
17
  render() {
18
18
  var _a;
19
- let classes = classMap({
19
+ const classes = classMap({
20
20
  "ft-reader-link": true,
21
- "ft-reader-link--remove-style": this.removeStyle
21
+ "ft-reader-link--remove-style": this.removeStyle,
22
22
  });
23
23
  return html `
24
- <a class=${classes}
24
+ <a class="${classes}"
25
25
  href="${(_a = this.service) === null || _a === void 0 ? void 0 : _a.getLink(this.tocId, this.pageNumber, this.section)}"
26
26
  @click=${(e) => this.onLinkClick(e)}>
27
27
  <slot></slot>
@@ -12,7 +12,7 @@
12
12
  color: inherit;
13
13
  }
14
14
  `;var v=function(e,t,o,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},a=class extends m{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=(0,P.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return K.html`
15
- <a class=${o}
15
+ <a class="${o}"
16
16
  href="${(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
17
17
  @click=${i=>this.onLinkClick(i)}>
18
18
  <slot></slot>
@@ -5,7 +5,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
5
5
  .highlight-html-match {
6
6
  background: ${si};
7
7
  }
8
- `;function Ul(t,e,o){var n,a;let i=t.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let s=new Fl(t);if(s.unmark(),e&&e.trim()){let l={className:(n=o?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};o?.attributes!=null&&(l.each=(f=>{for(let h in o.attributes)f.setAttribute(h,o.attributes[h])})),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Io={};N(Io,{noTextInputDefaultClearButton:()=>zl,noTextSelect:()=>Bl,safariEllipsisFix:()=>Hl,wordWrap:()=>$l});var Bl=M`
8
+ `;function Ul(t,e,o){var n,a;let i=t.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let s=new Fl(t);if(s.unmark(),e&&e.trim()){let l={className:(n=o?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};o?.attributes!=null&&(l.each=f=>{for(let h in o.attributes)f.setAttribute(h,o.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Io={};N(Io,{noTextInputDefaultClearButton:()=>zl,noTextSelect:()=>Bl,safariEllipsisFix:()=>Hl,wordWrap:()=>$l});var Bl=M`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -95,7 +95,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
95
95
  color: inherit;
96
96
  }
97
97
  `;var br=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fe=class extends gr{constructor(){super(...arguments),this.removeStyle=!1}render(){var e;let o=Nr({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return pe`
98
- <a class=${o}
98
+ <a class="${o}"
99
99
  href="${(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocId,this.pageNumber,this.section)}"
100
100
  @click=${n=>this.onLinkClick(n)}>
101
101
  <slot></slot>
@@ -1,4 +1,4 @@
1
- import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
1
+ import { designSystemVariables, FtCssVariableFactory, } from "@fluid-topics/ft-wc-utils";
2
2
  import { css } from "lit";
3
3
  export const FtReaderInternalLinkCssVariables = {
4
4
  outlineColor: FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color", "", designSystemVariables.colorPrimary),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-internal-link",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
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": "2.1.18",
22
+ "@fluid-topics/ft-wc-utils": "2.1.20",
23
23
  "lit": "3.1.0"
24
24
  },
25
- "gitHead": "2effe252f9ab22ede85f961b8464ec8aa4d27870"
25
+ "gitHead": "77e9f03085f977dde887e175b964bf66b862253f"
26
26
  }