@fluid-topics/ft-card 1.1.4 → 1.1.5

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.
@@ -121,7 +121,7 @@
121
121
  <div class="ft-ripple--background"></div>
122
122
  <div class="ft-ripple--effect"></div>
123
123
  </div>
124
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",a),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",a),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,a;return null!=o.x?({x:r,y:a}=o):null!=e.touches&&(r=e.touches[0].clientX,a=e.touches[0].clientY),{x:r,y:a}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}g.elementDefinitions={},g.styles=y,h([r.property({type:Boolean})],g.prototype,"primary",void 0),h([r.property({type:Boolean})],g.prototype,"secondary",void 0),h([r.property({type:Boolean})],g.prototype,"unbounded",void 0),h([r.property({type:Boolean})],g.prototype,"activated",void 0),h([r.property({type:Boolean})],g.prototype,"selected",void 0),h([r.property({type:Boolean})],g.prototype,"disabled",void 0),h([r.state()],g.prototype,"hovered",void 0),h([r.state()],g.prototype,"focused",void 0),h([r.state()],g.prototype,"pressed",void 0),h([r.state()],g.prototype,"rippling",void 0),h([r.state()],g.prototype,"originX",void 0),h([r.state()],g.prototype,"originY",void 0),h([r.query(".ft-ripple")],g.prototype,"ripple",void 0),h([r.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(g);
124
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},i={passive:!0};t.addEventListener("mouseover",this.startHover,i),t.addEventListener("mousemove",this.moveRipple,i),t.addEventListener("mouseleave",this.endHover,i),t.addEventListener("mousedown",e,i),t.addEventListener("touchstart",r,i),t.addEventListener("touchmove",this.moveRipple,i),t.addEventListener("keydown",a,i),t.addEventListener("focus",this.startFocus,i),t.addEventListener("blur",this.endFocus,i),t.addEventListener("focusin",this.startFocus,i),t.addEventListener("focusout",this.endFocus,i),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,i),t.removeEventListener("mousemove",this.moveRipple,i),t.removeEventListener("mouseleave",this.endHover,i),t.removeEventListener("mousedown",e,i),t.removeEventListener("touchstart",r,i),t.removeEventListener("touchmove",this.moveRipple,i),t.removeEventListener("keydown",a,i),t.removeEventListener("focus",this.startFocus,i),t.removeEventListener("blur",this.endFocus,i),t.removeEventListener("focusin",this.startFocus,i),t.removeEventListener("focusout",this.endFocus,i),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,a;return null!=o.x?({x:r,y:a}=o):null!=e.touches&&(r=e.touches[0].clientX,a=e.touches[0].clientY),{x:r,y:a}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}g.elementDefinitions={},g.styles=y,h([r.property({type:Boolean})],g.prototype,"primary",void 0),h([r.property({type:Boolean})],g.prototype,"secondary",void 0),h([r.property({type:Boolean})],g.prototype,"unbounded",void 0),h([r.property({type:Boolean})],g.prototype,"activated",void 0),h([r.property({type:Boolean})],g.prototype,"selected",void 0),h([r.property({type:Boolean})],g.prototype,"disabled",void 0),h([r.state()],g.prototype,"hovered",void 0),h([r.state()],g.prototype,"focused",void 0),h([r.state()],g.prototype,"pressed",void 0),h([r.state()],g.prototype,"rippling",void 0),h([r.state()],g.prototype,"originX",void 0),h([r.state()],g.prototype,"originY",void 0),h([r.query(".ft-ripple")],g.prototype,"ripple",void 0),h([r.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(g);
125
125
  /**
126
126
  * @license
127
127
  * Copyright 2017 Google LLC
@@ -247,7 +247,7 @@ const zo=1;let Do=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
247
247
  <div class="ft-ripple--background"></div>
248
248
  <div class="ft-ripple--effect"></div>
249
249
  </div>
250
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Vo.elementDefinitions={},Vo.styles=Yo,Jo([w({type:Boolean})],Vo.prototype,"primary",void 0),Jo([w({type:Boolean})],Vo.prototype,"secondary",void 0),Jo([w({type:Boolean})],Vo.prototype,"unbounded",void 0),Jo([w({type:Boolean})],Vo.prototype,"activated",void 0),Jo([w({type:Boolean})],Vo.prototype,"selected",void 0),Jo([w({type:Boolean})],Vo.prototype,"disabled",void 0),Jo([C()],Vo.prototype,"hovered",void 0),Jo([C()],Vo.prototype,"focused",void 0),Jo([C()],Vo.prototype,"pressed",void 0),Jo([C()],Vo.prototype,"rippling",void 0),Jo([C()],Vo.prototype,"originX",void 0),Jo([C()],Vo.prototype,"originY",void 0),Jo([U(".ft-ripple")],Vo.prototype,"ripple",void 0),Jo([U(".ft-ripple--effect")],Vo.prototype,"rippleEffect",void 0),W("ft-ripple")(Vo);
250
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},a={passive:!0};t.addEventListener("mouseover",this.startHover,a),t.addEventListener("mousemove",this.moveRipple,a),t.addEventListener("mouseleave",this.endHover,a),t.addEventListener("mousedown",e,a),t.addEventListener("touchstart",r,a),t.addEventListener("touchmove",this.moveRipple,a),t.addEventListener("keydown",i,a),t.addEventListener("focus",this.startFocus,a),t.addEventListener("blur",this.endFocus,a),t.addEventListener("focusin",this.startFocus,a),t.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,a),t.removeEventListener("mousemove",this.moveRipple,a),t.removeEventListener("mouseleave",this.endHover,a),t.removeEventListener("mousedown",e,a),t.removeEventListener("touchstart",r,a),t.removeEventListener("touchmove",this.moveRipple,a),t.removeEventListener("keydown",i,a),t.removeEventListener("focus",this.startFocus,a),t.removeEventListener("blur",this.endFocus,a),t.removeEventListener("focusin",this.startFocus,a),t.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Vo.elementDefinitions={},Vo.styles=Yo,Jo([w({type:Boolean})],Vo.prototype,"primary",void 0),Jo([w({type:Boolean})],Vo.prototype,"secondary",void 0),Jo([w({type:Boolean})],Vo.prototype,"unbounded",void 0),Jo([w({type:Boolean})],Vo.prototype,"activated",void 0),Jo([w({type:Boolean})],Vo.prototype,"selected",void 0),Jo([w({type:Boolean})],Vo.prototype,"disabled",void 0),Jo([C()],Vo.prototype,"hovered",void 0),Jo([C()],Vo.prototype,"focused",void 0),Jo([C()],Vo.prototype,"pressed",void 0),Jo([C()],Vo.prototype,"rippling",void 0),Jo([C()],Vo.prototype,"originX",void 0),Jo([C()],Vo.prototype,"originY",void 0),Jo([U(".ft-ripple")],Vo.prototype,"ripple",void 0),Jo([U(".ft-ripple--effect")],Vo.prototype,"rippleEffect",void 0),W("ft-ripple")(Vo);
251
251
  /**
252
252
  * @license
253
253
  * Copyright 2020 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-card",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "A file uploader with drag and drop",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-ripple": "1.1.4",
23
- "@fluid-topics/ft-typography": "1.1.4",
24
- "@fluid-topics/ft-wc-utils": "1.1.4",
22
+ "@fluid-topics/ft-ripple": "1.1.5",
23
+ "@fluid-topics/ft-typography": "1.1.5",
24
+ "@fluid-topics/ft-wc-utils": "1.1.5",
25
25
  "lit": "3.1.0"
26
26
  },
27
- "gitHead": "b13ddd3359734158be660854f9ffe5fc5880c430"
27
+ "gitHead": "334ea71061e13d064f1f59b0f75d84c46d32d860"
28
28
  }