@fluid-topics/ft-reader-breadcrumbs 1.3.19 → 1.3.21
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.
|
@@ -1296,7 +1296,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1296
1296
|
<span class="ft-i18n">
|
|
1297
1297
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1298
1298
|
</span>
|
|
1299
|
-
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};He.elementDefinitions={};He.styles=Hs;Ur([(0,Wo.redux)()],He.prototype,"editorMode",void 0);Ur([(0,Fo.property)()],He.prototype,"context",void 0);Ur([(0,Fo.property)()],He.prototype,"key",void 0);Ur([(0,Wo.jsonProperty)([])],He.prototype,"args",void 0);Ur([(0,Fo.property)()],He.prototype,"defaultMessage",void 0);var Ho=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?yo:ar}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return c=>({context:this.name,key:i,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};(0,Rl.customElement)("ft-i18n")(He);var zo=Ho.build("readerBreadcrumbs"),Nl={navAriaLabel:"Breadcrumb",menuShowMore:"Show more"};var ze=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},pe=class extends Uo(qt){constructor(){super(),this.separator=">",this.breadcrumb=[],this.addI18nContext(zo,Nl)}willUpdate(r){var o,n,a;super.willUpdate(r),r.has("tocId")&&this.tocId!==void 0&&(this.breadcrumb=(n=(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocId))!==null&&n!==void 0?n:[]),r.has("breadcrumb")&&((a=this.ftFloatingMenu)===null||a===void 0||a.closeMenu())}render(){let r=this.breadcrumb;this.displayMapTitle&&(r=[{title:this.mapTitle,tocId:"root"},...this.breadcrumb]);let o={"ft-reader-breadcrumbs":!0,multiline:!!this.multiline};return Ae.html`
|
|
1299
|
+
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};He.elementDefinitions={};He.styles=Hs;Ur([(0,Wo.redux)()],He.prototype,"editorMode",void 0);Ur([(0,Fo.property)()],He.prototype,"context",void 0);Ur([(0,Fo.property)()],He.prototype,"key",void 0);Ur([(0,Wo.jsonProperty)([])],He.prototype,"args",void 0);Ur([(0,Fo.property)()],He.prototype,"defaultMessage",void 0);var Ho=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?yo:ar}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return c=>({context:this.name,key:i,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a})}};(0,Rl.customElement)("ft-i18n")(He);var zo=Ho.build("readerBreadcrumbs"),Nl={navAriaLabel:"Breadcrumb",menuShowMore:"Show more"};var ze=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},pe=class extends Uo(qt){constructor(){super(),this.separator=">",this.breadcrumb=[],this.addI18nContext(zo,Nl)}willUpdate(r){var o,n,a;super.willUpdate(r),r.has("tocId")&&this.tocId!==void 0&&(this.breadcrumb=(n=(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocId))!==null&&n!==void 0?n:[]),r.has("breadcrumb")&&((a=this.ftFloatingMenu)===null||a===void 0||a.closeMenu())}render(){let r=this.breadcrumb;this.displayMapTitle&&(r=[{title:this.mapTitle,tocId:"root"},...this.breadcrumb]);let o={"ft-reader-breadcrumbs":!0,multiline:!!this.multiline};return Ae.html`
|
|
1300
1300
|
<nav part="breadcrumb-nav" class="${(0,Tl.classMap)(o)}" aria-label="${zo.messages.navAriaLabel()}">
|
|
1301
1301
|
<ol part="breadcrumb-list">
|
|
1302
1302
|
${this.renderBreadcrumbs(r)}
|
|
@@ -1363,7 +1363,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1363
1363
|
<span class="ft-i18n">
|
|
1364
1364
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1365
1365
|
</span>
|
|
1366
|
-
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};He.elementDefinitions={};He.styles=rd;io([kt()],He.prototype,"editorMode",void 0);io([O()],He.prototype,"context",void 0);io([O()],He.prototype,"key",void 0);io([Ne([])],He.prototype,"args",void 0);io([O()],He.prototype,"defaultMessage",void 0);var sn=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Qo:Rr}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};q("ft-i18n")(He);var ln=sn.build("readerBreadcrumbs"),fd={navAriaLabel:"Breadcrumb",menuShowMore:"Show more"};var ze=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 c=t.length-1;c>=0;c--)(s=t[c])&&(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 an(Or){constructor(){super(),this.separator=">",this.breadcrumb=[],this.addI18nContext(ln,fd)}willUpdate(e){var o,n,a;super.willUpdate(e),e.has("tocId")&&this.tocId!==void 0&&(this.breadcrumb=(n=(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocId))!==null&&n!==void 0?n:[]),e.has("breadcrumb")&&((a=this.ftFloatingMenu)===null||a===void 0||a.closeMenu())}render(){let e=this.breadcrumb;this.displayMapTitle&&(e=[{title:this.mapTitle,tocId:"root"},...this.breadcrumb]);let o={"ft-reader-breadcrumbs":!0,multiline:!!this.multiline};return $`
|
|
1366
|
+
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};He.elementDefinitions={};He.styles=rd;io([kt()],He.prototype,"editorMode",void 0);io([O()],He.prototype,"context",void 0);io([O()],He.prototype,"key",void 0);io([Ne([])],He.prototype,"args",void 0);io([O()],He.prototype,"defaultMessage",void 0);var sn=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Qo:Rr}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a})}};q("ft-i18n")(He);var ln=sn.build("readerBreadcrumbs"),fd={navAriaLabel:"Breadcrumb",menuShowMore:"Show more"};var ze=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 c=t.length-1;c>=0;c--)(s=t[c])&&(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 an(Or){constructor(){super(),this.separator=">",this.breadcrumb=[],this.addI18nContext(ln,fd)}willUpdate(e){var o,n,a;super.willUpdate(e),e.has("tocId")&&this.tocId!==void 0&&(this.breadcrumb=(n=(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocId))!==null&&n!==void 0?n:[]),e.has("breadcrumb")&&((a=this.ftFloatingMenu)===null||a===void 0||a.closeMenu())}render(){let e=this.breadcrumb;this.displayMapTitle&&(e=[{title:this.mapTitle,tocId:"root"},...this.breadcrumb]);let o={"ft-reader-breadcrumbs":!0,multiline:!!this.multiline};return $`
|
|
1367
1367
|
<nav part="breadcrumb-nav" class="${Re(o)}" aria-label="${ln.messages.navAriaLabel()}">
|
|
1368
1368
|
<ol part="breadcrumb-list">
|
|
1369
1369
|
${this.renderBreadcrumbs(e)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-breadcrumbs",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.21",
|
|
4
4
|
"description": "A component to display current visible topic breadcrumbs",
|
|
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-floating-menu": "1.3.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.3.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.3.
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-floating-menu": "1.3.21",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.3.21",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.3.21",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.3.21",
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "1.3.21",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "fd30595cd89395cbcac48ca8146aecef2e9b8673"
|
|
30
30
|
}
|