@fluid-topics/ft-copy-block 1.1.31 → 1.1.33
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.
|
@@ -849,7 +849,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Fo=t=>({_$li
|
|
|
849
849
|
<span class="ft-i18n">
|
|
850
850
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
851
851
|
</span>
|
|
852
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}zr.elementDefinitions={},zr.styles=yr,Zr([o.redux()],zr.prototype,"editorMode",void 0),Zr([r.property()],zr.prototype,"context",void 0),Zr([r.property()],zr.prototype,"key",void 0),Zr([o.jsonProperty([])],zr.prototype,"args",void 0),Zr([r.property()],zr.prototype,"defaultMessage",void 0);class Fr{static build(t){return new Fr(t)}static fromGwt(t){return new Fr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>vr.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(zr);const Br=Fr.build("copyBlockComponent"),Dr={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Ar=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 Hr extends Lr{constructor(){super(),this.addI18nContext(Br,Dr)}render(){return e.html`
|
|
852
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),["context","key","defaultMessage"].some((o=>t.has(o)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}zr.elementDefinitions={},zr.styles=yr,Zr([o.redux()],zr.prototype,"editorMode",void 0),Zr([r.property()],zr.prototype,"context",void 0),Zr([r.property()],zr.prototype,"key",void 0),Zr([o.jsonProperty([])],zr.prototype,"args",void 0),Zr([r.property()],zr.prototype,"defaultMessage",void 0);class Fr{static build(t){return new Fr(t)}static fromGwt(t){return new Fr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>vr.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(zr);const Br=Fr.build("copyBlockComponent"),Dr={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Ar=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 Hr extends Lr{constructor(){super(),this.addI18nContext(Br,Dr)}render(){return e.html`
|
|
853
853
|
<div part="container">
|
|
854
854
|
${navigator.clipboard?e.html`
|
|
855
855
|
<div part="button-container">
|
|
@@ -979,7 +979,7 @@ class os extends Ka{constructor(t){if(super(t),this.et=rt,t.type!==Wa)throw Erro
|
|
|
979
979
|
<span class="ft-i18n">
|
|
980
980
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
981
981
|
</span>
|
|
982
|
-
`:this.editorMode?"Select a context and a label key.":ao}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}Ms.elementDefinitions={},Ms.styles=ms,Zs([(t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!L(t,o),attribute:!1,...o};R(i)(t,e);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}})()],Ms.prototype,"editorMode",void 0),Zs([R()],Ms.prototype,"context",void 0),Zs([R()],Ms.prototype,"key",void 0),Zs([A([])],Ms.prototype,"args",void 0),Zs([R()],Ms.prototype,"defaultMessage",void 0);class Ps{static build(t){return new Ps(t)}static fromGwt(t){return new Ps(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Cs.resolveMessage(this.name,o,...t)})}}K("ft-i18n")(Ms);const Ds=Ps.build("copyBlockComponent"),Bs={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Hs=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ts extends Fs{constructor(){super(),this.addI18nContext(Ds,Bs)}render(){return io`
|
|
982
|
+
`:this.editorMode?"Select a context and a label key.":ao}update(t){var o;super.update(t),["context","key","defaultMessage"].some((o=>t.has(o)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}Ms.elementDefinitions={},Ms.styles=ms,Zs([(t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!L(t,o),attribute:!1,...o};R(i)(t,e);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}})()],Ms.prototype,"editorMode",void 0),Zs([R()],Ms.prototype,"context",void 0),Zs([R()],Ms.prototype,"key",void 0),Zs([A([])],Ms.prototype,"args",void 0),Zs([R()],Ms.prototype,"defaultMessage",void 0);class Ps{static build(t){return new Ps(t)}static fromGwt(t){return new Ps(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Cs.resolveMessage(this.name,o,...t)})}}K("ft-i18n")(Ms);const Ds=Ps.build("copyBlockComponent"),Bs={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Hs=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ts extends Fs{constructor(){super(),this.addI18nContext(Ds,Bs)}render(){return io`
|
|
983
983
|
<div part="container">
|
|
984
984
|
${navigator.clipboard?io`
|
|
985
985
|
<div part="button-container">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-copy-block",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.33",
|
|
4
4
|
"description": "Copy block",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-i18n": "1.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-i18n": "1.1.33",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.33",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "25cbbfada37d7c107ea0a7742ff3230c0dc74b3b"
|
|
27
27
|
}
|