@fluid-topics/ft-search-result-missing-terms 2.0.23 → 2.0.24

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.
@@ -82,7 +82,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?yt.error:this.warningMessages.length?yt.warning:yt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return Y([T()],e.prototype,"warningRules",void 0),Y([T()],e.prototype,"errorRules",void 0),Y([T()],e.prototype,"validateOn",void 0),Y([T({type:Boolean})],e.prototype,"validateAtRender",void 0),Y([T()],e.prototype,"label",void 0),Y([T({type:Boolean})],e.prototype,"hideLabel",void 0),Y([T()],e.prototype,"name",void 0),Y([T({type:Boolean})],e.prototype,"disabled",void 0),Y([T()],e.prototype,"helperText",void 0),Y([T()],e.prototype,"forceStatus",void 0),Y([T({reflect:!0})],e.prototype,"value",void 0),Y([ee()],e.prototype,"errorMessages",void 0),Y([ee()],e.prototype,"warningMessages",void 0),Y([ee()],e.prototype,"status",void 0),Y([ee()],e.prototype,"focused",void 0),Y([ee()],e.prototype,"additionalWarningRules",void 0),Y([ee()],e.prototype,"additionalErrorRules",void 0),e});var Pr=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Pr(n,e);return!0},xo=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},nl=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),jf(e)}};function zf(t){this._$AN!==void 0?(xo(this),this._$AM=t,nl(this)):this._$AM=t}function Wf(t,e=!1,r=0){let n=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(n))for(let i=r;i<n.length;i++)Pr(n[i],!1),xo(n[i]);else n!=null&&(Pr(n,!1),xo(n));else Pr(this,t)}var jf=t=>{t.type==ve.CHILD&&(t._$AP??=Wf,t._$AQ??=zf)},Gt=class extends le{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),nl(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Pr(this,e),xo(this))}setValue(e){if(Mi(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Za=class extends Gt{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return K}update(e){return this.part=e,this.isElementTrappable(e.element)&&this.createFocusTrap(e.element),K}reconnected(){var e;this.isElementTrappable((e=this.part)===null||e===void 0?void 0:e.element)&&this.createFocusTrap(this.part.element)}disconnected(){var e,r,n,a;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(a=this.lastTrap)===null||a===void 0||a.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=0;n<r.length;n++){let a=r[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusFirstDescendant(a)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let a=r[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusLastDescendant(a)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ce&&await e.updateComplete}isInsideElement(e,r){for(let n=e;n;n=n.parentNode){if(n===r)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},Hv=ne(Za);var al;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(al||(al={}));var Gf={sm:640,md:768,lg:1024,xl:1280},Ya=class extends Gt{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,n,a]){return this.lastArgs=[r,n,a],this.render(r,n,a)}render(e,r,n){let a=this.resolveThreshold(e),i=n??(()=>H);return this.size>a?r():i()}resolveThreshold(e){return typeof e=="number"?e:Gf[e]}},Gv=ne(Ya);var Ja,Xa,Qa,ei,Vf=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Qa=(Xa=(Ja=window.safari)===null||Ja===void 0?void 0:Ja.pushNotification)===null||Xa===void 0?void 0:Xa.toString())!==null&&Qa!==void 0?Qa:"")==="[object SafariRemoteNotification]",Kf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ei=window.ftGlobals)!==null&&ei!==void 0?ei:{lit:Qo,litDecorators:en,litRepeat:tn,litClassMap:rn,litStyleMap:on,litUnsafeHTML:nn,wcUtils:{...fn,...an,...gn,...za,...bn,...xn,...Un,...un,...Xn,...Va,...tl,...Da,...Qn,...Dn,...aa,...Ha,...oa,...Ka,..._s,...cn,...ca,...Bn,...la,...rl,...ks,...da,...Na,...ja,...ea,...ra,...Ba,...hn,isSafari:Vf,isTouchScreen:Kf,setVariable:wt}};function*il(t,e){let r=typeof e=="function";if(t!==void 0){let n=-1;for(let a of t)n>-1&&(yield r?e(n):e),n++,yield a}}function*sl(t,e){if(t!==void 0){let r=0;for(let n of t)yield e(n,r++)}}var cl=k`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?yt.error:this.warningMessages.length?yt.warning:yt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return Y([T()],e.prototype,"warningRules",void 0),Y([T()],e.prototype,"errorRules",void 0),Y([T()],e.prototype,"validateOn",void 0),Y([T({type:Boolean})],e.prototype,"validateAtRender",void 0),Y([T()],e.prototype,"label",void 0),Y([T({type:Boolean})],e.prototype,"hideLabel",void 0),Y([T()],e.prototype,"name",void 0),Y([T({type:Boolean})],e.prototype,"disabled",void 0),Y([T()],e.prototype,"helperText",void 0),Y([T()],e.prototype,"forceStatus",void 0),Y([T({reflect:!0})],e.prototype,"value",void 0),Y([ee()],e.prototype,"errorMessages",void 0),Y([ee()],e.prototype,"warningMessages",void 0),Y([ee()],e.prototype,"status",void 0),Y([ee()],e.prototype,"focused",void 0),Y([ee()],e.prototype,"additionalWarningRules",void 0),Y([ee()],e.prototype,"additionalErrorRules",void 0),e});var Pr=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Pr(n,e);return!0},xo=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},nl=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),jf(e)}};function zf(t){this._$AN!==void 0?(xo(this),this._$AM=t,nl(this)):this._$AM=t}function Wf(t,e=!1,r=0){let n=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(n))for(let i=r;i<n.length;i++)Pr(n[i],!1),xo(n[i]);else n!=null&&(Pr(n,!1),xo(n));else Pr(this,t)}var jf=t=>{t.type==ve.CHILD&&(t._$AP??=Wf,t._$AQ??=zf)},Gt=class extends le{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),nl(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Pr(this,e),xo(this))}setValue(e){if(Mi(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Za=class extends Gt{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return K}update(e){return this.part=e,this.ensureFocusTrap(e.element),K}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,n;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,n,a;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(a=this.lastTrap)===null||a===void 0||a.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=0;n<r.length;n++){let a=r[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusFirstDescendant(a)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let a=r[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusLastDescendant(a)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ce&&await e.updateComplete}isInsideElement(e,r){for(let n=e;n;n=n.parentNode){if(n===r)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},Hv=ne(Za);var al;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(al||(al={}));var Gf={sm:640,md:768,lg:1024,xl:1280},Ya=class extends Gt{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,n,a]){return this.lastArgs=[r,n,a],this.render(r,n,a)}render(e,r,n){let a=this.resolveThreshold(e),i=n??(()=>H);return this.size>a?r():i()}resolveThreshold(e){return typeof e=="number"?e:Gf[e]}},Gv=ne(Ya);var Ja,Xa,Qa,ei,Vf=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Qa=(Xa=(Ja=window.safari)===null||Ja===void 0?void 0:Ja.pushNotification)===null||Xa===void 0?void 0:Xa.toString())!==null&&Qa!==void 0?Qa:"")==="[object SafariRemoteNotification]",Kf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ei=window.ftGlobals)!==null&&ei!==void 0?ei:{lit:Qo,litDecorators:en,litRepeat:tn,litClassMap:rn,litStyleMap:on,litUnsafeHTML:nn,wcUtils:{...fn,...an,...gn,...za,...bn,...xn,...Un,...un,...Xn,...Va,...tl,...Da,...Qn,...Dn,...aa,...Ha,...oa,...Ka,..._s,...cn,...ca,...Bn,...la,...rl,...ks,...da,...Na,...ja,...ea,...ra,...Ba,...hn,isSafari:Vf,isTouchScreen:Kf,setVariable:wt}};function*il(t,e){let r=typeof e=="function";if(t!==void 0){let n=-1;for(let a of t)n>-1&&(yield r?e(n):e),n++,yield a}}function*sl(t,e){if(t!==void 0){let r=0;for(let n of t)yield e(n,r++)}}var cl=k`
86
86
  [part="missing-term"] {
87
87
  text-decoration: line-through;
88
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-result-missing-terms",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "A component displaying the missing terms of the query in a search results",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.0.23",
22
+ "@fluid-topics/ft-wc-utils": "2.0.24",
23
23
  "lit": "3.1.0"
24
24
  },
25
- "gitHead": "e441ae21f5027730992e39b7dc728ac0f7b17dc0"
25
+ "gitHead": "5407e83b63be10ccc5bdeb3551c9f798b9559ae0"
26
26
  }