@fluid-topics/ft-i18n 1.3.18 → 1.3.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.
@@ -7,7 +7,7 @@
7
7
  <span class="ft-i18n">
8
8
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
9
9
  </span>
10
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};$.elementDefinitions={};$.styles=Yt;Le([(0,ft.redux)()],$.prototype,"editorMode",void 0);Le([(0,dt.property)()],$.prototype,"context",void 0);Le([(0,dt.property)()],$.prototype,"key",void 0);Le([(0,ft.jsonProperty)([])],$.prototype,"args",void 0);Le([(0,dt.property)()],$.prototype,"defaultMessage",void 0);var Nn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?He:ge}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};var xu=(e,t)=>(r,n)=>{var i,s;r.constructor.createProperty(n,t??{attribute:!1,type:String});let a={...e,key:(i=e.key)!==null&&i!==void 0?i:n};r[ke]=(s=r[ke])!==null&&s!==void 0?s:new Map,r[ke].set(n,a)};(0,Un.customElement)("ft-i18n")($);})();
10
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};$.elementDefinitions={};$.styles=Yt;Le([(0,ft.redux)()],$.prototype,"editorMode",void 0);Le([(0,dt.property)()],$.prototype,"context",void 0);Le([(0,dt.property)()],$.prototype,"key",void 0);Le([(0,ft.jsonProperty)([])],$.prototype,"args",void 0);Le([(0,dt.property)()],$.prototype,"defaultMessage",void 0);var Nn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?He:ge}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i})}};var xu=(e,t)=>(r,n)=>{var i,s;r.constructor.createProperty(n,t??{attribute:!1,type:String});let a={...e,key:(i=e.key)!==null&&i!==void 0?i:n};r[ke]=(s=r[ke])!==null&&s!==void 0?s:new Map,r[ke].set(n,a)};(0,Un.customElement)("ft-i18n")($);})();
11
11
  /*! Bundled license information:
12
12
 
13
13
  @lit/reactive-element/css-tag.js: