@fluid-topics/ft-text-area 0.2.4 → 0.2.6
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-text-area.inline-styles.js +151 -151
- package/build/ft-text-area.light.js +145 -145
- package/build/ft-text-area.min.js +151 -151
- package/package.json +5 -5
|
@@ -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,s=new WeakMap,r=new WeakMap,n=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.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=n.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),s.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=y[y.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,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.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)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(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!==s.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 r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.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=n.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),s.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=y[y.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,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.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)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(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!==s.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 r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Le){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
|
|
@@ -50,19 +50,19 @@ function r(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var y;const g=window.trustedTypes,b=g?g.emptyScript:"",m=window.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?b: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}},$=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:$};class O 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=w){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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}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 u(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=w){var o,s;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const n=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:v.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var i,o,s;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(s=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==s?s:v.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$
|
|
53
|
+
*/;var y;const g=window.trustedTypes,b=g?g.emptyScript:"",m=window.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?b: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}},$=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:$};class O 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=w){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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}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 u(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=w){var o,s;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const n=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:v.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var i,o,s;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(s=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==s?s:v.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){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._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.
|
|
59
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const C=globalThis.trustedTypes,E=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,k="?"+N,R=`<${k}>`,z=document,M=(t="")=>z.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,B=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,T=/'/g,A=/"/g,_=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,K=z.createTreeWalker(z,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=D;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===D?"!--"===l[1]?n=j:void 0!==l[1]?n=B:void 0!==l[2]?(_.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=L):void 0!==l[3]&&(n=L):n===L?">"===l[0]?(n=null!=s?s:D,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?L:'"'===l[3]?A:T):n===A||n===T?n=L:n===j||n===B?n=D:(n=L,s=void 0);const c=n===L&&t[e+1].startsWith("/>")?" ":"";r+=n===D?i+R:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+N+c):i+N+(-2===p?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,p]=Z(t,e);if(this.el=V.createElement(l,i),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=K.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),K.nextNode(),a.push({type:2,index:++s});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:s}),t+=N.length-1}s++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var s,r,n,a;if(e===I)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=q(t,l._$AS(t,e.values),l,o)),e}class X{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);K.currentNode=s;let r=K.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new J(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new it(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=K.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,o){var s;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==I&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return F(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(z.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new X(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new J(this.M(M()),this.M(M()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,i,o,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=q(this,t,e,0),r=!U(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=q(this,o[i+n],e,n),a===I&&(a=this._$AH[n]),r||(r=!U(a)||a!==this._$AH[n]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.C(t)}C(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Y{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===W?void 0:t}}const Q=C?C.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}C(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class et extends Y{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:W)===I)return;const o=this._$AH,s=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==W&&(o===W||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var st,rt;null==ot||ot(V,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.
|
|
65
|
+
var st,rt;null==ot||ot(V,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.4");class nt extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new J(e.insertBefore(M(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return I}}nt.finalized=!0,nt._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:nt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:nt}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.0");class lt{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new lt(t,e,void 0,i)}static extend(t,e,i){return new lt(t,e.category,e,i)}static external(t,e){return new lt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return d`var(${f(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):f(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function pt(t,e){return f(`${t.name}: ${e}`)}const ht={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -92,134 +92,134 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const mt=gt(class extends bt{constructor(t){var e;if(super(t),t.type!==xt||"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.
|
|
95
|
+
*/const mt=gt(class extends bt{constructor(t){var e;if(super(t),t.type!==xt||"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.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return I}}),vt=Symbol.for(""),$t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===vt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},wt=t=>({_$litStatic$:t,r:vt}),Ot=new Map,St=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(r=i[p],s=$t(r));)l+=s+e[++p],h=!0;a.push(r),n.push(l),p++}if(p===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=Ot.get(t))&&(n.raw=n,Ot.set(t,e=n)),i=a}return t(e,...i)})(P);
|
|
96
96
|
/**
|
|
97
97
|
* @license
|
|
98
98
|
* Copyright 2020 Google LLC
|
|
99
99
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
100
|
-
*/var
|
|
100
|
+
*/var Ct,Et=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(Ct||(Ct={}));const Nt=lt.extend("--ft-typography-font-family",ht.titleFont),kt=lt.extend("--ft-typography-font-family",ht.contentFont),Rt={fontFamily:kt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","SIZE","24px"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},zt=lt.extend("--ft-typography-title-font-family",Nt),Mt=lt.extend("--ft-typography-title-font-size",Rt.fontSize,"20px"),Ut=lt.extend("--ft-typography-title-font-weight",Rt.fontWeight,"normal"),Ft=lt.extend("--ft-typography-title-letter-spacing",Rt.letterSpacing,"0.15px"),Dt=lt.extend("--ft-typography-title-line-height",Rt.lineHeight,"24px"),jt=lt.extend("--ft-typography-title-text-transform",Rt.textTransform,"inherit"),Bt=lt.extend("--ft-typography-title-dense-font-family",Nt),Lt=lt.extend("--ft-typography-title-dense-font-size",Rt.fontSize,"14px"),Tt=lt.extend("--ft-typography-title-dense-font-weight",Rt.fontWeight,"normal"),At=lt.extend("--ft-typography-title-dense-letter-spacing",Rt.letterSpacing,"0.105px"),_t=lt.extend("--ft-typography-title-dense-line-height",Rt.lineHeight,"24px"),Pt=lt.extend("--ft-typography-title-dense-text-transform",Rt.textTransform,"inherit"),It=lt.extend("--ft-typography-subtitle1-font-family",kt),Wt=lt.extend("--ft-typography-subtitle1-font-size",Rt.fontSize,"16px"),Ht=lt.extend("--ft-typography-subtitle1-font-weight",Rt.fontWeight,"600"),Kt=lt.extend("--ft-typography-subtitle1-letter-spacing",Rt.letterSpacing,"0.144px"),Zt=lt.extend("--ft-typography-subtitle1-line-height",Rt.lineHeight,"24px"),Vt=lt.extend("--ft-typography-subtitle1-text-transform",Rt.textTransform,"inherit"),qt=lt.extend("--ft-typography-subtitle2-font-family",kt),Xt=lt.extend("--ft-typography-subtitle2-font-size",Rt.fontSize,"14px"),Jt=lt.extend("--ft-typography-subtitle2-font-weight",Rt.fontWeight,"normal"),Yt=lt.extend("--ft-typography-subtitle2-letter-spacing",Rt.letterSpacing,"0.098px"),Gt=lt.extend("--ft-typography-subtitle2-line-height",Rt.lineHeight,"24px"),Qt=lt.extend("--ft-typography-subtitle2-text-transform",Rt.textTransform,"inherit"),te={fontFamily:lt.extend("--ft-typography-body1-font-family",kt),fontSize:lt.extend("--ft-typography-body1-font-size",Rt.fontSize,"16px"),fontWeight:lt.extend("--ft-typography-body1-font-weight",Rt.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-body1-letter-spacing",Rt.letterSpacing,"0.496px"),lineHeight:lt.extend("--ft-typography-body1-line-height",Rt.lineHeight,"24px"),textTransform:lt.extend("--ft-typography-body1-text-transform",Rt.textTransform,"inherit")},ee=lt.extend("--ft-typography-body2-font-family",kt),ie=lt.extend("--ft-typography-body2-font-size",Rt.fontSize,"14px"),oe=lt.extend("--ft-typography-body2-font-weight",Rt.fontWeight,"normal"),se=lt.extend("--ft-typography-body2-letter-spacing",Rt.letterSpacing,"0.252px"),re=lt.extend("--ft-typography-body2-line-height",Rt.lineHeight,"20px"),ne=lt.extend("--ft-typography-body2-text-transform",Rt.textTransform,"inherit"),ae={fontFamily:lt.extend("--ft-typography-caption-font-family",kt),fontSize:lt.extend("--ft-typography-caption-font-size",Rt.fontSize,"12px"),fontWeight:lt.extend("--ft-typography-caption-font-weight",Rt.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-caption-letter-spacing",Rt.letterSpacing,"0.396px"),lineHeight:lt.extend("--ft-typography-caption-line-height",Rt.lineHeight,"16px"),textTransform:lt.extend("--ft-typography-caption-text-transform",Rt.textTransform,"inherit")},le=lt.extend("--ft-typography-breadcrumb-font-family",kt),pe=lt.extend("--ft-typography-breadcrumb-font-size",Rt.fontSize,"10px"),he=lt.extend("--ft-typography-breadcrumb-font-weight",Rt.fontWeight,"normal"),ce=lt.extend("--ft-typography-breadcrumb-letter-spacing",Rt.letterSpacing,"0.33px"),fe=lt.extend("--ft-typography-breadcrumb-line-height",Rt.lineHeight,"16px"),de=lt.extend("--ft-typography-breadcrumb-text-transform",Rt.textTransform,"inherit"),ue=lt.extend("--ft-typography-overline-font-family",kt),xe=lt.extend("--ft-typography-overline-font-size",Rt.fontSize,"10px"),ye=lt.extend("--ft-typography-overline-font-weight",Rt.fontWeight,"normal"),ge=lt.extend("--ft-typography-overline-letter-spacing",Rt.letterSpacing,"1.5px"),be=lt.extend("--ft-typography-overline-line-height",Rt.lineHeight,"16px"),me=lt.extend("--ft-typography-overline-text-transform",Rt.textTransform,"uppercase"),ve=lt.extend("--ft-typography-button-font-family",kt),$e=lt.extend("--ft-typography-button-font-size",Rt.fontSize,"14px"),we=lt.extend("--ft-typography-button-font-weight",Rt.fontWeight,"600"),Oe=lt.extend("--ft-typography-button-letter-spacing",Rt.letterSpacing,"1.246px"),Se=lt.extend("--ft-typography-button-line-height",Rt.lineHeight,"16px"),Ce=lt.extend("--ft-typography-button-text-transform",Rt.textTransform,"uppercase"),Ee=d`
|
|
101
101
|
.ft-typography--title {
|
|
102
|
-
font-family: ${
|
|
103
|
-
font-size: ${
|
|
104
|
-
font-weight: ${
|
|
105
|
-
letter-spacing: ${
|
|
106
|
-
line-height: ${
|
|
107
|
-
text-transform: ${
|
|
102
|
+
font-family: ${zt};
|
|
103
|
+
font-size: ${Mt};
|
|
104
|
+
font-weight: ${Ut};
|
|
105
|
+
letter-spacing: ${Ft};
|
|
106
|
+
line-height: ${Dt};
|
|
107
|
+
text-transform: ${jt};
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,Ne=d`
|
|
110
110
|
.ft-typography--title-dense {
|
|
111
|
-
font-family: ${
|
|
112
|
-
font-size: ${
|
|
113
|
-
font-weight: ${
|
|
114
|
-
letter-spacing: ${
|
|
115
|
-
line-height: ${
|
|
116
|
-
text-transform: ${
|
|
111
|
+
font-family: ${Bt};
|
|
112
|
+
font-size: ${Lt};
|
|
113
|
+
font-weight: ${Tt};
|
|
114
|
+
letter-spacing: ${At};
|
|
115
|
+
line-height: ${_t};
|
|
116
|
+
text-transform: ${Pt};
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,ke=d`
|
|
119
119
|
.ft-typography--subtitle1 {
|
|
120
|
-
font-family: ${
|
|
121
|
-
font-size: ${
|
|
122
|
-
font-weight: ${
|
|
123
|
-
letter-spacing: ${
|
|
124
|
-
line-height: ${
|
|
125
|
-
text-transform: ${
|
|
120
|
+
font-family: ${It};
|
|
121
|
+
font-size: ${Wt};
|
|
122
|
+
font-weight: ${Ht};
|
|
123
|
+
letter-spacing: ${Kt};
|
|
124
|
+
line-height: ${Zt};
|
|
125
|
+
text-transform: ${Vt};
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,Re=d`
|
|
128
128
|
.ft-typography--subtitle2 {
|
|
129
|
-
font-family: ${
|
|
130
|
-
font-size: ${
|
|
131
|
-
font-weight: ${
|
|
132
|
-
letter-spacing: ${
|
|
133
|
-
line-height: ${
|
|
134
|
-
text-transform: ${
|
|
129
|
+
font-family: ${qt};
|
|
130
|
+
font-size: ${Xt};
|
|
131
|
+
font-weight: ${Jt};
|
|
132
|
+
letter-spacing: ${Yt};
|
|
133
|
+
line-height: ${Gt};
|
|
134
|
+
text-transform: ${Qt};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
`,
|
|
137
|
+
`,ze=d`
|
|
138
138
|
.ft-typography--body1 {
|
|
139
|
-
font-family: ${
|
|
140
|
-
font-size: ${
|
|
141
|
-
font-weight: ${
|
|
142
|
-
letter-spacing: ${
|
|
143
|
-
line-height: ${
|
|
144
|
-
text-transform: ${
|
|
139
|
+
font-family: ${te.fontFamily};
|
|
140
|
+
font-size: ${te.fontSize};
|
|
141
|
+
font-weight: ${te.fontWeight};
|
|
142
|
+
letter-spacing: ${te.letterSpacing};
|
|
143
|
+
line-height: ${te.lineHeight};
|
|
144
|
+
text-transform: ${te.textTransform};
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`,Me=d`
|
|
147
147
|
.ft-typography--body2 {
|
|
148
|
-
font-family: ${
|
|
149
|
-
font-size: ${
|
|
150
|
-
font-weight: ${
|
|
151
|
-
letter-spacing: ${
|
|
152
|
-
line-height: ${
|
|
153
|
-
text-transform: ${
|
|
148
|
+
font-family: ${ee};
|
|
149
|
+
font-size: ${ie};
|
|
150
|
+
font-weight: ${oe};
|
|
151
|
+
letter-spacing: ${se};
|
|
152
|
+
line-height: ${re};
|
|
153
|
+
text-transform: ${ne};
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,Ue=d`
|
|
156
156
|
.ft-typography--caption {
|
|
157
|
-
font-family: ${
|
|
158
|
-
font-size: ${
|
|
159
|
-
font-weight: ${
|
|
160
|
-
letter-spacing: ${
|
|
161
|
-
line-height: ${
|
|
162
|
-
text-transform: ${
|
|
157
|
+
font-family: ${ae.fontFamily};
|
|
158
|
+
font-size: ${ae.fontSize};
|
|
159
|
+
font-weight: ${ae.fontWeight};
|
|
160
|
+
letter-spacing: ${ae.letterSpacing};
|
|
161
|
+
line-height: ${ae.lineHeight};
|
|
162
|
+
text-transform: ${ae.textTransform};
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
164
|
+
`,Fe=d`
|
|
165
165
|
.ft-typography--breadcrumb {
|
|
166
|
-
font-family: ${
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
169
|
-
letter-spacing: ${
|
|
170
|
-
line-height: ${
|
|
171
|
-
text-transform: ${
|
|
166
|
+
font-family: ${le};
|
|
167
|
+
font-size: ${pe};
|
|
168
|
+
font-weight: ${he};
|
|
169
|
+
letter-spacing: ${ce};
|
|
170
|
+
line-height: ${fe};
|
|
171
|
+
text-transform: ${de};
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,De=d`
|
|
174
174
|
.ft-typography--overline {
|
|
175
|
-
font-family: ${
|
|
176
|
-
font-size: ${
|
|
177
|
-
font-weight: ${
|
|
178
|
-
letter-spacing: ${
|
|
179
|
-
line-height: ${
|
|
180
|
-
text-transform: ${
|
|
175
|
+
font-family: ${ue};
|
|
176
|
+
font-size: ${xe};
|
|
177
|
+
font-weight: ${ye};
|
|
178
|
+
letter-spacing: ${ge};
|
|
179
|
+
line-height: ${be};
|
|
180
|
+
text-transform: ${me};
|
|
181
181
|
}
|
|
182
|
-
`,
|
|
182
|
+
`,je=d`
|
|
183
183
|
.ft-typography--button {
|
|
184
|
-
font-family: ${
|
|
185
|
-
font-size: ${
|
|
186
|
-
font-weight: ${
|
|
187
|
-
letter-spacing: ${
|
|
188
|
-
line-height: ${
|
|
189
|
-
text-transform: ${
|
|
184
|
+
font-family: ${ve};
|
|
185
|
+
font-size: ${$e};
|
|
186
|
+
font-weight: ${we};
|
|
187
|
+
letter-spacing: ${Oe};
|
|
188
|
+
line-height: ${Se};
|
|
189
|
+
text-transform: ${Ce};
|
|
190
190
|
}
|
|
191
|
-
`;class
|
|
192
|
-
<${
|
|
191
|
+
`;class Be extends ct{constructor(){super(...arguments),this.variant=Ct.body1}render(){return this.element?St`
|
|
192
|
+
<${wt(this.element)}
|
|
193
193
|
class="ft-typography ft-typography--${this.variant}">
|
|
194
194
|
<slot></slot>
|
|
195
|
-
</${
|
|
196
|
-
`:
|
|
195
|
+
</${wt(this.element)}>
|
|
196
|
+
`:St`
|
|
197
197
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
198
|
-
`}}
|
|
198
|
+
`}}Be.styles=[Ee,Ne,ke,Re,ze,Me,Ue,Fe,De,je,d`
|
|
199
199
|
.ft-typography {
|
|
200
200
|
vertical-align: inherit;
|
|
201
201
|
}
|
|
202
|
-
`],
|
|
202
|
+
`],Et([o()],Be.prototype,"element",void 0),Et([o()],Be.prototype,"variant",void 0),a("ft-typography")(Be);
|
|
203
203
|
/**
|
|
204
204
|
* @license
|
|
205
205
|
* Copyright 2017 Google LLC
|
|
206
206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
207
|
*/
|
|
208
|
-
class
|
|
208
|
+
class Le extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.ft=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Le.directiveName="unsafeHTML",Le.resultType=1;const Te=gt(Le);var Ae,_e;!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=""}(Ae||(Ae={})),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=""}(_e||(_e={})),new Map([...["abw"].map((t=>[t,_e.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,_e.AUDIO])),...["avi"].map((t=>[t,_e.AVI])),...["chm","xhs"].map((t=>[t,_e.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,_e.CODE])),...["csv"].map((t=>[t,_e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_e.DITA])),...["epub"].map((t=>[t,_e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_e.EXCEL])),...["flac"].map((t=>[t,_e.FLAC])),...["gif"].map((t=>[t,_e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_e.GZIP])),...["html","htm","xhtml"].map((t=>[t,_e.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,_e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_e.JPEG])),...["json"].map((t=>[t,_e.JSON])),...["m4a","m4p"].map((t=>[t,_e.M4A])),...["mov","qt"].map((t=>[t,_e.MOV])),...["mp3"].map((t=>[t,_e.MP3])),...["mp4","m4v"].map((t=>[t,_e.MP4])),...["ogg","oga"].map((t=>[t,_e.OGG])),...["pdf","ps"].map((t=>[t,_e.PDF])),...["png"].map((t=>[t,_e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_e.POWERPOINT])),...["rar"].map((t=>[t,_e.RAR])),...["stp"].map((t=>[t,_e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_e.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,_e.VIDEO])),...["wav"].map((t=>[t,_e.WAV])),...["wma"].map((t=>[t,_e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_e.WORD])),...["xml","xsl","rdf"].map((t=>[t,_e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_e.YAML])),...["zip"].map((t=>[t,_e.ZIP]))]);var Pe,Ie=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Pe||(Pe={}));const We=lt.create("--ft-icon-font-size","SIZE","24px"),He=lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ke=lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ze=lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class Ve extends ct{constructor(){super(...arguments),this.variant=Pe.fluid_topics}render(){return P`
|
|
209
209
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
210
|
-
${
|
|
210
|
+
${Te(this.getIcon())}
|
|
211
211
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
212
212
|
</i>
|
|
213
|
-
`}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===
|
|
213
|
+
`}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===Pe.file_format?null!==(t=_e[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Pe.fluid_topics?null!==(e=Ae[i.toUpperCase()])&&void 0!==e?e:i:W}}Ve.elementDefinitions={},Ve.styles=d`
|
|
214
214
|
:host, i.ft-icon {
|
|
215
215
|
display: inline-block;
|
|
216
|
-
width: ${
|
|
217
|
-
height: ${
|
|
216
|
+
width: ${We};
|
|
217
|
+
height: ${We};
|
|
218
218
|
text-align: center;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
i.ft-icon {
|
|
222
|
-
font-size: ${
|
|
222
|
+
font-size: ${We};
|
|
223
223
|
line-height: 1;
|
|
224
224
|
font-weight: normal;
|
|
225
225
|
text-transform: none;
|
|
@@ -233,17 +233,17 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-icon--fluid-topics {
|
|
236
|
-
font-family: ${
|
|
236
|
+
font-family: ${He}, ft-icons, fticons, sans-serif;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-icon--file-format {
|
|
240
|
-
font-family: ${
|
|
240
|
+
font-family: ${Ke}, ft-mime, sans-serif;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.ft-icon--material {
|
|
244
|
-
font-family: ${
|
|
244
|
+
font-family: ${Ze}, "Material Icons", sans-serif;
|
|
245
245
|
}
|
|
246
|
-
`,
|
|
246
|
+
`,Ie([o()],Ve.prototype,"variant",void 0),Ie([r("slot")],Ve.prototype,"slottedContent",void 0),a("ft-icon")(Ve);var qe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Xe extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const Je=lt.external(ht.colorOutline,"Design system"),Ye=lt.external(ht.colorOnSurfaceMedium,"Design system");class Ge extends ct{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return P`
|
|
247
247
|
<style>
|
|
248
248
|
.ft-resizer {
|
|
249
249
|
cursor: ${f(this.cursor)}
|
|
@@ -254,7 +254,7 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
254
254
|
@touchstart=${this.initDragFromTouch}>
|
|
255
255
|
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
256
256
|
</div>
|
|
257
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
257
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Xe(i,o))}}Ge.elementDefinitions={"ft-icon":Ve},Ge.styles=[ft,d`
|
|
258
258
|
:host {
|
|
259
259
|
display: block;
|
|
260
260
|
}
|
|
@@ -265,14 +265,14 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
265
265
|
|
|
266
266
|
ft-icon {
|
|
267
267
|
transform: rotate(-45deg);
|
|
268
|
-
color: ${
|
|
268
|
+
color: ${Je};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-resizer--dragging ft-icon,
|
|
272
272
|
.ft-resizer:hover ft-icon {
|
|
273
|
-
color: ${
|
|
273
|
+
color: ${Ye};
|
|
274
274
|
}
|
|
275
|
-
`],
|
|
275
|
+
`],qe([o({type:Number})],Ge.prototype,"initialWidth",void 0),qe([o({type:Number})],Ge.prototype,"initialHeight",void 0),qe([o()],Ge.prototype,"icon",void 0),qe([o()],Ge.prototype,"cursor",void 0),qe([s()],Ge.prototype,"dragging",void 0),a("ft-resizer")(Ge);var Qe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const ti={fontSize:lt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:lt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:lt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:lt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:lt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:lt.extend("--ft-input-label-border-color",ht.colorOutline),textColor:lt.extend("--ft-input-label-text-color",ht.colorOnSurfaceMedium),disabledTextColor:lt.extend("--ft-input-label-disabled-text-color",ht.colorOnSurfaceDisabled),colorSurface:lt.external(ht.colorSurface,"Design system"),borderRadiusS:lt.external(ht.borderRadiusS,"Design system"),colorError:lt.external(ht.colorError,"Design system")};class ei extends ct{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return P`
|
|
276
276
|
<div class="${mt(t)}">
|
|
277
277
|
${this.text?P`
|
|
278
278
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -281,7 +281,7 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
281
281
|
</div>
|
|
282
282
|
`:null}
|
|
283
283
|
</div>
|
|
284
|
-
`}}
|
|
284
|
+
`}}ei.elementDefinitions={},ei.styles=[Ue,d`
|
|
285
285
|
.ft-input-label {
|
|
286
286
|
position: absolute;
|
|
287
287
|
inset: 0;
|
|
@@ -289,11 +289,11 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
.ft-input-label {
|
|
292
|
-
border-color: ${
|
|
292
|
+
border-color: ${ti.borderColor};
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
.ft-input-label.ft-input-label--in-error {
|
|
296
|
-
border-color: ${
|
|
296
|
+
border-color: ${ti.colorError}
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.ft-input-label:before,
|
|
@@ -306,7 +306,7 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
.ft-input-label:before {
|
|
309
|
-
width: ${
|
|
309
|
+
width: ${ti.horizontalSpacing};
|
|
310
310
|
flex-shrink: 0;
|
|
311
311
|
}
|
|
312
312
|
|
|
@@ -322,18 +322,18 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
322
322
|
border-bottom-width: 1px;
|
|
323
323
|
border-bottom-style: solid;
|
|
324
324
|
border-color: inherit;
|
|
325
|
-
color: ${
|
|
325
|
+
color: ${ti.textColor};
|
|
326
326
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
327
|
-
${pt(
|
|
328
|
-
${pt(
|
|
327
|
+
${pt(ae.fontSize,ti.fontSize)};
|
|
328
|
+
${pt(ae.lineHeight,ti.fontSize)};
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-input-label--in-error .ft-input-label--text {
|
|
332
|
-
color: ${
|
|
332
|
+
color: ${ti.colorError}
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.ft-input-label--disabled .ft-input-label--text {
|
|
336
|
-
color: ${
|
|
336
|
+
color: ${ti.disabledTextColor};
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
.ft-input-label--hidden-text {
|
|
@@ -349,17 +349,17 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
349
349
|
overflow: hidden;
|
|
350
350
|
white-space: nowrap;
|
|
351
351
|
text-overflow: ellipsis;
|
|
352
|
-
padding: ${
|
|
353
|
-
margin: calc(${
|
|
352
|
+
padding: ${ti.verticalSpacing} 4px;
|
|
353
|
+
margin: calc(${ti.verticalSpacing} * -1) 0;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
.ft-input-label--raised .ft-input-label--text {
|
|
357
|
-
${pt(
|
|
358
|
-
${pt(
|
|
357
|
+
${pt(ae.fontSize,ti.raisedFontSize)};
|
|
358
|
+
${pt(ae.lineHeight,ti.raisedFontSize)};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
362
|
-
top: ${
|
|
362
|
+
top: ${ti.verticalSpacing};
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -372,27 +372,27 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
372
372
|
.ft-input-label--outlined:before {
|
|
373
373
|
border-left-width: 1px;
|
|
374
374
|
border-left-style: solid;
|
|
375
|
-
border-radius: ${
|
|
375
|
+
border-radius: ${ti.borderRadiusS} 0 0 ${ti.borderRadiusS};
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.ft-input-label--outlined:after {
|
|
379
379
|
border-right-width: 1px;
|
|
380
380
|
border-right-style: solid;
|
|
381
|
-
border-radius: 0 ${
|
|
381
|
+
border-radius: 0 ${ti.borderRadiusS} ${ti.borderRadiusS} 0;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
385
385
|
padding: 2px 4px;
|
|
386
|
-
z-index: ${
|
|
387
|
-
background-color: ${
|
|
388
|
-
border-radius: ${
|
|
386
|
+
z-index: ${ti.raisedZIndex};
|
|
387
|
+
background-color: ${ti.colorSurface};
|
|
388
|
+
border-radius: ${ti.borderRadiusS};
|
|
389
389
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
393
393
|
border-top: none;
|
|
394
394
|
}
|
|
395
|
-
`],
|
|
395
|
+
`],Qe([o({type:String})],ei.prototype,"text",void 0),Qe([o({type:Boolean})],ei.prototype,"raised",void 0),Qe([o({type:Boolean})],ei.prototype,"outlined",void 0),Qe([o({type:Boolean})],ei.prototype,"disabled",void 0),Qe([o({type:Boolean})],ei.prototype,"error",void 0),a("ft-input-label")(ei);var ii=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const oi=lt.extend("--ft-ripple-color",ht.colorContent),si={color:oi,backgroundColor:lt.extend("--ft-ripple-background-color",oi),opacityContentOnSurfacePressed:lt.external(ht.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:lt.external(ht.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:lt.external(ht.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:lt.external(ht.opacityContentOnSurfaceSelected,"Design system")},ri=lt.extend("--ft-ripple-color",ht.colorPrimary),ni=ri,ai=lt.extend("--ft-ripple-background-color",ri),li=lt.extend("--ft-ripple-color",ht.colorSecondary),pi=li,hi=lt.extend("--ft-ripple-background-color",li);class ci extends ct{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:s}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.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 P`
|
|
396
396
|
<style>
|
|
397
397
|
.ft-ripple .ft-ripple--effect,
|
|
398
398
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -409,7 +409,7 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
409
409
|
<div class="ft-ripple--background"></div>
|
|
410
410
|
<div class="ft-ripple--effect"></div>
|
|
411
411
|
</div>
|
|
412
|
-
`}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"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}
|
|
412
|
+
`}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"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}ci.elementDefinitions={},ci.styles=d`
|
|
413
413
|
:host {
|
|
414
414
|
display: contents;
|
|
415
415
|
}
|
|
@@ -431,27 +431,27 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
.ft-ripple .ft-ripple--background {
|
|
434
|
-
background-color: ${
|
|
434
|
+
background-color: ${si.backgroundColor};
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
.ft-ripple .ft-ripple--effect {
|
|
438
|
-
background-color: ${
|
|
438
|
+
background-color: ${si.color};
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
442
|
-
background-color: ${
|
|
442
|
+
background-color: ${hi};
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
446
|
-
background-color: ${
|
|
446
|
+
background-color: ${pi};
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
450
|
-
background-color: ${
|
|
450
|
+
background-color: ${ai};
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
454
|
-
background-color: ${
|
|
454
|
+
background-color: ${ni};
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
.ft-ripple .ft-ripple--background {
|
|
@@ -483,25 +483,25 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
486
|
-
opacity: ${
|
|
486
|
+
opacity: ${si.opacityContentOnSurfaceHover};
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
490
|
-
opacity: ${
|
|
490
|
+
opacity: ${si.opacityContentOnSurfaceSelected};
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
494
|
-
opacity: ${
|
|
494
|
+
opacity: ${si.opacityContentOnSurfaceFocused};
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
498
|
-
opacity: ${
|
|
498
|
+
opacity: ${si.opacityContentOnSurfacePressed};
|
|
499
499
|
transform: translate(-50%, -50%) scale(1);
|
|
500
500
|
}
|
|
501
|
-
`,
|
|
501
|
+
`,ii([o({type:Boolean})],ci.prototype,"primary",void 0),ii([o({type:Boolean})],ci.prototype,"secondary",void 0),ii([o({type:Boolean})],ci.prototype,"unbounded",void 0),ii([o({type:Boolean})],ci.prototype,"activated",void 0),ii([o({type:Boolean})],ci.prototype,"selected",void 0),ii([o({type:Boolean})],ci.prototype,"disabled",void 0),ii([s()],ci.prototype,"hovered",void 0),ii([s()],ci.prototype,"focused",void 0),ii([s()],ci.prototype,"pressed",void 0),ii([s()],ci.prototype,"rippling",void 0),ii([s()],ci.prototype,"rippleSize",void 0),ii([s()],ci.prototype,"originX",void 0),ii([s()],ci.prototype,"originY",void 0),ii([r(".ft-ripple")],ci.prototype,"ripple",void 0),ii([r(".ft-ripple--effect")],ci.prototype,"rippleEffect",void 0),a("ft-ripple")(ci);var fi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const di={fontSize:lt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:lt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:lt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:lt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:lt.extend("--ft-text-area-helper-color",ht.colorOnSurfaceMedium),colorPrimary:lt.external(ht.colorPrimary,"Design system"),colorOnSurface:lt.external(ht.colorOnSurface,"Design system"),colorOnSurfaceDisabled:lt.external(ht.colorOnSurfaceDisabled,"Design system"),borderRadiusS:lt.external(ht.borderRadiusS,"Design system"),colorError:lt.external(ht.colorError,"Design system")};class ui extends ct{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return P`
|
|
502
502
|
<style>
|
|
503
503
|
.ft-text-area--main-panel {
|
|
504
|
-
height: calc(4 * ${
|
|
504
|
+
height: calc(4 * ${di.verticalSpacing} + ${di.labelSize} + ${di.fontSize} + ${this.height}px);
|
|
505
505
|
}
|
|
506
506
|
</style>
|
|
507
507
|
<div class="${mt(t)}">
|
|
@@ -536,7 +536,7 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
536
536
|
${this.helper}
|
|
537
537
|
</ft-typography>`:void 0}
|
|
538
538
|
</div>
|
|
539
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
539
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ui.elementDefinitions={"ft-input-label":ei,"ft-resizer":Ge,"ft-ripple":ci,"ft-typography":Be},ui.styles=[ze,d`
|
|
540
540
|
*:focus {
|
|
541
541
|
outline: none;
|
|
542
542
|
}
|
|
@@ -548,10 +548,10 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
ft-input-label {
|
|
551
|
-
${pt(
|
|
552
|
-
${pt(
|
|
553
|
-
${pt(
|
|
554
|
-
${pt(
|
|
551
|
+
${pt(ti.fontSize,di.fontSize)};
|
|
552
|
+
${pt(ti.raisedFontSize,di.labelSize)};
|
|
553
|
+
${pt(ti.verticalSpacing,di.verticalSpacing)};
|
|
554
|
+
${pt(ti.horizontalSpacing,d`calc(${di.horizontalSpacing} - 4px)`)};
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
.ft-text-area--main-panel {
|
|
@@ -569,8 +569,8 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
.ft-text-area--input-panel ft-ripple {
|
|
572
|
-
${pt(
|
|
573
|
-
${pt(
|
|
572
|
+
${pt(si.opacityContentOnSurfaceHover,"0.08")};
|
|
573
|
+
${pt(si.opacityContentOnSurfacePressed,"0.04")};
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
.ft-text-area--input {
|
|
@@ -582,12 +582,12 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
582
582
|
align-self: stretch;
|
|
583
583
|
resize: none;
|
|
584
584
|
|
|
585
|
-
${pt(
|
|
586
|
-
${pt(
|
|
587
|
-
color: ${
|
|
585
|
+
${pt(te.fontSize,di.fontSize)};
|
|
586
|
+
${pt(te.lineHeight,di.fontSize)};
|
|
587
|
+
color: ${di.colorOnSurface};
|
|
588
588
|
|
|
589
|
-
padding: 0 ${
|
|
590
|
-
margin: calc(${
|
|
589
|
+
padding: 0 ${di.horizontalSpacing};
|
|
590
|
+
margin: calc(${di.verticalSpacing} + ${di.labelSize} / 2) 0 ${di.verticalSpacing} 0;
|
|
591
591
|
|
|
592
592
|
border: none;
|
|
593
593
|
background: none;
|
|
@@ -596,7 +596,7 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
.ft-text-area--disabled .ft-text-area--input {
|
|
599
|
-
color: ${
|
|
599
|
+
color: ${di.colorOnSurfaceDisabled};
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -604,32 +604,32 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
607
|
-
${pt(
|
|
608
|
-
${pt(
|
|
607
|
+
${pt(ti.borderColor,di.colorPrimary)};
|
|
608
|
+
${pt(ti.textColor,di.colorPrimary)};
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
612
|
-
border-radius: ${
|
|
612
|
+
border-radius: ${di.borderRadiusS} ${di.borderRadiusS} 0 0;
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
616
616
|
align-self: stretch;
|
|
617
|
-
margin-bottom: ${
|
|
618
|
-
margin-top: calc(${
|
|
617
|
+
margin-bottom: ${di.verticalSpacing};
|
|
618
|
+
margin-top: calc(${di.labelSize} + 2 * ${di.verticalSpacing});
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
622
|
-
border-radius: ${
|
|
622
|
+
border-radius: ${di.borderRadiusS};
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-text-area--helper-text {
|
|
626
|
-
padding: 0 12px 0 ${
|
|
627
|
-
color: ${
|
|
626
|
+
padding: 0 12px 0 ${di.horizontalSpacing};
|
|
627
|
+
color: ${di.helperColor};
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
.ft-text-area--in-error .ft-text-area--input,
|
|
631
631
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
632
|
-
color: ${
|
|
632
|
+
color: ${di.colorError};
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
ft-resizer {
|
|
@@ -637,4 +637,4 @@ class je extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
637
637
|
right: 0;
|
|
638
638
|
bottom: 0;
|
|
639
639
|
}
|
|
640
|
-
`],
|
|
640
|
+
`],fi([o({type:String})],ui.prototype,"label",void 0),fi([o({reflect:!0})],ui.prototype,"value",void 0),fi([o({type:String})],ui.prototype,"helper",void 0),fi([o({type:Boolean})],ui.prototype,"outlined",void 0),fi([o({type:Boolean})],ui.prototype,"disabled",void 0),fi([o({type:Boolean})],ui.prototype,"error",void 0),fi([o({type:Number,reflect:!0})],ui.prototype,"height",void 0),fi([r("textarea")],ui.prototype,"textarea",void 0),fi([s()],ui.prototype,"focused",void 0),a("ft-text-area")(ui),t.FtTextArea=ui,t.FtTextAreaCssVariables=di,Object.defineProperty(t,"t",{value:!0})}({});
|