@fluid-topics/ft-file-button 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-file-button.inline-styles.js +152 -136
- package/build/ft-file-button.light.js +143 -127
- package/build/ft-file-button.min.js +150 -134
- package/package.json +4 -4
|
@@ -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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(r.set(n,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(r.set(n,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!p(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(pi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -44,12 +44,12 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/,h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),f=new Map;class d{constructor(t,e){if(this._$cssResult$=!0,e!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=f.get(this.cssText);return h&&void 0===t&&(f.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",c),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(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.")})(i)+t[o+1]),t[0]);return new d(i,c)},
|
|
47
|
+
*/,h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),f=new Map;class d{constructor(t,e){if(this._$cssResult$=!0,e!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=f.get(this.cssText);return h&&void 0===t&&(f.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",c),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(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.")})(i)+t[o+1]),t[0]);return new d(i,c)},b=(t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var v;const g=window.trustedTypes,m=g?g.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}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._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(
|
|
52
|
+
*/;var v;const g=window.trustedTypes,m=g?g.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}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._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=S){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:$.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:$.fromAttribute;this._$Ei=r,this[r]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
@@ -66,7 +66,7 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2021 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/class dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return
|
|
69
|
+
*/class dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return b(n,this.constructor.elementStyles),n}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),I`
|
|
70
70
|
${t.map((t=>I`
|
|
71
71
|
<style>${t}</style>
|
|
72
72
|
`))}
|
|
@@ -80,7 +80,7 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
80
80
|
-ms-user-select: none;
|
|
81
81
|
user-select: none;
|
|
82
82
|
}
|
|
83
|
-
`;var yt,xt
|
|
83
|
+
`;var yt,bt,xt;const vt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(xt=null===(bt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===bt?void 0:bt.toString())&&void 0!==xt?xt:""),gt=1,mt=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
84
84
|
/**
|
|
85
85
|
* @license
|
|
86
86
|
* Copyright 2017 Google LLC
|
|
@@ -90,7 +90,7 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
90
90
|
* @license
|
|
91
91
|
* Copyright 2018 Google LLC
|
|
92
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
-
*/const Ot=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==gt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const n=t.element.classList;this.st.forEach((t=>{t in e||(n.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return H}});var St=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const kt=
|
|
93
|
+
*/const Ot=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==gt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const n=t.element.classList;this.st.forEach((t=>{t in e||(n.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return H}});var St=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const kt=ht.extend("--ft-ripple-color",ft.colorContent),Ct={color:kt,backgroundColor:ht.extend("--ft-ripple-background-color",kt),opacityContentOnSurfacePressed:ht.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(ft.opacityContentOnSurfaceSelected,"Design system")},Nt=ht.extend("--ft-ripple-color",ft.colorPrimary),Et=Nt,Rt=ht.extend("--ft-ripple-background-color",Nt),Mt=ht.extend("--ft-ripple-color",ft.colorSecondary),zt=Mt,Ft=ht.extend("--ft-ripple-background-color",Mt);class Ut extends dt{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 e(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.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 I`
|
|
94
94
|
<style>
|
|
95
95
|
.ft-ripple .ft-ripple--effect,
|
|
96
96
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -107,7 +107,7 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
107
107
|
<div class="ft-ripple--background"></div>
|
|
108
108
|
<div class="ft-ripple--effect"></div>
|
|
109
109
|
</div>
|
|
110
|
-
`}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){super.updated(t),t.has("disabled")&&this.disabled
|
|
110
|
+
`}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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),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",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ut.elementDefinitions={},Ut.styles=y`
|
|
111
111
|
:host {
|
|
112
112
|
display: contents;
|
|
113
113
|
}
|
|
@@ -126,17 +126,30 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
126
126
|
.ft-ripple .ft-ripple--effect {
|
|
127
127
|
position: absolute;
|
|
128
128
|
opacity: 0;
|
|
129
|
-
background-color: ${kt.color};
|
|
130
129
|
}
|
|
131
130
|
|
|
132
|
-
.ft-ripple
|
|
131
|
+
.ft-ripple .ft-ripple--background {
|
|
132
|
+
background-color: ${Ct.backgroundColor};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ft-ripple .ft-ripple--effect {
|
|
136
|
+
background-color: ${Ct.color};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
140
|
+
background-color: ${Ft};
|
|
141
|
+
}
|
|
142
|
+
|
|
133
143
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
134
|
-
background-color: ${
|
|
144
|
+
background-color: ${zt};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
148
|
+
background-color: ${Rt};
|
|
135
149
|
}
|
|
136
150
|
|
|
137
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
138
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
139
|
-
background-color: ${
|
|
152
|
+
background-color: ${Et};
|
|
140
153
|
}
|
|
141
154
|
|
|
142
155
|
.ft-ripple .ft-ripple--background {
|
|
@@ -144,6 +157,7 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
144
157
|
left: 0;
|
|
145
158
|
height: 100%;
|
|
146
159
|
width: 100%;
|
|
160
|
+
transition: opacity 75ms linear;
|
|
147
161
|
}
|
|
148
162
|
|
|
149
163
|
.ft-ripple .ft-ripple--effect,
|
|
@@ -167,130 +181,130 @@ var rt,at;null==st||st(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
167
181
|
}
|
|
168
182
|
|
|
169
183
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
170
|
-
opacity: ${
|
|
184
|
+
opacity: ${Ct.opacityContentOnSurfaceHover};
|
|
171
185
|
}
|
|
172
186
|
|
|
173
187
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
174
|
-
opacity: ${
|
|
188
|
+
opacity: ${Ct.opacityContentOnSurfaceSelected};
|
|
175
189
|
}
|
|
176
190
|
|
|
177
191
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
178
|
-
opacity: ${
|
|
192
|
+
opacity: ${Ct.opacityContentOnSurfaceFocused};
|
|
179
193
|
}
|
|
180
194
|
|
|
181
195
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
182
|
-
opacity: ${
|
|
196
|
+
opacity: ${Ct.opacityContentOnSurfacePressed};
|
|
183
197
|
transform: translate(-50%, -50%) scale(1);
|
|
184
198
|
}
|
|
185
|
-
`,St([o({type:Boolean})],
|
|
199
|
+
`,St([o({type:Boolean})],Ut.prototype,"primary",void 0),St([o({type:Boolean})],Ut.prototype,"secondary",void 0),St([o({type:Boolean})],Ut.prototype,"unbounded",void 0),St([o({type:Boolean})],Ut.prototype,"activated",void 0),St([o({type:Boolean})],Ut.prototype,"selected",void 0),St([o({type:Boolean})],Ut.prototype,"disabled",void 0),St([n()],Ut.prototype,"hovered",void 0),St([n()],Ut.prototype,"focused",void 0),St([n()],Ut.prototype,"pressed",void 0),St([n()],Ut.prototype,"rippling",void 0),St([n()],Ut.prototype,"rippleSize",void 0),St([n()],Ut.prototype,"originX",void 0),St([n()],Ut.prototype,"originY",void 0),St([r(".ft-ripple")],Ut.prototype,"ripple",void 0),St([r(".ft-ripple--effect")],Ut.prototype,"rippleEffect",void 0),p("ft-ripple")(Ut);
|
|
186
200
|
/**
|
|
187
201
|
* @license
|
|
188
202
|
* Copyright 2020 Google LLC
|
|
189
203
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
190
204
|
*/
|
|
191
|
-
const
|
|
205
|
+
const jt=t=>({_$litStatic$:t}),Bt=new Map,Tt=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const a=[],l=[];let p,h=0,c=!1;for(;h<n;){for(p=e[h];h<n&&void 0!==(r=i[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],c=!0;l.push(r),a.push(p),h++}if(h===n&&a.push(e[n]),c){const t=a.join("$$lit$$");void 0===(e=Bt.get(t))&&(a.raw=a,Bt.set(t,e=a)),i=l}return t(e,...i)})(I);var Lt,At=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Lt||(Lt={}));const _t=ht.extend("--ft-typography-font-family",ft.titleFont),Dt=ht.extend("--ft-typography-font-family",ft.contentFont),Pt={fontFamily:Dt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","SIZE","24px"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ht.extend("--ft-typography-title-font-family",_t),It=ht.extend("--ft-typography-title-font-size",Pt.fontSize,"20px"),Ht=ht.extend("--ft-typography-title-font-weight",Pt.fontWeight,"normal"),Kt=ht.extend("--ft-typography-title-letter-spacing",Pt.letterSpacing,"0.15px"),Zt=ht.extend("--ft-typography-title-line-height",Pt.lineHeight,"24px"),Vt=ht.extend("--ft-typography-title-text-transform",Pt.textTransform,"inherit"),qt=ht.extend("--ft-typography-title-dense-font-family",_t),Xt=ht.extend("--ft-typography-title-dense-font-size",Pt.fontSize,"14px"),Jt=ht.extend("--ft-typography-title-dense-font-weight",Pt.fontWeight,"normal"),Yt=ht.extend("--ft-typography-title-dense-letter-spacing",Pt.letterSpacing,"0.105px"),Gt=ht.extend("--ft-typography-title-dense-line-height",Pt.lineHeight,"24px"),Qt=ht.extend("--ft-typography-title-dense-text-transform",Pt.textTransform,"inherit"),te=ht.extend("--ft-typography-subtitle1-font-family",Dt),ee=ht.extend("--ft-typography-subtitle1-font-size",Pt.fontSize,"16px"),ie=ht.extend("--ft-typography-subtitle1-font-weight",Pt.fontWeight,"600"),oe=ht.extend("--ft-typography-subtitle1-letter-spacing",Pt.letterSpacing,"0.144px"),ne=ht.extend("--ft-typography-subtitle1-line-height",Pt.lineHeight,"24px"),se=ht.extend("--ft-typography-subtitle1-text-transform",Pt.textTransform,"inherit"),re=ht.extend("--ft-typography-subtitle2-font-family",Dt),ae=ht.extend("--ft-typography-subtitle2-font-size",Pt.fontSize,"14px"),le=ht.extend("--ft-typography-subtitle2-font-weight",Pt.fontWeight,"normal"),pe=ht.extend("--ft-typography-subtitle2-letter-spacing",Pt.letterSpacing,"0.098px"),he=ht.extend("--ft-typography-subtitle2-line-height",Pt.lineHeight,"24px"),ce=ht.extend("--ft-typography-subtitle2-text-transform",Pt.textTransform,"inherit"),fe=ht.extend("--ft-typography-body1-font-family",Dt),de=ht.extend("--ft-typography-body1-font-size",Pt.fontSize,"16px"),ue=ht.extend("--ft-typography-body1-font-weight",Pt.fontWeight,"normal"),ye=ht.extend("--ft-typography-body1-letter-spacing",Pt.letterSpacing,"0.496px"),be=ht.extend("--ft-typography-body1-line-height",Pt.lineHeight,"24px"),xe=ht.extend("--ft-typography-body1-text-transform",Pt.textTransform,"inherit"),ve=ht.extend("--ft-typography-body2-font-family",Dt),ge=ht.extend("--ft-typography-body2-font-size",Pt.fontSize,"14px"),me=ht.extend("--ft-typography-body2-font-weight",Pt.fontWeight,"normal"),we=ht.extend("--ft-typography-body2-letter-spacing",Pt.letterSpacing,"0.252px"),$e=ht.extend("--ft-typography-body2-line-height",Pt.lineHeight,"20px"),Oe=ht.extend("--ft-typography-body2-text-transform",Pt.textTransform,"inherit"),Se=ht.extend("--ft-typography-caption-font-family",Dt),ke=ht.extend("--ft-typography-caption-font-size",Pt.fontSize,"12px"),Ce=ht.extend("--ft-typography-caption-font-weight",Pt.fontWeight,"normal"),Ne=ht.extend("--ft-typography-caption-letter-spacing",Pt.letterSpacing,"0.396px"),Ee=ht.extend("--ft-typography-caption-line-height",Pt.lineHeight,"16px"),Re=ht.extend("--ft-typography-caption-text-transform",Pt.textTransform,"inherit"),Me=ht.extend("--ft-typography-breadcrumb-font-family",Dt),ze=ht.extend("--ft-typography-breadcrumb-font-size",Pt.fontSize,"10px"),Fe=ht.extend("--ft-typography-breadcrumb-font-weight",Pt.fontWeight,"normal"),Ue=ht.extend("--ft-typography-breadcrumb-letter-spacing",Pt.letterSpacing,"0.33px"),je=ht.extend("--ft-typography-breadcrumb-line-height",Pt.lineHeight,"16px"),Be=ht.extend("--ft-typography-breadcrumb-text-transform",Pt.textTransform,"inherit"),Te=ht.extend("--ft-typography-overline-font-family",Dt),Le=ht.extend("--ft-typography-overline-font-size",Pt.fontSize,"10px"),Ae=ht.extend("--ft-typography-overline-font-weight",Pt.fontWeight,"normal"),_e=ht.extend("--ft-typography-overline-letter-spacing",Pt.letterSpacing,"1.5px"),De=ht.extend("--ft-typography-overline-line-height",Pt.lineHeight,"16px"),Pe=ht.extend("--ft-typography-overline-text-transform",Pt.textTransform,"uppercase"),We={fontFamily:ht.extend("--ft-typography-button-font-family",Dt),fontSize:ht.extend("--ft-typography-button-font-size",Pt.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Pt.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Pt.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Pt.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-button-text-transform",Pt.textTransform,"uppercase")},Ie=y`
|
|
192
206
|
.ft-typography--title {
|
|
193
|
-
font-family: ${
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
196
|
-
letter-spacing: ${
|
|
197
|
-
line-height: ${
|
|
198
|
-
text-transform: ${
|
|
207
|
+
font-family: ${Wt};
|
|
208
|
+
font-size: ${It};
|
|
209
|
+
font-weight: ${Ht};
|
|
210
|
+
letter-spacing: ${Kt};
|
|
211
|
+
line-height: ${Zt};
|
|
212
|
+
text-transform: ${Vt};
|
|
199
213
|
}
|
|
200
|
-
`,
|
|
214
|
+
`,He=y`
|
|
201
215
|
.ft-typography--title-dense {
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
204
|
-
font-weight: ${
|
|
205
|
-
letter-spacing: ${
|
|
206
|
-
line-height: ${
|
|
207
|
-
text-transform: ${
|
|
216
|
+
font-family: ${qt};
|
|
217
|
+
font-size: ${Xt};
|
|
218
|
+
font-weight: ${Jt};
|
|
219
|
+
letter-spacing: ${Yt};
|
|
220
|
+
line-height: ${Gt};
|
|
221
|
+
text-transform: ${Qt};
|
|
208
222
|
}
|
|
209
|
-
`,
|
|
223
|
+
`,Ke=y`
|
|
210
224
|
.ft-typography--subtitle1 {
|
|
211
|
-
font-family: ${
|
|
212
|
-
font-size: ${
|
|
213
|
-
font-weight: ${
|
|
214
|
-
letter-spacing: ${
|
|
215
|
-
line-height: ${
|
|
216
|
-
text-transform: ${
|
|
225
|
+
font-family: ${te};
|
|
226
|
+
font-size: ${ee};
|
|
227
|
+
font-weight: ${ie};
|
|
228
|
+
letter-spacing: ${oe};
|
|
229
|
+
line-height: ${ne};
|
|
230
|
+
text-transform: ${se};
|
|
217
231
|
}
|
|
218
|
-
`,
|
|
232
|
+
`,Ze=y`
|
|
219
233
|
.ft-typography--subtitle2 {
|
|
220
|
-
font-family: ${
|
|
221
|
-
font-size: ${
|
|
222
|
-
font-weight: ${
|
|
223
|
-
letter-spacing: ${
|
|
224
|
-
line-height: ${
|
|
225
|
-
text-transform: ${
|
|
234
|
+
font-family: ${re};
|
|
235
|
+
font-size: ${ae};
|
|
236
|
+
font-weight: ${le};
|
|
237
|
+
letter-spacing: ${pe};
|
|
238
|
+
line-height: ${he};
|
|
239
|
+
text-transform: ${ce};
|
|
226
240
|
}
|
|
227
241
|
|
|
228
|
-
`,
|
|
242
|
+
`,Ve=y`
|
|
229
243
|
.ft-typography--body1 {
|
|
230
|
-
font-family: ${
|
|
231
|
-
font-size: ${
|
|
232
|
-
font-weight: ${
|
|
233
|
-
letter-spacing: ${
|
|
234
|
-
line-height: ${
|
|
235
|
-
text-transform: ${
|
|
244
|
+
font-family: ${fe};
|
|
245
|
+
font-size: ${de};
|
|
246
|
+
font-weight: ${ue};
|
|
247
|
+
letter-spacing: ${ye};
|
|
248
|
+
line-height: ${be};
|
|
249
|
+
text-transform: ${xe};
|
|
236
250
|
}
|
|
237
|
-
`,
|
|
251
|
+
`,qe=y`
|
|
238
252
|
.ft-typography--body2 {
|
|
239
|
-
font-family: ${
|
|
240
|
-
font-size: ${
|
|
241
|
-
font-weight: ${
|
|
242
|
-
letter-spacing: ${
|
|
243
|
-
line-height: ${
|
|
244
|
-
text-transform: ${
|
|
253
|
+
font-family: ${ve};
|
|
254
|
+
font-size: ${ge};
|
|
255
|
+
font-weight: ${me};
|
|
256
|
+
letter-spacing: ${we};
|
|
257
|
+
line-height: ${$e};
|
|
258
|
+
text-transform: ${Oe};
|
|
245
259
|
}
|
|
246
|
-
`,
|
|
260
|
+
`,Xe=y`
|
|
247
261
|
.ft-typography--caption {
|
|
248
|
-
font-family: ${
|
|
249
|
-
font-size: ${
|
|
250
|
-
font-weight: ${
|
|
251
|
-
letter-spacing: ${
|
|
252
|
-
line-height: ${
|
|
253
|
-
text-transform: ${
|
|
262
|
+
font-family: ${Se};
|
|
263
|
+
font-size: ${ke};
|
|
264
|
+
font-weight: ${Ce};
|
|
265
|
+
letter-spacing: ${Ne};
|
|
266
|
+
line-height: ${Ee};
|
|
267
|
+
text-transform: ${Re};
|
|
254
268
|
}
|
|
255
|
-
`,
|
|
269
|
+
`,Je=y`
|
|
256
270
|
.ft-typography--breadcrumb {
|
|
257
|
-
font-family: ${
|
|
258
|
-
font-size: ${
|
|
259
|
-
font-weight: ${
|
|
260
|
-
letter-spacing: ${
|
|
261
|
-
line-height: ${
|
|
262
|
-
text-transform: ${
|
|
271
|
+
font-family: ${Me};
|
|
272
|
+
font-size: ${ze};
|
|
273
|
+
font-weight: ${Fe};
|
|
274
|
+
letter-spacing: ${Ue};
|
|
275
|
+
line-height: ${je};
|
|
276
|
+
text-transform: ${Be};
|
|
263
277
|
}
|
|
264
|
-
`,
|
|
278
|
+
`,Ye=y`
|
|
265
279
|
.ft-typography--overline {
|
|
266
|
-
font-family: ${
|
|
267
|
-
font-size: ${
|
|
268
|
-
font-weight: ${
|
|
269
|
-
letter-spacing: ${
|
|
270
|
-
line-height: ${
|
|
271
|
-
text-transform: ${
|
|
280
|
+
font-family: ${Te};
|
|
281
|
+
font-size: ${Le};
|
|
282
|
+
font-weight: ${Ae};
|
|
283
|
+
letter-spacing: ${_e};
|
|
284
|
+
line-height: ${De};
|
|
285
|
+
text-transform: ${Pe};
|
|
272
286
|
}
|
|
273
|
-
`,
|
|
287
|
+
`,Ge=y`
|
|
274
288
|
.ft-typography--button {
|
|
275
|
-
font-family: ${
|
|
276
|
-
font-size: ${
|
|
277
|
-
font-weight: ${
|
|
278
|
-
letter-spacing: ${
|
|
279
|
-
line-height: ${
|
|
280
|
-
text-transform: ${
|
|
289
|
+
font-family: ${We.fontFamily};
|
|
290
|
+
font-size: ${We.fontSize};
|
|
291
|
+
font-weight: ${We.fontWeight};
|
|
292
|
+
letter-spacing: ${We.letterSpacing};
|
|
293
|
+
line-height: ${We.lineHeight};
|
|
294
|
+
text-transform: ${We.textTransform};
|
|
281
295
|
}
|
|
282
|
-
`;class
|
|
283
|
-
<${
|
|
296
|
+
`;class Qe extends dt{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Tt`
|
|
297
|
+
<${jt(this.element)}
|
|
284
298
|
class="ft-typography ft-typography--${this.variant}">
|
|
285
299
|
<slot></slot>
|
|
286
|
-
</${
|
|
287
|
-
`:
|
|
300
|
+
</${jt(this.element)}>
|
|
301
|
+
`:Tt`
|
|
288
302
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
289
|
-
`}}
|
|
303
|
+
`}}Qe.styles=[Ie,He,Ke,Ze,Ve,qe,Xe,Je,Ye,Ge,y`
|
|
290
304
|
.ft-typography {
|
|
291
305
|
vertical-align: inherit;
|
|
292
306
|
}
|
|
293
|
-
`],
|
|
307
|
+
`],At([o()],Qe.prototype,"element",void 0),At([o()],Qe.prototype,"variant",void 0),p("ft-typography")(Qe);var ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ei=ht.create("--ft-tooltip-distance","SIZE","4px"),ii=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),oi=ht.create("--ft-tooltip-background-color","COLOR","#666666"),ni=ht.create("--ft-tooltip-z-index","NUMBER","1"),si=ht.external(ft.borderRadiusS,"Design system");class ri extends dt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return I`
|
|
294
308
|
<div part="container"
|
|
295
309
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
296
310
|
@mouseenter=${this.onHover}
|
|
@@ -305,7 +319,7 @@ const Nt=t=>({_$litStatic$:t}),Et=new Map,Rt=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
305
319
|
</div>
|
|
306
320
|
<slot></slot>
|
|
307
321
|
</div>
|
|
308
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=e.height+"px",n.left=o+"px";break;case"left":n.top=i+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=i+"px",n.left=e.width+"px"}n.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}
|
|
322
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=e.height+"px",n.left=o+"px";break;case"left":n.top=i+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=i+"px",n.left=e.width+"px"}n.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ri.elementDefinitions={"ft-typography":Qe},ri.styles=y`
|
|
309
323
|
.ft-tooltip--container {
|
|
310
324
|
display: block;
|
|
311
325
|
position: relative;
|
|
@@ -323,27 +337,27 @@ const Nt=t=>({_$litStatic$:t}),Et=new Map,Rt=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
323
337
|
width: max-content;
|
|
324
338
|
max-width: 150px;
|
|
325
339
|
text-align: center;
|
|
326
|
-
padding: ${
|
|
327
|
-
z-index: ${
|
|
340
|
+
padding: ${ei};
|
|
341
|
+
z-index: ${ni};
|
|
328
342
|
}
|
|
329
343
|
|
|
330
344
|
.ft-tooltip--content {
|
|
331
345
|
padding: 4px 8px;
|
|
332
|
-
border-radius: ${
|
|
333
|
-
background-color: ${
|
|
334
|
-
color: ${
|
|
346
|
+
border-radius: ${si};
|
|
347
|
+
background-color: ${oi};
|
|
348
|
+
color: ${ii};
|
|
335
349
|
top: -500px;
|
|
336
350
|
left: -500px;
|
|
337
351
|
position: relative;
|
|
338
352
|
word-break: break-word;
|
|
339
353
|
}
|
|
340
|
-
`,
|
|
354
|
+
`,ti([o()],ri.prototype,"text",void 0),ti([o({type:Boolean})],ri.prototype,"manual",void 0),ti([o({type:Boolean})],ri.prototype,"inline",void 0),ti([o({type:Number})],ri.prototype,"delay",void 0),ti([o()],ri.prototype,"position",void 0),ti([
|
|
341
355
|
/**
|
|
342
356
|
* @license
|
|
343
357
|
* Copyright 2017 Google LLC
|
|
344
358
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
345
359
|
*/
|
|
346
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
360
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ri.prototype,"slotNodes",void 0),ti([r(".ft-tooltip--container")],ri.prototype,"container",void 0),ti([r("slot")],ri.prototype,"target",void 0),ti([r(".ft-tooltip")],ri.prototype,"tooltip",void 0),ti([r(".ft-tooltip--content")],ri.prototype,"tooltipContent",void 0),ti([n()],ri.prototype,"visible",void 0),p("ft-tooltip")(ri);const ai={color:ht.extend("--ft-loader-color",ft.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class li extends dt{static get styles(){return y`
|
|
347
361
|
:host {
|
|
348
362
|
line-height: 0;
|
|
349
363
|
}
|
|
@@ -352,8 +366,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
352
366
|
display: inline-block;
|
|
353
367
|
position: relative;
|
|
354
368
|
|
|
355
|
-
width: ${
|
|
356
|
-
height: ${
|
|
369
|
+
width: ${ai.size};
|
|
370
|
+
height: ${ai.size};
|
|
357
371
|
}
|
|
358
372
|
|
|
359
373
|
.ft-loader div {
|
|
@@ -362,7 +376,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
362
376
|
width: 25%;
|
|
363
377
|
height: 25%;
|
|
364
378
|
border-radius: 50%;
|
|
365
|
-
background: ${
|
|
379
|
+
background: ${ai.color};
|
|
366
380
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
367
381
|
}
|
|
368
382
|
|
|
@@ -409,7 +423,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
409
423
|
transform: translate(0, 0);
|
|
410
424
|
}
|
|
411
425
|
100% {
|
|
412
|
-
transform: translate(calc(0.35 * ${
|
|
426
|
+
transform: translate(calc(0.35 * ${ai.size}), 0);
|
|
413
427
|
}
|
|
414
428
|
}
|
|
415
429
|
`}render(){return I`
|
|
@@ -419,27 +433,27 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
419
433
|
<div></div>
|
|
420
434
|
<div></div>
|
|
421
435
|
</div>
|
|
422
|
-
`}}p("ft-loader")(
|
|
436
|
+
`}}p("ft-loader")(li);
|
|
423
437
|
/**
|
|
424
438
|
* @license
|
|
425
439
|
* Copyright 2017 Google LLC
|
|
426
440
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
441
|
*/
|
|
428
|
-
class
|
|
442
|
+
class pi extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pi.directiveName="unsafeHTML",pi.resultType=1;const hi=wt(pi);var ci,fi;!function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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="\f06e",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=""}(ci||(ci={})),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=""}(fi||(fi={})),new Map([...["abw"].map((t=>[t,fi.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,fi.AUDIO])),...["avi"].map((t=>[t,fi.AVI])),...["chm","xhs"].map((t=>[t,fi.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,fi.CODE])),...["csv"].map((t=>[t,fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fi.DITA])),...["epub"].map((t=>[t,fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fi.EXCEL])),...["flac"].map((t=>[t,fi.FLAC])),...["gif"].map((t=>[t,fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,fi.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,fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fi.JPEG])),...["json"].map((t=>[t,fi.JSON])),...["m4a","m4p"].map((t=>[t,fi.M4A])),...["mov","qt"].map((t=>[t,fi.MOV])),...["mp3"].map((t=>[t,fi.MP3])),...["mp4","m4v"].map((t=>[t,fi.MP4])),...["ogg","oga"].map((t=>[t,fi.OGG])),...["pdf","ps"].map((t=>[t,fi.PDF])),...["png"].map((t=>[t,fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fi.POWERPOINT])),...["rar"].map((t=>[t,fi.RAR])),...["stp"].map((t=>[t,fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fi.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,fi.VIDEO])),...["wav"].map((t=>[t,fi.WAV])),...["wma"].map((t=>[t,fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fi.YAML])),...["zip"].map((t=>[t,fi.ZIP]))]);var di,ui=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(di||(di={}));const yi={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class bi extends dt{constructor(){super(...arguments),this.variant=di.fluid_topics}render(){return I`
|
|
429
443
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
430
|
-
${
|
|
444
|
+
${hi(this.getIcon())}
|
|
431
445
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
432
446
|
</i>
|
|
433
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===
|
|
447
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===di.file_format?null!==(t=fi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===di.fluid_topics?null!==(e=ci[i.toUpperCase()])&&void 0!==e?e:i:K}}bi.elementDefinitions={},bi.styles=y`
|
|
434
448
|
:host, i.ft-icon {
|
|
435
449
|
display: inline-block;
|
|
436
|
-
width: ${
|
|
437
|
-
height: ${
|
|
450
|
+
width: ${yi.size};
|
|
451
|
+
height: ${yi.size};
|
|
438
452
|
text-align: center;
|
|
439
453
|
}
|
|
440
454
|
|
|
441
455
|
i.ft-icon {
|
|
442
|
-
font-size: ${
|
|
456
|
+
font-size: ${yi.size};
|
|
443
457
|
line-height: 1;
|
|
444
458
|
font-weight: normal;
|
|
445
459
|
text-transform: none;
|
|
@@ -453,17 +467,17 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
453
467
|
}
|
|
454
468
|
|
|
455
469
|
.ft-icon--fluid-topics {
|
|
456
|
-
font-family: ${
|
|
470
|
+
font-family: ${yi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
457
471
|
}
|
|
458
472
|
|
|
459
473
|
.ft-icon--file-format {
|
|
460
|
-
font-family: ${
|
|
474
|
+
font-family: ${yi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
461
475
|
}
|
|
462
476
|
|
|
463
477
|
.ft-icon--material {
|
|
464
|
-
font-family: ${
|
|
478
|
+
font-family: ${yi.materialFontFamily}, "Material Icons", sans-serif;
|
|
465
479
|
}
|
|
466
|
-
`,
|
|
480
|
+
`,ui([o()],bi.prototype,"variant",void 0),ui([r("slot")],bi.prototype,"slottedContent",void 0),p("ft-icon")(bi);var xi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const vi=ht.extend("--ft-button-color",ft.colorPrimary),gi={backgroundColor:ht.extend("--ft-button-background-color",ft.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",ft.borderRadiusL),color:vi,fontSize:ht.extend("--ft-button-font-size",We.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",vi),opacityDisabled:ht.external(ft.colorOpacityDisabled,"Design system")},mi=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",ft.colorOnPrimary)),wi={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",ft.colorPrimary)),color:mi,rippleColor:ht.extend("--ft-button-primary-ripple-color",mi)},$i=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",ft.borderRadiusM));class Oi extends dt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[ut,y`
|
|
467
481
|
:host {
|
|
468
482
|
display: inline-block;
|
|
469
483
|
max-width: 100%;
|
|
@@ -502,18 +516,18 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
502
516
|
border: none;
|
|
503
517
|
pointer-events: auto;
|
|
504
518
|
|
|
505
|
-
--ft-button-internal-font-size: ${
|
|
519
|
+
--ft-button-internal-font-size: ${gi.fontSize};
|
|
506
520
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
507
|
-
--ft-button-internal-color: ${
|
|
508
|
-
${ct(
|
|
521
|
+
--ft-button-internal-color: ${gi.color};
|
|
522
|
+
${ct(yi.size,gi.iconSize)};
|
|
509
523
|
--ft-button-internal-vertical-padding: 6px;
|
|
510
524
|
--ft-button-internal-horizontal-padding: 8px;
|
|
511
|
-
${ct(
|
|
512
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
525
|
+
${ct(Ct.color,gi.rippleColor)};
|
|
526
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${gi.iconSize});
|
|
513
527
|
|
|
514
|
-
border-radius: ${
|
|
528
|
+
border-radius: ${gi.borderRadius};
|
|
515
529
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
516
|
-
background-color: ${
|
|
530
|
+
background-color: ${gi.backgroundColor};
|
|
517
531
|
color: var(--ft-button-internal-color);
|
|
518
532
|
-webkit-mask-image: radial-gradient(white, black);
|
|
519
533
|
}
|
|
@@ -525,7 +539,7 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
525
539
|
.ft-button--dense {
|
|
526
540
|
--ft-button-internal-vertical-padding: 2px;
|
|
527
541
|
--ft-button-internal-horizontal-padding: 4px;
|
|
528
|
-
border-radius: ${
|
|
542
|
+
border-radius: ${$i};
|
|
529
543
|
}
|
|
530
544
|
|
|
531
545
|
.ft-button--round {
|
|
@@ -534,13 +548,13 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
534
548
|
|
|
535
549
|
.ft-button[disabled] {
|
|
536
550
|
filter: grayscale(1);
|
|
537
|
-
opacity: ${
|
|
551
|
+
opacity: ${gi.opacityDisabled};
|
|
538
552
|
}
|
|
539
553
|
|
|
540
554
|
.ft-button.ft-button--primary {
|
|
541
|
-
background-color: ${
|
|
542
|
-
--ft-button-internal-color: ${
|
|
543
|
-
${ct(
|
|
555
|
+
background-color: ${wi.backgroundColor};
|
|
556
|
+
--ft-button-internal-color: ${wi.color};
|
|
557
|
+
${ct(Ct.color,wi.rippleColor)};
|
|
544
558
|
}
|
|
545
559
|
|
|
546
560
|
.ft-button.ft-button--outlined {
|
|
@@ -553,13 +567,14 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
553
567
|
}
|
|
554
568
|
|
|
555
569
|
.ft-button--label {
|
|
570
|
+
position: relative;
|
|
556
571
|
overflow: hidden;
|
|
557
572
|
white-space: nowrap;
|
|
558
573
|
text-overflow: ellipsis;
|
|
559
574
|
display: block;
|
|
560
575
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
561
|
-
${ct(
|
|
562
|
-
${ct(
|
|
576
|
+
${ct(We.fontSize,"var(--ft-button-internal-font-size)")};
|
|
577
|
+
${ct(We.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
563
578
|
}
|
|
564
579
|
|
|
565
580
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -578,6 +593,7 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
578
593
|
|
|
579
594
|
ft-icon {
|
|
580
595
|
flex-shrink: 0;
|
|
596
|
+
position: relative;
|
|
581
597
|
}
|
|
582
598
|
|
|
583
599
|
.ft-button--label[hidden] + ft-icon {
|
|
@@ -591,8 +607,8 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
591
607
|
}
|
|
592
608
|
|
|
593
609
|
ft-loader {
|
|
594
|
-
${ct(
|
|
595
|
-
${ct(
|
|
610
|
+
${ct(ai.size,gi.iconSize)};
|
|
611
|
+
${ct(ai.color,"var(--ft-button-internal-color)")};
|
|
596
612
|
}
|
|
597
613
|
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":vt,"ft-no-text-select":!0};return this.addTooltip(I`
|
|
598
614
|
<button part="button"
|
|
@@ -616,7 +632,7 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
616
632
|
</ft-tooltip>
|
|
617
633
|
`}resolveIcon(){return this.loading?I`
|
|
618
634
|
<ft-loader></ft-loader> `:this.icon?I`
|
|
619
|
-
<ft-icon variant="material">${this.icon}</ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
635
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Oi.elementDefinitions={"ft-ripple":Ut,"ft-tooltip":ri,"ft-typography":Qe,"ft-icon":bi,"ft-loader":li},xi([o({type:Boolean})],Oi.prototype,"primary",void 0),xi([o({type:Boolean})],Oi.prototype,"outlined",void 0),xi([o({type:Boolean})],Oi.prototype,"disabled",void 0),xi([o({type:Boolean})],Oi.prototype,"dense",void 0),xi([o({type:Boolean})],Oi.prototype,"round",void 0),xi([o({type:String})],Oi.prototype,"label",void 0),xi([o({type:String})],Oi.prototype,"icon",void 0),xi([o({type:Boolean})],Oi.prototype,"trailingIcon",void 0),xi([o({type:Boolean})],Oi.prototype,"loading",void 0),xi([o({type:String})],Oi.prototype,"tooltipPosition",void 0),xi([r(".ft-button")],Oi.prototype,"button",void 0),xi([r(".ft-button--label slot")],Oi.prototype,"slottedContent",void 0),p("ft-button")(Oi);var Si=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ki extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Ci extends dt{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}static get styles(){return y`
|
|
620
636
|
.ft-file-button {
|
|
621
637
|
}
|
|
622
638
|
`}render(){return I`
|
|
@@ -634,4 +650,4 @@ class ii extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error
|
|
|
634
650
|
@change=${this.onFileChange}
|
|
635
651
|
hidden/>
|
|
636
652
|
</div>
|
|
637
|
-
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new
|
|
653
|
+
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new ki(this.input.files.item(0)))}focus(){this.button.focus()}clear(){this.input.value=""}}Ci.elementDefinitions={"ft-button":Oi},Si([o({type:Boolean})],Ci.prototype,"disabled",void 0),Si([o({type:String})],Ci.prototype,"label",void 0),Si([o({type:String})],Ci.prototype,"icon",void 0),Si([o({type:Boolean})],Ci.prototype,"trailingIcon",void 0),Si([o({type:String})],Ci.prototype,"accept",void 0),Si([r(".ft-file-button--input")],Ci.prototype,"input",void 0),Si([r("ft-button")],Ci.prototype,"button",void 0),p("ft-file-button")(Ci),t.FileChangeEvent=ki,t.FtFileButton=Ci,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({});
|