@fluid-topics/ft-search-results-spellcheck 1.3.19 → 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.
|
@@ -139,7 +139,7 @@ Also for action icons.`,a.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
139
139
|
<span class="ft-i18n">
|
|
140
140
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
141
141
|
</span>
|
|
142
|
-
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};re.elementDefinitions={};re.styles=mn;ft([(0,Xt.redux)()],re.prototype,"editorMode",void 0);ft([(0,Qt.property)()],re.prototype,"context",void 0);ft([(0,Qt.property)()],re.prototype,"key",void 0);ft([(0,Xt.jsonProperty)([])],re.prototype,"args",void 0);ft([(0,Qt.property)()],re.prototype,"defaultMessage",void 0);var Jt=class r{static build(t){return new r(t)}static buildCustom(t){return new r(t,!0)}static fromGwt(t){return new r(t)}get service(){return this.custom?wt:qe}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return l=>({context:this.name,key:s,custom:this.custom,args:typeof l=="function"?void 0:l,argsProvider:typeof l=="function"?l: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)})}};(0,ei.customElement)("ft-i18n")(re);var oi=A(P()),ni=A(J());var er=A(P());var ti=A(P());var Yr=class r extends Event{constructor(){super(r.eventName)}};Yr.eventName="search-context-clear-all-filters";var bs=function(r,t,o,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(i<3?l(s):i>3?l(t,o,s):l(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ri=Symbol("registerInterval"),Qr=Symbol("registerAttempts"),xs=40;function vs(r){class t extends r{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Qr]=0,this[ri]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Qr]>xs?window.clearInterval(this[ri]):(this[Qr]++,this.dispatchEvent(new Xr))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return bs([(0,ni.state)()],t.prototype,"stateManager",void 0),t}var tr=class extends vs(oi.FtLitElementRedux){};var rr=Jt.build("integratedSpellcheckComponent"),ai={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var Jr=function(r,t,o,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(i<3?l(s):i>3?l(t,o,s):l(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},le=class extends qt(tr){constructor(){super(),this.addI18nContext(rr,ai)}render(){return this.autocorrect&&this.request&&this.autocorrectLink?or.html`
|
|
142
|
+
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};re.elementDefinitions={};re.styles=mn;ft([(0,Xt.redux)()],re.prototype,"editorMode",void 0);ft([(0,Qt.property)()],re.prototype,"context",void 0);ft([(0,Qt.property)()],re.prototype,"key",void 0);ft([(0,Xt.jsonProperty)([])],re.prototype,"args",void 0);ft([(0,Qt.property)()],re.prototype,"defaultMessage",void 0);var Jt=class r{static build(t){return new r(t)}static buildCustom(t){return new r(t,!0)}static fromGwt(t){return new r(t)}get service(){return this.custom?wt:qe}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return l=>({context:this.name,key:s,custom:this.custom,args:typeof l=="function"?void 0:l,argsProvider:typeof l=="function"?l: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})}};(0,ei.customElement)("ft-i18n")(re);var oi=A(P()),ni=A(J());var er=A(P());var ti=A(P());var Yr=class r extends Event{constructor(){super(r.eventName)}};Yr.eventName="search-context-clear-all-filters";var bs=function(r,t,o,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(i<3?l(s):i>3?l(t,o,s):l(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ri=Symbol("registerInterval"),Qr=Symbol("registerAttempts"),xs=40;function vs(r){class t extends r{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Qr]=0,this[ri]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Qr]>xs?window.clearInterval(this[ri]):(this[Qr]++,this.dispatchEvent(new Xr))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return bs([(0,ni.state)()],t.prototype,"stateManager",void 0),t}var tr=class extends vs(oi.FtLitElementRedux){};var rr=Jt.build("integratedSpellcheckComponent"),ai={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var Jr=function(r,t,o,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(i<3?l(s):i>3?l(t,o,s):l(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},le=class extends qt(tr){constructor(){super(),this.addI18nContext(rr,ai)}render(){return this.autocorrect&&this.request&&this.autocorrectLink?or.html`
|
|
143
143
|
<div class="ft-search-results-spellcheck--spellcheck">
|
|
144
144
|
<div>
|
|
145
145
|
<ft-typography variant="subtitle1">
|
|
@@ -206,7 +206,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
206
206
|
<span class="ft-i18n">
|
|
207
207
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
208
208
|
</span>
|
|
209
|
-
`}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:""})}};de.elementDefinitions={};de.styles=$c;Sr([tt()],de.prototype,"editorMode",void 0);Sr([L()],de.prototype,"context",void 0);Sr([L()],de.prototype,"key",void 0);Sr([ye([])],de.prototype,"args",void 0);Sr([L()],de.prototype,"defaultMessage",void 0);var yo=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?so:Vt}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)})}};Oe("ft-i18n")(de);var qa=class r extends Event{constructor(){super(r.eventName)}};qa.eventName="search-context-clear-all-filters";var np=function(r,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(r,e,o,n);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},Qa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Qc=Symbol("registerInterval"),Ya=Symbol("registerAttempts"),ap=40;function ip(r){class e extends r{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ya]=0,this[Qc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ya]>ap?window.clearInterval(this[Qc]):(this[Ya]++,this.dispatchEvent(new Qa))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return np([ae()],e.prototype,"stateManager",void 0),e}var go=class extends ip(ot){};var mo=yo.build("integratedSpellcheckComponent"),Jc={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var Ja=function(r,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(r,e,o,n);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},Ne=class extends ho(go){constructor(){super(),this.addI18nContext(mo,Jc)}render(){return this.autocorrect&&this.request&&this.autocorrectLink?pe`
|
|
209
|
+
`}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:""})}};de.elementDefinitions={};de.styles=$c;Sr([tt()],de.prototype,"editorMode",void 0);Sr([L()],de.prototype,"context",void 0);Sr([L()],de.prototype,"key",void 0);Sr([ye([])],de.prototype,"args",void 0);Sr([L()],de.prototype,"defaultMessage",void 0);var yo=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?so:Vt}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})}};Oe("ft-i18n")(de);var qa=class r extends Event{constructor(){super(r.eventName)}};qa.eventName="search-context-clear-all-filters";var np=function(r,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(r,e,o,n);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},Qa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Qc=Symbol("registerInterval"),Ya=Symbol("registerAttempts"),ap=40;function ip(r){class e extends r{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ya]=0,this[Qc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ya]>ap?window.clearInterval(this[Qc]):(this[Ya]++,this.dispatchEvent(new Qa))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return np([ae()],e.prototype,"stateManager",void 0),e}var go=class extends ip(ot){};var mo=yo.build("integratedSpellcheckComponent"),Jc={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var Ja=function(r,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(r,e,o,n);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},Ne=class extends ho(go){constructor(){super(),this.addI18nContext(mo,Jc)}render(){return this.autocorrect&&this.request&&this.autocorrectLink?pe`
|
|
210
210
|
<div class="ft-search-results-spellcheck--spellcheck">
|
|
211
211
|
<div>
|
|
212
212
|
<ft-typography variant="subtitle1">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-results-spellcheck",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
4
4
|
"description": "Spellcheck component",
|
|
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-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.3.20",
|
|
23
23
|
"@fluid-topics/public-api": "1.0.102",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "1bb0c50fc5a4fdb4f14d22b728ab719faddfc15e"
|
|
27
27
|
}
|