@fluid-topics/ft-search-saved-searches 2.0.3 → 2.0.4

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.
@@ -74,7 +74,7 @@ class FtSearchSavedSearches extends withI18n(FtSearchComponent) {
74
74
  renderSearchButton(isSelected) {
75
75
  return when(this.showSearchButton, () => html `
76
76
  <div part="search-button">
77
- <ft-button id="search" tabindex="-1" icon="search" ?disabled=${isSelected}>${savedSearches.messages.search()}</ft-button>
77
+ <ft-button id="search" tabindex="-1" icon="search" ?disabled=${isSelected} aria-hidden="true">${savedSearches.messages.search()}</ft-button>
78
78
  </div>`);
79
79
  }
80
80
  renderAlertStatus(alert) {
@@ -1239,7 +1239,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1239
1239
  </div>
1240
1240
  </div>
1241
1241
  </div>
1242
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var o,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(o=this.tooltip)===null||o===void 0||o.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&td(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${o}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ze.designSystemVariables.transitionDuration}, left ${Ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,Ze.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};me.elementDefinitions={"ft-typography":Ce};me.styles=O2;ct([G0()],me.prototype,"text",void 0);ct([(0,Ye.property)({type:Boolean})],me.prototype,"manual",void 0);ct([(0,Ye.property)({type:Boolean})],me.prototype,"inline",void 0);ct([(0,Ze.numberProperty)()],me.prototype,"delay",void 0);ct([(0,Ye.property)()],me.prototype,"position",void 0);ct([(0,Ze.jsonProperty)([])],me.prototype,"ignoreMatchingElements",void 0);ct([(0,Ye.queryAssignedNodes)()],me.prototype,"slotNodes",void 0);ct([(0,Ye.query)(".ft-tooltip--container")],me.prototype,"container",void 0);ct([(0,Ye.query)(".ft-tooltip")],me.prototype,"tooltip",void 0);ct([(0,Ye.query)(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);ct([(0,Ye.state)()],me.prototype,"visible",void 0);var K0=S(I());(0,K0.customElement)("ft-tooltip")(me);var q0=S(q()),Z0=S(I());var vr=class extends Z0.FtLitElement{render(){return q0.html`
1242
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var o,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(o=this.tooltip)===null||o===void 0||o.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&td(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${o}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ze.designSystemVariables.transitionDuration}, left ${Ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,Ze.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};me.elementDefinitions={"ft-typography":Ce};me.styles=O2;ct([G0()],me.prototype,"text",void 0);ct([(0,Ye.property)({type:Boolean})],me.prototype,"manual",void 0);ct([(0,Ye.property)({type:Boolean})],me.prototype,"inline",void 0);ct([(0,Ze.numberProperty)()],me.prototype,"delay",void 0);ct([(0,Ye.property)()],me.prototype,"position",void 0);ct([(0,Ze.jsonProperty)([])],me.prototype,"ignoreMatchingElements",void 0);ct([(0,Ye.queryAssignedNodes)()],me.prototype,"slotNodes",void 0);ct([(0,Ye.query)(".ft-tooltip--container")],me.prototype,"container",void 0);ct([(0,Ye.query)(".ft-tooltip")],me.prototype,"tooltip",void 0);ct([(0,Ye.query)(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);ct([(0,Ye.state)()],me.prototype,"visible",void 0);var K0=S(I());(0,K0.customElement)("ft-tooltip")(me);var q0=S(q()),Z0=S(I());var vr=class extends Z0.FtLitElement{render(){return q0.html`
1243
1243
  <div class="ft-loader">
1244
1244
  <div></div>
1245
1245
  <div></div>
@@ -2205,7 +2205,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
2205
2205
  `})}renderDescription(t){return He(this.showDescription&&t,()=>Je.html`
2206
2206
  <div part="description" class="content">${t}</div>`)}renderSearchButton(t){return He(this.showSearchButton,()=>Je.html`
2207
2207
  <div part="search-button">
2208
- <ft-button id="search" tabindex="-1" icon="search" ?disabled=${t}>${ue.messages.search()}</ft-button>
2208
+ <ft-button id="search" tabindex="-1" icon="search" ?disabled=${t} aria-hidden="true">${ue.messages.search()}</ft-button>
2209
2209
  </div>`)}renderAlertStatus(t){return He(this.showAlertStatus&&t,()=>Je.html`
2210
2210
  <ft-icon part="alert-status">alert</ft-icon>`)}renderSearchFilters(t){return He(this.showSearchFilters,()=>{var o,n,a,i,s;return Je.html`
2211
2211
  <div part="search-filters" class="content">
@@ -1319,7 +1319,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1319
1319
  </div>
1320
1320
  </div>
1321
1321
  </div>
1322
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(r),this.text=a,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Fi(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${U.transitionDuration}, left ${U.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Za(e,this.ignoreMatchingElements,this.eventsTarget)}};ve.elementDefinitions={"ft-typography":Ae};ve.styles=wu;ut([Uu()],ve.prototype,"text",void 0);ut([E({type:Boolean})],ve.prototype,"manual",void 0);ut([E({type:Boolean})],ve.prototype,"inline",void 0);ut([An()],ve.prototype,"delay",void 0);ut([E()],ve.prototype,"position",void 0);ut([je([])],ve.prototype,"ignoreMatchingElements",void 0);ut([Ha()],ve.prototype,"slotNodes",void 0);ut([Se(".ft-tooltip--container")],ve.prototype,"container",void 0);ut([Se(".ft-tooltip")],ve.prototype,"tooltip",void 0);ut([Se(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0);ut([re()],ve.prototype,"visible",void 0);oe("ft-tooltip")(ve);var Tr=class extends Z{render(){return H`
1322
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(r),this.text=a,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Fi(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${U.transitionDuration}, left ${U.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Za(e,this.ignoreMatchingElements,this.eventsTarget)}};ve.elementDefinitions={"ft-typography":Ae};ve.styles=wu;ut([Uu()],ve.prototype,"text",void 0);ut([E({type:Boolean})],ve.prototype,"manual",void 0);ut([E({type:Boolean})],ve.prototype,"inline",void 0);ut([An()],ve.prototype,"delay",void 0);ut([E()],ve.prototype,"position",void 0);ut([je([])],ve.prototype,"ignoreMatchingElements",void 0);ut([Ha()],ve.prototype,"slotNodes",void 0);ut([Se(".ft-tooltip--container")],ve.prototype,"container",void 0);ut([Se(".ft-tooltip")],ve.prototype,"tooltip",void 0);ut([Se(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0);ut([re()],ve.prototype,"visible",void 0);oe("ft-tooltip")(ve);var Tr=class extends Z{render(){return H`
1323
1323
  <div class="ft-loader">
1324
1324
  <div></div>
1325
1325
  <div></div>
@@ -2285,7 +2285,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
2285
2285
  `})}renderDescription(e){return De(this.showDescription&&e,()=>H`
2286
2286
  <div part="description" class="content">${e}</div>`)}renderSearchButton(e){return De(this.showSearchButton,()=>H`
2287
2287
  <div part="search-button">
2288
- <ft-button id="search" tabindex="-1" icon="search" ?disabled=${e}>${me.messages.search()}</ft-button>
2288
+ <ft-button id="search" tabindex="-1" icon="search" ?disabled=${e} aria-hidden="true">${me.messages.search()}</ft-button>
2289
2289
  </div>`)}renderAlertStatus(e){return De(this.showAlertStatus&&e,()=>H`
2290
2290
  <ft-icon part="alert-status">alert</ft-icon>`)}renderSearchFilters(e){return De(this.showSearchFilters,()=>{var r,o,a,i,s;return H`
2291
2291
  <div part="search-filters" class="content">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-saved-searches",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Displays the saved searches",
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-search-context": "2.0.3",
23
- "@fluid-topics/ft-wc-utils": "2.0.3",
22
+ "@fluid-topics/ft-search-context": "2.0.4",
23
+ "@fluid-topics/ft-wc-utils": "2.0.4",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fluid-topics/public-api": "1.0.114"
28
28
  },
29
- "gitHead": "0f2fb13480a71c2957ef7c69492140ea685ba87e"
29
+ "gitHead": "bc275bc44bc77b2e5802f2da9e92a0aca4479155"
30
30
  }