@fluid-topics/ft-reader-search-in-document 2.2.41 → 2.2.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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";(()=>{var Px=Object.create;var Ma=Object.defineProperty;var Mx=Object.getOwnPropertyDescriptor;var Nx=Object.getOwnPropertyNames;var Fx=Object.getPrototypeOf,Bx=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Wi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ni=(t,e)=>{for(var r in e)Ma(t,r,{get:e[r],enumerable:!0})},Ux=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Nx(e))!Bx.call(t,s)&&s!==r&&Ma(t,s,{get:()=>e[s],enumerable:!(i=Mx(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Px(Fx(t)):{},Ux(e||!t||!t.__esModule?Ma(r,"default",{value:t,enumerable:!0}):r,t));var f=Wi((UE,qu)=>{qu.exports=ftGlobals.wcUtils});var y=Wi((VE,Ku)=>{Ku.exports=ftGlobals.lit});var Zu,Ee,Wu,V,Gu,Qu,Xu,Yu,Ju,Er=l(()=>{"use strict";Zu=c(y()),Ee=c(f()),Wu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorContent),V={color:Wu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wu),opacityContentOnSurfacePressed:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Gu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorPrimary),Qu={color:Gu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gu)},Xu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorSecondary),Yu={color:Xu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xu)},Ju=Zu.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
|
+
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
5
|
+
visibility: inherit;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
.ft-ripple {
|
|
@@ -84,6 +84,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
|
|
|
84
84
|
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?jr.error:this.warningMessages.length?jr.warning:jr.default}}return Be([h()],e.prototype,"warningRules",void 0),Be([h()],e.prototype,"errorRules",void 0),Be([h()],e.prototype,"validateOn",void 0),Be([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Be([h()],e.prototype,"label",void 0),Be([h({type:Boolean})],e.prototype,"hideLabel",void 0),Be([h()],e.prototype,"name",void 0),Be([h({type:Boolean})],e.prototype,"disabled",void 0),Be([h()],e.prototype,"helperText",void 0),Be([h()],e.prototype,"forceStatus",void 0),Be([h({reflect:!0})],e.prototype,"value",void 0),Be([k()],e.prototype,"errorMessages",void 0),Be([k()],e.prototype,"warningMessages",void 0),Be([k()],e.prototype,"status",void 0),Be([k()],e.prototype,"focused",void 0),Be([k()],e.prototype,"additionalWarningRules",void 0),Be([k()],e.prototype,"additionalErrorRules",void 0),Be([k()],e.prototype,"forceErrorMessages",void 0),e})});var qs=u(()=>{"use strict";Ad();$e()});var sy=u(()=>{"use strict";Ht();qs()});var ay=u(()=>{"use strict";j();qs()});var ly=u(()=>{"use strict";Ad();Od();qs();sy();ay()});var cy=u(()=>{"use strict"});var dy=u(()=>{"use strict";cy()});function JE(t){this._$AN!==void 0?(Zs(this),this._$AM=t,uy(this)):this._$AM=t}function eO(t,e=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let s=r;s<o.length;s++)On(o[s],!1),Zs(o[s]);else o!=null&&(On(o,!1),Zs(o));else On(this,t)}var On,Zs,uy,tO,Ei,py=u(()=>{ll();lo();lo();On=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),On(o,e);return!0},Zs=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},uy=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),tO(e)}};tO=t=>{t.type==or.CHILD&&(t._$AP??=eO,t._$AQ??=JE)},Ei=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),uy(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(On(this,e),Zs(this))}setValue(e){if(yf(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 Rd=u(()=>{py()});var _d,CT,fy=u(()=>{"use strict";L();Rd();$e();_d=class extends Ei{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 De}update(e){return this.part=e,this.ensureFocusTrap(e.element),De}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,n;(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(),(n=this.lastTrap)===null||n===void 0||n.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 n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))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 n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof _t&&await e.updateComplete}isInsideElement(e,r){return Dr(e).includes(r)}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}},CT=mt(_d)});var hy,rO,kd,AT,my=u(()=>{"use strict";Rd();L();(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(hy||(hy={}));rO={sm:640,md:768,lg:1024,xl:1280},kd=class extends Ei{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,n]){return this.lastArgs=[r,o,n],this.render(r,o,n)}render(e,r,o){let n=this.resolveThreshold(e),s=o??(()=>_);return this.size>n?r():s()}resolveThreshold(e){return typeof e=="number"?e:rO[e]}},AT=mt(kd)});var gy=u(()=>{"use strict";fy();my()});function Qs(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,s){var a,l;let d=(l=(a=this.configuredAnalyticsActions)===null||a===void 0?void 0:a[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new Ld({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:s}))}}return r.analyticsActions=e,oO([le({})],r.prototype,"configuredAnalyticsActions",void 0),r}var oO,Ld,yy=u(()=>{"use strict";uo();oO=function(t,e,r,o){var n=arguments.length,s=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ld=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var Ys,by=u(()=>{"use strict";Ys=class{constructor(e,r=20){this.onChange=e,this.maxCapacity=r,this.recentQueries=[],this.storageKey="",this.onStorageEvent=o=>{o.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),o=this.recentQueries.filter(n=>n.toLowerCase()!==r).slice(0,this.maxCapacity-1);o.unshift(e),this.saveRecentQueries(o)}removeRecentQuery(e){let r=e.trim().toLowerCase(),o=this.recentQueries.filter(n=>n.toLowerCase()!==r);this.recentQueries.length!==o.length&&this.saveRecentQueries(o)}saveRecentQueries(e){if(this.storageKey==="")return;let r=JSON.stringify(e);window.localStorage.setItem(this.storageKey,r),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:r,storageArea:window.localStorage,url:window.location.href}))}}});var Id,ko,xy=u(()=>{"use strict";$e();ko=class{static compareDeepPosition(e,r){if(e===r)return 0;let o=Dr(e).reverse(),n=Dr(r).reverse();if(o[0]!==n[0])return Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Node.DOCUMENT_POSITION_PRECEDING;let s=0;for(;(o[s]||n[s])&&o[s]===n[s];)s++;return o[s]==null?Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING:n[s]==null?Node.DOCUMENT_POSITION_CONTAINS|Node.DOCUMENT_POSITION_PRECEDING:o[s].compareDocumentPosition(n[s])}static compareDocumentPosition(e,r){let o=Id.compareDeepPosition(e,r);return{equal:o===0,disconnected:(o&Node.DOCUMENT_POSITION_DISCONNECTED)!==0,implementationSpecific:(o&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)!==0,preceding:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0,following:(o&Node.DOCUMENT_POSITION_FOLLOWING)!==0,contains:(o&Node.DOCUMENT_POSITION_CONTAINS)!==0,containedBy:(o&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}}static findFirstInDOM(e){let r=0;for(let o=1;o<e.length;o++)this.domOrderSorter(e[r],e[o])>0&&(r=o);return e[r]}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};Id=ko;ko.domOrderSorter=(t,e)=>{if(t===e||!t?.isConnected&&!e?.isConnected)return 0;if(!e?.isConnected)return-1;if(!t?.isConnected)return 1;let{preceding:r,following:o,contains:n,containedBy:s}=Id.compareDocumentPosition(t,e);return r||n?1:o||s?-1:0}});var Lo,vy=u(()=>{"use strict";C();xy();Lo=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Td)return!1;let r=ko.getDeepActiveElement();if(!r)return!0;let o=ko.compareDocumentPosition(r,e);return o.disconnected||o.implementationSpecific?!1:o.preceding&&!o.contains||o.containedBy}};window.FluidTopicsFocusHelper=Lo});var Pd,Nd,Fd,Md,Io,Td,C=u(()=>{"use strict";Vp();L();j();Vt();tt();wf();Zi();hl();wl();rs();Ml();us();uo();Vl();Wl();ai();vs();ac();ps();hc();un();mc();$e();xc();Cc();Ec();wc();Ws();Ss();Jc();Cs();ls();od();js();di();ad();dd();ud();pd();ds();hd();gd();xd();Cd();dd();ud();hl();wl();rs();Ml();js();us();uo();Vl();Wl();ai();vs();Jc();ac();ps();hc();od();un();hd();gd();mc();$e();xc();Cd();Cc();Ec();wc();Ws();ad();Ss();Cs();ls();pd();ly();dy();gy();ds();di();yy();xd();by();vy();Io=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Fd=(Nd=(Pd=window.safari)===null||Pd===void 0?void 0:Pd.pushNotification)===null||Nd===void 0?void 0:Nd.toString())!==null&&Fd!==void 0?Fd:"")==="[object SafariRemoteNotification]",Td="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Md=window.ftGlobals)!==null&&Md!==void 0?Md:{lit:rl,litDecorators:al,litRepeat:cl,litClassMap:dl,litStyleMap:ul,litUnsafeHTML:pl,wcUtils:{...fl,...Ol,...ml,...Fl,...id,...Dl,...gl,...zl,...El,...nc,...cd,...oy,...Xc,...sc,...Ul,...fc,...rd,...uc,...fd,...md,...ng,...vl,...bc,...Sd,...Hl,...Sc,...Ci,...dg,...Oc,...qc,...sd,...lc,...dc,...kl,...Tl,...bd,isSafari:Io,isTouchScreen:Td,setVariable:w}}});var Sy,re,Cy,Ey,Oy,wy,Ay,kr=u(()=>{"use strict";L();C();Sy=i.extend("--ft-ripple-color","",x.colorContent),re={color:Sy,backgroundColor:i.extend("--ft-ripple-background-color","",Sy),opacityContentOnSurfacePressed:i.external(x.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(x.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(x.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(x.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Cy=i.extend("--ft-ripple-color","",x.colorPrimary),Ey={color:Cy,backgroundColor:i.extend("--ft-ripple-background-color","",Cy)},Oy=i.extend("--ft-ripple-color","",x.colorSecondary),wy={color:Oy,backgroundColor:i.extend("--ft-ripple-background-color","",Oy)},Ay=O`
|
|
85
85
|
:host {
|
|
86
86
|
display: contents;
|
|
87
|
+
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
88
|
+
visibility: inherit;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
.ft-ripple {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-search-in-document",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.42",
|
|
4
4
|
"description": "A search component to retrieve occurrences in documents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,23 +19,23 @@
|
|
|
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.2.
|
|
23
|
-
"@fluid-topics/ft-card": "2.2.
|
|
24
|
-
"@fluid-topics/ft-i18n": "2.2.
|
|
25
|
-
"@fluid-topics/ft-reader-context": "2.2.
|
|
26
|
-
"@fluid-topics/ft-ripple": "2.2.
|
|
27
|
-
"@fluid-topics/ft-search-context": "2.2.
|
|
28
|
-
"@fluid-topics/ft-search-input": "2.2.
|
|
29
|
-
"@fluid-topics/ft-search-load-more-button": "2.2.
|
|
30
|
-
"@fluid-topics/ft-search-result-abstract": "2.2.
|
|
31
|
-
"@fluid-topics/ft-search-result-context": "2.2.
|
|
32
|
-
"@fluid-topics/ft-search-result-title": "2.2.
|
|
33
|
-
"@fluid-topics/ft-search-results": "2.2.
|
|
34
|
-
"@fluid-topics/ft-search-results-number": "2.2.
|
|
35
|
-
"@fluid-topics/ft-typography": "2.2.
|
|
36
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-button": "2.2.42",
|
|
23
|
+
"@fluid-topics/ft-card": "2.2.42",
|
|
24
|
+
"@fluid-topics/ft-i18n": "2.2.42",
|
|
25
|
+
"@fluid-topics/ft-reader-context": "2.2.42",
|
|
26
|
+
"@fluid-topics/ft-ripple": "2.2.42",
|
|
27
|
+
"@fluid-topics/ft-search-context": "2.2.42",
|
|
28
|
+
"@fluid-topics/ft-search-input": "2.2.42",
|
|
29
|
+
"@fluid-topics/ft-search-load-more-button": "2.2.42",
|
|
30
|
+
"@fluid-topics/ft-search-result-abstract": "2.2.42",
|
|
31
|
+
"@fluid-topics/ft-search-result-context": "2.2.42",
|
|
32
|
+
"@fluid-topics/ft-search-result-title": "2.2.42",
|
|
33
|
+
"@fluid-topics/ft-search-results": "2.2.42",
|
|
34
|
+
"@fluid-topics/ft-search-results-number": "2.2.42",
|
|
35
|
+
"@fluid-topics/ft-typography": "2.2.42",
|
|
36
|
+
"@fluid-topics/ft-wc-utils": "2.2.42",
|
|
37
37
|
"@fluid-topics/public-api": "1.0.149",
|
|
38
38
|
"lit": "3.3.3"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f5637f426d465b9be9f8a4aa73c6f3016cbe748c"
|
|
41
41
|
}
|