@fluid-topics/ft-filter 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.
- package/build/ft-filter.light.js +0 -1
- package/build/ft-filter.min.js +0 -1
- package/package.json +10 -10
package/build/ft-filter.light.js
CHANGED
|
@@ -773,7 +773,6 @@ const V=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
|
|
|
773
773
|
<slot @slotchange=${this.onSlotChange}
|
|
774
774
|
@change=${this.onChange}
|
|
775
775
|
@keydown=${this.onKeyDown}
|
|
776
|
-
@focusin=${this.focusCurrentValue}
|
|
777
776
|
></slot>
|
|
778
777
|
`}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)}}de.elementDefinitions={},de.styles=fe,ce([o.property()],de.prototype,"name",void 0),ce([o.queryAssignedElements()],de.prototype,"radioButtons",void 0),i.customElement("ft-radio")(pe),i.customElement("ft-radio-group")(de);const ue={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(jt.fontFamily,"Body2 typography"),fontSize:i.FtCssVariableFactory.external(jt.fontSize,"Body2 typography"),fontWeight:i.FtCssVariableFactory.external(jt.fontWeight,"Body2 typography"),letterSpacing:i.FtCssVariableFactory.external(jt.letterSpacing,"Body2 typography"),lineHeight:i.FtCssVariableFactory.external(jt.lineHeight,"Body2 typography"),textTransform:i.FtCssVariableFactory.external(jt.textTransform,"Body2 typography")},ve=e.css`
|
|
779
778
|
.ft-filter-level--container {
|
package/build/ft-filter.min.js
CHANGED
|
@@ -894,7 +894,6 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
894
894
|
<slot @slotchange=${this.onSlotChange}
|
|
895
895
|
@change=${this.onChange}
|
|
896
896
|
@keydown=${this.onKeyDown}
|
|
897
|
-
@focusin=${this.focusCurrentValue}
|
|
898
897
|
></slot>
|
|
899
898
|
`}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)}}wo.elementDefinitions={},wo.styles=mo,$o([o()],wo.prototype,"name",void 0),$o([h()],wo.prototype,"radioButtons",void 0),d("ft-radio")(go),d("ft-radio-group")(wo);const ko={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(we.fontFamily,"Body2 typography"),fontSize:$t.external(we.fontSize,"Body2 typography"),fontWeight:$t.external(we.fontWeight,"Body2 typography"),letterSpacing:$t.external(we.letterSpacing,"Body2 typography"),lineHeight:$t.external(we.lineHeight,"Body2 typography"),textTransform:$t.external(we.textTransform,"Body2 typography")},Oo=m`
|
|
900
899
|
.ft-filter-level--container {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-filter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "Flat selector for multivalued or monovalued filters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "1.0.
|
|
23
|
-
"@fluid-topics/ft-checkbox": "1.0.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.0.
|
|
25
|
-
"@fluid-topics/ft-radio": "1.0.
|
|
26
|
-
"@fluid-topics/ft-ripple": "1.0.
|
|
27
|
-
"@fluid-topics/ft-snap-scroll": "1.0.
|
|
28
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
29
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-button": "1.0.35",
|
|
23
|
+
"@fluid-topics/ft-checkbox": "1.0.35",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.0.35",
|
|
25
|
+
"@fluid-topics/ft-radio": "1.0.35",
|
|
26
|
+
"@fluid-topics/ft-ripple": "1.0.35",
|
|
27
|
+
"@fluid-topics/ft-snap-scroll": "1.0.35",
|
|
28
|
+
"@fluid-topics/ft-typography": "1.0.35",
|
|
29
|
+
"@fluid-topics/ft-wc-utils": "1.0.35",
|
|
30
30
|
"lit": "2.7.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "9d95cd4787fe699293f52b43352ae1594811b081"
|
|
33
33
|
}
|