@fluid-topics/ft-filterable-table 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.
|
@@ -1860,7 +1860,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
1860
1860
|
</div>
|
|
1861
1861
|
</div>
|
|
1862
1862
|
</div>
|
|
1863
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("
|
|
1863
|
+
`}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 r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&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,r){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(r),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(r=>r.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&&xd(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${rt.designSystemVariables.transitionDuration}, left ${rt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,rt.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};Ce.elementDefinitions={"ft-typography":_e};Ce.styles=W2;dt([u4()],Ce.prototype,"text",void 0);dt([(0,ot.property)({type:Boolean})],Ce.prototype,"manual",void 0);dt([(0,ot.property)({type:Boolean})],Ce.prototype,"inline",void 0);dt([(0,rt.numberProperty)()],Ce.prototype,"delay",void 0);dt([(0,ot.property)()],Ce.prototype,"position",void 0);dt([(0,rt.jsonProperty)([])],Ce.prototype,"ignoreMatchingElements",void 0);dt([(0,ot.queryAssignedNodes)()],Ce.prototype,"slotNodes",void 0);dt([(0,ot.query)(".ft-tooltip--container")],Ce.prototype,"container",void 0);dt([(0,ot.query)(".ft-tooltip")],Ce.prototype,"tooltip",void 0);dt([(0,ot.query)(".ft-tooltip--content")],Ce.prototype,"tooltipContent",void 0);dt([(0,ot.state)()],Ce.prototype,"visible",void 0);var y4=v(z());(0,y4.customElement)("ft-tooltip")(Ce);var b4=v(q()),x4=v(z());var Lr=class extends x4.FtLitElement{render(){return b4.html`
|
|
1864
1864
|
<div class="ft-loader">
|
|
1865
1865
|
<div></div>
|
|
1866
1866
|
<div></div>
|
|
@@ -1940,7 +1940,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
1940
1940
|
</div>
|
|
1941
1941
|
</div>
|
|
1942
1942
|
</div>
|
|
1943
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("
|
|
1943
|
+
`}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&&Zi(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 ${$.transitionDuration}, left ${$.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||oi(e,this.ignoreMatchingElements,this.eventsTarget)}};Se.elementDefinitions={"ft-typography":_e};Se.styles=zf;ct([Kf()],Se.prototype,"text",void 0);ct([C({type:Boolean})],Se.prototype,"manual",void 0);ct([C({type:Boolean})],Se.prototype,"inline",void 0);ct([Mn()],Se.prototype,"delay",void 0);ct([C()],Se.prototype,"position",void 0);ct([Me([])],Se.prototype,"ignoreMatchingElements",void 0);ct([To()],Se.prototype,"slotNodes",void 0);ct([se(".ft-tooltip--container")],Se.prototype,"container",void 0);ct([se(".ft-tooltip")],Se.prototype,"tooltip",void 0);ct([se(".ft-tooltip--content")],Se.prototype,"tooltipContent",void 0);ct([Z()],Se.prototype,"visible",void 0);ne("ft-tooltip")(Se);var Ir=class extends K{render(){return I`
|
|
1944
1944
|
<div class="ft-loader">
|
|
1945
1945
|
<div></div>
|
|
1946
1946
|
<div></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-filterable-table",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "A dynamic table with filters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fluid-topics/design-system-variables": "3.1.0",
|
|
26
|
-
"@fluid-topics/ft-button": "2.0.
|
|
27
|
-
"@fluid-topics/ft-select": "2.0.
|
|
28
|
-
"@fluid-topics/ft-text-field": "2.0.
|
|
29
|
-
"@fluid-topics/ft-wc-utils": "2.0.
|
|
26
|
+
"@fluid-topics/ft-button": "2.0.4",
|
|
27
|
+
"@fluid-topics/ft-select": "2.0.4",
|
|
28
|
+
"@fluid-topics/ft-text-field": "2.0.4",
|
|
29
|
+
"@fluid-topics/ft-wc-utils": "2.0.4",
|
|
30
30
|
"lit": "3.1.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "bc275bc44bc77b2e5802f2da9e92a0aca4479155"
|
|
33
33
|
}
|