@fluid-topics/ft-reader-navigation-button 2.0.28 → 2.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.
@@ -1668,7 +1668,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1668
1668
  .ftds--size-small.ft-button--icon-only {
1669
1669
  width: ${b.smallIconOnlyWidth};
1670
1670
  }
1671
- `,O.noTextSelect];var wn=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Je=class extends(0,_n.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Oo.brand,this.iconVariant=Ye.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case ur.large:return ut.body2medium;case ur.medium:return ut.caption1medium;case ur.small:return ut.caption2medium}}};Je.elementDefinitions={...W.elementDefinitions,"ft-or-ftds-typography":ot};Je.styles=[_n.safariEllipsisFix,d4];wn([(0,bo.property)({type:Boolean})],Je.prototype,"primary",void 0);wn([(0,bo.property)({type:Boolean})],Je.prototype,"secondary",void 0);wn([(0,bo.property)({type:Boolean})],Je.prototype,"tertiary",void 0);wn([(0,bo.property)({type:Boolean})],Je.prototype,"round",void 0);var f4=L(D());var u4={"ft-button":Pe,"ftds-button":Je};(0,f4.customElements)(u4);var y4=L(j()),xo=L(ee()),g4=L(zr());var Nn=L(D()),m4=L(ee());var p4;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(p4||(p4={}));var h4;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(h4||(h4={}));var Qu=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ai=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ei=Symbol("registerInterval"),Ju=(0,Nn.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class o extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Ei]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ei]):this.dispatchEvent(new Ai)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ei,Qu([(0,m4.state)()],o.prototype,"stateManager",void 0),o}),kr=class extends Ju(Nn.FtLitElementRedux){};var Tn=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},He=class extends kr{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=(0,g4.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return y4.html`
1671
+ `,O.noTextSelect];var wn=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Je=class extends(0,_n.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Oo.brand,this.iconVariant=Ye.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case ur.large:return ut.body2medium;case ur.medium:return ut.caption1medium;case ur.small:return ut.caption2medium}}};Je.elementDefinitions={...W.elementDefinitions,"ft-or-ftds-typography":ot};Je.styles=[_n.safariEllipsisFix,d4];wn([(0,bo.property)({type:Boolean})],Je.prototype,"primary",void 0);wn([(0,bo.property)({type:Boolean})],Je.prototype,"secondary",void 0);wn([(0,bo.property)({type:Boolean})],Je.prototype,"tertiary",void 0);wn([(0,bo.property)({type:Boolean})],Je.prototype,"round",void 0);var f4=L(D());var u4={"ft-button":Pe,"ftds-button":Je};(0,f4.customElements)(u4);var y4=L(j()),xo=L(ee()),g4=L(zr());var Nn=L(D()),m4=L(ee());var p4;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(p4||(p4={}));var h4;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(h4||(h4={}));var Qu=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ai=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ei=Symbol("registerInterval"),Ju=(0,Nn.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class o extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Ei]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ei]):this.dispatchEvent(new Ai)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ei,Qu([(0,m4.state)()],o.prototype,"stateManager",void 0),o}),kr=class extends Ju(Nn.FtLitElementRedux){};var Tn=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},He=class extends kr{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=(0,g4.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return y4.html`
1672
1672
  <a class=${o}
1673
1673
  href="${(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
1674
1674
  @click=${n=>this.onLinkClick(n)}>
@@ -1748,7 +1748,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1748
1748
  .ftds--size-small.ft-button--icon-only {
1749
1749
  width: ${x.smallIconOnlyWidth};
1750
1750
  }
1751
- `,gt];var ta=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},lt=class extends vn(Q){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Yt.brand,this.iconVariant=at.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case ht.large:return zt.body2medium;case ht.medium:return zt.caption1medium;case ht.small:return zt.caption2medium}}};lt.elementDefinitions={...Q.elementDefinitions,"ft-or-ftds-typography":vt};lt.styles=[Lo,g0];ta([L({type:Boolean})],lt.prototype,"primary",void 0);ta([L({type:Boolean})],lt.prototype,"secondary",void 0);ta([L({type:Boolean})],lt.prototype,"tertiary",void 0);ta([L({type:Boolean})],lt.prototype,"round",void 0);var y0={"ft-button":He,"ftds-button":lt};se(y0);var b0;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(b0||(b0={}));var x0;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(x0||(x0={}));var M3=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Sc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},vc=Symbol("registerInterval"),P3=de(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[vc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[vc]):this.dispatchEvent(new Sc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=vc,M3([te()],r.prototype,"stateManager",void 0),r}),io=class extends P3(yt){};var ra=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Ke=class extends io{constructor(){super(...arguments),this.removeStyle=!1}render(){var e;let r=qe({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
1751
+ `,gt];var ta=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},lt=class extends vn(Q){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Yt.brand,this.iconVariant=at.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case ht.large:return zt.body2medium;case ht.medium:return zt.caption1medium;case ht.small:return zt.caption2medium}}};lt.elementDefinitions={...Q.elementDefinitions,"ft-or-ftds-typography":vt};lt.styles=[Lo,g0];ta([L({type:Boolean})],lt.prototype,"primary",void 0);ta([L({type:Boolean})],lt.prototype,"secondary",void 0);ta([L({type:Boolean})],lt.prototype,"tertiary",void 0);ta([L({type:Boolean})],lt.prototype,"round",void 0);var y0={"ft-button":He,"ftds-button":lt};se(y0);var b0;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(b0||(b0={}));var x0;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(x0||(x0={}));var M3=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Sc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},vc=Symbol("registerInterval"),P3=de(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[vc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[vc]):this.dispatchEvent(new Sc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=vc,M3([te()],r.prototype,"stateManager",void 0),r}),io=class extends P3(yt){};var ra=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Ke=class extends io{constructor(){super(...arguments),this.removeStyle=!1}render(){var e;let r=qe({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
1752
1752
  <a class=${r}
1753
1753
  href="${(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocId,this.pageNumber,this.section)}"
1754
1754
  @click=${o=>this.onLinkClick(o)}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "2.0.28",
23
- "@fluid-topics/ft-reader-context": "2.0.28",
24
- "@fluid-topics/ft-reader-internal-link": "2.0.28",
25
- "@fluid-topics/ft-tooltip": "2.0.28",
26
- "@fluid-topics/ft-wc-utils": "2.0.28",
22
+ "@fluid-topics/ft-button": "2.0.29",
23
+ "@fluid-topics/ft-reader-context": "2.0.29",
24
+ "@fluid-topics/ft-reader-internal-link": "2.0.29",
25
+ "@fluid-topics/ft-tooltip": "2.0.29",
26
+ "@fluid-topics/ft-wc-utils": "2.0.29",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "c81a78f103c19425eb2eac2675a6dd8396e2aa4e"
29
+ "gitHead": "7c6a7af32908ebb8496d98416d21cd37097b991f"
30
30
  }