@fluid-topics/ft-search-sort-selector 1.3.41 → 1.3.42
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.
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var zp={checkVisibility:!0},
|
|
72
|
+
`;var zp={checkVisibility:!0},sv=re(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...zp,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Ir({type:"aria",message:n})))},20)}}return e});function pr(t,e,o){return t?e(t):o?.(t)}var le=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Dt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Dt||(Dt={}));var Mt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Mt||(Mt={}));var ba=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},gv=re(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Dt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Mt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Dt.blur||this.validateOn===Dt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Mt.default&&this.validateOn===Dt.blurWithStatusResolutionOnInput||this.validateOn===Dt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new ba(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return Y`
|
|
73
73
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
74
74
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
75
75
|
${ot(this.errorMessages,n=>Y`
|
|
@@ -82,8 +82,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Mt.error:this.warningMessages.length?Mt.warning:Mt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return le([C()],e.prototype,"warningRules",void 0),le([C()],e.prototype,"errorRules",void 0),le([C()],e.prototype,"validateOn",void 0),le([C({type:Boolean})],e.prototype,"validateAtRender",void 0),le([C()],e.prototype,"label",void 0),le([C({type:Boolean})],e.prototype,"hideLabel",void 0),le([C()],e.prototype,"name",void 0),le([C({type:Boolean})],e.prototype,"disabled",void 0),le([C()],e.prototype,"helperText",void 0),le([C()],e.prototype,"forceStatus",void 0),le([C({reflect:!0})],e.prototype,"value",void 0),le([z()],e.prototype,"errorMessages",void 0),le([z()],e.prototype,"warningMessages",void 0),le([z()],e.prototype,"status",void 0),le([z()],e.prototype,"focused",void 0),le([z()],e.prototype,"additionalWarningRules",void 0),le([z()],e.prototype,"additionalErrorRules",void 0),e});var qr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),qr(n,e);return!0},Uo=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},cc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),jp(e)}};function Wp(t){this._$AN!==void 0?(Uo(this),this._$AM=t,cc(this)):this._$AM=t}function Gp(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)qr(n[a],!1),Uo(n[a]);else n!=null&&(qr(n,!1),Uo(n));else qr(this,t)}var jp=t=>{t.type==Me.CHILD&&(t._$AP??=Gp,t._$AQ??=Wp)},Bo=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),cc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(qr(this,e),Uo(this))}setValue(e){if(ns(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var dc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(dc||(dc={}));var Vp={sm:640,md:768,lg:1024,xl:1280},xa=class extends Bo{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>F);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Vp[e]}},
|
|
86
|
-
`;var Ca=t=>t??F;var fc=Symbol.for(""),qp=t=>{if(t?.r===fc)return t?._$litStatic$},wa=t=>({_$litStatic$:t,r:fc});var pc=new Map,Aa=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=o[p],(i=qp(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=pc.get(f))===void 0&&(s.raw=s,pc.set(f,e=s)),o=l}return t(e,...o)},Ra=Aa(Y),
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Mt.error:this.warningMessages.length?Mt.warning:Mt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return le([C()],e.prototype,"warningRules",void 0),le([C()],e.prototype,"errorRules",void 0),le([C()],e.prototype,"validateOn",void 0),le([C({type:Boolean})],e.prototype,"validateAtRender",void 0),le([C()],e.prototype,"label",void 0),le([C({type:Boolean})],e.prototype,"hideLabel",void 0),le([C()],e.prototype,"name",void 0),le([C({type:Boolean})],e.prototype,"disabled",void 0),le([C()],e.prototype,"helperText",void 0),le([C()],e.prototype,"forceStatus",void 0),le([C({reflect:!0})],e.prototype,"value",void 0),le([z()],e.prototype,"errorMessages",void 0),le([z()],e.prototype,"warningMessages",void 0),le([z()],e.prototype,"status",void 0),le([z()],e.prototype,"focused",void 0),le([z()],e.prototype,"additionalWarningRules",void 0),le([z()],e.prototype,"additionalErrorRules",void 0),e});var qr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),qr(n,e);return!0},Uo=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},cc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),jp(e)}};function Wp(t){this._$AN!==void 0?(Uo(this),this._$AM=t,cc(this)):this._$AM=t}function Gp(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)qr(n[a],!1),Uo(n[a]);else n!=null&&(qr(n,!1),Uo(n));else qr(this,t)}var jp=t=>{t.type==Me.CHILD&&(t._$AP??=Gp,t._$AQ??=Wp)},Bo=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),cc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(qr(this,e),Uo(this))}setValue(e){if(ns(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var dc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(dc||(dc={}));var Vp={sm:640,md:768,lg:1024,xl:1280},xa=class extends Bo{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>F);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Vp[e]}},Lv=Ae(xa);var va,Sa,Oa,Ea,Kp=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Oa=(Sa=(va=window.safari)===null||va===void 0?void 0:va.pushNotification)===null||Sa===void 0?void 0:Sa.toString())!==null&&Oa!==void 0?Oa:"")==="[object SafariRemoteNotification]",Zp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ea=window.ftGlobals)!==null&&Ea!==void 0?Ea:{lit:yn,litDecorators:gn,litRepeat:bn,litClassMap:xn,litStyleMap:vn,litUnsafeHTML:On,wcUtils:{...Nn,...En,...In,...fa,...Pn,...kn,...si,..._n,...Ei,...ga,...sc,...la,...ai,...Ni,...pa,...Ri,...Gs,...wn,...Ii,...li,...ki,...lc,...Vs,...Di,...ia,...ma,...Ci,...Ai,...da,isSafari:Kp,isTouchScreen:Zp,setVariable:j}};var x0={},uc=k`
|
|
86
|
+
`;var Ca=t=>t??F;var fc=Symbol.for(""),qp=t=>{if(t?.r===fc)return t?._$litStatic$},wa=t=>({_$litStatic$:t,r:fc});var pc=new Map,Aa=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=o[p],(i=qp(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=pc.get(f))===void 0&&(s.raw=s,pc.set(f,e=s)),o=l}return t(e,...o)},Ra=Aa(Y),A0=Aa(un),R0=Aa(pn);var Ut;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ut||(Ut={}));function hc(t,e){let o=kr[t];return k`
|
|
87
87
|
${e?tt(e):k`.ft-typography--${tt(t)}`} {
|
|
88
88
|
font-family: ${o.fontFamily};
|
|
89
89
|
font-size: ${o.fontSize};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-sort-selector",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.42",
|
|
4
4
|
"description": "Sort selector component for fluid-topics search pages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-search-context": "1.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
24
|
-
"@fluid-topics/public-api": "1.0.
|
|
22
|
+
"@fluid-topics/ft-search-context": "1.3.42",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.3.42",
|
|
24
|
+
"@fluid-topics/public-api": "1.0.109",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@fluid-topics/ft-wc-test-utils": "1.3.
|
|
28
|
+
"@fluid-topics/ft-wc-test-utils": "1.3.42"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "6178e397e69bf7c2af7e15f474a134be974bbfaa"
|
|
31
31
|
}
|