@fluid-topics/ft-search-saved-searches 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.
@@ -1600,7 +1600,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1600
1600
  <span class="ft-i18n">
1601
1601
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1602
1602
  </span>
1603
- `}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:""})}};Ye.elementDefinitions={};Ye.styles=Ol;Vr([(0,Zo.redux)()],Ye.prototype,"editorMode",void 0);Vr([(0,Ko.property)()],Ye.prototype,"context",void 0);Vr([(0,Ko.property)()],Ye.prototype,"key",void 0);Vr([(0,Zo.jsonProperty)([])],Ye.prototype,"args",void 0);Vr([(0,Ko.property)()],Ye.prototype,"defaultMessage",void 0);var qo=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?bo:fr}constructor(t,o=!1){this.name=t,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,Tl.customElement)("ft-i18n")(Ye);var ge=qo.build("savedSearchesComponent"),Il={keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only",groupLabel:"Saved searches"};var pa=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}},_l=new pa;var Nt=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Te=class extends jo(zo){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.requiredRole=re.SAVED_SEARCH_USER,this.addStore(L),this.addStore(Oe),this.addI18nContext(ge,Il)}render(){let t=zt.get();return He(this.userHasRights&&!this.isEmpty,()=>{var o;return ze.html`
1603
+ `}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:""})}};Ye.elementDefinitions={};Ye.styles=Ol;Vr([(0,Zo.redux)()],Ye.prototype,"editorMode",void 0);Vr([(0,Ko.property)()],Ye.prototype,"context",void 0);Vr([(0,Ko.property)()],Ye.prototype,"key",void 0);Vr([(0,Zo.jsonProperty)([])],Ye.prototype,"args",void 0);Vr([(0,Ko.property)()],Ye.prototype,"defaultMessage",void 0);var qo=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?bo:fr}constructor(t,o=!1){this.name=t,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,Tl.customElement)("ft-i18n")(Ye);var ge=qo.build("savedSearchesComponent"),Il={keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only",groupLabel:"Saved searches"};var pa=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}},_l=new pa;var Nt=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Te=class extends jo(zo){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.requiredRole=re.SAVED_SEARCH_USER,this.addStore(L),this.addStore(Oe),this.addI18nContext(ge,Il)}render(){let t=zt.get();return He(this.userHasRights&&!this.isEmpty,()=>{var o;return ze.html`
1604
1604
  <div part="container" role="group" aria-label="${ge.messages.groupLabel()}">
1605
1605
  ${(0,Pl.repeat)((o=this.savedSearches)!==null&&o!==void 0?o:[],n=>n.id,n=>{let a=this.toFtSearchRequest(n.searchRequest);return a===void 0?ze.nothing:ze.html`
1606
1606
  <a href="${t?.serialize(a)}"
@@ -1667,7 +1667,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1667
1667
  <span class="ft-i18n">
1668
1668
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1669
1669
  </span>
1670
- `}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:""})}};Ze.elementDefinitions={};Ze.styles=ud;fo([ht()],Ze.prototype,"editorMode",void 0);fo([C()],Ze.prototype,"context",void 0);fo([C()],Ze.prototype,"key",void 0);fo([Qe([])],Ze.prototype,"args",void 0);fo([C()],Ze.prototype,"defaultMessage",void 0);var pn=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?rn:kr}constructor(e,o=!1){this.name=e,this.custom=o,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)})}};ee("ft-i18n")(Ze);var xe=pn.build("savedSearchesComponent"),gd={keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only",groupLabel:"Saved searches"};var rs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}},bd=new rs;var Lt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},_e=class extends un(cn){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.requiredRole=se.SAVED_SEARCH_USER,this.addStore(B),this.addStore(Ce),this.addI18nContext(xe,gd)}render(){let e=qt.get();return Be(this.userHasRights&&!this.isEmpty,()=>{var o;return U`
1670
+ `}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:""})}};Ze.elementDefinitions={};Ze.styles=ud;fo([ht()],Ze.prototype,"editorMode",void 0);fo([C()],Ze.prototype,"context",void 0);fo([C()],Ze.prototype,"key",void 0);fo([Qe([])],Ze.prototype,"args",void 0);fo([C()],Ze.prototype,"defaultMessage",void 0);var pn=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?rn:kr}constructor(e,o=!1){this.name=e,this.custom=o,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})}};ee("ft-i18n")(Ze);var xe=pn.build("savedSearchesComponent"),gd={keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only",groupLabel:"Saved searches"};var rs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}},bd=new rs;var Lt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},_e=class extends un(cn){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.requiredRole=se.SAVED_SEARCH_USER,this.addStore(B),this.addStore(Ce),this.addI18nContext(xe,gd)}render(){let e=qt.get();return Be(this.userHasRights&&!this.isEmpty,()=>{var o;return U`
1671
1671
  <div part="container" role="group" aria-label="${xe.messages.groupLabel()}">
1672
1672
  ${wo((o=this.savedSearches)!==null&&o!==void 0?o:[],n=>n.id,n=>{let i=this.toFtSearchRequest(n.searchRequest);return i===void 0?W:U`
1673
1673
  <a href="${e?.serialize(i)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-saved-searches",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
4
4
  "description": "Displays the saved searches",
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-search-context": "1.3.19",
23
- "@fluid-topics/ft-wc-utils": "1.3.19",
22
+ "@fluid-topics/ft-search-context": "1.3.21",
23
+ "@fluid-topics/ft-wc-utils": "1.3.21",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fluid-topics/public-api": "1.0.102"
28
28
  },
29
- "gitHead": "d3142bbeffbc47e550279b0d5d4e23ce72aaf514"
29
+ "gitHead": "fd30595cd89395cbcac48ca8146aecef2e9b8673"
30
30
  }