@fluid-topics/ft-search-locale-selector 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.
@@ -951,7 +951,6 @@ const se=Symbol.for(""),ne=t=>{if((null==t?void 0:t.r)===se)return null==t?void
951
951
  <slot @slotchange=${this.onSlotChange}
952
952
  @change=${this.onChange}
953
953
  @keydown=${this.onKeyDown}
954
- @focusin=${this.focusCurrentValue}
955
954
  ></slot>
956
955
  `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((i=>i.checked=t.detail.value===i.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let i=this.findFtRadio(t),e=this.radioButtons.indexOf(i)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let i=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[i>this.radioButtons.length-1?0:i].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)}}Pe.elementDefinitions={},Pe.styles=Fe,_e([s.property()],Pe.prototype,"name",void 0),_e([s.queryAssignedElements()],Pe.prototype,"radioButtons",void 0),i.customElement("ft-radio")(Ue),i.customElement("ft-radio-group")(Pe);const He={borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:i.FtCssVariableFactory.external(P.fontFamily,"Body2 typography"),fontSize:i.FtCssVariableFactory.external(P.fontSize,"Body2 typography"),fontWeight:i.FtCssVariableFactory.external(P.fontWeight,"Body2 typography"),letterSpacing:i.FtCssVariableFactory.external(P.letterSpacing,"Body2 typography"),lineHeight:i.FtCssVariableFactory.external(P.lineHeight,"Body2 typography"),textTransform:i.FtCssVariableFactory.external(P.textTransform,"Body2 typography")},We=e.css`
957
956
  .ft-filter-level--container {
@@ -1078,7 +1078,6 @@ class kn extends Rr{constructor(t){if(super(t),this.et=rt,t.type!==Er)throw Erro
1078
1078
  <slot @slotchange=${this.onSlotChange}
1079
1079
  @change=${this.onChange}
1080
1080
  @keydown=${this.onKeyDown}
1081
- @focusin=${this.focusCurrentValue}
1082
1081
  ></slot>
1083
1082
  `}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)}}Gn.elementDefinitions={},Gn.styles=Jn,Xn([s()],Gn.prototype,"name",void 0),Xn([u()],Gn.prototype,"radioButtons",void 0),v("ft-radio")(qn),v("ft-radio-group")(Gn);const Yn={borderRadiusM:kt.external(jt.borderRadiusM,"Design system"),colorOutline:kt.external(jt.colorOutline,"Design system"),colorOnSurface:kt.external(jt.colorOnSurface,"Design system"),colorOnSurfaceMedium:kt.external(jt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:kt.external(jt.colorOnSurfaceDisabled,"Design system"),colorPrimary:kt.external(jt.colorPrimary,"Design system"),colorOnPrimary:kt.external(jt.colorOnPrimary,"Design system"),fontFamily:kt.external(go.fontFamily,"Body2 typography"),fontSize:kt.external(go.fontSize,"Body2 typography"),fontWeight:kt.external(go.fontWeight,"Body2 typography"),letterSpacing:kt.external(go.letterSpacing,"Body2 typography"),lineHeight:kt.external(go.lineHeight,"Body2 typography"),textTransform:kt.external(go.textTransform,"Body2 typography")},Qn=O`
1084
1083
  .ft-filter-level--container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-locale-selector",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
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.0.34",
23
- "@fluid-topics/ft-i18n": "1.0.34",
24
- "@fluid-topics/ft-icon": "1.0.34",
25
- "@fluid-topics/ft-search-context": "1.0.34",
26
- "@fluid-topics/ft-tooltip": "1.0.34",
27
- "@fluid-topics/ft-wc-utils": "1.0.34",
22
+ "@fluid-topics/ft-filter": "1.0.35",
23
+ "@fluid-topics/ft-i18n": "1.0.35",
24
+ "@fluid-topics/ft-icon": "1.0.35",
25
+ "@fluid-topics/ft-search-context": "1.0.35",
26
+ "@fluid-topics/ft-tooltip": "1.0.35",
27
+ "@fluid-topics/ft-wc-utils": "1.0.35",
28
28
  "lit": "2.7.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@fluid-topics/public-api": "1.0.38"
32
32
  },
33
- "gitHead": "58212a7e56bb7f81046ebf1c0ac93a7dfca9d279"
33
+ "gitHead": "9d95cd4787fe699293f52b43352ae1594811b081"
34
34
  }