@fluid-topics/ft-search-period-filter 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.
|
@@ -1958,7 +1958,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1958
1958
|
<span class="ft-i18n">
|
|
1959
1959
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1960
1960
|
</span>
|
|
1961
|
-
`}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;uo([(0,un.redux)()],Je.prototype,"editorMode",void 0);uo([(0,dn.property)()],Je.prototype,"context",void 0);uo([(0,dn.property)()],Je.prototype,"key",void 0);uo([(0,un.jsonProperty)([])],Je.prototype,"args",void 0);uo([(0,dn.property)()],Je.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?$o:Ir}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,ad.customElement)("ft-i18n")(Je);var ld=b(R()),cd=b(q());var fn=b(R());var id=b(R());var Ea=class t extends Event{constructor(){super(t.eventName)}};Ea.eventName="search-context-clear-all-filters";var Gu=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},Aa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},sd=Symbol("registerInterval"),wa=Symbol("registerAttempts"),ju=40;function Vu(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[wa]=0,this[sd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[wa]>ju?window.clearInterval(this[sd]):(this[wa]++,this.dispatchEvent(new Aa))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Gu([(0,cd.state)()],e.prototype,"stateManager",void 0),e}var hn=class extends Vu(ld.FtLitElementRedux){};var Ra=b(R());var zt=pn.build("designedSearchPeriodFilter"),dd={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var cr=b(q());var Ht=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},ke=class extends ln(hn){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(zt,dd),this.addStore(I)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var o;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(o=this.filters)===null||o===void 0?void 0:o.filter(n=>n.key===this.metadataKey).filter(n=>n.dateFilter).map(n=>n.dateFilter).find(Boolean))}render(){var e,o,n,a;return et.html`
|
|
1961
|
+
`}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;uo([(0,un.redux)()],Je.prototype,"editorMode",void 0);uo([(0,dn.property)()],Je.prototype,"context",void 0);uo([(0,dn.property)()],Je.prototype,"key",void 0);uo([(0,un.jsonProperty)([])],Je.prototype,"args",void 0);uo([(0,dn.property)()],Je.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?$o:Ir}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,ad.customElement)("ft-i18n")(Je);var ld=b(R()),cd=b(q());var fn=b(R());var id=b(R());var Ea=class t extends Event{constructor(){super(t.eventName)}};Ea.eventName="search-context-clear-all-filters";var Gu=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},Aa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},sd=Symbol("registerInterval"),wa=Symbol("registerAttempts"),ju=40;function Vu(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[wa]=0,this[sd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[wa]>ju?window.clearInterval(this[sd]):(this[wa]++,this.dispatchEvent(new Aa))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Gu([(0,cd.state)()],e.prototype,"stateManager",void 0),e}var hn=class extends Vu(ld.FtLitElementRedux){};var Ra=b(R());var zt=pn.build("designedSearchPeriodFilter"),dd={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var cr=b(q());var Ht=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},ke=class extends ln(hn){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(zt,dd),this.addStore(I)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var o;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(o=this.filters)===null||o===void 0?void 0:o.filter(n=>n.key===this.metadataKey).filter(n=>n.dateFilter).map(n=>n.dateFilter).find(Boolean))}render(){var e,o,n,a;return et.html`
|
|
1962
1962
|
<div part="container">
|
|
1963
1963
|
<div part="header">
|
|
1964
1964
|
<ft-typography variant="overline" part="label" id="label">
|
|
@@ -2025,7 +2025,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2025
2025
|
<span class="ft-i18n">
|
|
2026
2026
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
2027
2027
|
</span>
|
|
2028
|
-
`}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:""})}};qe.elementDefinitions={};qe.styles=gd;Eo([Xt()],qe.prototype,"editorMode",void 0);Eo([x()],qe.prototype,"context",void 0);Eo([x()],qe.prototype,"key",void 0);Eo([Ae([])],qe.prototype,"args",void 0);Eo([x()],qe.prototype,"defaultMessage",void 0);var Cn=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?mn:Wr}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")(qe);var us=class t extends Event{constructor(){super(t.eventName)}};us.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},fs=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},_d=Symbol("registerInterval"),ps=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[ps]=0,this[_d]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[ps]>Cf?window.clearInterval(this[_d]):(this[ps]++,this.dispatchEvent(new fs))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Of([W()],e.prototype,"stateManager",void 0),e}var En=class extends Ef(Jt){};var Bt=Cn.build("designedSearchPeriodFilter"),Td={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var Mt=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},Ne=class extends On(En){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(Bt,Td),this.addStore(M)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(n=>n.key===this.metadataKey).filter(n=>n.dateFilter).map(n=>n.dateFilter).find(Boolean))}render(){var e,r,n,i;return F`
|
|
2028
|
+
`}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:""})}};qe.elementDefinitions={};qe.styles=gd;Eo([Xt()],qe.prototype,"editorMode",void 0);Eo([x()],qe.prototype,"context",void 0);Eo([x()],qe.prototype,"key",void 0);Eo([Ae([])],qe.prototype,"args",void 0);Eo([x()],qe.prototype,"defaultMessage",void 0);var Cn=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?mn:Wr}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")(qe);var us=class t extends Event{constructor(){super(t.eventName)}};us.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},fs=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},_d=Symbol("registerInterval"),ps=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[ps]=0,this[_d]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[ps]>Cf?window.clearInterval(this[_d]):(this[ps]++,this.dispatchEvent(new fs))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Of([W()],e.prototype,"stateManager",void 0),e}var En=class extends Ef(Jt){};var Bt=Cn.build("designedSearchPeriodFilter"),Td={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var Mt=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},Ne=class extends On(En){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(Bt,Td),this.addStore(M)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(n=>n.key===this.metadataKey).filter(n=>n.dateFilter).map(n=>n.dateFilter).find(Boolean))}render(){var e,r,n,i;return F`
|
|
2029
2029
|
<div part="container">
|
|
2030
2030
|
<div part="header">
|
|
2031
2031
|
<ft-typography variant="overline" part="label" id="label">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-period-filter",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.21",
|
|
4
4
|
"description": "Search period filter 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.21",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.3.21",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.3.21",
|
|
25
|
+
"@fluid-topics/ft-search-context": "1.3.21",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.3.21",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.3.21",
|
|
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": "fd30595cd89395cbcac48ca8146aecef2e9b8673"
|
|
34
34
|
}
|