@fluid-topics/ft-search-locale-selector 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.
|
@@ -1969,7 +1969,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1969
1969
|
<span class="ft-i18n">
|
|
1970
1970
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1971
1971
|
</span>
|
|
1972
|
-
`}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:""})}};Je.elementDefinitions={};Je.styles=Cl;so([(0,sn.redux)()],Je.prototype,"editorMode",void 0);so([(0,an.property)()],Je.prototype,"context",void 0);so([(0,an.property)()],Je.prototype,"key",void 0);so([(0,sn.jsonProperty)([])],Je.prototype,"args",void 0);so([(0,an.property)()],Je.prototype,"defaultMessage",void 0);var ln=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?Po:Lr}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return l=>({context:this.name,key:i,custom:this.custom,args:typeof l=="function"?void 0:l,argsProvider:typeof l=="function"?l: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,id.customElement)("ft-i18n")(Je);var cd=b(R()),dd=b(q());var cn=b(R());var sd=b(R());var wa=class t extends Event{constructor(){super(t.eventName)}};wa.eventName="search-context-clear-all-filters";var ju=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ra=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ld=Symbol("registerInterval"),Aa=Symbol("registerAttempts"),Vu=40;function Ku(t){class e extends t{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[Aa]=0,this[ld]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Aa]>Vu?window.clearInterval(this[ld]):(this[Aa]++,this.dispatchEvent(new Ra))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ju([(0,dd.state)()],e.prototype,"stateManager",void 0),e}var dn=class extends Ku(cd.FtLitElementRedux){};var La=b(R());var un=ln.build("designedSearchLocaleSelector"),ud={label:"Select a language",allLanguagesWarningMessage:"All languages is only recommended when searching for language-agnostic keywords such as product references"};var pn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},dt=class extends on(dn){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(un,ud)}render(){var e,o,n;return((o=(e=this.locales)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:0)<=1?sr.nothing:sr.html`
|
|
1972
|
+
`}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:""})}};Je.elementDefinitions={};Je.styles=Cl;so([(0,sn.redux)()],Je.prototype,"editorMode",void 0);so([(0,an.property)()],Je.prototype,"context",void 0);so([(0,an.property)()],Je.prototype,"key",void 0);so([(0,sn.jsonProperty)([])],Je.prototype,"args",void 0);so([(0,an.property)()],Je.prototype,"defaultMessage",void 0);var ln=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?Po:Lr}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return l=>({context:this.name,key:i,custom:this.custom,args:typeof l=="function"?void 0:l,argsProvider:typeof l=="function"?l: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,id.customElement)("ft-i18n")(Je);var cd=b(R()),dd=b(q());var cn=b(R());var sd=b(R());var wa=class t extends Event{constructor(){super(t.eventName)}};wa.eventName="search-context-clear-all-filters";var ju=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ra=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ld=Symbol("registerInterval"),Aa=Symbol("registerAttempts"),Vu=40;function Ku(t){class e extends t{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[Aa]=0,this[ld]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Aa]>Vu?window.clearInterval(this[ld]):(this[Aa]++,this.dispatchEvent(new Ra))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ju([(0,dd.state)()],e.prototype,"stateManager",void 0),e}var dn=class extends Ku(cd.FtLitElementRedux){};var La=b(R());var un=ln.build("designedSearchLocaleSelector"),ud={label:"Select a language",allLanguagesWarningMessage:"All languages is only recommended when searching for language-agnostic keywords such as product references"};var pn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;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--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},dt=class extends on(dn){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(un,ud)}render(){var e,o,n;return((o=(e=this.locales)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:0)<=1?sr.nothing:sr.html`
|
|
1973
1973
|
<div part="container">
|
|
1974
1974
|
<div part="header">
|
|
1975
1975
|
<ft-typography variant="overline" part="label" id="radio-group-label">
|
|
@@ -2036,7 +2036,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2036
2036
|
<span class="ft-i18n">
|
|
2037
2037
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
2038
2038
|
</span>
|
|
2039
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ze.elementDefinitions={};Ze.styles=bd;Co([qt()],Ze.prototype,"editorMode",void 0);Co([v()],Ze.prototype,"context",void 0);Co([v()],Ze.prototype,"key",void 0);Co([Ae([])],Ze.prototype,"args",void 0);Co([v()],Ze.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?hn:Hr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};q("ft-i18n")(Ze);var ps=class t extends Event{constructor(){super(t.eventName)}};ps.eventName="search-context-clear-all-filters";var Of=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},hs=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},_d=Symbol("registerInterval"),fs=Symbol("registerAttempts"),Cf=40;function Ef(t){class e extends t{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[fs]=0,this[_d]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[fs]>Cf?window.clearInterval(this[_d]):(this[fs]++,this.dispatchEvent(new hs))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Of([H()],e.prototype,"stateManager",void 0),e}var On=class extends Ef(Xt){};var Cn=Sn.build("designedSearchLocaleSelector"),Td={label:"Select a language",allLanguagesWarningMessage:"All languages is only recommended when searching for language-agnostic keywords such as product references"};var En=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},it=class extends vn(On){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(Cn,Td)}render(){var e,r,n;return((r=(e=this.locales)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)<=1?W:F`
|
|
2039
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ze.elementDefinitions={};Ze.styles=bd;Co([qt()],Ze.prototype,"editorMode",void 0);Co([v()],Ze.prototype,"context",void 0);Co([v()],Ze.prototype,"key",void 0);Co([Ae([])],Ze.prototype,"args",void 0);Co([v()],Ze.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?hn:Hr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i})}};q("ft-i18n")(Ze);var ps=class t extends Event{constructor(){super(t.eventName)}};ps.eventName="search-context-clear-all-filters";var Of=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},hs=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},_d=Symbol("registerInterval"),fs=Symbol("registerAttempts"),Cf=40;function Ef(t){class e extends t{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[fs]=0,this[_d]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[fs]>Cf?window.clearInterval(this[_d]):(this[fs]++,this.dispatchEvent(new hs))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Of([H()],e.prototype,"stateManager",void 0),e}var On=class extends Ef(Xt){};var Cn=Sn.build("designedSearchLocaleSelector"),Td={label:"Select a language",allLanguagesWarningMessage:"All languages is only recommended when searching for language-agnostic keywords such as product references"};var En=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},it=class extends vn(On){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(Cn,Td)}render(){var e,r,n;return((r=(e=this.locales)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)<=1?W:F`
|
|
2040
2040
|
<div part="container">
|
|
2041
2041
|
<div part="header">
|
|
2042
2042
|
<ft-typography variant="overline" part="label" id="radio-group-label">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-locale-selector",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
4
4
|
"description": "Search locale selector for integrated fluid-topics search pages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-filter": "1.3.
|
|
23
|
-
"@fluid-topics/ft-i18n": "1.3.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.3.
|
|
25
|
-
"@fluid-topics/ft-search-context": "1.3.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "1.3.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-filter": "1.3.20",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.3.20",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.3.20",
|
|
25
|
+
"@fluid-topics/ft-search-context": "1.3.20",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.3.20",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.3.20",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@fluid-topics/public-api": "1.0.102"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "1bb0c50fc5a4fdb4f14d22b728ab719faddfc15e"
|
|
34
34
|
}
|