@fluid-topics/ft-file-drop 0.3.57 → 0.3.58
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.
- package/build/ft-file-drop.light.js +4 -4
- package/build/ft-file-drop.min.js +159 -159
- package/package.json +4 -4
|
@@ -259,12 +259,12 @@ const Q=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===Q)return null==t?void 0:t
|
|
|
259
259
|
.ft-icon--material {
|
|
260
260
|
font-family: ${ki.materialFontFamily}, "Material Icons", sans-serif;
|
|
261
261
|
}
|
|
262
|
-
`;var Ci;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ci||(Ci={}));var Si=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ji extends i.FtLitElement{constructor(){super(...arguments),this.
|
|
263
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
262
|
+
`;var Ci;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ci||(Ci={}));var Si=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ji extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Ci.fluid_topics,o="material"!==i||this.value;return e.html`
|
|
263
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
264
264
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
265
|
-
<slot ?hidden=${
|
|
265
|
+
<slot ?hidden=${o}></slot>
|
|
266
266
|
</i>
|
|
267
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Ci.file_format:this.resolvedIcon=null!==(t=mi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ci.
|
|
267
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Ci.file_format:this.resolvedIcon=null!==(t=mi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ci.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=bi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ji.elementDefinitions={},ji.styles=zi,Si([o.property()],ji.prototype,"variant",void 0),Si([o.property()],ji.prototype,"value",void 0),Si([o.state()],ji.prototype,"resolvedIcon",void 0),Si([o.query("slot")],ji.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ji);const Oi=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Ei={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Oi,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Dt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Oi),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ii=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Ni={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ii,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ii)},Bi=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ai=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),_i=[i.noTextSelect,e.css`
|
|
268
268
|
:host {
|
|
269
269
|
display: inline-block;
|
|
270
270
|
max-width: 100%;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=e.call(o,t);h||(h=p(t),i.call(o,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),r.set(i,e),i},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let i=t.getRootNode();if(!c(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),c(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=h(e)||window.customElements,r=o._getDefinition(i);return r?u(e,r):n.set(e,o),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,r),e.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);r.call(this,o),e.call(this,o,t,null)}else r.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),r.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const g=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==r.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),r=i.get(o)||[];this[+e]=t,r.push(t),i.set(o,r)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(ae){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -24,7 +24,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function r(t){return o({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
@@ -35,45 +35,45 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
function
|
|
38
|
+
function n(t,i){return(({finisher:t,descriptor:i})=>(e,o)=>{var r;if(void 0===o){const o=null!==(r=e.originalKey)&&void 0!==r?r:e.key,n=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(n.finisher=function(i){t(i,o)}),n}{const r=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(r,o)}})({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var s;null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const
|
|
43
|
+
*/var s;function a(t,i){try{return function(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,r;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!a(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!a(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(o=e;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,r[o]))return!1;for(o=e;0!=o--;){var n=r[o];if(!a(t[n],i[n]))return!1}return!0}return t!=t&&i!=i}(t,i)}catch(t){return!1}}null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const l=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const
|
|
49
|
+
const c=window,h=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),f=new WeakMap;class d{constructor(t,i,e){if(this._$cssResult$=!0,e!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(h&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=f.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&f.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,p),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new d(e,t,p)},v=(t,i)=>{h?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=c.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},g=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var
|
|
54
|
+
*/;var x;const b=window,m=b.trustedTypes,w=m?m.emptyScript:"",$=b.reactiveElementPolyfillSupport,O={toAttribute(t,i){switch(i){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},S=(t,i)=>i!==t&&(i==i||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=k){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const r=this[t];this[i]=o,this.requestUpdate(t,r,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(g(t))}else void 0!==t&&i.push(g(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return v(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=k){var o;const r=this.constructor._$Ep(t,e);if(void 0!==r&&!0===e.reflect){const n=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:O).toAttribute(i,e.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,i){var e;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:O;this._$El=r,this[r]=n.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var C
|
|
60
|
+
var N;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:C}),(null!==(x=b.reactiveElementVersions)&&void 0!==x?x:b.reactiveElementVersions=[]).push("1.4.1");const E=window,R=E.trustedTypes,M=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,U="?"+z,j=`<${U}>`,F=document,B=(t="")=>F.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,T=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),I=/'/g,W=/"/g,K=/^(?:script|style|textarea|title)$/i,H=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),Z=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),J=new WeakMap,q=F.createTreeWalker(F,129,null,!1),X=(t,i)=>{const e=t.length-1,o=[];let r,n=2===i?"<svg>":"",s=P;for(let i=0;i<e;i++){const e=t[i];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===P?"!--"===l[1]?s=D:void 0!==l[1]?s=T:void 0!==l[2]?(K.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=_):void 0!==l[3]&&(s=_):s===_?">"===l[0]?(s=null!=r?r:P,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?_:'"'===l[3]?W:I):s===W||s===I?s=_:s===D||s===T?s=P:(s=_,r=void 0);const p=s===_&&t[i+1].startsWith("/>")?" ":"";n+=s===P?e+j:c>=0?(o.push(a),e.slice(0,c)+"$lit$"+e.slice(c)+z+p):e+z+(-2===c?(o.push(void 0),i):p)}const a=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,o]};class Y{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=X(t,i);if(this.el=Y.createElement(l,e),q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(z)){const e=c[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(z),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?et:"?"===i[1]?rt:"@"===i[1]?nt:it})}else a.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(K.test(o.tagName)){const t=o.textContent.split(z),i=t.length-1;if(i>0){o.textContent=R?R.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],B()),q.nextNode(),a.push({type:2,index:++r});o.append(t[i],B())}}}else if(8===o.nodeType)if(o.data===U)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)a.push({type:7,index:r}),t+=z.length-1}r++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function G(t,i,e=t,o){var r,n,s,a;if(i===Z)return i;let l=void 0!==o?null===(r=e._$Co)||void 0===r?void 0:r[o]:e._$Cl;const c=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=G(t,l._$AS(t,i.values),l,o)),i}class Q{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);q.currentNode=r;let n=q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new tt(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new st(n,this,t)),this.u.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=q.nextNode(),s++)}return r}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class tt{constructor(t,i,e,o){var r;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=G(this,t,i),A(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==Z&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==V&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.p(e);else{const t=new Q(r,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=J.get(t.strings);return void 0===i&&J.set(t.strings,i=new Y(t)),i}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const r of t)o===i.length?i.push(e=new tt(this.O(B()),this.O(B()),this,this.options)):e=i[o],e._$AI(r),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class it{constructor(t,i,e,o,r){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const r=this.strings;let n=!1;if(void 0===r)t=G(this,t,i,0),n=!A(t)||t!==this._$AH&&t!==Z,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=G(this,o[e+s],i,s),a===Z&&(a=this._$AH[s]),n||(n=!A(a)||a!==this._$AH[s]),a===V?t=V:t!==V&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const ot=R?R.emptyScript:"";class rt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends it{constructor(t,i,e,o,r){super(t,i,e,o,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=G(this,t,i,0))&&void 0!==e?e:V)===Z)return;const o=this._$AH,r=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==V&&(o===V||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const at=E.litHtmlPolyfillSupport;null==at||at(Y,tt),(null!==(N=E.litHtmlVersions)&&void 0!==N?N:E.litHtmlVersions=[]).push("2.4.0");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var
|
|
66
|
+
var lt,ct;class ht extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,r;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new tt(i.insertBefore(B(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}ht.finalized=!0,ht._$litElement$=!0,null===(lt=globalThis.litElementHydrateSupport)||void 0===lt||lt.call(globalThis,{LitElement:ht});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ht}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class ft{static create(t,i,e){let o=t=>u(null!=t?t:e),r=y`var(${u(t)}, ${o(e)})`;return r.name=t,r.category=i,r.defaultValue=e,r.defaultCssValue=o,r.get=i=>y`var(${u(t)}, ${o(i)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>e,r}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),r=y`var(${u(t)}, ${o(e)})`;return r.name=t,r.category=i.category,r.fallbackVariable=i,r.defaultValue=e,r.defaultCssValue=o,r.get=i=>y`var(${u(t)}, ${o(i)})`,r.breadcrumb=()=>[i.name,...i.breadcrumb()],r.lastResortDefaultValue=()=>e,r}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):u(null!=i?i:t.defaultValue),o=y`var(${u(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>y`var(${u(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function dt(t,i){return u(`${t.name}: ${i}`)}const ut={colorPrimary:ft.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ft.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ft.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ft.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ft.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ft.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ft.create("--ft-color-error","COLOR","#B00020"),colorOutline:ft.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ft.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ft.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ft.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ft.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ft.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ft.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ft.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ft.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ft.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ft.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ft.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ft.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ft.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ft.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ft.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ft.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ft.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ft.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ft.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ft.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ft.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ft.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ft.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ft.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ft.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ft.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ft.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ft.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ft.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ft.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ft.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ft.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ft.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ft.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ft.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ft.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ft.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ft.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ft.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ft.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ft.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ft.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ft.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ft.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ft.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ft.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ft.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ft.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ft.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ft.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ft.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ft.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ft.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ft.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
70
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/var
|
|
72
|
-
${t.map((t=>
|
|
71
|
+
*/var yt=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};class vt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return v(r,this.constructor.elementStyles),r}}}(ht)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),H`
|
|
72
|
+
${t.map((t=>H`
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,n,
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],e=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}yt([o()],vt.prototype,"exportpartsPrefix",void 0),yt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!a(t,i),...null!=i?i:{}})}([])],vt.prototype,"exportpartsPrefixes",void 0),yt([o()],vt.prototype,"customStylesheet",void 0);const gt=y`
|
|
77
77
|
.ft-no-text-select {
|
|
78
78
|
-webkit-touch-callout: none;
|
|
79
79
|
-webkit-user-select: none;
|
|
@@ -82,7 +82,7 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
82
82
|
-ms-user-select: none;
|
|
83
83
|
user-select: none;
|
|
84
84
|
}
|
|
85
|
-
`;var
|
|
85
|
+
`;var xt,bt,mt;y`
|
|
86
86
|
.ft-word-wrap {
|
|
87
87
|
white-space: normal;
|
|
88
88
|
word-wrap: break-word;
|
|
@@ -94,7 +94,7 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
94
94
|
-webkit-hyphens: auto;
|
|
95
95
|
hyphens: auto
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,y`
|
|
98
98
|
.ft-safari-ellipsis-fix {
|
|
99
99
|
margin-right: 0;
|
|
100
100
|
|
|
@@ -105,17 +105,17 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
105
105
|
display: inline-block;
|
|
106
106
|
width: 0;
|
|
107
107
|
}
|
|
108
|
-
`;const
|
|
108
|
+
`;const wt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(bt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===bt?void 0:bt.toString())&&void 0!==mt?mt:""),$t=1,Ot=2,St=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
109
109
|
/**
|
|
110
110
|
* @license
|
|
111
111
|
* Copyright 2017 Google LLC
|
|
112
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
-
*/class
|
|
113
|
+
*/class kt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2018 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/const
|
|
118
|
+
*/const Ct=St(class extends kt{constructor(t){var i;if(super(t),t.type!==$t||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const r=t.element.classList;this.nt.forEach((t=>{t in i||(r.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return Z}});const Nt=ft.extend("--ft-ripple-color",ut.colorContent),Et={color:Nt,backgroundColor:ft.extend("--ft-ripple-background-color",Nt),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},Rt=ft.extend("--ft-ripple-color",ut.colorPrimary),Mt=Rt,zt=ft.extend("--ft-ripple-background-color",Rt),Ut=ft.extend("--ft-ripple-color",ut.colorSecondary),jt=Ut,Ft=ft.extend("--ft-ripple-background-color",Ut),Bt=y`
|
|
119
119
|
:host {
|
|
120
120
|
display: contents;
|
|
121
121
|
}
|
|
@@ -137,11 +137,11 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.ft-ripple .ft-ripple--background {
|
|
140
|
-
background-color: ${
|
|
140
|
+
background-color: ${Et.backgroundColor};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-ripple .ft-ripple--effect {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${Et.color};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -149,15 +149,15 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${jt};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
156
|
-
background-color: ${
|
|
156
|
+
background-color: ${zt};
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
160
|
-
background-color: ${
|
|
160
|
+
background-color: ${Mt};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.ft-ripple .ft-ripple--background {
|
|
@@ -189,22 +189,22 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
192
|
-
opacity: ${
|
|
192
|
+
opacity: ${Et.opacityContentOnSurfaceHover};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
196
|
-
opacity: ${
|
|
196
|
+
opacity: ${Et.opacityContentOnSurfaceSelected};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
200
|
-
opacity: ${
|
|
200
|
+
opacity: ${Et.opacityContentOnSurfaceFocused};
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
204
|
-
opacity: ${
|
|
204
|
+
opacity: ${Et.opacityContentOnSurfacePressed};
|
|
205
205
|
transform: translate(-50%, -50%) scale(1);
|
|
206
206
|
}
|
|
207
|
-
`;var
|
|
207
|
+
`;var At=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};class Lt extends vt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return H`
|
|
208
208
|
<style>
|
|
209
209
|
.ft-ripple .ft-ripple--effect,
|
|
210
210
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -217,125 +217,125 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
|
|
|
217
217
|
top: ${this.originY}px;
|
|
218
218
|
}
|
|
219
219
|
</style>
|
|
220
|
-
<div class="${
|
|
220
|
+
<div class="${Ct(t)}">
|
|
221
221
|
<div class="ft-ripple--background"></div>
|
|
222
222
|
<div class="ft-ripple--effect"></div>
|
|
223
223
|
</div>
|
|
224
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),
|
|
224
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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 i=t,e=t;let o,r;return null!=i.x?({x:o,y:r}=i):null!=e.touches&&(o=e.touches[0].clientX,r=e.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Lt.elementDefinitions={},Lt.styles=Bt,At([o({type:Boolean})],Lt.prototype,"primary",void 0),At([o({type:Boolean})],Lt.prototype,"secondary",void 0),At([o({type:Boolean})],Lt.prototype,"unbounded",void 0),At([o({type:Boolean})],Lt.prototype,"activated",void 0),At([o({type:Boolean})],Lt.prototype,"selected",void 0),At([o({type:Boolean})],Lt.prototype,"disabled",void 0),At([r()],Lt.prototype,"hovered",void 0),At([r()],Lt.prototype,"focused",void 0),At([r()],Lt.prototype,"pressed",void 0),At([r()],Lt.prototype,"rippling",void 0),At([r()],Lt.prototype,"rippleSize",void 0),At([r()],Lt.prototype,"originX",void 0),At([r()],Lt.prototype,"originY",void 0),At([n(".ft-ripple")],Lt.prototype,"ripple",void 0),At([n(".ft-ripple--effect")],Lt.prototype,"rippleEffect",void 0),l("ft-ripple")(Lt);
|
|
225
225
|
/**
|
|
226
226
|
* @license
|
|
227
227
|
* Copyright 2020 Google LLC
|
|
228
228
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
229
229
|
*/
|
|
230
|
-
const
|
|
230
|
+
const Pt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},Tt=t=>({_$litStatic$:t,r:Pt}),_t=new Map,It=(t=>(i,...e)=>{const o=e.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(n=e[c],r=Dt(n));)l+=r+i[++c],h=!0;a.push(n),s.push(l),c++}if(c===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=_t.get(t))&&(s.raw=s,_t.set(t,i=s)),e=a}return t(i,...e)})(H);var Wt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Wt||(Wt={}));const Kt=ft.extend("--ft-typography-font-family",ut.titleFont),Ht=ft.extend("--ft-typography-font-family",ut.contentFont),Zt={fontFamily:Ht,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Vt=ft.extend("--ft-typography-title-font-family",Kt),Jt=ft.extend("--ft-typography-title-font-size",Zt.fontSize,"20px"),qt=ft.extend("--ft-typography-title-font-weight",Zt.fontWeight,"normal"),Xt=ft.extend("--ft-typography-title-letter-spacing",Zt.letterSpacing,"0.15px"),Yt=ft.extend("--ft-typography-title-line-height",Zt.lineHeight,"1.2"),Gt=ft.extend("--ft-typography-title-text-transform",Zt.textTransform,"inherit"),Qt=ft.extend("--ft-typography-title-dense-font-family",Kt),ti=ft.extend("--ft-typography-title-dense-font-size",Zt.fontSize,"14px"),ii=ft.extend("--ft-typography-title-dense-font-weight",Zt.fontWeight,"normal"),ei=ft.extend("--ft-typography-title-dense-letter-spacing",Zt.letterSpacing,"0.105px"),oi=ft.extend("--ft-typography-title-dense-line-height",Zt.lineHeight,"1.7"),ri=ft.extend("--ft-typography-title-dense-text-transform",Zt.textTransform,"inherit"),ni=ft.extend("--ft-typography-subtitle1-font-family",Ht),si=ft.extend("--ft-typography-subtitle1-font-size",Zt.fontSize,"16px"),ai=ft.extend("--ft-typography-subtitle1-font-weight",Zt.fontWeight,"600"),li=ft.extend("--ft-typography-subtitle1-letter-spacing",Zt.letterSpacing,"0.144px"),ci=ft.extend("--ft-typography-subtitle1-line-height",Zt.lineHeight,"1.5"),hi=ft.extend("--ft-typography-subtitle1-text-transform",Zt.textTransform,"inherit"),pi=ft.extend("--ft-typography-subtitle2-font-family",Ht),fi=ft.extend("--ft-typography-subtitle2-font-size",Zt.fontSize,"14px"),di=ft.extend("--ft-typography-subtitle2-font-weight",Zt.fontWeight,"normal"),ui=ft.extend("--ft-typography-subtitle2-letter-spacing",Zt.letterSpacing,"0.098px"),yi=ft.extend("--ft-typography-subtitle2-line-height",Zt.lineHeight,"1.7"),vi=ft.extend("--ft-typography-subtitle2-text-transform",Zt.textTransform,"inherit"),gi=ft.extend("--ft-typography-body1-font-family",Ht),xi=ft.extend("--ft-typography-body1-font-size",Zt.fontSize,"16px"),bi=ft.extend("--ft-typography-body1-font-weight",Zt.fontWeight,"normal"),mi=ft.extend("--ft-typography-body1-letter-spacing",Zt.letterSpacing,"0.496px"),wi=ft.extend("--ft-typography-body1-line-height",Zt.lineHeight,"1.5"),$i=ft.extend("--ft-typography-body1-text-transform",Zt.textTransform,"inherit"),Oi={fontFamily:ft.extend("--ft-typography-body2-font-family",Ht),fontSize:ft.extend("--ft-typography-body2-font-size",Zt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-body2-font-weight",Zt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body2-letter-spacing",Zt.letterSpacing,"0.252px"),lineHeight:ft.extend("--ft-typography-body2-line-height",Zt.lineHeight,"1.4"),textTransform:ft.extend("--ft-typography-body2-text-transform",Zt.textTransform,"inherit")},Si=ft.extend("--ft-typography-caption-font-family",Ht),ki=ft.extend("--ft-typography-caption-font-size",Zt.fontSize,"12px"),Ci=ft.extend("--ft-typography-caption-font-weight",Zt.fontWeight,"normal"),Ni=ft.extend("--ft-typography-caption-letter-spacing",Zt.letterSpacing,"0.396px"),Ei=ft.extend("--ft-typography-caption-line-height",Zt.lineHeight,"1.33"),Ri=ft.extend("--ft-typography-caption-text-transform",Zt.textTransform,"inherit"),Mi=ft.extend("--ft-typography-breadcrumb-font-family",Ht),zi=ft.extend("--ft-typography-breadcrumb-font-size",Zt.fontSize,"10px"),Ui=ft.extend("--ft-typography-breadcrumb-font-weight",Zt.fontWeight,"normal"),ji=ft.extend("--ft-typography-breadcrumb-letter-spacing",Zt.letterSpacing,"0.33px"),Fi=ft.extend("--ft-typography-breadcrumb-line-height",Zt.lineHeight,"1.6"),Bi=ft.extend("--ft-typography-breadcrumb-text-transform",Zt.textTransform,"inherit"),Ai=ft.extend("--ft-typography-overline-font-family",Ht),Li=ft.extend("--ft-typography-overline-font-size",Zt.fontSize,"10px"),Pi=ft.extend("--ft-typography-overline-font-weight",Zt.fontWeight,"normal"),Di=ft.extend("--ft-typography-overline-letter-spacing",Zt.letterSpacing,"1.5px"),Ti=ft.extend("--ft-typography-overline-line-height",Zt.lineHeight,"1.6"),_i=ft.extend("--ft-typography-overline-text-transform",Zt.textTransform,"uppercase"),Ii=ft.extend("--ft-typography-button-font-family",Ht),Wi=ft.extend("--ft-typography-button-font-size",Zt.fontSize,"14px"),Ki=ft.extend("--ft-typography-button-font-weight",Zt.fontWeight,"600"),Hi=ft.extend("--ft-typography-button-letter-spacing",Zt.letterSpacing,"1.246px"),Zi=ft.extend("--ft-typography-button-line-height",Zt.lineHeight,"1.15"),Vi=ft.extend("--ft-typography-button-text-transform",Zt.textTransform,"uppercase"),Ji=y`
|
|
231
231
|
.ft-typography--title {
|
|
232
|
-
font-family: ${
|
|
233
|
-
font-size: ${
|
|
234
|
-
font-weight: ${
|
|
235
|
-
letter-spacing: ${
|
|
236
|
-
line-height: ${
|
|
237
|
-
text-transform: ${
|
|
238
|
-
}
|
|
239
|
-
`,
|
|
232
|
+
font-family: ${Vt};
|
|
233
|
+
font-size: ${Jt};
|
|
234
|
+
font-weight: ${qt};
|
|
235
|
+
letter-spacing: ${Xt};
|
|
236
|
+
line-height: ${Yt};
|
|
237
|
+
text-transform: ${Gt};
|
|
238
|
+
}
|
|
239
|
+
`,qi=y`
|
|
240
240
|
.ft-typography--title-dense {
|
|
241
|
-
font-family: ${
|
|
242
|
-
font-size: ${
|
|
243
|
-
font-weight: ${
|
|
244
|
-
letter-spacing: ${
|
|
245
|
-
line-height: ${
|
|
246
|
-
text-transform: ${
|
|
247
|
-
}
|
|
248
|
-
`,
|
|
241
|
+
font-family: ${Qt};
|
|
242
|
+
font-size: ${ti};
|
|
243
|
+
font-weight: ${ii};
|
|
244
|
+
letter-spacing: ${ei};
|
|
245
|
+
line-height: ${oi};
|
|
246
|
+
text-transform: ${ri};
|
|
247
|
+
}
|
|
248
|
+
`,Xi=y`
|
|
249
249
|
.ft-typography--subtitle1 {
|
|
250
250
|
font-family: ${ni};
|
|
251
|
-
font-size: ${
|
|
252
|
-
font-weight: ${
|
|
253
|
-
letter-spacing: ${
|
|
254
|
-
line-height: ${
|
|
255
|
-
text-transform: ${
|
|
251
|
+
font-size: ${si};
|
|
252
|
+
font-weight: ${ai};
|
|
253
|
+
letter-spacing: ${li};
|
|
254
|
+
line-height: ${ci};
|
|
255
|
+
text-transform: ${hi};
|
|
256
256
|
}
|
|
257
|
-
`,
|
|
257
|
+
`,Yi=y`
|
|
258
258
|
.ft-typography--subtitle2 {
|
|
259
|
-
font-family: ${
|
|
260
|
-
font-size: ${
|
|
261
|
-
font-weight: ${
|
|
262
|
-
letter-spacing: ${
|
|
263
|
-
line-height: ${
|
|
264
|
-
text-transform: ${
|
|
259
|
+
font-family: ${pi};
|
|
260
|
+
font-size: ${fi};
|
|
261
|
+
font-weight: ${di};
|
|
262
|
+
letter-spacing: ${ui};
|
|
263
|
+
line-height: ${yi};
|
|
264
|
+
text-transform: ${vi};
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
`,
|
|
267
|
+
`,Gi=y`
|
|
268
268
|
.ft-typography--body1 {
|
|
269
|
-
font-family: ${
|
|
270
|
-
font-size: ${
|
|
271
|
-
font-weight: ${
|
|
272
|
-
letter-spacing: ${
|
|
273
|
-
line-height: ${
|
|
274
|
-
text-transform: ${
|
|
275
|
-
}
|
|
276
|
-
`,
|
|
269
|
+
font-family: ${gi};
|
|
270
|
+
font-size: ${xi};
|
|
271
|
+
font-weight: ${bi};
|
|
272
|
+
letter-spacing: ${mi};
|
|
273
|
+
line-height: ${wi};
|
|
274
|
+
text-transform: ${$i};
|
|
275
|
+
}
|
|
276
|
+
`,Qi=y`
|
|
277
277
|
.ft-typography--body2 {
|
|
278
|
-
font-family: ${
|
|
279
|
-
font-size: ${
|
|
280
|
-
font-weight: ${
|
|
281
|
-
letter-spacing: ${
|
|
282
|
-
line-height: ${
|
|
283
|
-
text-transform: ${
|
|
284
|
-
}
|
|
285
|
-
`,
|
|
278
|
+
font-family: ${Oi.fontFamily};
|
|
279
|
+
font-size: ${Oi.fontSize};
|
|
280
|
+
font-weight: ${Oi.fontWeight};
|
|
281
|
+
letter-spacing: ${Oi.letterSpacing};
|
|
282
|
+
line-height: ${Oi.lineHeight};
|
|
283
|
+
text-transform: ${Oi.textTransform};
|
|
284
|
+
}
|
|
285
|
+
`,te=y`
|
|
286
286
|
.ft-typography--caption {
|
|
287
|
-
font-family: ${
|
|
288
|
-
font-size: ${
|
|
289
|
-
font-weight: ${
|
|
290
|
-
letter-spacing: ${
|
|
291
|
-
line-height: ${
|
|
292
|
-
text-transform: ${
|
|
293
|
-
}
|
|
294
|
-
`,
|
|
287
|
+
font-family: ${Si};
|
|
288
|
+
font-size: ${ki};
|
|
289
|
+
font-weight: ${Ci};
|
|
290
|
+
letter-spacing: ${Ni};
|
|
291
|
+
line-height: ${Ei};
|
|
292
|
+
text-transform: ${Ri};
|
|
293
|
+
}
|
|
294
|
+
`,ie=y`
|
|
295
295
|
.ft-typography--breadcrumb {
|
|
296
|
-
font-family: ${
|
|
297
|
-
font-size: ${
|
|
298
|
-
font-weight: ${
|
|
299
|
-
letter-spacing: ${
|
|
296
|
+
font-family: ${Mi};
|
|
297
|
+
font-size: ${zi};
|
|
298
|
+
font-weight: ${Ui};
|
|
299
|
+
letter-spacing: ${ji};
|
|
300
300
|
line-height: ${Fi};
|
|
301
|
-
text-transform: ${
|
|
301
|
+
text-transform: ${Bi};
|
|
302
302
|
}
|
|
303
|
-
`,
|
|
303
|
+
`,ee=y`
|
|
304
304
|
.ft-typography--overline {
|
|
305
|
-
font-family: ${
|
|
306
|
-
font-size: ${
|
|
307
|
-
font-weight: ${
|
|
308
|
-
letter-spacing: ${
|
|
309
|
-
line-height: ${
|
|
310
|
-
text-transform: ${
|
|
311
|
-
}
|
|
312
|
-
`,
|
|
305
|
+
font-family: ${Ai};
|
|
306
|
+
font-size: ${Li};
|
|
307
|
+
font-weight: ${Pi};
|
|
308
|
+
letter-spacing: ${Di};
|
|
309
|
+
line-height: ${Ti};
|
|
310
|
+
text-transform: ${_i};
|
|
311
|
+
}
|
|
312
|
+
`,oe=y`
|
|
313
313
|
.ft-typography--button {
|
|
314
|
-
font-family: ${
|
|
315
|
-
font-size: ${
|
|
316
|
-
font-weight: ${
|
|
317
|
-
letter-spacing: ${
|
|
318
|
-
line-height: ${
|
|
319
|
-
text-transform: ${
|
|
320
|
-
}
|
|
321
|
-
`,
|
|
314
|
+
font-family: ${Ii};
|
|
315
|
+
font-size: ${Wi};
|
|
316
|
+
font-weight: ${Ki};
|
|
317
|
+
letter-spacing: ${Hi};
|
|
318
|
+
line-height: ${Zi};
|
|
319
|
+
text-transform: ${Vi};
|
|
320
|
+
}
|
|
321
|
+
`,re=y`
|
|
322
322
|
.ft-typography {
|
|
323
323
|
vertical-align: inherit;
|
|
324
324
|
}
|
|
325
|
-
`;var ne=function(t,i,e,o){for(var n
|
|
326
|
-
<${
|
|
325
|
+
`;var ne=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};class se extends vt{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?It`
|
|
326
|
+
<${Tt(this.element)}
|
|
327
327
|
class="ft-typography ft-typography--${this.variant}">
|
|
328
328
|
<slot></slot>
|
|
329
|
-
</${
|
|
330
|
-
`:
|
|
329
|
+
</${Tt(this.element)}>
|
|
330
|
+
`:It`
|
|
331
331
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
332
|
-
`}}
|
|
332
|
+
`}}se.styles=[Ji,qi,Xi,Yi,Gi,Qi,te,ie,ee,oe,re],ne([o()],se.prototype,"element",void 0),ne([o()],se.prototype,"variant",void 0),l("ft-typography")(se);
|
|
333
333
|
/**
|
|
334
334
|
* @license
|
|
335
335
|
* Copyright 2017 Google LLC
|
|
336
336
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
337
337
|
*/
|
|
338
|
-
class
|
|
338
|
+
class ae extends kt{constructor(t){if(super(t),this.it=V,t.type!==Ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this._t=void 0,this.it=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ae.directiveName="unsafeHTML",ae.resultType=1;const le=St(ae);var ce,he;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ce||(ce={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(he||(he={})),new Map([...["abw"].map((t=>[t,he.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,he.AUDIO])),...["avi"].map((t=>[t,he.AVI])),...["chm","xhs"].map((t=>[t,he.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,he.CODE])),...["csv"].map((t=>[t,he.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,he.DITA])),...["epub"].map((t=>[t,he.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,he.EXCEL])),...["flac"].map((t=>[t,he.FLAC])),...["gif"].map((t=>[t,he.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,he.GZIP])),...["html","htm","xhtml"].map((t=>[t,he.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,he.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,he.JPEG])),...["json"].map((t=>[t,he.JSON])),...["m4a","m4p"].map((t=>[t,he.M4A])),...["mov","qt"].map((t=>[t,he.MOV])),...["mp3"].map((t=>[t,he.MP3])),...["mp4","m4v"].map((t=>[t,he.MP4])),...["ogg","oga"].map((t=>[t,he.OGG])),...["pdf","ps"].map((t=>[t,he.PDF])),...["png"].map((t=>[t,he.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,he.POWERPOINT])),...["rar"].map((t=>[t,he.RAR])),...["stp"].map((t=>[t,he.STP])),...["txt","rtf","md","mdown"].map((t=>[t,he.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,he.VIDEO])),...["wav"].map((t=>[t,he.WAV])),...["wma"].map((t=>[t,he.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,he.WORD])),...["xml","xsl","rdf"].map((t=>[t,he.XML])),...["yaml","yml","x-yaml"].map((t=>[t,he.YAML])),...["zip"].map((t=>[t,he.ZIP]))]);const pe={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")},fe=y`
|
|
339
339
|
:host, i.ft-icon {
|
|
340
340
|
display: inline-flex;
|
|
341
341
|
align-items: center;
|
|
@@ -344,14 +344,14 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
:host {
|
|
347
|
-
width: ${
|
|
348
|
-
height: ${
|
|
347
|
+
width: ${pe.size};
|
|
348
|
+
height: ${pe.size};
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
i.ft-icon {
|
|
352
352
|
width: 100%;
|
|
353
353
|
height: 100%;
|
|
354
|
-
font-size: ${
|
|
354
|
+
font-size: ${pe.size};
|
|
355
355
|
line-height: 1;
|
|
356
356
|
font-weight: normal;
|
|
357
357
|
text-transform: none;
|
|
@@ -362,32 +362,32 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
362
362
|
text-rendering: auto;
|
|
363
363
|
-webkit-font-smoothing: antialiased;
|
|
364
364
|
-moz-osx-font-smoothing: grayscale;
|
|
365
|
-
vertical-align: ${
|
|
365
|
+
vertical-align: ${pe.verticalAlign};
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
i.ft-icon.ft-icon--fluid-topics {
|
|
369
|
-
font-family: ${
|
|
369
|
+
font-family: ${pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
370
370
|
|
|
371
371
|
/* Ugly fix because font is broken */
|
|
372
|
-
font-size: calc(0.9 * ${
|
|
372
|
+
font-size: calc(0.9 * ${pe.size});
|
|
373
373
|
position: relative;
|
|
374
374
|
top: -5%;
|
|
375
375
|
justify-content: center;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.ft-icon--file-format {
|
|
379
|
-
font-family: ${
|
|
379
|
+
font-family: ${pe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
.ft-icon--material {
|
|
383
|
-
font-family: ${
|
|
383
|
+
font-family: ${pe.materialFontFamily}, "Material Icons", sans-serif;
|
|
384
384
|
}
|
|
385
|
-
`;var
|
|
386
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
387
|
-
${
|
|
388
|
-
<slot ?hidden=${
|
|
385
|
+
`;var de;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(de||(de={}));var ue=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};class ye extends vt{constructor(){super(...arguments),this.resolvedIcon=V}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:de.fluid_topics,e="material"!==i||this.value;return H`
|
|
386
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
387
|
+
${le(this.resolvedIcon)}
|
|
388
|
+
<slot ?hidden=${e}></slot>
|
|
389
389
|
</i>
|
|
390
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case
|
|
390
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case de.file_format:this.resolvedIcon=null!==(t=he[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case de.material:this.resolvedIcon=this.value||V;break;default:this.resolvedIcon=null!==(i=ce[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ye.elementDefinitions={},ye.styles=fe,ue([o()],ye.prototype,"variant",void 0),ue([o()],ye.prototype,"value",void 0),ue([r()],ye.prototype,"resolvedIcon",void 0),ue([n("slot")],ye.prototype,"slottedContent",void 0),l("ft-icon")(ye);const ve=ft.extend("--ft-chip-color",ut.colorOnSurface),ge={backgroundColor:ft.extend("--ft-chip-background-color",ut.colorSurface),color:ve,fontSize:ft.extend("--ft-chip-font-size",Oi.fontSize),iconSize:ft.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:ft.extend("--ft-chip-ripple-color",ve),horizontalPadding:ft.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:ft.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:ft.external(ut.colorOutline,"Design system"),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},xe=ft.extend("--ft-chip-highlighted-color",ft.extend("--ft-chip-color",ut.colorOnPrimary)),be={backgroundColor:ft.extend("--ft-chip-highlighted-background-color",ft.extend("--ft-chip-background-color",ut.colorPrimary)),color:xe,rippleColor:ft.extend("--ft-chip-highlighted-ripple-color",xe)},me=ft.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),we=ft.create("--ft-chip-dense-vertical-padding","SIZE","4px"),$e=[gt,y`
|
|
391
391
|
:host {
|
|
392
392
|
display: inline-block;
|
|
393
393
|
max-width: 100%;
|
|
@@ -404,20 +404,20 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
404
404
|
box-sizing: border-box;
|
|
405
405
|
pointer-events: auto;
|
|
406
406
|
|
|
407
|
-
--ft-chip-internal-font-size: ${
|
|
407
|
+
--ft-chip-internal-font-size: ${ge.fontSize};
|
|
408
408
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
409
|
-
${
|
|
410
|
-
--ft-chip-internal-vertical-padding: ${
|
|
411
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
409
|
+
${dt(pe.size,ge.iconSize)};
|
|
410
|
+
--ft-chip-internal-vertical-padding: ${ge.verticalPadding};
|
|
411
|
+
--ft-chip-internal-horizontal-padding: ${ge.horizontalPadding};
|
|
412
412
|
--ft-chip-internal-icon-padding: 3px;
|
|
413
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
413
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ge.iconSize});
|
|
414
414
|
|
|
415
|
-
border: 1px solid ${
|
|
416
|
-
color: ${
|
|
417
|
-
${
|
|
415
|
+
border: 1px solid ${ge.colorOutline};
|
|
416
|
+
color: ${ge.color};
|
|
417
|
+
${dt(Et.color,ge.rippleColor)};
|
|
418
418
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
419
419
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
420
|
-
background-color: ${
|
|
420
|
+
background-color: ${ge.backgroundColor};
|
|
421
421
|
line-height: var(--ft-chip-internal-content-height);
|
|
422
422
|
}
|
|
423
423
|
|
|
@@ -427,8 +427,8 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
427
427
|
|
|
428
428
|
.ft-chip--dense {
|
|
429
429
|
--ft-chip-internal-icon-padding: 3px;
|
|
430
|
-
--ft-chip-internal-vertical-padding: ${
|
|
431
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
430
|
+
--ft-chip-internal-vertical-padding: ${we};
|
|
431
|
+
--ft-chip-internal-horizontal-padding: ${me};
|
|
432
432
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
433
433
|
}
|
|
434
434
|
|
|
@@ -440,15 +440,15 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
440
440
|
cursor: default;
|
|
441
441
|
pointer-events: none;
|
|
442
442
|
filter: grayscale(1);
|
|
443
|
-
opacity: ${
|
|
443
|
+
opacity: ${ge.opacityDisabled};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
.ft-chip--highlighted {
|
|
447
447
|
border: none;
|
|
448
448
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
449
|
-
background-color: ${
|
|
450
|
-
${
|
|
451
|
-
color: ${
|
|
449
|
+
background-color: ${be.backgroundColor};
|
|
450
|
+
${dt(Et.color,be.rippleColor)};
|
|
451
|
+
color: ${be.color};
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
.ft-chip--clickable {
|
|
@@ -481,8 +481,8 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
481
481
|
vertical-align: bottom;
|
|
482
482
|
display: block;
|
|
483
483
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
484
|
-
${
|
|
485
|
-
${
|
|
484
|
+
${dt(Oi.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
485
|
+
${dt(Oi.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -517,8 +517,8 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
517
517
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
518
518
|
order: -1;
|
|
519
519
|
}
|
|
520
|
-
`];var
|
|
521
|
-
<div class="${
|
|
520
|
+
`];var Oe=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};class Se extends CustomEvent{constructor(){super("icon-click")}}class ke extends vt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":wt};return H`
|
|
521
|
+
<div class="${Ct(t)}"
|
|
522
522
|
aria-label="${this.getLabel()}"
|
|
523
523
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
524
524
|
@keyup=${this.onKeyUp}>
|
|
@@ -528,7 +528,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
528
528
|
</ft-typography>
|
|
529
529
|
${this.internalIcon?this.renderIcon():null}
|
|
530
530
|
</div>
|
|
531
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return
|
|
531
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return H`
|
|
532
532
|
<div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
|
|
533
533
|
tabindex="${this.interactionsOnIcon?0:-1}"
|
|
534
534
|
@click=${this.onIconClick}
|
|
@@ -536,7 +536,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
536
536
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
537
537
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
538
538
|
</div>
|
|
539
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
539
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Se))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Se))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}ke.elementDefinitions={"ft-ripple":Lt,"ft-typography":se,"ft-icon":ye},ke.styles=$e,Oe([o({type:Boolean})],ke.prototype,"highlighted",void 0),Oe([o({type:Boolean})],ke.prototype,"removable",void 0),Oe([o({type:Boolean})],ke.prototype,"disabled",void 0),Oe([o({type:Boolean})],ke.prototype,"clickable",void 0),Oe([o({type:Boolean})],ke.prototype,"iconClickable",void 0),Oe([o({type:Boolean})],ke.prototype,"dense",void 0),Oe([o({type:Boolean})],ke.prototype,"multiLine",void 0),Oe([o({type:String})],ke.prototype,"label",void 0),Oe([o({type:String})],ke.prototype,"icon",void 0),Oe([o({type:Boolean})],ke.prototype,"trailingIcon",void 0),Oe([n("ft-typography slot")],ke.prototype,"slottedContent",void 0),l("ft-chip")(ke);const Ce={zIndex:ft.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:ft.extend("--ft-file-drop-hint-background-color",ut.colorSurface),hintColor:ft.extend("--ft-file-drop-hint-color",ut.colorPrimary),errorColor:ft.extend("--ft-file-drop-error-color",ut.colorError),borderRadius:ft.extend("--ft-file-drop-border-radius",ut.borderRadiusL),borderWidth:ft.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:ft.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:ft.extend("--ft-file-drop-visible-border-color",ut.colorOutline),activeBorderColor:ft.extend("--ft-file-drop-active-border-color",ut.colorPrimary)},Ne=y`
|
|
540
540
|
:host {
|
|
541
541
|
display: block;
|
|
542
542
|
position: relative;
|
|
@@ -545,16 +545,16 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
545
545
|
#container {
|
|
546
546
|
position: absolute;
|
|
547
547
|
inset: 0;
|
|
548
|
-
border: dashed ${
|
|
549
|
-
border-radius: ${
|
|
548
|
+
border: dashed ${Ce.borderWidth} ${Ce.borderColor};
|
|
549
|
+
border-radius: ${Ce.borderRadius};
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
#container.visible {
|
|
553
|
-
border-color: ${
|
|
553
|
+
border-color: ${Ce.visibleBorderColor}
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
#container.dragging {
|
|
557
|
-
border-color: ${
|
|
557
|
+
border-color: ${Ce.activeBorderColor}
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
slot {
|
|
@@ -568,7 +568,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
568
568
|
display: none;
|
|
569
569
|
position: absolute;
|
|
570
570
|
inset: 0;
|
|
571
|
-
z-index: ${
|
|
571
|
+
z-index: ${Ce.zIndex};
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
#container.dragging #overlay {
|
|
@@ -579,9 +579,9 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
579
579
|
z-index: 1;
|
|
580
580
|
position: absolute;
|
|
581
581
|
inset: 0;
|
|
582
|
-
background-color: ${
|
|
582
|
+
background-color: ${Ce.activeBorderColor};
|
|
583
583
|
opacity: 0.20;
|
|
584
|
-
border-radius: ${
|
|
584
|
+
border-radius: ${Ce.borderRadius};
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
#overlay-drop {
|
|
@@ -601,22 +601,22 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
601
601
|
|
|
602
602
|
#overlay-content ft-chip {
|
|
603
603
|
margin-bottom: 10%;
|
|
604
|
-
${
|
|
605
|
-
${
|
|
606
|
-
${
|
|
604
|
+
${dt(ge.color,Ce.hintColor)};
|
|
605
|
+
${dt(ge.iconSize,"32px")};
|
|
606
|
+
${dt(ge.colorOutline,"transparent")};
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
#overlay-content xft-chip[icon=error] {
|
|
610
|
-
${
|
|
611
|
-
${
|
|
610
|
+
${dt(ge.color,Ce.errorColor)};
|
|
611
|
+
${dt(ge.backgroundColor,Ce.hintBackgroundColor)};
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
[hidden] {
|
|
615
615
|
display: none;
|
|
616
616
|
}
|
|
617
|
-
`;var
|
|
617
|
+
`;var Ee=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};class Re extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class Me extends vt{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return H`
|
|
618
618
|
<div id="container"
|
|
619
|
-
class="${
|
|
619
|
+
class="${Ct(t)}"
|
|
620
620
|
@dragenter=${this.onDragEnter}
|
|
621
621
|
@dragover=${this.onDragOver}
|
|
622
622
|
@drop=${this.onDrop}>
|
|
@@ -632,4 +632,4 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
|
|
|
632
632
|
</div>
|
|
633
633
|
<slot></slot>
|
|
634
634
|
</div>
|
|
635
|
-
`}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let i=t.dataTransfer.files[0];!function(t,i,e){if(0==t.length)return!0;let o=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),
|
|
635
|
+
`}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let i=t.dataTransfer.files[0];!function(t,i,e){if(0==t.length)return!0;let o=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),r=new RegExp(o),n=i.includes(".")?"."+i.split(".").pop():void 0;return!(!n||!r.test(n))||r.test(e)}(this.accept,i.name,i.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Re(i)))}}}Me.elementDefinitions={"ft-chip":ke},Me.styles=Ne,Ee([o()],Me.prototype,"dropHint",void 0),Ee([o()],Me.prototype,"accept",void 0),Ee([o()],Me.prototype,"fileTypeError",void 0),Ee([o({type:Boolean})],Me.prototype,"visible",void 0),Ee([r()],Me.prototype,"dragging",void 0),Ee([r()],Me.prototype,"fileError",void 0),l("ft-file-drop")(Me),t.FileDropEvent=Re,t.FtFileDrop=Me,t.FtFileDropCssVariables=Ce,t.styles=Ne,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-file-drop",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.58",
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-chip": "0.3.58",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "0.3.58",
|
|
24
24
|
"lit": "2.2.8"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
|
|
27
27
|
}
|