@fluid-topics/ft-search-bar 1.0.34 → 1.0.35

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.
@@ -790,7 +790,6 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
790
790
  <slot @slotchange=${this.onSlotChange}
791
791
  @change=${this.onChange}
792
792
  @keydown=${this.onKeyDown}
793
- @focusin=${this.focusCurrentValue}
794
793
  ></slot>
795
794
  `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}ai.elementDefinitions={},ai.styles=ri,li([o.property()],ai.prototype,"name",void 0),li([o.queryAssignedElements()],ai.prototype,"radioButtons",void 0),e.customElement("ft-radio")(ni),e.customElement("ft-radio-group")(ai);const ci={borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariableFactory.external(Ct.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Ct.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Ct.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Ct.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Ct.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Ct.textTransform,"Body2 typography")},hi=i.css`
796
795
  .ft-filter-level--container {
@@ -923,7 +923,6 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
923
923
  <slot @slotchange=${this.onSlotChange}
924
924
  @change=${this.onChange}
925
925
  @keydown=${this.onKeyDown}
926
- @focusin=${this.focusCurrentValue}
927
926
  ></slot>
928
927
  `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}yo.elementDefinitions={},yo.styles=go,xo([o()],yo.prototype,"name",void 0),xo([c()],yo.prototype,"radioButtons",void 0),d("ft-radio")(vo),d("ft-radio-group")(yo);const mo={borderRadiusM:$t.external(kt.borderRadiusM,"Design system"),colorOutline:$t.external(kt.colorOutline,"Design system"),colorOnSurface:$t.external(kt.colorOnSurface,"Design system"),colorOnSurfaceMedium:$t.external(kt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:$t.external(kt.colorOnSurfaceDisabled,"Design system"),colorPrimary:$t.external(kt.colorPrimary,"Design system"),colorOnPrimary:$t.external(kt.colorOnPrimary,"Design system"),fontFamily:$t.external(De.fontFamily,"Body2 typography"),fontSize:$t.external(De.fontSize,"Body2 typography"),fontWeight:$t.external(De.fontWeight,"Body2 typography"),letterSpacing:$t.external(De.letterSpacing,"Body2 typography"),lineHeight:$t.external(De.lineHeight,"Body2 typography"),textTransform:$t.external(De.textTransform,"Body2 typography")},$o=m`
929
928
  .ft-filter-level--container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-bar",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
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.34",
23
- "@fluid-topics/ft-button": "1.0.34",
24
- "@fluid-topics/ft-chip": "1.0.34",
25
- "@fluid-topics/ft-filter": "1.0.34",
26
- "@fluid-topics/ft-icon": "1.0.34",
27
- "@fluid-topics/ft-select": "1.0.34",
28
- "@fluid-topics/ft-size-watcher": "1.0.34",
29
- "@fluid-topics/ft-skeleton": "1.0.34",
30
- "@fluid-topics/ft-snap-scroll": "1.0.34",
31
- "@fluid-topics/ft-tooltip": "1.0.34",
32
- "@fluid-topics/ft-typography": "1.0.34",
33
- "@fluid-topics/ft-wc-utils": "1.0.34",
22
+ "@fluid-topics/ft-accordion": "1.0.35",
23
+ "@fluid-topics/ft-button": "1.0.35",
24
+ "@fluid-topics/ft-chip": "1.0.35",
25
+ "@fluid-topics/ft-filter": "1.0.35",
26
+ "@fluid-topics/ft-icon": "1.0.35",
27
+ "@fluid-topics/ft-select": "1.0.35",
28
+ "@fluid-topics/ft-size-watcher": "1.0.35",
29
+ "@fluid-topics/ft-skeleton": "1.0.35",
30
+ "@fluid-topics/ft-snap-scroll": "1.0.35",
31
+ "@fluid-topics/ft-tooltip": "1.0.35",
32
+ "@fluid-topics/ft-typography": "1.0.35",
33
+ "@fluid-topics/ft-wc-utils": "1.0.35",
34
34
  "lit": "2.7.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@fluid-topics/public-api": "1.0.38"
38
38
  },
39
- "gitHead": "58212a7e56bb7f81046ebf1c0ac93a7dfca9d279"
39
+ "gitHead": "9d95cd4787fe699293f52b43352ae1594811b081"
40
40
  }