@fluid-topics/ft-search-selected-facets 1.1.55 → 1.1.57
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.
|
@@ -1166,13 +1166,13 @@ const jt=Symbol.for(""),Mt=t=>{if(t?.r===jt)return t?._$litStatic$},_t=t=>({_$li
|
|
|
1166
1166
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1167
1167
|
background-color: ${Kr};
|
|
1168
1168
|
}
|
|
1169
|
-
`;var Fr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Tr extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Hr extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return o.html`
|
|
1169
|
+
`;var Fr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Tr extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Hr extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1,this.tabIndex=-1,this.role="radio"}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return o.html`
|
|
1170
1170
|
<div class="${n.classMap(t)}">
|
|
1171
1171
|
<div class="ft-radio--box-container">
|
|
1172
1172
|
<ft-ripple
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1173
|
+
?disabled=${this.disabled}
|
|
1174
|
+
?primary=${this.checked}
|
|
1175
|
+
unbounded>
|
|
1176
1176
|
</ft-ripple>
|
|
1177
1177
|
<div class="ft-radio--box">
|
|
1178
1178
|
</div>
|
|
@@ -1191,16 +1191,16 @@ const jt=Symbol.for(""),Mt=t=>{if(t?.r===jt)return t?._$litStatic$},_t=t=>({_$li
|
|
|
1191
1191
|
</ft-typography>
|
|
1192
1192
|
</label>
|
|
1193
1193
|
</div>
|
|
1194
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Tr(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Tr(this.value,this.checked))
|
|
1194
|
+
`}update(t){super.update(t),t.has("checked")&&!t.has("aria-checked")&&(this.checked?(this.setAttribute("aria-checked","true"),this.tabIndex=0):(this.setAttribute("aria-checked","false"),this.tabIndex=-1))}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Tr(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Tr(this.value,this.checked))}}Hr.elementDefinitions={"ft-ripple":lt,"ft-typography":yo},Hr.styles=Br,Fr([r.property()],Hr.prototype,"value",void 0),Fr([r.property()],Hr.prototype,"name",void 0),Fr([r.property({type:Boolean,reflect:!0})],Hr.prototype,"checked",void 0),Fr([r.property({type:Boolean})],Hr.prototype,"disabled",void 0),Fr([r.property({reflect:!0})],Hr.prototype,"tabIndex",void 0),Fr([r.property({reflect:!0,attribute:"role"})],Hr.prototype,"role",void 0),Fr([r.query(".ft-radio")],Hr.prototype,"container",void 0),Fr([r.query("ft-ripple")],Hr.prototype,"ripple",void 0),Fr([r.query("input")],Hr.prototype,"input",void 0);const Pr=o.css`
|
|
1195
1195
|
:host {
|
|
1196
1196
|
display: contents;
|
|
1197
1197
|
}
|
|
1198
|
-
`;var jr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mr extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return o.html`
|
|
1198
|
+
`;var jr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mr extends e.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy=""}render(){return o.html`
|
|
1199
1199
|
<slot @slotchange=${this.onSlotChange}
|
|
1200
1200
|
@change=${this.onChange}
|
|
1201
1201
|
@keydown=${this.onKeyDown}
|
|
1202
1202
|
></slot>
|
|
1203
|
-
`}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
|
|
1203
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons[0].setAttribute("tabindex","0")}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){let e=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{e=!0;let o=this.findFtRadio(t),i=this.radioButtons.indexOf(o)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{e=!0;let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":{let e=this.radioButtons.indexOf(this.findFtRadio(t));this.radioButtons[e].select()}}e&&(t.stopPropagation(),t.preventDefault())}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)}}Mr.elementDefinitions={},Mr.styles=Pr,jr([r.property()],Mr.prototype,"name",void 0),jr([r.property({reflect:!0,attribute:"role"})],Mr.prototype,"role",void 0),jr([r.property({reflect:!0,attribute:"aria-labelledby"})],Mr.prototype,"ariaLabelledBy",void 0),jr([r.queryAssignedElements()],Mr.prototype,"radioButtons",void 0),e.customElement("ft-radio")(Hr),e.customElement("ft-radio-group")(Mr);const _r={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(Ze.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Ze.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Ze.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Ze.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Ze.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Ze.textTransform,"Body2 typography")},Gr=o.css`
|
|
1204
1204
|
.ft-filter-level--container {
|
|
1205
1205
|
display: flex;
|
|
1206
1206
|
flex-direction: column;
|
|
@@ -1335,13 +1335,13 @@ const gl=Symbol.for(""),yl=t=>{if(t?.r===gl)return t?._$litStatic$},bl=t=>({_$li
|
|
|
1335
1335
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1336
1336
|
background-color: ${ef};
|
|
1337
1337
|
}
|
|
1338
|
-
`;var rf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nf extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class af extends Mr{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Jt`
|
|
1338
|
+
`;var rf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nf extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class af extends Mr{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1,this.tabIndex=-1,this.role="radio"}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Jt`
|
|
1339
1339
|
<div class="${He(t)}">
|
|
1340
1340
|
<div class="ft-radio--box-container">
|
|
1341
1341
|
<ft-ripple
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1342
|
+
?disabled=${this.disabled}
|
|
1343
|
+
?primary=${this.checked}
|
|
1344
|
+
unbounded>
|
|
1345
1345
|
</ft-ripple>
|
|
1346
1346
|
<div class="ft-radio--box">
|
|
1347
1347
|
</div>
|
|
@@ -1360,16 +1360,16 @@ const gl=Symbol.for(""),yl=t=>{if(t?.r===gl)return t?._$litStatic$},bl=t=>({_$li
|
|
|
1360
1360
|
</ft-typography>
|
|
1361
1361
|
</label>
|
|
1362
1362
|
</div>
|
|
1363
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new nf(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new nf(this.value,this.checked))
|
|
1363
|
+
`}update(t){super.update(t),t.has("checked")&&!t.has("aria-checked")&&(this.checked?(this.setAttribute("aria-checked","true"),this.tabIndex=0):(this.setAttribute("aria-checked","false"),this.tabIndex=-1))}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new nf(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new nf(this.value,this.checked))}}af.elementDefinitions={"ft-ripple":ul,"ft-typography":Bc},af.styles=of,rf([Oe()],af.prototype,"value",void 0),rf([Oe()],af.prototype,"name",void 0),rf([Oe({type:Boolean,reflect:!0})],af.prototype,"checked",void 0),rf([Oe({type:Boolean})],af.prototype,"disabled",void 0),rf([Oe({reflect:!0})],af.prototype,"tabIndex",void 0),rf([Oe({reflect:!0,attribute:"role"})],af.prototype,"role",void 0),rf([Ee(".ft-radio")],af.prototype,"container",void 0),rf([Ee("ft-ripple")],af.prototype,"ripple",void 0),rf([Ee("input")],af.prototype,"input",void 0);const sf=dt`
|
|
1364
1364
|
:host {
|
|
1365
1365
|
display: contents;
|
|
1366
1366
|
}
|
|
1367
|
-
`;var lf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class cf extends Mr{constructor(){super(...arguments),this.name=""}render(){return Jt`
|
|
1367
|
+
`;var lf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class cf extends Mr{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy=""}render(){return Jt`
|
|
1368
1368
|
<slot @slotchange=${this.onSlotChange}
|
|
1369
1369
|
@change=${this.onChange}
|
|
1370
1370
|
@keydown=${this.onKeyDown}
|
|
1371
1371
|
></slot>
|
|
1372
|
-
`}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
|
|
1372
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons[0].setAttribute("tabindex","0")}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){let e=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{e=!0;let o=this.findFtRadio(t),i=this.radioButtons.indexOf(o)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{e=!0;let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":{let e=this.radioButtons.indexOf(this.findFtRadio(t));this.radioButtons[e].select()}}e&&(t.stopPropagation(),t.preventDefault())}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)}}cf.elementDefinitions={},cf.styles=sf,lf([Oe()],cf.prototype,"name",void 0),lf([Oe({reflect:!0,attribute:"role"})],cf.prototype,"role",void 0),lf([Oe({reflect:!0,attribute:"aria-labelledby"})],cf.prototype,"ariaLabelledBy",void 0),lf([Ie()],cf.prototype,"radioButtons",void 0),bo("ft-radio")(af),bo("ft-radio-group")(cf);const hf={borderRadiusM:Oo.external(Ci.borderRadiusM,"Design system"),colorOutline:Oo.external(Ci.colorOutline,"Design system"),colorOnSurface:Oo.external(Ci.colorOnSurface,"Design system"),colorOnSurfaceMedium:Oo.external(Ci.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Oo.external(Ci.colorOnSurfaceDisabled,"Design system"),colorPrimary:Oo.external(Ci.colorPrimary,"Design system"),colorOnPrimary:Oo.external(Ci.colorOnPrimary,"Design system"),fontFamily:Oo.external(tc.fontFamily,"Body2 typography"),fontSize:Oo.external(tc.fontSize,"Body2 typography"),fontWeight:Oo.external(tc.fontWeight,"Body2 typography"),letterSpacing:Oo.external(tc.letterSpacing,"Body2 typography"),lineHeight:Oo.external(tc.lineHeight,"Body2 typography"),textTransform:Oo.external(tc.textTransform,"Body2 typography")},ff=dt`
|
|
1373
1373
|
.ft-filter-level--container {
|
|
1374
1374
|
display: flex;
|
|
1375
1375
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-selected-facets",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.57",
|
|
4
4
|
"description": "List of selected facets in a designed search page context",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "1.1.
|
|
23
|
-
"@fluid-topics/ft-search-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-search-type": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.1.57",
|
|
23
|
+
"@fluid-topics/ft-search-context": "1.1.57",
|
|
24
|
+
"@fluid-topics/ft-search-type": "1.1.57",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.57",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.57",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "fe4e0c17422ecce6e7a0ae3fd8ce5b618357adad"
|
|
30
30
|
}
|