@fluid-topics/ft-file-drop 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.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?pr.error:this.warningMessages.length?pr.warning:pr.default}processRules(o){return o.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return xe([E()],e.prototype,"warningRules",void 0),xe([E()],e.prototype,"errorRules",void 0),xe([E()],e.prototype,"validateOn",void 0),xe([E({type:Boolean})],e.prototype,"validateAtRender",void 0),xe([E()],e.prototype,"label",void 0),xe([E({type:Boolean})],e.prototype,"hideLabel",void 0),xe([E()],e.prototype,"name",void 0),xe([E({type:Boolean})],e.prototype,"disabled",void 0),xe([E()],e.prototype,"helperText",void 0),xe([E()],e.prototype,"forceStatus",void 0),xe([E({reflect:!0})],e.prototype,"value",void 0),xe([ne()],e.prototype,"errorMessages",void 0),xe([ne()],e.prototype,"warningMessages",void 0),xe([ne()],e.prototype,"status",void 0),xe([ne()],e.prototype,"focused",void 0),xe([ne()],e.prototype,"additionalWarningRules",void 0),xe([ne()],e.prototype,"additionalErrorRules",void 0),e});var $o=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),$o(o,e);return!0},$n=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},w2=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),Bp(e)}};function Dp(t){this._$AN!==void 0?($n(this),this._$AM=t,w2(this)):this._$AM=t}function Up(t,e=!1,r=0){let o=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(o))for(let i=r;i<o.length;i++)$o(o[i],!1),$n(o[i]);else o!=null&&($o(o,!1),$n(o));else $o(this,t)}var Bp=t=>{t.type==lt.CHILD&&(t._$AP??=Up,t._$AQ??=Dp)},Vr=class extends $e{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),w2(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&($o(this,e),$n(this))}setValue(e){if(cl(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 Rs=class extends Vr{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 he}update(e){return this.part=e,this.
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?pr.error:this.warningMessages.length?pr.warning:pr.default}processRules(o){return o.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return xe([E()],e.prototype,"warningRules",void 0),xe([E()],e.prototype,"errorRules",void 0),xe([E()],e.prototype,"validateOn",void 0),xe([E({type:Boolean})],e.prototype,"validateAtRender",void 0),xe([E()],e.prototype,"label",void 0),xe([E({type:Boolean})],e.prototype,"hideLabel",void 0),xe([E()],e.prototype,"name",void 0),xe([E({type:Boolean})],e.prototype,"disabled",void 0),xe([E()],e.prototype,"helperText",void 0),xe([E()],e.prototype,"forceStatus",void 0),xe([E({reflect:!0})],e.prototype,"value",void 0),xe([ne()],e.prototype,"errorMessages",void 0),xe([ne()],e.prototype,"warningMessages",void 0),xe([ne()],e.prototype,"status",void 0),xe([ne()],e.prototype,"focused",void 0),xe([ne()],e.prototype,"additionalWarningRules",void 0),xe([ne()],e.prototype,"additionalErrorRules",void 0),e});var $o=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),$o(o,e);return!0},$n=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},w2=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),Bp(e)}};function Dp(t){this._$AN!==void 0?($n(this),this._$AM=t,w2(this)):this._$AM=t}function Up(t,e=!1,r=0){let o=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(o))for(let i=r;i<o.length;i++)$o(o[i],!1),$n(o[i]);else o!=null&&($o(o,!1),$n(o));else $o(this,t)}var Bp=t=>{t.type==lt.CHILD&&(t._$AP??=Up,t._$AQ??=Dp)},Vr=class extends $e{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),w2(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&($o(this,e),$n(this))}setValue(e){if(cl(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 Rs=class extends Vr{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 he}update(e){return this.part=e,this.ensureFocusTrap(e.element),he}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,a;(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(),(a=this.lastTrap)===null||a===void 0||a.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 a=r[o];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusFirstDescendant(a)))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 a=r[o];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusLastDescendant(a)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Be&&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}},wC=Me(Rs);var _2;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(_2||(_2={}));var $p={sm:640,md:768,lg:1024,xl:1280},ws=class extends Vr{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,a]){return this.lastArgs=[r,o,a],this.render(r,o,a)}render(e,r,o){let a=this.resolveThreshold(e),i=o??(()=>X);return this.size>a?r():i()}resolveThreshold(e){return typeof e=="number"?e:$p[e]}},MC=Me(ws);var _s,Ts,Ns,Ms,Ho=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ns=(Ts=(_s=window.safari)===null||_s===void 0?void 0:_s.pushNotification)===null||Ts===void 0?void 0:Ts.toString())!==null&&Ns!==void 0?Ns:"")==="[object SafariRemoteNotification]",Hp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ms=window.ftGlobals)!==null&&Ms!==void 0?Ms:{lit:wa,litDecorators:Ta,litRepeat:Na,litClassMap:Ma,litStyleMap:Pa,litUnsafeHTML:ka,wcUtils:{...Ga,...za,...Za,...xs,...Ya,...qa,...mi,...Fa,...Ti,...As,...L2,...hs,...Ni,...hi,...zi,...vs,...Ii,...Ls,...t1,...Ba,...Bi,...gi,...$i,...O2,...o1,...Hi,...fs,...Cs,...Mi,...ki,...gs,...Va,isSafari:Ho,isTouchScreen:Hp,setVariable:O}};function T2(t,e,r){if(t.length==0)return!0;let o=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),a=new RegExp(o),i=e.includes(".")?"."+e.split(".").pop():void 0;return i&&a.test(i)?!0:a.test(r)}var N2=n.extend("--ft-ripple-color","",G.colorContent),P={color:N2,backgroundColor:n.extend("--ft-ripple-background-color","",N2),opacityContentOnSurfacePressed:n.external(G.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:n.external(G.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:n.external(G.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:n.external(G.opacityContentOnSurfaceSelected,"Design system"),borderRadius:n.create("--ft-ripple-border-radius","","SIZE","0px")},M2=n.extend("--ft-ripple-color","",G.colorPrimary),P2={color:M2,backgroundColor:n.extend("--ft-ripple-background-color","",M2)},k2=n.extend("--ft-ripple-color","",G.colorSecondary),I2={color:k2,backgroundColor:n.extend("--ft-ripple-background-color","",k2)},z2=D`
|
|
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-file-drop",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "Container that accepts dropping files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "2.0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "2.0.
|
|
22
|
+
"@fluid-topics/ft-chip": "2.0.24",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "2.0.24",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "5407e83b63be10ccc5bdeb3551c9f798b9559ae0"
|
|
27
27
|
}
|