@fluid-topics/ft-reader-search-in-document 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:a.extend("--ftds-con
|
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Ma.error:this.warningMessages.length?Ma.warning:Ma.default}processRules(o){return o.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return yt([h()],e.prototype,"warningRules",void 0),yt([h()],e.prototype,"errorRules",void 0),yt([h()],e.prototype,"validateOn",void 0),yt([h({type:Boolean})],e.prototype,"validateAtRender",void 0),yt([h()],e.prototype,"label",void 0),yt([h({type:Boolean})],e.prototype,"hideLabel",void 0),yt([h()],e.prototype,"name",void 0),yt([h({type:Boolean})],e.prototype,"disabled",void 0),yt([h()],e.prototype,"helperText",void 0),yt([h()],e.prototype,"forceStatus",void 0),yt([h({reflect:!0})],e.prototype,"value",void 0),yt([F()],e.prototype,"errorMessages",void 0),yt([F()],e.prototype,"warningMessages",void 0),yt([F()],e.prototype,"status",void 0),yt([F()],e.prototype,"focused",void 0),yt([F()],e.prototype,"additionalWarningRules",void 0),yt([F()],e.prototype,"additionalErrorRules",void 0),e})});var km=u(()=>{"use strict"});var Tm=u(()=>{"use strict";_m();km()});function P7(t){this._$AN!==void 0?(al(this),this._$AM=t,Mm(this)):this._$AM=t}function N7(t,e=!1,r=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let n=r;n<o.length;n++)_n(o[n],!1),al(o[n]);else o!=null&&(_n(o,!1),al(o));else _n(this,t)}var _n,al,Mm,I7,Oi,Pm=u(()=>{Nc();fa();fa();_n=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),_n(o,e);return!0},al=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Mm=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),I7(e)}};I7=t=>{t.type==zr.CHILD&&(t._$AP??=N7,t._$AQ??=P7)},Oi=class extends cr{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),Mm(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(_n(this,e),al(this))}setValue(e){if(d0(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 tp=u(()=>{Pm()});var Nm=u(()=>{Ya();sr();wc()});var rp,$P,Im=u(()=>{"use strict";I();tp();Nm();rp=class extends Oi{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 o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return lt}update(e){return this.part=e,this.
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Ma.error:this.warningMessages.length?Ma.warning:Ma.default}processRules(o){return o.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return yt([h()],e.prototype,"warningRules",void 0),yt([h()],e.prototype,"errorRules",void 0),yt([h()],e.prototype,"validateOn",void 0),yt([h({type:Boolean})],e.prototype,"validateAtRender",void 0),yt([h()],e.prototype,"label",void 0),yt([h({type:Boolean})],e.prototype,"hideLabel",void 0),yt([h()],e.prototype,"name",void 0),yt([h({type:Boolean})],e.prototype,"disabled",void 0),yt([h()],e.prototype,"helperText",void 0),yt([h()],e.prototype,"forceStatus",void 0),yt([h({reflect:!0})],e.prototype,"value",void 0),yt([F()],e.prototype,"errorMessages",void 0),yt([F()],e.prototype,"warningMessages",void 0),yt([F()],e.prototype,"status",void 0),yt([F()],e.prototype,"focused",void 0),yt([F()],e.prototype,"additionalWarningRules",void 0),yt([F()],e.prototype,"additionalErrorRules",void 0),e})});var km=u(()=>{"use strict"});var Tm=u(()=>{"use strict";_m();km()});function P7(t){this._$AN!==void 0?(al(this),this._$AM=t,Mm(this)):this._$AM=t}function N7(t,e=!1,r=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let n=r;n<o.length;n++)_n(o[n],!1),al(o[n]);else o!=null&&(_n(o,!1),al(o));else _n(this,t)}var _n,al,Mm,I7,Oi,Pm=u(()=>{Nc();fa();fa();_n=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),_n(o,e);return!0},al=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Mm=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),I7(e)}};I7=t=>{t.type==zr.CHILD&&(t._$AP??=N7,t._$AQ??=P7)},Oi=class extends cr{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),Mm(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(_n(this,e),al(this))}setValue(e){if(d0(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 tp=u(()=>{Pm()});var Nm=u(()=>{Ya();sr();wc()});var rp,$P,Im=u(()=>{"use strict";I();tp();Nm();rp=class extends Oi{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 o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return lt}update(e){return this.part=e,this.ensureFocusTrap(e.element),lt}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(i=this.lastTrap)===null||i===void 0||i.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 o=0;o<r.length;o++){let i=r[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=r.length-1;o>=0;o--){let i=r[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof nr&&await e.updateComplete}isInsideElement(e,r){for(let o=e;o;o=o.parentNode){if(o===r)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.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}},$P=Kt(rp)});var $m,$7,op,FP,zm=u(()=>{"use strict";tp();I();(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})($m||($m={}));$7={sm:640,md:768,lg:1024,xl:1280},op=class extends Oi{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,o,i]){return this.lastArgs=[r,o,i],this.render(r,o,i)}render(e,r,o){let i=this.resolveThreshold(e),n=o??(()=>$);return this.size>i?r():n()}resolveThreshold(e){return typeof e=="number"?e:$7[e]}},FP=Kt(op)});var Dm=u(()=>{"use strict";Im();zm()});var ap,ip,np,sp,bo,kn,w=u(()=>{"use strict";D2();I();X();Rr();Qe();b0();ti();Yc();Es();rd();_s();ks();Cd();Ed();oi();Fs();Ud();Ms();Kd();vn();qd();Pt();Qd();eu();tu();ou();Qs();Us();Nu();Hs();Du();Hu();ol();he();ju();Zu();Yu();Xu();ws();Ju();Zu();Yu();Yc();Es();rd();ol();_s();ks();Cd();Ed();oi();Fs();Nu();Ud();Ms();Kd();Hu();vn();Ju();qd();Pt();Qd();eu();tu();ou();Qs();ju();Us();Hs();Du();Xu();Tm();Dm();ws();he();bo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((np=(ip=(ap=window.safari)===null||ap===void 0?void 0:ap.pushNotification)===null||ip===void 0?void 0:ip.toString())!==null&&np!==void 0?np:"")==="[object SafariRemoteNotification]",kn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(sp=window.ftGlobals)!==null&&sp!==void 0?sp:{lit:_c,litDecorators:Pc,litRepeat:Ic,litClassMap:$c,litStyleMap:zc,litUnsafeHTML:Dc,wcUtils:{...Zc,...Bc,...td,...Gu,...od,...ad,...Sd,...qc,...Bd,...qu,...Rm,...Pu,...Fd,...xd,...jd,...Uu,...Wd,...Qu,...Vh,...Wc,...Xd,...Od,...Jd,...Ci,...Zh,...ru,..._u,...Wu,...Hd,...Vd,...zu,...Qc,isSafari:bo,isTouchScreen:kn,setVariable:x}}});var Bm,k,Fm,Um,Hm,Gm,Vm,jr=u(()=>{"use strict";I();w();Bm=a.extend("--ft-ripple-color","",R.colorContent),k={color:Bm,backgroundColor:a.extend("--ft-ripple-background-color","",Bm),opacityContentOnSurfacePressed:a.external(R.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.external(R.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.external(R.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.external(R.opacityContentOnSurfaceSelected,"Design system"),borderRadius:a.create("--ft-ripple-border-radius","","SIZE","0px")},Fm=a.extend("--ft-ripple-color","",R.colorPrimary),Um={color:Fm,backgroundColor:a.extend("--ft-ripple-background-color","",Fm)},Hm=a.extend("--ft-ripple-color","",R.colorSecondary),Gm={color:Hm,backgroundColor:a.extend("--ft-ripple-background-color","",Hm)},Vm=_`
|
|
86
86
|
:host {
|
|
87
87
|
display: contents;
|
|
88
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-search-in-document",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "A search component to retrieve occurrences in documents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,20 +19,20 @@
|
|
|
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": "2.0.
|
|
23
|
-
"@fluid-topics/ft-card": "2.0.
|
|
24
|
-
"@fluid-topics/ft-i18n": "2.0.
|
|
25
|
-
"@fluid-topics/ft-search-context": "2.0.
|
|
26
|
-
"@fluid-topics/ft-search-input": "2.0.
|
|
27
|
-
"@fluid-topics/ft-search-load-more-button": "2.0.
|
|
28
|
-
"@fluid-topics/ft-search-result-abstract": "2.0.
|
|
29
|
-
"@fluid-topics/ft-search-result-title": "2.0.
|
|
30
|
-
"@fluid-topics/ft-search-results": "2.0.
|
|
31
|
-
"@fluid-topics/ft-search-results-number": "2.0.
|
|
32
|
-
"@fluid-topics/ft-typography": "2.0.
|
|
33
|
-
"@fluid-topics/ft-wc-utils": "2.0.
|
|
22
|
+
"@fluid-topics/ft-button": "2.0.24",
|
|
23
|
+
"@fluid-topics/ft-card": "2.0.24",
|
|
24
|
+
"@fluid-topics/ft-i18n": "2.0.24",
|
|
25
|
+
"@fluid-topics/ft-search-context": "2.0.24",
|
|
26
|
+
"@fluid-topics/ft-search-input": "2.0.24",
|
|
27
|
+
"@fluid-topics/ft-search-load-more-button": "2.0.24",
|
|
28
|
+
"@fluid-topics/ft-search-result-abstract": "2.0.24",
|
|
29
|
+
"@fluid-topics/ft-search-result-title": "2.0.24",
|
|
30
|
+
"@fluid-topics/ft-search-results": "2.0.24",
|
|
31
|
+
"@fluid-topics/ft-search-results-number": "2.0.24",
|
|
32
|
+
"@fluid-topics/ft-typography": "2.0.24",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "2.0.24",
|
|
34
34
|
"@fluid-topics/public-api": "1.0.122",
|
|
35
35
|
"lit": "3.1.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "5407e83b63be10ccc5bdeb3551c9f798b9559ae0"
|
|
38
38
|
}
|