@fluid-topics/ft-reader-navigation-button 1.1.0 → 1.1.1
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.
|
@@ -815,7 +815,7 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
|
|
|
815
815
|
width: ${S.smallIconOnlyWidth};
|
|
816
816
|
padding: unset;
|
|
817
817
|
}
|
|
818
|
-
`,o.noTextSelect];var de,he=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends ce{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?jo.caption1medium:jo.body2medium}}ye.styles=[o.safariEllipsisFix,fe],he([r.property({type:Boolean})],ye.prototype,"primary",void 0),he([r.property({type:Boolean})],ye.prototype,"secondary",void 0),he([r.property({type:Boolean})],ye.prototype,"tertiary",void 0),he([r.property({type:Boolean})],ye.prototype,"neutral",void 0),he([r.property({type:Boolean})],ye.prototype,"small",void 0),o.customElement("ft-button")(se),o.customElement("ftds-button")(ye),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(de||(de={}));var ge=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class be extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ue=Symbol("registerInterval");class me extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[ue]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ue]):this.dispatchEvent(new be)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=ue,ge([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}var xe=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Oe extends me{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=i.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
|
|
818
|
+
`,o.noTextSelect];var de,he=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends ce{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?jo.caption1medium:jo.body2medium}}ye.styles=[o.safariEllipsisFix,fe],he([r.property({type:Boolean})],ye.prototype,"primary",void 0),he([r.property({type:Boolean})],ye.prototype,"secondary",void 0),he([r.property({type:Boolean})],ye.prototype,"tertiary",void 0),he([r.property({type:Boolean})],ye.prototype,"neutral",void 0),he([r.property({type:Boolean})],ye.prototype,"small",void 0),o.customElement("ft-button")(se),o.customElement("ftds-button")(ye),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(de||(de={}));var ge=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class be extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ue=Symbol("registerInterval");class me extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[ue]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ue]):this.dispatchEvent(new be)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=ue,ge([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}var xe=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Oe extends me{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=i.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
|
|
819
819
|
<a class=${o}
|
|
820
820
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
821
821
|
@click=${t=>this.onLinkClick(t)}>
|
|
@@ -936,7 +936,7 @@ class sr extends Ai{constructor(t){if(super(t),this.et=X,t.type!==Bi)throw Error
|
|
|
936
936
|
width: ${wo.smallIconOnlyWidth};
|
|
937
937
|
padding: unset;
|
|
938
938
|
}
|
|
939
|
-
`,zo];var Or,vr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Nr extends gr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?Vi.caption1medium:Vi.body2medium}}Nr.styles=[Fo,xr],vr([C({type:Boolean})],Nr.prototype,"primary",void 0),vr([C({type:Boolean})],Nr.prototype,"secondary",void 0),vr([C({type:Boolean})],Nr.prototype,"tertiary",void 0),vr([C({type:Boolean})],Nr.prototype,"neutral",void 0),vr([C({type:Boolean})],Nr.prototype,"small",void 0),k("ft-button")(mr),k("ftds-button")(Nr),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Or||(Or={}));var Sr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Cr=Symbol("registerInterval");class $r extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[Cr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Cr]):this.dispatchEvent(new wr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Cr,Sr([$()],e.prototype,"stateManager",void 0),e}(jo)){}var Rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Er extends $r{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=Di({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Qt`
|
|
939
|
+
`,zo];var Or,vr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Nr extends gr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?Vi.caption1medium:Vi.body2medium}}Nr.styles=[Fo,xr],vr([C({type:Boolean})],Nr.prototype,"primary",void 0),vr([C({type:Boolean})],Nr.prototype,"secondary",void 0),vr([C({type:Boolean})],Nr.prototype,"tertiary",void 0),vr([C({type:Boolean})],Nr.prototype,"neutral",void 0),vr([C({type:Boolean})],Nr.prototype,"small",void 0),k("ft-button")(mr),k("ftds-button")(Nr),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Or||(Or={}));var Sr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Cr=Symbol("registerInterval");class $r extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[Cr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Cr]):this.dispatchEvent(new wr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Cr,Sr([$()],e.prototype,"stateManager",void 0),e}(jo)){}var Rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Er extends $r{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=Di({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Qt`
|
|
940
940
|
<a class=${o}
|
|
941
941
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
942
942
|
@click=${t=>this.onLinkClick(t)}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-navigation-button",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
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": "1.1.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-reader-internal-link": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-button": "1.1.1",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.1.1",
|
|
24
|
+
"@fluid-topics/ft-reader-internal-link": "1.1.1",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.1",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.1",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
|
|
30
30
|
}
|