@fluid-topics/ft-search-bar 1.0.48 → 1.0.50

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.
@@ -104,7 +104,7 @@ var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOp
104
104
  display: inline-block;
105
105
  width: 0;
106
106
  }
107
- `;class It{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let s=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>s=s.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),s}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}var Lt,Dt,jt;const Ut=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(jt=null===(Dt=null===(Lt=window.safari)||void 0===Lt?void 0:Lt.pushNotification)||void 0===Dt?void 0:Dt.toString())&&void 0!==jt?jt:""),Pt=1,At=2,Tt=t=>(...e)=>({_$litDirective$:t,values:e});
107
+ `;class It{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let s=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>s=s.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),s}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}var Lt,Dt,jt;window.ftReduxStores||(window.ftReduxStores={});const Ut=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(jt=null===(Dt=null===(Lt=window.safari)||void 0===Lt?void 0:Lt.pushNotification)||void 0===Dt?void 0:Dt.toString())&&void 0!==jt?jt:""),Pt=1,At=2,Tt=t=>(...e)=>({_$litDirective$:t,values:e});
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2017 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-bar",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "Search bar component using Fluid Topics public API",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,22 +19,22 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-accordion": "1.0.48",
23
- "@fluid-topics/ft-button": "1.0.48",
24
- "@fluid-topics/ft-chip": "1.0.48",
25
- "@fluid-topics/ft-filter": "1.0.48",
26
- "@fluid-topics/ft-icon": "1.0.48",
27
- "@fluid-topics/ft-select": "1.0.48",
28
- "@fluid-topics/ft-size-watcher": "1.0.48",
29
- "@fluid-topics/ft-skeleton": "1.0.48",
30
- "@fluid-topics/ft-snap-scroll": "1.0.48",
31
- "@fluid-topics/ft-tooltip": "1.0.48",
32
- "@fluid-topics/ft-typography": "1.0.48",
33
- "@fluid-topics/ft-wc-utils": "1.0.48",
22
+ "@fluid-topics/ft-accordion": "1.0.50",
23
+ "@fluid-topics/ft-button": "1.0.50",
24
+ "@fluid-topics/ft-chip": "1.0.50",
25
+ "@fluid-topics/ft-filter": "1.0.50",
26
+ "@fluid-topics/ft-icon": "1.0.50",
27
+ "@fluid-topics/ft-select": "1.0.50",
28
+ "@fluid-topics/ft-size-watcher": "1.0.50",
29
+ "@fluid-topics/ft-skeleton": "1.0.50",
30
+ "@fluid-topics/ft-snap-scroll": "1.0.50",
31
+ "@fluid-topics/ft-tooltip": "1.0.50",
32
+ "@fluid-topics/ft-typography": "1.0.50",
33
+ "@fluid-topics/ft-wc-utils": "1.0.50",
34
34
  "lit": "2.7.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@fluid-topics/public-api": "1.0.39"
38
38
  },
39
- "gitHead": "a07dca06ede4358afbfe00c06b1ea1da90e3ff51"
39
+ "gitHead": "a5089c2cb78f1b703cfcaa915b24938d58abd420"
40
40
  }